feat: 新增工单列表
This commit is contained in:
BIN
src/components/CustomEmpty/images/empty.png
Normal file
BIN
src/components/CustomEmpty/images/empty.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
26
src/components/CustomEmpty/index.vue
Normal file
26
src/components/CustomEmpty/index.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
<template>
|
||||
<view class="empty-container">
|
||||
<image
|
||||
class="empty-image"
|
||||
mode="aspectFit"
|
||||
src="./images/empty.png"
|
||||
></image>
|
||||
<text class="empty-text">{{ statusText }}</text>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { defineProps } from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
statusText: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import "./styles/index.scss";
|
||||
</style>
|
||||
19
src/components/CustomEmpty/styles/index.scss
Normal file
19
src/components/CustomEmpty/styles/index.scss
Normal file
@@ -0,0 +1,19 @@
|
||||
.empty-container {
|
||||
/* #ifndef APP-NVUE */
|
||||
display: flex;
|
||||
/* #endif */
|
||||
height: 100%;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.empty-image {
|
||||
height: 130px;
|
||||
width: 130px;
|
||||
}
|
||||
|
||||
.empty-text {
|
||||
margin-top: 10px;
|
||||
font-size: $uni-font-size-base;
|
||||
color: #666666;
|
||||
}
|
||||
Reference in New Issue
Block a user