1Button = {{Button}} {
2 // 1. 布局属性
3 width: 100,
4 height: 40,
5 margin: {left: 10, right: 10},
6
7 // 2. 视觉属性
8 background_color: #fff,
9 border_width: 1.0,
10 corner_radius: 4.0,
11
12 // 3. 行为属性
13 cursor: Pointer,
14 grab_key_focus: true,
15
16 // 4. 动画属性
17 animator: {
18 hover = {
19 default: off
20 }
21 },
22
23 // 5. 子组件实例
24 Icon = <Icon> { },
25
26 Label = <Label> { }
27}