初始化(包含登录模块)
This commit is contained in:
32
wxcomponents/vant/loading/index.js
Normal file
32
wxcomponents/vant/loading/index.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import { VantComponent } from '../common/component';
|
||||
import { addUnit } from '../common/utils';
|
||||
VantComponent({
|
||||
props: {
|
||||
color: String,
|
||||
vertical: Boolean,
|
||||
type: {
|
||||
type: String,
|
||||
value: 'circular'
|
||||
},
|
||||
size: {
|
||||
type: String,
|
||||
observer: 'setSizeWithUnit'
|
||||
},
|
||||
textSize: {
|
||||
type: String,
|
||||
observer: 'setTextSizeWithUnit'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
setSizeWithUnit(size) {
|
||||
this.setData({
|
||||
sizeWithUnit: addUnit(size)
|
||||
});
|
||||
},
|
||||
setTextSizeWithUnit(size) {
|
||||
this.set({
|
||||
textSizeWithUnit: addUnit(size)
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user