2025-01-21 12:33:11 +08:00
|
|
|
// components/container-loading/container-loading.js
|
|
|
|
Component({
|
|
|
|
|
2025-02-07 16:29:25 +08:00
|
|
|
/**
|
|
|
|
* 组件的属性列表
|
|
|
|
*/
|
|
|
|
properties: {
|
|
|
|
loadingState: {
|
|
|
|
type: String,
|
|
|
|
value: 'loading'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
observers: {
|
|
|
|
'loadingState': function (newVal) {
|
|
|
|
this.setData({
|
|
|
|
loadingVisible: newVal
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data: {
|
|
|
|
loadingVisible: 'loading'
|
|
|
|
},
|
2025-01-21 12:33:11 +08:00
|
|
|
|
2025-02-07 16:29:25 +08:00
|
|
|
/**
|
|
|
|
* 组件的方法列表
|
|
|
|
*/
|
|
|
|
methods: {
|
2025-01-21 12:33:11 +08:00
|
|
|
|
2025-02-07 16:29:25 +08:00
|
|
|
}
|
2025-01-21 12:33:11 +08:00
|
|
|
})
|