换ubuntu
This commit is contained in:
2
utils/dist/skeleton/index.d.ts
vendored
2
utils/dist/skeleton/index.d.ts
vendored
@@ -1 +1 @@
|
||||
export {};
|
||||
export {};
|
||||
|
||||
82
utils/dist/skeleton/index.js
vendored
82
utils/dist/skeleton/index.js
vendored
@@ -1,41 +1,41 @@
|
||||
import { VantComponent } from '../common/component';
|
||||
VantComponent({
|
||||
props: {
|
||||
row: {
|
||||
type: Number,
|
||||
value: 0
|
||||
},
|
||||
title: Boolean,
|
||||
avatar: Boolean,
|
||||
loading: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
},
|
||||
animate: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
},
|
||||
avatarSize: {
|
||||
type: String,
|
||||
value: '32px'
|
||||
},
|
||||
avatarShape: {
|
||||
type: String,
|
||||
value: 'round'
|
||||
},
|
||||
titleWidth: {
|
||||
type: String,
|
||||
value: '40%'
|
||||
},
|
||||
rowWidth: {
|
||||
type: null,
|
||||
value: '100%',
|
||||
observer(val) {
|
||||
this.setData({ isArray: val instanceof Array });
|
||||
}
|
||||
}
|
||||
},
|
||||
data: {
|
||||
isArray: false
|
||||
}
|
||||
});
|
||||
import { VantComponent } from '../common/component';
|
||||
VantComponent({
|
||||
props: {
|
||||
row: {
|
||||
type: Number,
|
||||
value: 0
|
||||
},
|
||||
title: Boolean,
|
||||
avatar: Boolean,
|
||||
loading: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
},
|
||||
animate: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
},
|
||||
avatarSize: {
|
||||
type: String,
|
||||
value: '32px'
|
||||
},
|
||||
avatarShape: {
|
||||
type: String,
|
||||
value: 'round'
|
||||
},
|
||||
titleWidth: {
|
||||
type: String,
|
||||
value: '40%'
|
||||
},
|
||||
rowWidth: {
|
||||
type: null,
|
||||
value: '100%',
|
||||
observer(val) {
|
||||
this.setData({ isArray: val instanceof Array });
|
||||
}
|
||||
}
|
||||
},
|
||||
data: {
|
||||
isArray: false
|
||||
}
|
||||
});
|
||||
|
||||
6
utils/dist/skeleton/index.json
vendored
6
utils/dist/skeleton/index.json
vendored
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
58
utils/dist/skeleton/index.wxml
vendored
58
utils/dist/skeleton/index.wxml
vendored
@@ -1,29 +1,29 @@
|
||||
<wxs src="../wxs/utils.wxs" module="utils" />
|
||||
|
||||
<view
|
||||
wx:if="{{ loading }}"
|
||||
class="custom-class {{ utils.bem('skeleton', [{animate}]) }}"
|
||||
>
|
||||
<view
|
||||
wx:if="{{ avatar }}"
|
||||
class="{{ utils.bem('skeleton__avatar', [avatarShape])}}"
|
||||
style="{{ 'width:' + avatarSize + ';height:' + avatarSize }}"
|
||||
/>
|
||||
<view class="{{ utils.bem('skeleton__content')}}">
|
||||
<view
|
||||
wx:if="{{ title }}"
|
||||
class="{{ utils.bem('skeleton__title') }}"
|
||||
style="{{ 'width:' + titleWidth }}"
|
||||
/>
|
||||
<view
|
||||
wx:for="{{ row }}"
|
||||
wx:key="index"
|
||||
wx:for-index="index"
|
||||
class="{{ utils.bem('skeleton__row') }}"
|
||||
style="{{ 'width:' + (isArray ? rowWidth[index] : rowWidth) }}"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:else class="{{ utils.bem('skeleton__content')}}">
|
||||
<slot />
|
||||
</view>
|
||||
<wxs src="../wxs/utils.wxs" module="utils" />
|
||||
|
||||
<view
|
||||
wx:if="{{ loading }}"
|
||||
class="custom-class {{ utils.bem('skeleton', [{animate}]) }}"
|
||||
>
|
||||
<view
|
||||
wx:if="{{ avatar }}"
|
||||
class="{{ utils.bem('skeleton__avatar', [avatarShape])}}"
|
||||
style="{{ 'width:' + avatarSize + ';height:' + avatarSize }}"
|
||||
/>
|
||||
<view class="{{ utils.bem('skeleton__content')}}">
|
||||
<view
|
||||
wx:if="{{ title }}"
|
||||
class="{{ utils.bem('skeleton__title') }}"
|
||||
style="{{ 'width:' + titleWidth }}"
|
||||
/>
|
||||
<view
|
||||
wx:for="{{ row }}"
|
||||
wx:key="index"
|
||||
wx:for-index="index"
|
||||
class="{{ utils.bem('skeleton__row') }}"
|
||||
style="{{ 'width:' + (isArray ? rowWidth[index] : rowWidth) }}"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:else class="{{ utils.bem('skeleton__content')}}">
|
||||
<slot />
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user