换ubuntu
This commit is contained in:
2
utils/dist/loading/index.d.ts
vendored
2
utils/dist/loading/index.d.ts
vendored
@@ -1 +1 @@
|
||||
export {};
|
||||
export {};
|
||||
|
||||
64
utils/dist/loading/index.js
vendored
64
utils/dist/loading/index.js
vendored
@@ -1,32 +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)
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
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)
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
4
utils/dist/loading/index.json
vendored
4
utils/dist/loading/index.json
vendored
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
32
utils/dist/loading/index.wxml
vendored
32
utils/dist/loading/index.wxml
vendored
@@ -1,16 +1,16 @@
|
||||
<view class="custom-class van-loading {{ vertical ? 'van-loading--vertical' : '' }}">
|
||||
<view
|
||||
class="van-loading__spinner van-loading__spinner--{{ type }}"
|
||||
style="color: {{ color }}; width: {{ sizeWithUnit }}; height: {{ sizeWithUnit }}"
|
||||
>
|
||||
<view
|
||||
wx:if="{{ type === 'spinner' }}"
|
||||
wx:for="item in 12"
|
||||
wx:key="index"
|
||||
class="van-loading__dot"
|
||||
/>
|
||||
</view>
|
||||
<view class="van-loading__text" style="font-size: {{ textSizeWithUnit }};">
|
||||
<slot />
|
||||
</view>
|
||||
</view>
|
||||
<view class="custom-class van-loading {{ vertical ? 'van-loading--vertical' : '' }}">
|
||||
<view
|
||||
class="van-loading__spinner van-loading__spinner--{{ type }}"
|
||||
style="color: {{ color }}; width: {{ sizeWithUnit }}; height: {{ sizeWithUnit }}"
|
||||
>
|
||||
<view
|
||||
wx:if="{{ type === 'spinner' }}"
|
||||
wx:for="item in 12"
|
||||
wx:key="index"
|
||||
class="van-loading__dot"
|
||||
/>
|
||||
</view>
|
||||
<view class="van-loading__text" style="font-size: {{ textSizeWithUnit }};">
|
||||
<slot />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user