Component({
/**
* 组件的属性列表
*/
properties: {
cellList:Object,
},
/**
* 组件的外部样式
*/
externalClasses: ['c-cellrow'],//不可使用大写字母,必须有'-'
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
cellClick(res){
this.triggerEvent('cellClick',res.currentTarget.dataset);
},
wholecellClick(res){
this.triggerEvent('wholecellClick',res.currentTarget.dataset);
}
},
lifetimes: {
attached() {
// 在组件实例进入页面节点树时执行
this.init();
},
detached() {
// 在组件实例被从页面节点树移除时执行
},
},
pageLifetimes: {
show() {
// 页面被展示
},
hide() {
// 页面被隐藏
},
resize(size) {
// 页面尺寸变化
}
},
})