1
This commit is contained in:
25
components/loading/loading.js
Normal file
25
components/loading/loading.js
Normal file
@@ -0,0 +1,25 @@
|
||||
// components/loading/loading.js
|
||||
Component({
|
||||
properties: {
|
||||
show: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
value: 'spinner' // skeleton, spinner, progress
|
||||
},
|
||||
text: {
|
||||
type: String,
|
||||
value: '加载中...'
|
||||
},
|
||||
mask: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
},
|
||||
progress: {
|
||||
type: Number,
|
||||
value: 0
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user