ts_aimz/components/down-progress/down-progress.js

39 lines
647 B
JavaScript
Raw Normal View History

2025-04-03 10:44:12 +08:00
Component({
/**
* 组件的属性列表
*/
properties: {
progress: {
type: Number,
value: 0
},
isShow: {
type: Boolean,
value: false
},
2025-05-08 12:03:16 +08:00
hintText: {
type: String,
value: '下载中...'
2025-04-03 10:44:12 +08:00
}
},
2025-05-14 10:14:33 +08:00
'observers': {
'progress': function (newValue) {
this.setData({
progressNum: newValue
})
}
},
2025-04-03 10:44:12 +08:00
/**
* 组件的初始数据
*/
data: {
2025-05-14 09:48:02 +08:00
progressNum: 0
2025-04-03 10:44:12 +08:00
},
/**
* 组件的方法列表
*/
methods: {
},
})