You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
351 B
17 lines
351 B
Component({
|
|
properties: {
|
|
// 这里定义了innerText属性,属性值可以在组件使用时指定
|
|
innerText: {
|
|
type: String,
|
|
value: 'default value',
|
|
}
|
|
},
|
|
data: {
|
|
// 这里是一些组件内部数据
|
|
someData: {}
|
|
},
|
|
methods: {
|
|
// 这里是一个自定义方法
|
|
customMethod: function () { }
|
|
}
|
|
})
|
|
|