The framework provides developers with a set of basic components that can be combined to achieve quick development. For more information, see Component Documentation.
What is component?
- A component is the basic building block of a view layer.
- A component comes with some features and Weixin styles.
- A component includes a
property(modifies the component), and
content(between the two tags).
<tagname property="value"> Content goes here ... </tagname>
Note: All components and properties are in lowercase and joined with a hyphen
|Boolean||Boolean value||If a component has this property, the property value is always considered |
If the property value is a variable, the variable is converted to a Boolean value.
All components have the following properties:
|id||String||A unique identifier of a component||Remains unique across the entire page.|
|class||String||Component style class||The style class defined in the WXSS|
|style||String||Component inline style||This is an inline style that can be dynamically set|
|hidden||Boolean||Whether to display the component||All components are displayed by default|
|data-*||Any||Custom property||When an event is triggered on the component, it is sent to the event handler|
|bind* / catch*||EventHandler||Component event||See Event|
Almost all components have their own custom properties. You can modify the features or style of the component. See the definition of each component.