New Huajishe Check ChaoXing
This commit is contained in:
16
HuajisheCheckChaoXing/components/no-data/no-data.js
Normal file
16
HuajisheCheckChaoXing/components/no-data/no-data.js
Normal file
@@ -0,0 +1,16 @@
|
||||
Component({
|
||||
properties: {
|
||||
text: {
|
||||
type: String,
|
||||
value: '暂无数据',
|
||||
},
|
||||
desc: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
},
|
||||
lifetimes: {
|
||||
attached() { },
|
||||
},
|
||||
methods: {}
|
||||
})
|
||||
3
HuajisheCheckChaoXing/components/no-data/no-data.json
Normal file
3
HuajisheCheckChaoXing/components/no-data/no-data.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
5
HuajisheCheckChaoXing/components/no-data/no-data.wxml
Normal file
5
HuajisheCheckChaoXing/components/no-data/no-data.wxml
Normal file
@@ -0,0 +1,5 @@
|
||||
<view class="no-data">
|
||||
<image class="no-data" src="/static/svg/illustration/no-data.svg" mode="aspectFit"></image>
|
||||
<text class="no-data">{{text}}</text>
|
||||
<text class="no-data" wx:if="{{desc}}">{{desc}}</text>
|
||||
</view>
|
||||
18
HuajisheCheckChaoXing/components/no-data/no-data.wxss
Normal file
18
HuajisheCheckChaoXing/components/no-data/no-data.wxss
Normal file
@@ -0,0 +1,18 @@
|
||||
view.no-data {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin-top: calc(50vh - 300rpx);
|
||||
color: gray;
|
||||
}
|
||||
|
||||
image.no-data {
|
||||
display: block;
|
||||
width: 160rpx;
|
||||
height: 160rpx;
|
||||
margin: 20rpx auto;
|
||||
}
|
||||
|
||||
text.no-data {
|
||||
font-size: 26rpx;
|
||||
display: block;
|
||||
}
|
||||
Reference in New Issue
Block a user