123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <template>
- <div class="hui-empty">
- <img :src="undefinedImage" alt="" :style="'width: '+ width +'px;'" />
- <div class="space-undefined-text">{{description}}</div>
- </div>
- </template>
- <script>
- export default {
- name: 'empty',
- props: {
- width: {
- type: String,
- default: '160'
- },
- description: {
- type: String,
- default: '暂无数据'
- }
- },
- data() {
- return {
- undefinedImage: require('@/assets/image/common/dataUndefined.png'),
- }
- },
- created() {}
- }
- </script>
- <style lang="scss">
- .hui-empty {
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- img {
- width: 160px;
- }
- .space-undefined-text {
- margin-top: 10px;
- opacity: 0.6;
- line-height: 20px;
- font-size: 12px;
- }
- }
- </style>
|