ts_aimz/components/container-loading/container-loading.js
2025-03-26 18:15:07 +08:00

39 lines
740 B
JavaScript

// components/container-loading/container-loading.js
Component({
/**
* 组件的属性列表
*/
properties: {
loadingState: {
type: String,
value: 'loading'
},
widgetHeight: {
type: Number,
value: 200
}
},
observers: {
'loadingState': function (newVal) {
this.setData({
loadingVisible: newVal
});
},
'widgetHeight': function (newVal) {
this.setData({
height: newVal
})
}
},
data: {
loadingVisible: 'loading',
height: 200
},
/**
* 组件的方法列表
*/
methods: {
}
})