View View ~ base layer assembly applets framework

Framework provides a set of basic components for developers, developers can quickly develop by combining these basic components. Details please refer to the component documentation .

What are the components:

  • It is the basic unit assembly view layer.
  • Component comes with a number of features consistent with the micro letter styles.
  • Generally comprises a component  开始标签 and  结束标签, 属性 for this modified assembly, 内容 within the two labels.
<tagname property="value"> Content goes here ... </tagname> 

Note: All components and attributes are lowercase, with a hyphen -connection

Property type

Types of description annotation
Boolean Boolean value Components written on the property, no matter what the value is treated as  true; not only when the property is on the component, just as property values false.
If the attribute value is a variable, the value of the variable is converted to a Boolean
Number digital 12.5
String String "string"
Array Array [ 1, "string" ]
Object Objects { key: value }
EventHandler Event handler name "handlerName" Is  Page  event handler names defined in the
Any Any property  

Public Properties

All components have the following attributes:

Property name Types of description annotation
id String The only marked components The only keep the whole page
class String Style class components Defined in the class corresponding to the style WXSS
style String Inline styles assembly Inline style can be set dynamically
hidden Boolean Component is showing All components displayed by default
data-* Any Custom Attributes When an event is triggered on the component, it will be sent to the event handler
bind* / catch* EventHandler Event components See Event

Special properties

Almost all of the components have their own defined attributes can be modified to the component's function or style, please refer to the various components defined.

 

.

Guess you like

Origin www.cnblogs.com/jianxian/p/11105400.html