Skip to content

Latest commit

 

History

History
81 lines (52 loc) · 2.14 KB

README.md

File metadata and controls

81 lines (52 loc) · 2.14 KB

Example Guide

Add an example

  • Add a file newExample.we copied from template with UI Gallery (recommend).
  • In index.we, add an item {name: 'newExample', title: 'New Example'} for array data.cases

Rule

  1. File name is hyphen separated words, each word is lower case, like .we, ui-button.we
  2. DO NOT use builtin components name as file name, it may be failed ro run.

UI Gallery

Inspired by Bootstrap.

We import a simple UI Gallery for a consistent UI style. See UI Gallery Example for details.

Reference:

Button

ui-button

  • Attributes:

    • type, default | primary | success | info | warning | danger | link
    • size, large | middle | small
    • value
    • disabled, false | true
  • Event:

    • click
  • Example:

Panel

ui-panel

  • Attributes:

    • type, default | primary | success | info | warning | danger
    • title
    • border, number
  • Example:

Hn

ui-hn

  • Attributes:

    • level, 1 | 2 | 3
  • Example:

Tip

ui-tip

  • Attributes:

    • type, success | info | warning | danger
    • value, large | middle | small
    • value
    • disabled, false | true
  • Example:

List

ui-list-item

  • Event:

    • click
  • Example: