vdesign-ui 0.2.1 → 0.2.3
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/dist/components/actionbar/style.less +8 -12
- package/dist/components/actionbar-cell/index.js +7 -0
- package/dist/components/{actionbar/actionbar-cell → actionbar-cell}/index.vue +4 -0
- package/dist/components/{actions-cell/actions → actions}/index.vue +6 -6
- package/dist/components/{actions-cell/actions → actions}/style.less +38 -41
- package/dist/components/activityviews/index.vue +76 -28
- package/dist/components/activityviews/style.less +59 -45
- package/dist/components/badge/style.less +22 -34
- package/dist/components/button/index.vue +4 -0
- package/dist/components/button/style.less +82 -87
- package/dist/components/calendar/index.vue +1 -1
- package/dist/components/calendar/style.less +24 -53
- package/dist/components/checkbox/index.vue +5 -1
- package/dist/components/checkbox/style.less +30 -32
- package/dist/components/checkbox-group/index.js +7 -0
- package/dist/components/{checkbox/checkbox-group → checkbox-group}/index.vue +1 -2
- package/dist/components/common/state/index.vue +1 -48
- package/dist/components/common/state/style.less +48 -0
- package/dist/components/data-list/style.less +81 -82
- package/dist/components/datetime-picker/style.less +12 -12
- package/dist/components/dialog/index.vue +9 -1
- package/dist/components/dialog/style.less +27 -31
- package/dist/components/divider/style.less +1 -1
- package/dist/components/dropdown/index.vue +6 -1
- package/dist/components/dropdown/style.less +117 -125
- package/dist/components/empty/index.vue +35 -20
- package/dist/components/empty/style.less +33 -36
- package/dist/components/footer/style.less +6 -7
- package/dist/components/footnav/index.vue +1 -1
- package/dist/components/footnav/style.less +5 -5
- package/dist/components/{footnav/footnav-item → footnav-item}/index.vue +7 -1
- package/dist/components/{footnav/footnav-item → footnav-item}/style.less +2 -2
- package/dist/components/headnav/index.vue +5 -1
- package/dist/components/headnav/style.less +54 -58
- package/dist/components/icon/style.less +4 -4
- package/dist/components/input/index.vue +4 -0
- package/dist/components/input/style.less +88 -101
- package/dist/components/list/index.vue +5 -0
- package/dist/components/list/style.less +45 -52
- package/dist/components/loading/style.less +25 -27
- package/dist/components/mixins/languageMixin.js +7 -4
- package/dist/components/mixins/outlineConfigPlugin.js +1 -1
- package/dist/components/mixins/themeMixin.js +29 -15
- package/dist/components/noticebar/index.vue +7 -1
- package/dist/components/noticebar/style.less +125 -129
- package/dist/components/overlay/index.vue +34 -11
- package/dist/components/pagebreak/style.less +18 -19
- package/dist/components/popover/index.vue +2 -1
- package/dist/components/popover/style.less +39 -39
- package/dist/components/popup/index.js +7 -0
- package/dist/components/popup/index.vue +243 -0
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.vue +1 -1
- package/dist/components/radio/style.less +35 -43
- package/dist/components/radio-group/index.js +6 -0
- package/dist/components/{radio/radio-group → radio-group}/index.vue +1 -1
- package/dist/components/result/completed-dark.png +0 -0
- package/dist/components/result/completed.png +0 -0
- package/dist/components/result/error-dark.png +0 -0
- package/dist/components/result/error.png +0 -0
- package/dist/components/result/index.vue +1 -2
- package/dist/components/result/style.less +22 -20
- package/dist/components/result/wait-dark.png +0 -0
- package/dist/components/result/wait.png +0 -0
- package/dist/components/{input/search → search}/index.vue +4 -0
- package/dist/components/selector/index.vue +4 -0
- package/dist/components/selector/style.less +96 -100
- package/dist/components/skeleton/index.vue +156 -92
- package/dist/components/skeleton/style.less +112 -107
- package/dist/components/slider/index.vue +1 -1
- package/dist/components/slider/style.less +41 -37
- package/dist/components/step/style.less +3 -4
- package/dist/components/step-item/index.vue +12 -3
- package/dist/components/step-item/style.less +61 -60
- package/dist/components/{input/stepper → stepper}/index.vue +5 -1
- package/dist/components/switch/style.less +8 -8
- package/dist/components/tab/index.js +7 -0
- package/dist/components/tabs/index.vue +4 -0
- package/dist/components/tabs/style.less +97 -105
- package/dist/components/tag/style.less +35 -35
- package/dist/components/title/index.vue +4 -0
- package/dist/components/title/style.less +164 -170
- package/dist/components/toast/index.js +9 -3
- package/dist/components/toast/style.less +8 -8
- package/dist/components/upload/index.vue +4 -0
- package/dist/components/upload/style.less +22 -31
- package/dist/components/utils/env.js +2 -0
- package/dist/token.css +1278 -1278
- package/dist/vdesign-ui.common.js +1315 -1076
- package/dist/vdesign-ui.css +1 -1
- package/dist/vdesign-ui.umd.js +1315 -1076
- package/dist/vdesign-ui.umd.min.js +3 -3
- package/package.json +1 -1
- package/dist/components/checkbox/checkbox-group/index.js +0 -8
- package/dist/components/radio/assist.js +0 -34
- package/dist/components/radio/style.css +0 -213
- package/dist/img/completed-dark.4183a8a8.png +0 -0
- package/dist/img/error-dark.b80857da.png +0 -0
- package/dist/img/wait-dark.6aa28731.png +0 -0
- /package/dist/components/{actions-cell/actions → actions}/index.js +0 -0
- /package/dist/components/{footnav/footnav-item → footnav-item}/index.js +0 -0
- /package/dist/components/{input/password → password}/index.js +0 -0
- /package/dist/components/{input/password → password}/index.vue +0 -0
- /package/dist/components/{input/search → search}/index.js +0 -0
- /package/dist/components/{input/stepper → stepper}/index.js +0 -0
- /package/dist/components/{tabs/tab → tab}/index.vue +0 -0
- /package/dist/components/{checkbox → utils}/assist.js +0 -0
|
@@ -1,37 +1,46 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="vd-empty" :class="wrapClasses">
|
|
3
|
-
<div class="vd-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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>
|
|
7
15
|
</div>
|
|
8
16
|
</div>
|
|
9
17
|
</template>
|
|
10
18
|
|
|
11
19
|
<script>
|
|
12
|
-
import { themeMixin } from '
|
|
13
|
-
|
|
20
|
+
import { themeMixin } from '../mixins/themeMixin';
|
|
14
21
|
const prefixCls = 'vd-empty';
|
|
15
22
|
|
|
16
23
|
export default {
|
|
17
24
|
name: 'vd-empty',
|
|
18
25
|
mixins: [themeMixin], // 引入混入
|
|
19
26
|
props: {
|
|
20
|
-
|
|
21
|
-
description: String,
|
|
22
|
-
size: String,
|
|
23
|
-
type: {
|
|
27
|
+
image: {
|
|
24
28
|
type: String,
|
|
25
29
|
default: 'nodata', // 默认类型
|
|
26
30
|
validator(value) {
|
|
27
31
|
// 只接受以下类型值
|
|
28
|
-
return ['nodata', 'network', '
|
|
32
|
+
return ['nodata', 'network', 'notfound','noposition','nomargin','nocoupons','nosearch','nonotice','noorders','noocomments'].includes(value);
|
|
29
33
|
}
|
|
30
34
|
},
|
|
35
|
+
description: String,
|
|
36
|
+
size: {
|
|
37
|
+
type:String,
|
|
38
|
+
default: 'large', // 大场景布局,使用L尺寸 小场景内容居中使用 S 尺寸 card(空状态>1 时,不显示图片,只显示暂无数据的文字)
|
|
39
|
+
},
|
|
31
40
|
},
|
|
32
41
|
data() {
|
|
33
42
|
return {
|
|
34
|
-
|
|
43
|
+
defaultImages: {
|
|
35
44
|
nodata: {
|
|
36
45
|
light: require('./nodata.png'),
|
|
37
46
|
dark: require('./nodata-dark.png')
|
|
@@ -40,7 +49,7 @@ export default {
|
|
|
40
49
|
light: require('./network.png'),
|
|
41
50
|
dark: require('./network-dark.png')
|
|
42
51
|
},
|
|
43
|
-
|
|
52
|
+
notfound: {
|
|
44
53
|
light: require('./404.png'),
|
|
45
54
|
dark: require('./404-dark.png')
|
|
46
55
|
},
|
|
@@ -76,35 +85,41 @@ export default {
|
|
|
76
85
|
}
|
|
77
86
|
},
|
|
78
87
|
computed: {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
+
}
|
|
82
97
|
},
|
|
83
98
|
wrapClasses() {
|
|
84
99
|
return [
|
|
85
100
|
{
|
|
86
|
-
[`${prefixCls}
|
|
101
|
+
[`${prefixCls}--${this.size}`]: this.size
|
|
87
102
|
}
|
|
88
103
|
]
|
|
89
104
|
},
|
|
90
105
|
textClasses() {
|
|
91
106
|
return [
|
|
92
107
|
{
|
|
93
|
-
[`${prefixCls}
|
|
108
|
+
[`${prefixCls}--${this.size}__txt`]: this.size
|
|
94
109
|
}
|
|
95
110
|
]
|
|
96
111
|
},
|
|
97
112
|
footerClasses() {
|
|
98
113
|
return [
|
|
99
114
|
{
|
|
100
|
-
[`${prefixCls}
|
|
115
|
+
[`${prefixCls}--${this.size}__footer`]: this.size
|
|
101
116
|
}
|
|
102
117
|
]
|
|
103
118
|
}
|
|
104
119
|
},
|
|
105
120
|
methods: {
|
|
106
121
|
preloadImages() {
|
|
107
|
-
Object.values(this.
|
|
122
|
+
Object.values(this.defaultImages).forEach((modes) => {
|
|
108
123
|
Object.values(modes).forEach((src) => {
|
|
109
124
|
const img = new Image();
|
|
110
125
|
img.src = src;
|
|
@@ -1,64 +1,61 @@
|
|
|
1
1
|
@empty-prefix-cls: vd-empty;
|
|
2
2
|
|
|
3
|
-
.@{empty-prefix-cls}{
|
|
4
|
-
height: 100%;
|
|
5
|
-
margin: 0 auto;
|
|
6
|
-
text-align: center;
|
|
7
|
-
padding: 0 20px;
|
|
3
|
+
.@{empty-prefix-cls} {
|
|
8
4
|
display: flex;
|
|
9
5
|
flex-direction: column;
|
|
10
6
|
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
padding: 0 20px;
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
&__img {
|
|
13
12
|
width: 164px;
|
|
14
13
|
height: 118px;
|
|
15
|
-
|
|
16
|
-
img{
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
|
|
15
|
+
img {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
margin-block-start: calc(var(--spacing-empty-large-text-margin_top) * 1px);
|
|
25
|
-
font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
|
|
21
|
+
&__txt {
|
|
22
|
+
font-size: var(--en-single-f-d-r-fontSize);
|
|
26
23
|
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
27
|
-
color:var(--color-empty-text);
|
|
24
|
+
color: var(--color-empty-text);
|
|
28
25
|
}
|
|
29
|
-
|
|
26
|
+
|
|
27
|
+
&__footer {
|
|
30
28
|
display: flex;
|
|
31
29
|
justify-content: center;
|
|
32
|
-
margin-block-start: calc(var(--spacing-empty-large-text-margin_bottom) * 1px);
|
|
33
30
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
|
|
32
|
+
&--small {
|
|
33
|
+
&__txt {
|
|
34
|
+
margin-block-start: var(--spacing-empty-small-text-margin_top);
|
|
38
35
|
}
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
|
|
37
|
+
&__footer {
|
|
38
|
+
margin-block-start: var(--spacing-empty-small-text-margin_bottom);
|
|
41
39
|
}
|
|
42
40
|
}
|
|
43
41
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
&-img{
|
|
49
|
-
display: none;
|
|
50
|
-
}
|
|
42
|
+
&--large {
|
|
43
|
+
&__txt {
|
|
44
|
+
margin-block-start: var(--spacing-empty-large-text-margin_top);
|
|
45
|
+
}
|
|
51
46
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
47
|
+
&__footer {
|
|
48
|
+
margin-block-start: var(--spacing-empty-large-text-margin_bottom);
|
|
55
49
|
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&--card {
|
|
53
|
+
height: var(--height-empty-card);
|
|
56
54
|
|
|
57
|
-
|
|
55
|
+
&__txt {
|
|
58
56
|
margin-block-start: 0;
|
|
59
|
-
font-size:
|
|
57
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
60
58
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
61
59
|
}
|
|
62
60
|
}
|
|
63
|
-
|
|
64
61
|
}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
@footer-prefix-cls: vd-footer;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
.@{footer-prefix-cls}{
|
|
3
|
+
.@{footer-prefix-cls} {
|
|
5
4
|
display: flex;
|
|
6
5
|
align-items: center;
|
|
7
6
|
flex-direction: column;
|
|
8
7
|
justify-content: center;
|
|
9
|
-
padding:
|
|
8
|
+
padding: var(--spacing-footer-padding_top) 0 var(--spacing-footer-padding_bottom);
|
|
10
9
|
|
|
11
|
-
&__link{
|
|
10
|
+
&__link {
|
|
12
11
|
display: flex;
|
|
13
12
|
align-items: center;
|
|
14
|
-
margin-block-end:
|
|
13
|
+
margin-block-end: var(--spacing-footer-link-margin_bottom);
|
|
15
14
|
}
|
|
16
15
|
|
|
17
|
-
&__text{
|
|
18
|
-
font-size:
|
|
16
|
+
&__text {
|
|
17
|
+
font-size: var(--en-single-f-b-r-fontSize);
|
|
19
18
|
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
20
19
|
color: var(--text-color-h2);
|
|
21
20
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
2
1
|
@footnav-prefix-cls: vd-foot-nav;
|
|
3
2
|
|
|
4
|
-
.@{footnav-prefix-cls}{
|
|
3
|
+
.@{footnav-prefix-cls} {
|
|
5
4
|
width: 100%;
|
|
6
5
|
display: flex;
|
|
7
|
-
padding: 4px
|
|
8
|
-
height:
|
|
6
|
+
padding: 4px var(--spacing-footnav-icon-margin_bottom);
|
|
7
|
+
height: var(--height-footnav-content);
|
|
9
8
|
background-color: var(--color-footnav-bg);
|
|
10
9
|
padding-bottom: constant(safe-area-inset-bottom);
|
|
11
10
|
padding-bottom: env(safe-area-inset-bottom);
|
|
12
11
|
|
|
13
|
-
&--fixed{
|
|
12
|
+
&--fixed {
|
|
14
13
|
position: fixed;
|
|
15
14
|
bottom: 0;
|
|
16
15
|
left: 0;
|
|
17
16
|
width: 100%;
|
|
18
17
|
z-index: 1;
|
|
19
18
|
}
|
|
19
|
+
|
|
20
20
|
&--unfit {
|
|
21
21
|
padding-bottom: 0;
|
|
22
22
|
}
|
|
@@ -9,10 +9,16 @@
|
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
11
|
|
|
12
|
-
import RouterLink from '
|
|
12
|
+
import RouterLink from '../mixins/router-link';
|
|
13
|
+
import VdIcon from '../icon';
|
|
14
|
+
import VdBadge from '../badge';
|
|
13
15
|
|
|
14
16
|
export default {
|
|
15
17
|
name: 'vd-foot-nav-item',
|
|
18
|
+
components: {
|
|
19
|
+
VdIcon,
|
|
20
|
+
VdBadge
|
|
21
|
+
},
|
|
16
22
|
mixins: [RouterLink],
|
|
17
23
|
props: {
|
|
18
24
|
iconName: String,
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
align-items: center;
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
justify-content: center;
|
|
9
|
-
font-size:
|
|
9
|
+
font-size: var(--en-single-f-a-r-fontSize);
|
|
10
10
|
font-weight: var(--en-single-f-a-r-fontWeight);
|
|
11
11
|
color: var(--color-footnav-text-default);
|
|
12
12
|
|
|
13
13
|
.vd-iconfont {
|
|
14
14
|
margin-bottom: 2px;
|
|
15
|
-
font-size:
|
|
15
|
+
font-size: var(--icon-footnav-size);
|
|
16
16
|
color: var(--text-color-h2);
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -77,10 +77,14 @@
|
|
|
77
77
|
</template>
|
|
78
78
|
|
|
79
79
|
<script>
|
|
80
|
-
import { inBrowser } from '
|
|
80
|
+
import { inBrowser } from '../utils/env'
|
|
81
|
+
import VdIcon from '../icon';
|
|
81
82
|
const prefixCls = 'vd-head-nav';
|
|
82
83
|
export default {
|
|
83
84
|
name: 'vd-head-nav',
|
|
85
|
+
components: {
|
|
86
|
+
VdIcon,
|
|
87
|
+
},
|
|
84
88
|
props: {
|
|
85
89
|
title: String, // 标题
|
|
86
90
|
time: String, // 标题下面的股票开市时间
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: center;
|
|
9
|
-
height:
|
|
10
|
-
padding: 0
|
|
9
|
+
height: var(--height-headnav-primary);
|
|
10
|
+
padding: 0 var(--spacing-headnav-padding_y);
|
|
11
11
|
|
|
12
12
|
&--fixed {
|
|
13
13
|
top: 0;
|
|
@@ -24,62 +24,60 @@
|
|
|
24
24
|
|
|
25
25
|
&__title {
|
|
26
26
|
max-width: 100%;
|
|
27
|
-
font-size:
|
|
27
|
+
font-size: var(--en-single-f-f-b-fontSize);
|
|
28
28
|
font-weight: var(--en-single-f-f-b-fontWeight);
|
|
29
29
|
color: var(--color-headnav-title);
|
|
30
|
-
|
|
31
30
|
}
|
|
32
|
-
|
|
31
|
+
|
|
33
32
|
&--left {
|
|
34
33
|
position: absolute;
|
|
35
|
-
left:
|
|
34
|
+
left: var(--spacing-headnav-padding_y);
|
|
36
35
|
top: 0;
|
|
37
36
|
bottom: 0;
|
|
38
37
|
display: flex;
|
|
39
38
|
justify-content: center;
|
|
40
39
|
align-items: center;
|
|
41
|
-
gap:
|
|
40
|
+
gap: var(--spacing-headnav-icon-margin_left);
|
|
42
41
|
}
|
|
43
|
-
|
|
42
|
+
|
|
44
43
|
&--right {
|
|
45
44
|
position: absolute;
|
|
46
|
-
right:
|
|
45
|
+
right: var(--spacing-headnav-padding_y);
|
|
47
46
|
top: 0;
|
|
48
47
|
bottom: 0;
|
|
49
48
|
display: flex;
|
|
50
49
|
justify-content: center;
|
|
51
50
|
align-items: center;
|
|
52
|
-
gap:
|
|
53
|
-
|
|
51
|
+
gap: var(--spacing-headnav-icon-margin_left);
|
|
54
52
|
}
|
|
53
|
+
|
|
55
54
|
|
|
56
55
|
&--normal {
|
|
57
|
-
height:
|
|
58
|
-
|
|
56
|
+
height: var(--height-headnav-secondary);
|
|
57
|
+
|
|
59
58
|
.@{headnav-prefix-cls} {
|
|
60
|
-
|
|
61
59
|
&__title--normal {
|
|
62
|
-
font-size:
|
|
60
|
+
font-size: var(--en-single-f-e-s-fontSize);
|
|
63
61
|
font-weight: var(--en-single-f-e-s-fontWeight);
|
|
64
62
|
color: var(--color-headnav-title);
|
|
65
63
|
}
|
|
66
64
|
}
|
|
67
|
-
|
|
65
|
+
|
|
68
66
|
.vd-selector-l__title {
|
|
69
67
|
overflow: hidden;
|
|
70
68
|
white-space: nowrap;
|
|
71
69
|
text-overflow: ellipsis;
|
|
72
|
-
font-size:
|
|
70
|
+
font-size: var(--en-single-f-e-s-fontSize);
|
|
73
71
|
font-weight: var(--en-single-f-e-s-fontWeight);
|
|
74
72
|
}
|
|
75
|
-
|
|
73
|
+
|
|
76
74
|
.vd-selector-s__title {
|
|
77
|
-
font-size:
|
|
75
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
78
76
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
79
77
|
color: var(--color-headnav-title);
|
|
80
78
|
}
|
|
81
|
-
|
|
82
79
|
}
|
|
80
|
+
|
|
83
81
|
|
|
84
82
|
|
|
85
83
|
&__content {
|
|
@@ -90,86 +88,85 @@
|
|
|
90
88
|
justify-content: center;
|
|
91
89
|
flex-direction: column;
|
|
92
90
|
align-items: center;
|
|
93
|
-
margin: 0
|
|
94
|
-
|
|
91
|
+
margin: 0 var(--spacing-headnav-title-margin_y);
|
|
92
|
+
|
|
95
93
|
&--start {
|
|
96
94
|
flex: 1;
|
|
97
95
|
max-width: 100%;
|
|
98
96
|
align-items: flex-start;
|
|
99
|
-
padding-inline-end:
|
|
97
|
+
padding-inline-end: var(--spacing-headnav-title-margin_right);
|
|
100
98
|
}
|
|
101
|
-
|
|
99
|
+
|
|
102
100
|
.vd-selector {
|
|
103
|
-
|
|
104
101
|
&-xl__title {
|
|
105
102
|
white-space: nowrap;
|
|
106
103
|
overflow: hidden;
|
|
107
104
|
text-overflow: ellipsis;
|
|
108
105
|
}
|
|
109
106
|
}
|
|
110
|
-
|
|
107
|
+
|
|
111
108
|
&--selector {
|
|
112
109
|
max-width: 100%;
|
|
113
110
|
padding-inline-start: 20px;
|
|
114
111
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
112
|
}
|
|
113
|
+
|
|
119
114
|
|
|
120
115
|
&__icontype{
|
|
121
116
|
display: flex;
|
|
122
117
|
}
|
|
123
118
|
|
|
124
119
|
&__left-title {
|
|
125
|
-
font-size:
|
|
120
|
+
font-size: var(--en-single-f-f-b-fontSize);
|
|
126
121
|
font-weight: var(--en-single-f-f-b-fontWeight);
|
|
127
122
|
color: var(--color-headnav-title);
|
|
128
123
|
}
|
|
129
|
-
|
|
124
|
+
|
|
130
125
|
&__edit-left-text {
|
|
131
|
-
font-size:
|
|
126
|
+
font-size: var(--en-single-f-d-r-fontSize);
|
|
132
127
|
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
133
128
|
color: var(--color-headnav-title);
|
|
134
129
|
}
|
|
135
|
-
|
|
130
|
+
|
|
136
131
|
&__edit-right-text {
|
|
137
|
-
font-size:
|
|
132
|
+
font-size: var(--en-single-f-d-s-fontSize);
|
|
138
133
|
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
139
134
|
color: var(--primary-color);
|
|
140
135
|
}
|
|
141
|
-
|
|
136
|
+
|
|
142
137
|
&__account-text {
|
|
143
|
-
font-size:
|
|
138
|
+
font-size: var(--en-single-f-d-r-fontSize);
|
|
144
139
|
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
145
140
|
color: var(--color-headnav-title);
|
|
146
141
|
}
|
|
147
|
-
|
|
142
|
+
|
|
148
143
|
&__account-type {
|
|
149
|
-
font-size:
|
|
144
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
150
145
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
151
146
|
color: var(--color-headnav-title);
|
|
152
|
-
|
|
147
|
+
|
|
153
148
|
&--icon {
|
|
154
|
-
font-size:
|
|
155
|
-
margin-inline-end:
|
|
149
|
+
font-size: var(--icon-selector-s);
|
|
150
|
+
margin-inline-end: var(--spacing-selector-s-margin_y);
|
|
156
151
|
}
|
|
157
152
|
}
|
|
153
|
+
|
|
158
154
|
|
|
159
155
|
&__icon {
|
|
160
156
|
display: flex;
|
|
161
|
-
|
|
157
|
+
|
|
162
158
|
.vd-iconfont {
|
|
163
|
-
font-size:
|
|
159
|
+
font-size: var(--icon-large);
|
|
164
160
|
color: var(--color-headnav-icon);
|
|
165
161
|
}
|
|
166
162
|
}
|
|
163
|
+
|
|
167
164
|
&__time {
|
|
168
|
-
margin-inline-start:
|
|
169
|
-
font-size:
|
|
165
|
+
margin-inline-start: var(--spacing-headnav-primary-text-margin_right);
|
|
166
|
+
font-size: var(--en-single-f-a-r-fontSize);
|
|
170
167
|
font-weight: var(--en-single-f-a-r-fontWeight);
|
|
171
168
|
color: var(--color-headnav-text_delayed);
|
|
172
|
-
}
|
|
169
|
+
}
|
|
173
170
|
|
|
174
171
|
&__info {
|
|
175
172
|
position: absolute;
|
|
@@ -183,31 +180,30 @@
|
|
|
183
180
|
|
|
184
181
|
|
|
185
182
|
&__description {
|
|
186
|
-
margin-block-start:
|
|
187
|
-
font-size:
|
|
183
|
+
margin-block-start: var(--spacing-headnav-text_description-margin_top);
|
|
184
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
188
185
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
189
186
|
color: var(--color-headnav-text_description);
|
|
190
187
|
}
|
|
191
|
-
|
|
188
|
+
|
|
192
189
|
&__stock {
|
|
193
190
|
display: flex;
|
|
194
191
|
align-items: center;
|
|
195
|
-
font-size:
|
|
192
|
+
font-size: var(--en-single-f-b-r-fontSize);
|
|
196
193
|
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
197
|
-
|
|
194
|
+
|
|
198
195
|
&--rise {
|
|
199
196
|
color: var(--rise-color);
|
|
200
197
|
}
|
|
201
|
-
|
|
198
|
+
|
|
202
199
|
&--fall {
|
|
203
200
|
color: var(--fall-color);
|
|
204
|
-
|
|
205
201
|
}
|
|
206
|
-
|
|
202
|
+
|
|
207
203
|
span {
|
|
208
|
-
margin-inline-end:
|
|
204
|
+
margin-inline-end: var(--spacing-headnav-primary-dot-margin_right);
|
|
209
205
|
}
|
|
210
|
-
}
|
|
206
|
+
}
|
|
211
207
|
}
|
|
212
208
|
|
|
213
209
|
|
|
@@ -217,13 +213,13 @@
|
|
|
217
213
|
&--left {
|
|
218
214
|
position: absolute;
|
|
219
215
|
left: auto;
|
|
220
|
-
right:
|
|
216
|
+
right: var(--spacing-headnav-padding_y);
|
|
221
217
|
|
|
222
218
|
}
|
|
223
219
|
|
|
224
220
|
&--right {
|
|
225
221
|
position: absolute;
|
|
226
|
-
left:
|
|
222
|
+
left: var(--spacing-headnav-padding_y);
|
|
227
223
|
right: auto;
|
|
228
224
|
}
|
|
229
225
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
backface-visibility: hidden;
|
|
6
6
|
transform: translateZ(0) scale(1, 1);
|
|
7
7
|
// font-family: "Icon" !important;
|
|
8
|
-
font-size:
|
|
8
|
+
font-size: var(--icon-medium);
|
|
9
9
|
font-style: normal;
|
|
10
10
|
font-weight: normal;
|
|
11
11
|
font-variant: normal;
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.vd-icon-small {
|
|
35
|
-
font-size:
|
|
35
|
+
font-size: var(--icon-small);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.vd-icon-medium {
|
|
39
|
-
font-size:
|
|
39
|
+
font-size: var(--icon-medium);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.vd-icon-large {
|
|
43
|
-
font-size:
|
|
43
|
+
font-size: var(--icon-large);
|
|
44
44
|
}
|
|
@@ -75,11 +75,15 @@
|
|
|
75
75
|
</template>
|
|
76
76
|
|
|
77
77
|
<script>
|
|
78
|
+
import VdIcon from '../icon';
|
|
78
79
|
import calcTextareaHeight from "./calcTextareaHeight";
|
|
79
80
|
const prefixCls = "vd-input";
|
|
80
81
|
|
|
81
82
|
export default {
|
|
82
83
|
name: "vd-input",
|
|
84
|
+
components: {
|
|
85
|
+
VdIcon,
|
|
86
|
+
},
|
|
83
87
|
props: {
|
|
84
88
|
value: {
|
|
85
89
|
type: [String, Number],
|