ts_aimz/components/container-loading/container-loading.js

39 lines
740 B
JavaScript
Raw Normal View History

2025-03-24 18:05:54 +08:00
// components/container-loading/container-loading.js
Component({
/**
* 组件的属性列表
*/
properties: {
loadingState: {
type: String,
value: 'loading'
2025-03-26 18:15:07 +08:00
},
widgetHeight: {
type: Number,
value: 200
2025-03-24 18:05:54 +08:00
}
},
observers: {
'loadingState': function (newVal) {
this.setData({
loadingVisible: newVal
});
2025-03-26 18:15:07 +08:00
},
'widgetHeight': function (newVal) {
this.setData({
height: newVal
})
2025-03-24 18:05:54 +08:00
}
},
data: {
2025-03-26 18:15:07 +08:00
loadingVisible: 'loading',
height: 200
2025-03-24 18:05:54 +08:00
},
/**
* 组件的方法列表
*/
methods: {
}
})