vdesign-ui 0.2.20 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -58
- package/dist/components/actionbar/index.js +8 -8
- package/dist/components/actionbar/index.vue +39 -39
- package/dist/components/actionbar/style.less +44 -44
- package/dist/components/actionbar-cell/index.js +7 -7
- package/dist/components/actionbar-cell/index.vue +42 -42
- package/dist/components/actions/index.js +6 -6
- package/dist/components/actions/index.vue +77 -77
- package/dist/components/actions/style.less +109 -109
- package/dist/components/actions-cell/index.js +6 -6
- package/dist/components/actions-cell/index.vue +94 -94
- package/dist/components/actions-cell/style.less +38 -38
- package/dist/components/activityviews/index.js +8 -8
- package/dist/components/activityviews/index.vue +192 -192
- package/dist/components/activityviews/style.less +161 -161
- package/dist/components/badge/index.js +8 -8
- package/dist/components/badge/index.vue +49 -49
- package/dist/components/badge/style.less +54 -54
- package/dist/components/button/index.js +8 -8
- package/dist/components/button/index.vue +93 -93
- package/dist/components/button/style.less +558 -558
- package/dist/components/calendar/index-element.vue +84 -84
- package/dist/components/calendar/index.js +7 -7
- package/dist/components/calendar/index.vue +53 -53
- package/dist/components/calendar/style.less +138 -138
- package/dist/components/checkbox/index.js +8 -8
- package/dist/components/checkbox/index.vue +161 -161
- package/dist/components/checkbox/style.less +288 -288
- package/dist/components/checkbox-group/index.js +7 -7
- package/dist/components/checkbox-group/index.vue +73 -73
- package/dist/components/common/state/index.vue +33 -33
- package/dist/components/common/state/style.less +47 -47
- package/dist/components/data-list/index.js +10 -10
- package/dist/components/data-list/index.vue +19 -19
- package/dist/components/data-list/style.less +623 -623
- package/dist/components/datetime-picker/index.js +7 -7
- package/dist/components/datetime-picker/index.vue +39 -39
- package/dist/components/datetime-picker/style.less +23 -23
- package/dist/components/dialog/index.js +8 -8
- package/dist/components/dialog/index.vue +164 -164
- package/dist/components/dialog/overlay-manager.js +18 -18
- package/dist/components/dialog/style.less +138 -138
- package/dist/components/divider/index.js +8 -8
- package/dist/components/divider/index.vue +54 -54
- package/dist/components/divider/style.less +92 -92
- package/dist/components/dropdown/index.js +8 -8
- package/dist/components/dropdown/index.vue +218 -218
- package/dist/components/dropdown/style.less +432 -432
- package/dist/components/empty/index.js +8 -8
- package/dist/components/empty/index.vue +138 -138
- package/dist/components/empty/style.less +60 -60
- package/dist/components/footer/index.js +6 -6
- package/dist/components/footer/index.vue +33 -33
- package/dist/components/footer/style.less +20 -20
- package/dist/components/footnav/index.js +6 -6
- package/dist/components/footnav/index.vue +93 -93
- package/dist/components/footnav/style.less +22 -22
- package/dist/components/footnav-item/index.js +6 -6
- package/dist/components/footnav-item/index.vue +50 -50
- package/dist/components/footnav-item/style.less +39 -39
- package/dist/components/form/index.js +6 -6
- package/dist/components/form/index.vue +14 -14
- package/dist/components/headnav/index.js +6 -6
- package/dist/components/headnav/index.vue +185 -185
- package/dist/components/headnav/style.less +231 -231
- package/dist/components/icon/font/iconfont.css +163 -163
- package/dist/components/icon/font/iconfont.js +5 -5
- package/dist/components/icon/index.js +9 -9
- package/dist/components/icon/index.vue +96 -96
- package/dist/components/icon/style.less +44 -44
- package/dist/components/input/calcTextareaHeight.js +162 -162
- package/dist/components/input/index.js +8 -8
- package/dist/components/input/index.vue +345 -345
- package/dist/components/input/style.less +471 -471
- package/dist/components/list/index.js +8 -8
- package/dist/components/list/index.vue +152 -152
- package/dist/components/list/style.less +213 -213
- package/dist/components/loading/index.js +6 -6
- package/dist/components/loading/index.vue +68 -68
- package/dist/components/loading/style.less +53 -53
- package/dist/components/mixins/clickoutside.js +81 -81
- package/dist/components/mixins/dom.js +41 -41
- package/dist/components/mixins/languageMixin.js +43 -43
- package/dist/components/mixins/outlineConfigPlugin.js +45 -45
- package/dist/components/mixins/router-link.js +22 -22
- package/dist/components/mixins/themeMixin.js +43 -43
- package/dist/components/noticebar/index.js +8 -8
- package/dist/components/noticebar/index.vue +258 -258
- package/dist/components/noticebar/style.less +333 -333
- package/dist/components/overlay/index.js +8 -8
- package/dist/components/overlay/index.vue +184 -184
- package/dist/components/overlay/style.less +24 -24
- package/dist/components/pagebreak/index.js +6 -6
- package/dist/components/pagebreak/index.vue +67 -67
- package/dist/components/pagebreak/style.less +41 -41
- package/dist/components/password/index.js +8 -8
- package/dist/components/password/index.vue +64 -64
- package/dist/components/popover/index.js +8 -8
- package/dist/components/popover/index.vue +100 -100
- package/dist/components/popover/style.less +346 -346
- package/dist/components/popover/vue-popover.vue +314 -314
- package/dist/components/popup/index.js +7 -7
- package/dist/components/popup/index.vue +165 -165
- package/dist/components/popup/style.less +78 -78
- package/dist/components/radio/index.js +8 -8
- package/dist/components/radio/index.vue +184 -184
- package/dist/components/radio/style.less +300 -300
- package/dist/components/radio-group/index.js +7 -7
- package/dist/components/radio-group/index.vue +62 -62
- package/dist/components/result/index.js +8 -8
- package/dist/components/result/index.vue +73 -73
- package/dist/components/result/style.less +43 -43
- package/dist/components/search/index.js +8 -8
- package/dist/components/search/index.vue +70 -70
- package/dist/components/selector/index.js +8 -8
- package/dist/components/selector/index.vue +161 -161
- package/dist/components/selector/style.less +484 -484
- package/dist/components/skeleton/index.js +6 -6
- package/dist/components/skeleton/index.vue +207 -207
- package/dist/components/skeleton/style.less +196 -196
- package/dist/components/slider/draggable.js +49 -49
- package/dist/components/slider/index.js +6 -6
- package/dist/components/slider/index.vue +167 -167
- package/dist/components/slider/style.less +99 -99
- package/dist/components/slider/utils.js +59 -59
- package/dist/components/step/index.js +7 -7
- package/dist/components/step/index.vue +48 -48
- package/dist/components/step/style.less +66 -66
- package/dist/components/step-item/index.js +7 -7
- package/dist/components/step-item/index.vue +126 -126
- package/dist/components/step-item/style.less +399 -399
- package/dist/components/stepper/index.js +8 -8
- package/dist/components/stepper/index.vue +150 -150
- package/dist/components/style/index.vue +42 -42
- package/dist/components/switch/index.js +8 -8
- package/dist/components/switch/index.vue +72 -72
- package/dist/components/switch/style.less +56 -56
- package/dist/components/tab/index.js +7 -7
- package/dist/components/tab/index.vue +97 -97
- package/dist/components/tabs/index.js +8 -8
- package/dist/components/tabs/index.vue +356 -356
- package/dist/components/tabs/style.less +504 -504
- package/dist/components/tag/index.js +6 -6
- package/dist/components/tag/index.vue +64 -64
- package/dist/components/tag/style.less +210 -210
- package/dist/components/title/index.js +8 -8
- package/dist/components/title/index.vue +99 -99
- package/dist/components/title/style.less +187 -187
- package/dist/components/toast/index.js +139 -139
- package/dist/components/toast/index.vue +50 -50
- package/dist/components/toast/style.less +58 -58
- package/dist/components/transition/index.js +8 -8
- package/dist/components/transition/index.vue +13 -13
- package/dist/components/transition/style.less +208 -208
- package/dist/components/upload/index.js +6 -6
- package/dist/components/upload/index.vue +106 -106
- package/dist/components/upload/style.less +147 -147
- package/dist/components/utils/assist.js +34 -34
- package/dist/components/utils/env.js +21 -21
- package/dist/locale/ar.js +97 -97
- package/dist/locale/en.js +97 -97
- package/dist/locale/zh.js +97 -97
- package/dist/token.css +9 -9
- package/dist/vdesign-ui.common.js +83 -83
- package/dist/vdesign-ui.umd.js +83 -83
- package/package.json +113 -113
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Empty from './index.vue';
|
|
2
|
-
import './style.less';
|
|
3
|
-
|
|
4
|
-
Empty.install = function (Vue) {
|
|
5
|
-
Vue.component(Empty.name, Empty);
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export default Empty;
|
|
1
|
+
import Empty from './index.vue';
|
|
2
|
+
import './style.less';
|
|
3
|
+
|
|
4
|
+
Empty.install = function (Vue) {
|
|
5
|
+
Vue.component(Empty.name, Empty);
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export default Empty;
|
|
@@ -1,138 +1,138 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vd-empty" :class="wrapClasses">
|
|
3
|
-
<div class="vd-empty__img" v-if="size !== 'card'">
|
|
4
|
-
<slot name="image">
|
|
5
|
-
<img :src="currentImage" alt="empty" />
|
|
6
|
-
</slot>
|
|
7
|
-
</div>
|
|
8
|
-
<p class="vd-empty__txt" :class="textClasses" v-if="description || $slots.description">
|
|
9
|
-
<slot name="description">
|
|
10
|
-
{{ description }}
|
|
11
|
-
</slot>
|
|
12
|
-
</p>
|
|
13
|
-
<div class="vd-empty__footer" :class="footerClasses" v-if="$slots.default">
|
|
14
|
-
<slot></slot>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script>
|
|
20
|
-
import { themeMixin } from '../mixins/themeMixin';
|
|
21
|
-
const prefixCls = 'vd-empty';
|
|
22
|
-
|
|
23
|
-
export default {
|
|
24
|
-
name: 'vd-empty',
|
|
25
|
-
mixins: [themeMixin], // 引入混入
|
|
26
|
-
props: {
|
|
27
|
-
image: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: 'nodata', // 默认类型
|
|
30
|
-
// validator(value) {
|
|
31
|
-
// // 只接受以下类型值
|
|
32
|
-
// return ['nodata', 'network', 'notfound','noposition','nomargin','nocoupons','nosearch','nonotice','noorders','noocomments'].includes(value);
|
|
33
|
-
// }
|
|
34
|
-
},
|
|
35
|
-
description: String,
|
|
36
|
-
size: {
|
|
37
|
-
type:String,
|
|
38
|
-
default: 'large', // 大场景布局,使用L尺寸 小场景内容居中使用 S 尺寸 card(空状态>1 时,不显示图片,只显示暂无数据的文字)
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
data() {
|
|
42
|
-
return {
|
|
43
|
-
defaultImages: {
|
|
44
|
-
nodata: {
|
|
45
|
-
light: require('./nodata.png'),
|
|
46
|
-
dark: require('./nodata-dark.png')
|
|
47
|
-
},
|
|
48
|
-
network: {
|
|
49
|
-
light: require('./network.png'),
|
|
50
|
-
dark: require('./network-dark.png')
|
|
51
|
-
},
|
|
52
|
-
notfound: {
|
|
53
|
-
light: require('./404.png'),
|
|
54
|
-
dark: require('./404-dark.png')
|
|
55
|
-
},
|
|
56
|
-
noposition: {
|
|
57
|
-
light: require('./noposition.png'),
|
|
58
|
-
dark: require('./noposition-dark.png')
|
|
59
|
-
},
|
|
60
|
-
nomargin: {
|
|
61
|
-
light: require('./nomargin.png'),
|
|
62
|
-
dark: require('./nomargin-dark.png')
|
|
63
|
-
},
|
|
64
|
-
nocoupons: {
|
|
65
|
-
light: require('./nocoupons.png'),
|
|
66
|
-
dark: require('./nocoupons-dark.png')
|
|
67
|
-
},
|
|
68
|
-
nosearch: {
|
|
69
|
-
light: require('./nosearch.png'),
|
|
70
|
-
dark: require('./nosearch-dark.png')
|
|
71
|
-
},
|
|
72
|
-
nonotice: {
|
|
73
|
-
light: require('./nonotice.png'),
|
|
74
|
-
dark: require('./nonotice-dark.png')
|
|
75
|
-
},
|
|
76
|
-
noorders: {
|
|
77
|
-
light: require('./noorders.png'),
|
|
78
|
-
dark: require('./noorders-dark.png')
|
|
79
|
-
},
|
|
80
|
-
noocomments: {
|
|
81
|
-
light: require('./noocomments.png'),
|
|
82
|
-
dark: require('./noocomments-dark.png')
|
|
83
|
-
},
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
computed: {
|
|
88
|
-
currentImage() {
|
|
89
|
-
const image = this.image;
|
|
90
|
-
if (image && (image.startsWith('http') || image.startsWith('data:image'))) {
|
|
91
|
-
return image;
|
|
92
|
-
} else if (this.defaultImages[image]) {
|
|
93
|
-
return this.defaultImages[image][this.theme];
|
|
94
|
-
} else {
|
|
95
|
-
return this.defaultImages['nodata'][this.theme];
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
wrapClasses() {
|
|
99
|
-
return [
|
|
100
|
-
{
|
|
101
|
-
[`${prefixCls}--${this.size}`]: this.size
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
|
-
textClasses() {
|
|
106
|
-
return [
|
|
107
|
-
{
|
|
108
|
-
[`${prefixCls}--${this.size}__txt`]: this.size
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
footerClasses() {
|
|
113
|
-
return [
|
|
114
|
-
{
|
|
115
|
-
[`${prefixCls}--${this.size}__footer`]: this.size
|
|
116
|
-
}
|
|
117
|
-
]
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
methods: {
|
|
121
|
-
preloadImages() {
|
|
122
|
-
Object.values(this.defaultImages).forEach((modes) => {
|
|
123
|
-
Object.values(modes).forEach((src) => {
|
|
124
|
-
const img = new Image();
|
|
125
|
-
img.src = src;
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
mounted() {
|
|
131
|
-
this.preloadImages();
|
|
132
|
-
},
|
|
133
|
-
}
|
|
134
|
-
</script>
|
|
135
|
-
|
|
136
|
-
<style lang="less">
|
|
137
|
-
@import './style.less';
|
|
138
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vd-empty" :class="wrapClasses">
|
|
3
|
+
<div class="vd-empty__img" v-if="size !== 'card'">
|
|
4
|
+
<slot name="image">
|
|
5
|
+
<img :src="currentImage" alt="empty" />
|
|
6
|
+
</slot>
|
|
7
|
+
</div>
|
|
8
|
+
<p class="vd-empty__txt" :class="textClasses" v-if="description || $slots.description">
|
|
9
|
+
<slot name="description">
|
|
10
|
+
{{ description }}
|
|
11
|
+
</slot>
|
|
12
|
+
</p>
|
|
13
|
+
<div class="vd-empty__footer" :class="footerClasses" v-if="$slots.default">
|
|
14
|
+
<slot></slot>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script>
|
|
20
|
+
import { themeMixin } from '../mixins/themeMixin';
|
|
21
|
+
const prefixCls = 'vd-empty';
|
|
22
|
+
|
|
23
|
+
export default {
|
|
24
|
+
name: 'vd-empty',
|
|
25
|
+
mixins: [themeMixin], // 引入混入
|
|
26
|
+
props: {
|
|
27
|
+
image: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: 'nodata', // 默认类型
|
|
30
|
+
// validator(value) {
|
|
31
|
+
// // 只接受以下类型值
|
|
32
|
+
// return ['nodata', 'network', 'notfound','noposition','nomargin','nocoupons','nosearch','nonotice','noorders','noocomments'].includes(value);
|
|
33
|
+
// }
|
|
34
|
+
},
|
|
35
|
+
description: String,
|
|
36
|
+
size: {
|
|
37
|
+
type:String,
|
|
38
|
+
default: 'large', // 大场景布局,使用L尺寸 小场景内容居中使用 S 尺寸 card(空状态>1 时,不显示图片,只显示暂无数据的文字)
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
data() {
|
|
42
|
+
return {
|
|
43
|
+
defaultImages: {
|
|
44
|
+
nodata: {
|
|
45
|
+
light: require('./nodata.png'),
|
|
46
|
+
dark: require('./nodata-dark.png')
|
|
47
|
+
},
|
|
48
|
+
network: {
|
|
49
|
+
light: require('./network.png'),
|
|
50
|
+
dark: require('./network-dark.png')
|
|
51
|
+
},
|
|
52
|
+
notfound: {
|
|
53
|
+
light: require('./404.png'),
|
|
54
|
+
dark: require('./404-dark.png')
|
|
55
|
+
},
|
|
56
|
+
noposition: {
|
|
57
|
+
light: require('./noposition.png'),
|
|
58
|
+
dark: require('./noposition-dark.png')
|
|
59
|
+
},
|
|
60
|
+
nomargin: {
|
|
61
|
+
light: require('./nomargin.png'),
|
|
62
|
+
dark: require('./nomargin-dark.png')
|
|
63
|
+
},
|
|
64
|
+
nocoupons: {
|
|
65
|
+
light: require('./nocoupons.png'),
|
|
66
|
+
dark: require('./nocoupons-dark.png')
|
|
67
|
+
},
|
|
68
|
+
nosearch: {
|
|
69
|
+
light: require('./nosearch.png'),
|
|
70
|
+
dark: require('./nosearch-dark.png')
|
|
71
|
+
},
|
|
72
|
+
nonotice: {
|
|
73
|
+
light: require('./nonotice.png'),
|
|
74
|
+
dark: require('./nonotice-dark.png')
|
|
75
|
+
},
|
|
76
|
+
noorders: {
|
|
77
|
+
light: require('./noorders.png'),
|
|
78
|
+
dark: require('./noorders-dark.png')
|
|
79
|
+
},
|
|
80
|
+
noocomments: {
|
|
81
|
+
light: require('./noocomments.png'),
|
|
82
|
+
dark: require('./noocomments-dark.png')
|
|
83
|
+
},
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
computed: {
|
|
88
|
+
currentImage() {
|
|
89
|
+
const image = this.image;
|
|
90
|
+
if (image && (image.startsWith('http') || image.startsWith('data:image'))) {
|
|
91
|
+
return image;
|
|
92
|
+
} else if (this.defaultImages[image]) {
|
|
93
|
+
return this.defaultImages[image][this.theme];
|
|
94
|
+
} else {
|
|
95
|
+
return this.defaultImages['nodata'][this.theme];
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
wrapClasses() {
|
|
99
|
+
return [
|
|
100
|
+
{
|
|
101
|
+
[`${prefixCls}--${this.size}`]: this.size
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
textClasses() {
|
|
106
|
+
return [
|
|
107
|
+
{
|
|
108
|
+
[`${prefixCls}--${this.size}__txt`]: this.size
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
footerClasses() {
|
|
113
|
+
return [
|
|
114
|
+
{
|
|
115
|
+
[`${prefixCls}--${this.size}__footer`]: this.size
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
methods: {
|
|
121
|
+
preloadImages() {
|
|
122
|
+
Object.values(this.defaultImages).forEach((modes) => {
|
|
123
|
+
Object.values(modes).forEach((src) => {
|
|
124
|
+
const img = new Image();
|
|
125
|
+
img.src = src;
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
mounted() {
|
|
131
|
+
this.preloadImages();
|
|
132
|
+
},
|
|
133
|
+
}
|
|
134
|
+
</script>
|
|
135
|
+
|
|
136
|
+
<style lang="less">
|
|
137
|
+
@import './style.less';
|
|
138
|
+
</style>
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
@empty-prefix-cls: vd-empty;
|
|
2
|
-
|
|
3
|
-
.@{empty-prefix-cls} {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
padding: 0 20px;
|
|
10
|
-
|
|
11
|
-
&__img {
|
|
12
|
-
width: 164px;
|
|
13
|
-
height: 118px;
|
|
14
|
-
|
|
15
|
-
img {
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&__txt {
|
|
22
|
-
font-size: var(--en-single-f-d-r-fontSize);
|
|
23
|
-
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
24
|
-
color: var(--color-empty-text);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&__footer {
|
|
28
|
-
display: flex;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&--small {
|
|
33
|
-
&__txt {
|
|
34
|
-
margin-block-start: var(--spacing-empty-small-text-margin_top);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&__footer {
|
|
38
|
-
margin-block-start: var(--spacing-empty-small-text-margin_bottom);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&--large {
|
|
43
|
-
&__txt {
|
|
44
|
-
margin-block-start: var(--spacing-empty-large-text-margin_top);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&__footer {
|
|
48
|
-
margin-block-start: var(--spacing-empty-large-text-margin_bottom);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&--card {
|
|
53
|
-
height: var(--height-empty-card);
|
|
54
|
-
|
|
55
|
-
&__txt {
|
|
56
|
-
margin-block-start: 0;
|
|
57
|
-
font-size: var(--en-single-f-c-r-fontSize);
|
|
58
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
1
|
+
@empty-prefix-cls: vd-empty;
|
|
2
|
+
|
|
3
|
+
.@{empty-prefix-cls} {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
padding: 0 20px;
|
|
10
|
+
|
|
11
|
+
&__img {
|
|
12
|
+
width: 164px;
|
|
13
|
+
height: 118px;
|
|
14
|
+
|
|
15
|
+
img {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&__txt {
|
|
22
|
+
font-size: var(--en-single-f-d-r-fontSize);
|
|
23
|
+
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
24
|
+
color: var(--color-empty-text);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__footer {
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&--small {
|
|
33
|
+
&__txt {
|
|
34
|
+
margin-block-start: var(--spacing-empty-small-text-margin_top);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__footer {
|
|
38
|
+
margin-block-start: var(--spacing-empty-small-text-margin_bottom);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&--large {
|
|
43
|
+
&__txt {
|
|
44
|
+
margin-block-start: var(--spacing-empty-large-text-margin_top);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__footer {
|
|
48
|
+
margin-block-start: var(--spacing-empty-large-text-margin_bottom);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&--card {
|
|
53
|
+
height: var(--height-empty-card);
|
|
54
|
+
|
|
55
|
+
&__txt {
|
|
56
|
+
margin-block-start: 0;
|
|
57
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
58
|
+
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
61
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Footer from './index.vue';
|
|
2
|
-
import './style.less';
|
|
3
|
-
Footer.install = function(Vue) {
|
|
4
|
-
Vue.component(Footer.name, Footer)
|
|
5
|
-
}
|
|
6
|
-
|
|
1
|
+
import Footer from './index.vue';
|
|
2
|
+
import './style.less';
|
|
3
|
+
Footer.install = function(Vue) {
|
|
4
|
+
Vue.component(Footer.name, Footer)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
7
|
export default Footer;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vd-footer">
|
|
3
|
-
<div class="vd-footer__link" v-if="$slots.default">
|
|
4
|
-
<slot>
|
|
5
|
-
</slot>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="vd-footer__text" v-if="text || $slots.text">
|
|
8
|
-
<slot name="text">
|
|
9
|
-
{{ text }}
|
|
10
|
-
</slot>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script>
|
|
16
|
-
export default {
|
|
17
|
-
name: 'vd-footer',
|
|
18
|
-
props: {
|
|
19
|
-
text: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: ''
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
computed: {
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
</script>
|
|
30
|
-
|
|
31
|
-
<style lang="less">
|
|
32
|
-
@import './style.less';
|
|
33
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vd-footer">
|
|
3
|
+
<div class="vd-footer__link" v-if="$slots.default">
|
|
4
|
+
<slot>
|
|
5
|
+
</slot>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="vd-footer__text" v-if="text || $slots.text">
|
|
8
|
+
<slot name="text">
|
|
9
|
+
{{ text }}
|
|
10
|
+
</slot>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
name: 'vd-footer',
|
|
18
|
+
props: {
|
|
19
|
+
text: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ''
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
},
|
|
25
|
+
computed: {
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<style lang="less">
|
|
32
|
+
@import './style.less';
|
|
33
|
+
</style>
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
@footer-prefix-cls: vd-footer;
|
|
2
|
-
|
|
3
|
-
.@{footer-prefix-cls} {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
padding: var(--spacing-footer-padding_top) 0 var(--spacing-footer-padding_bottom);
|
|
9
|
-
|
|
10
|
-
&__link {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
margin-block-end: var(--spacing-footer-link-margin_bottom);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&__text {
|
|
17
|
-
font-size: var(--en-single-f-b-r-fontSize);
|
|
18
|
-
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
19
|
-
color: var(--text-color-h3);
|
|
20
|
-
}
|
|
1
|
+
@footer-prefix-cls: vd-footer;
|
|
2
|
+
|
|
3
|
+
.@{footer-prefix-cls} {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
padding: var(--spacing-footer-padding_top) 0 var(--spacing-footer-padding_bottom);
|
|
9
|
+
|
|
10
|
+
&__link {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
margin-block-end: var(--spacing-footer-link-margin_bottom);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__text {
|
|
17
|
+
font-size: var(--en-single-f-b-r-fontSize);
|
|
18
|
+
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
19
|
+
color: var(--text-color-h3);
|
|
20
|
+
}
|
|
21
21
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import FootNav from './index.vue';
|
|
2
|
-
import './style.less';
|
|
3
|
-
FootNav.install = function(Vue) {
|
|
4
|
-
Vue.component(FootNav.name, FootNav)
|
|
5
|
-
}
|
|
6
|
-
|
|
1
|
+
import FootNav from './index.vue';
|
|
2
|
+
import './style.less';
|
|
3
|
+
FootNav.install = function(Vue) {
|
|
4
|
+
Vue.component(FootNav.name, FootNav)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
7
|
export default FootNav;
|