初始化
This commit is contained in:
17
components/empty/index.js
Normal file
17
components/empty/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
// components/empty/index.js
|
||||
Component({
|
||||
|
||||
properties: {
|
||||
description: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
|
||||
data: {
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
})
|
||||
4
components/empty/index.json
Normal file
4
components/empty/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
13
components/empty/index.scss
Normal file
13
components/empty/index.scss
Normal file
@@ -0,0 +1,13 @@
|
||||
@import "./assets/style/flex.scss";
|
||||
|
||||
.empty {
|
||||
image {
|
||||
width: 40vw;
|
||||
height: 40vw;
|
||||
}
|
||||
}
|
||||
|
||||
.tip {
|
||||
font-size: 28rpx;
|
||||
color: var(--text-3);
|
||||
}
|
||||
5
components/empty/index.wxml
Normal file
5
components/empty/index.wxml
Normal file
@@ -0,0 +1,5 @@
|
||||
<view class="flex-column-center empty">
|
||||
<image mode="aspectFit"
|
||||
src="/assets/image/empty.png" />
|
||||
<view class="tip">{{description}}</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user