vdesign-ui 0.2.1 → 0.2.2
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 +7 -1
- package/dist/components/activityviews/style.less +42 -46
- 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 +4 -0
- 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 +10 -8
- package/dist/components/empty/style.less +34 -26
- 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 -3
- 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/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/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 +1112 -948
- package/dist/vdesign-ui.css +1 -1
- package/dist/vdesign-ui.umd.js +1112 -948
- 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,7 +1,5 @@
|
|
|
1
1
|
@title-prefix-cls: vd-list;
|
|
2
|
-
|
|
3
2
|
.@{title-prefix-cls} {
|
|
4
|
-
|
|
5
3
|
position: relative;
|
|
6
4
|
display: flex;
|
|
7
5
|
align-items: center;
|
|
@@ -25,196 +23,191 @@
|
|
|
25
23
|
|
|
26
24
|
&__arrow {
|
|
27
25
|
display: flex;
|
|
28
|
-
margin-inline-start:
|
|
26
|
+
margin-inline-start: var(--spacing-list-info_icon-margin_y);
|
|
29
27
|
color: var(--text-color-h2);
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
&__multext {
|
|
33
|
-
font-size:
|
|
31
|
+
font-size: var(--en-single-f-c-s-fontSize);
|
|
34
32
|
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
35
33
|
color: var(--text-color-h1);
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
&-xsmall {
|
|
39
|
-
padding-block-start:
|
|
40
|
-
padding-block-end:
|
|
37
|
+
padding-block-start: var(--spacing-list-info_s-padding_top);
|
|
38
|
+
padding-block-end: var(--spacing-list-info_s-padding_bottom);
|
|
41
39
|
|
|
42
40
|
&__icon--right {
|
|
43
41
|
color: var(--text-color-h2);
|
|
44
42
|
}
|
|
45
43
|
|
|
46
44
|
&__title {
|
|
47
|
-
margin-inline-end:
|
|
45
|
+
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
48
46
|
color: var(--text-color-h2);
|
|
49
|
-
font-size:
|
|
47
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
50
48
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
&__text--right {
|
|
54
|
-
font-size:
|
|
52
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
55
53
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
56
54
|
color: var(--text-color-h1);
|
|
57
55
|
}
|
|
58
56
|
}
|
|
59
57
|
|
|
60
58
|
&-small {
|
|
61
|
-
padding-block-start:
|
|
62
|
-
padding-block-end:
|
|
59
|
+
padding-block-start: var(--spacing-list-info_m-padding_top);
|
|
60
|
+
padding-block-end: var(--spacing-list-info_m-padding_bottom);
|
|
63
61
|
|
|
64
62
|
&__icon--right {
|
|
65
63
|
color: var(--text-color-h2);
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
&__title {
|
|
69
|
-
margin-inline-end:
|
|
67
|
+
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
70
68
|
color: var(--text-color-h1);
|
|
71
|
-
font-size:
|
|
69
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
72
70
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
73
71
|
}
|
|
74
72
|
|
|
75
73
|
&__text--right {
|
|
76
|
-
font-size:
|
|
74
|
+
font-size: var(--en-single-f-c-s-fontSize);
|
|
77
75
|
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
78
76
|
color: var(--text-color-h1);
|
|
79
77
|
}
|
|
80
78
|
}
|
|
81
79
|
|
|
82
80
|
&-medium {
|
|
83
|
-
padding-block-start:
|
|
84
|
-
padding-block-end:
|
|
81
|
+
padding-block-start: var(--spacing-list-info_l-padding_top);
|
|
82
|
+
padding-block-end: var(--spacing-list-info_l-padding_bottom);
|
|
85
83
|
|
|
86
84
|
&__icon--right {
|
|
87
85
|
color: var(--text-color-h2);
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
&__title {
|
|
91
|
-
margin-inline-end:
|
|
89
|
+
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
92
90
|
color: var(--text-color-h2);
|
|
93
|
-
font-size:
|
|
91
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
94
92
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
&__text--right {
|
|
98
|
-
font-size:
|
|
96
|
+
font-size: var(--en-single-f-d-r-fontSize);
|
|
99
97
|
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
100
98
|
color: var(--text-color-h1);
|
|
101
99
|
}
|
|
102
|
-
|
|
103
100
|
}
|
|
104
101
|
|
|
105
102
|
&-large {
|
|
106
|
-
height:
|
|
103
|
+
height: var(--height-super-large);
|
|
107
104
|
|
|
108
105
|
&__icon--right {
|
|
109
106
|
color: var(--text-color-h2);
|
|
110
107
|
}
|
|
111
108
|
|
|
112
109
|
&__title {
|
|
113
|
-
margin-inline-end:
|
|
110
|
+
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
114
111
|
color: var(--text-color-h1);
|
|
115
|
-
font-size:
|
|
112
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
116
113
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
117
114
|
}
|
|
118
115
|
|
|
119
116
|
&__text--right {
|
|
120
|
-
font-size:
|
|
117
|
+
font-size: var(--en-single-f-d-s-fontSize);
|
|
121
118
|
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
122
119
|
color: var(--text-color-h1);
|
|
123
120
|
}
|
|
124
|
-
|
|
125
121
|
}
|
|
126
122
|
|
|
127
123
|
&-common {
|
|
128
|
-
padding-block-start:
|
|
129
|
-
padding-block-end:
|
|
130
|
-
padding-inline-start:
|
|
131
|
-
padding-inline-end:
|
|
132
|
-
|
|
124
|
+
padding-block-start: var(--spacing-list-common-padding_x);
|
|
125
|
+
padding-block-end: var(--spacing-list-common-padding_x);
|
|
126
|
+
padding-inline-start: var(--spacing-list-common-padding_y);
|
|
127
|
+
padding-inline-end: var(--spacing-list-common-padding_y);
|
|
133
128
|
|
|
134
129
|
&--left {
|
|
135
130
|
display: flex;
|
|
136
131
|
align-items: center;
|
|
137
132
|
}
|
|
138
133
|
&__icon--leftcus {
|
|
139
|
-
margin-inline-end:
|
|
134
|
+
margin-inline-end: var(--spacing-list-common_icon-margin_right);
|
|
140
135
|
color: var(--text-color-h2);
|
|
141
136
|
}
|
|
142
137
|
|
|
143
138
|
&__title {
|
|
144
139
|
color: var(--color-list-title);
|
|
145
|
-
font-size:
|
|
140
|
+
font-size: var(--en-multi-f-d-s-fontSize);
|
|
146
141
|
font-weight: var(--en-multi-f-d-s-fontWeight);
|
|
147
|
-
line-height:
|
|
142
|
+
line-height: var(--en-multi-f-d-s-lineHeight);
|
|
148
143
|
|
|
149
|
-
&--with-subtitle{
|
|
144
|
+
&--with-subtitle {
|
|
150
145
|
line-height: inherit;
|
|
151
|
-
font-size:
|
|
146
|
+
font-size: var(--en-single-f-d-s-fontSize);
|
|
152
147
|
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
153
148
|
}
|
|
154
149
|
}
|
|
155
150
|
|
|
156
151
|
&__text--right {
|
|
157
|
-
margin-inline-start:
|
|
158
|
-
font-size:
|
|
152
|
+
margin-inline-start: var(--spacing-list-common_describe-margin_xy);
|
|
153
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
159
154
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
160
155
|
color: var(--color-list-text);
|
|
161
156
|
}
|
|
162
157
|
|
|
163
158
|
&__subtitle {
|
|
164
|
-
margin-block-start:
|
|
159
|
+
margin-block-start: var(--spacing-list-common_describe-margin_xy);
|
|
165
160
|
color: var(--color-list-text);
|
|
166
|
-
font-size:
|
|
161
|
+
font-size: var(--en-multi-f-c-r-fontSize);
|
|
167
162
|
font-weight: var(--en-multi-f-c-r-fontWeight);
|
|
168
|
-
line-height:
|
|
163
|
+
line-height: var(--en-multi-f-c-r-lineHeight);
|
|
169
164
|
}
|
|
170
165
|
|
|
171
166
|
&__badge {
|
|
172
|
-
margin-inline-start:
|
|
167
|
+
margin-inline-start: var(--spacing-list-common_badge-margin_left);
|
|
173
168
|
}
|
|
174
169
|
}
|
|
175
170
|
|
|
176
|
-
|
|
177
171
|
&-check {
|
|
178
|
-
padding-block-start:
|
|
179
|
-
padding-block-end:
|
|
172
|
+
padding-block-start: var(--spacing-list-common-padding_x);
|
|
173
|
+
padding-block-end: var(--spacing-list-common-padding_x);
|
|
180
174
|
|
|
181
175
|
&--active {
|
|
182
|
-
|
|
183
176
|
.@{title-prefix-cls}-check__select {
|
|
184
|
-
margin-inline-start:
|
|
177
|
+
margin-inline-start: var(--spacing-list-check-margin_left);
|
|
185
178
|
|
|
186
179
|
.vd-iconfont {
|
|
187
180
|
transform: scaleX(1) !important;
|
|
188
181
|
direction: ltr;
|
|
189
|
-
font-size:
|
|
182
|
+
font-size: var(--icon-list-check);
|
|
190
183
|
}
|
|
191
184
|
}
|
|
192
185
|
|
|
193
186
|
.@{title-prefix-cls}-check__title {
|
|
194
|
-
font-size:
|
|
187
|
+
font-size: var(--en-multi-f-d-s-fontSize);
|
|
195
188
|
font-weight: var(--en-multi-f-d-s-fontWeight);
|
|
196
189
|
}
|
|
197
190
|
}
|
|
198
191
|
|
|
199
192
|
&__title {
|
|
200
193
|
color: var(--color-list-title);
|
|
201
|
-
font-size:
|
|
194
|
+
font-size: var(--en-multi-f-d-r-fontSize);
|
|
202
195
|
font-weight: var(--en-multi-f-d-r-fontWeight);
|
|
203
196
|
}
|
|
204
197
|
|
|
205
198
|
&__icon--leftcus {
|
|
206
|
-
margin-inline-end:
|
|
199
|
+
margin-inline-end: var(--spacing-list-check_icon-margin_right);
|
|
207
200
|
color: var(--text-color-h2);
|
|
208
201
|
}
|
|
209
202
|
}
|
|
210
203
|
|
|
211
204
|
&__icon--extra {
|
|
212
|
-
margin-inline-end:
|
|
205
|
+
margin-inline-end: var(--spacing-list-info_icon-margin_y);
|
|
213
206
|
color: var(--text-color-h2);
|
|
214
207
|
}
|
|
215
208
|
|
|
216
209
|
&__switch {
|
|
217
210
|
display: flex;
|
|
218
|
-
margin-inline-start:
|
|
211
|
+
margin-inline-start: var(--spacing-list-common_switch-margin_left);
|
|
219
212
|
}
|
|
220
213
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
.vd-loading{
|
|
1
|
+
.vd-loading {
|
|
3
2
|
position: fixed;
|
|
4
3
|
left: 50%;
|
|
5
4
|
top: 50%;
|
|
@@ -10,47 +9,46 @@
|
|
|
10
9
|
flex-direction: column;
|
|
11
10
|
justify-content: center;
|
|
12
11
|
width: fit-content;
|
|
13
|
-
min-height:
|
|
14
|
-
min-width:
|
|
15
|
-
max-width:
|
|
12
|
+
min-height: var(--height-loading-small);
|
|
13
|
+
min-width: var(--width-loading-small);
|
|
14
|
+
max-width: var(--width-loading-large);
|
|
16
15
|
background-color: var(--color-loading-bg);
|
|
17
|
-
border-radius:
|
|
18
|
-
padding:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
border-radius: var(--radius-loading-size);
|
|
17
|
+
padding: var(--spacing-loading-padding_x) var(--spacing-loading-padding_y);
|
|
18
|
+
|
|
19
|
+
&__text {
|
|
20
|
+
margin-block-start: var(--spacing-loading-icon-margin_bottom);
|
|
21
|
+
font-size: var(--en-single-f-c-r-fontSize);
|
|
22
22
|
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
23
23
|
color: var(--color-loading-text);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
img{
|
|
26
|
+
img {
|
|
27
27
|
margin: 0 auto;
|
|
28
|
-
width:
|
|
28
|
+
width: var(--icon-loading-size);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
.vd-refresh{
|
|
34
|
-
|
|
32
|
+
.vd-refresh {
|
|
35
33
|
position: absolute;
|
|
36
34
|
left: 50%;
|
|
37
35
|
transform: translateX(-50%);
|
|
38
36
|
|
|
39
|
-
&--large{
|
|
40
|
-
width:
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
&--large {
|
|
38
|
+
width: var(--icon-loading-refres_large);
|
|
39
|
+
|
|
40
|
+
img {
|
|
41
|
+
border: 0;
|
|
43
42
|
max-width: 100%;
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
|
-
|
|
47
|
-
&--small{
|
|
48
|
-
width:
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
|
|
46
|
+
&--small {
|
|
47
|
+
width: var(--icon-loading-refres_small);
|
|
48
|
+
|
|
49
|
+
img {
|
|
50
|
+
border: 0;
|
|
51
51
|
max-width: 100%;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
54
|
+
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
// src/mixins/languageMixin.js
|
|
2
|
+
import { inBrowser } from '../utils/env';
|
|
3
|
+
|
|
2
4
|
export default {
|
|
3
5
|
data() {
|
|
4
6
|
return {
|
|
5
|
-
language: document.documentElement.lang || 'en' // 初始语言
|
|
7
|
+
language: inBrowser ? document.documentElement.lang || 'en' : 'en' // 初始语言
|
|
6
8
|
}
|
|
7
9
|
},
|
|
8
10
|
mounted() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
if (inBrowser) {
|
|
12
|
+
this.updateLanguage();
|
|
13
|
+
this.setupLanguageObserver();
|
|
14
|
+
}
|
|
11
15
|
},
|
|
12
16
|
methods: {
|
|
13
17
|
updateLanguage() {
|
|
@@ -1,29 +1,43 @@
|
|
|
1
|
+
// import Vue from 'vue'
|
|
2
|
+
import { inBrowser } from '../utils/env';
|
|
3
|
+
|
|
1
4
|
export const themeMixin = {
|
|
2
5
|
data() {
|
|
3
6
|
return {
|
|
4
|
-
theme:
|
|
7
|
+
theme: 'light' // 设置默认主题
|
|
5
8
|
};
|
|
6
9
|
},
|
|
7
10
|
mounted() {
|
|
8
|
-
|
|
11
|
+
if (inBrowser) {
|
|
12
|
+
// 在客户端环境中,可以安全地访问 'document'
|
|
13
|
+
this.theme = document.documentElement.getAttribute('theme') || 'light';
|
|
14
|
+
this.observeThemeChanges(); // 开始监听主题变化
|
|
15
|
+
}
|
|
9
16
|
},
|
|
10
17
|
methods: {
|
|
11
18
|
observeThemeChanges() {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
if (inBrowser) {
|
|
20
|
+
// 创建一个 MutationObserver 实例
|
|
21
|
+
const observer = new MutationObserver((mutations) => {
|
|
22
|
+
mutations.forEach((mutation) => {
|
|
23
|
+
// 检查变化的属性是否为 'theme'
|
|
24
|
+
if (mutation.attributeName === 'theme') {
|
|
25
|
+
// 更新组件的主题
|
|
26
|
+
this.theme = document.documentElement.getAttribute('theme') || 'light';
|
|
27
|
+
}
|
|
28
|
+
});
|
|
20
29
|
});
|
|
21
|
-
});
|
|
22
30
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
// 配置观察器,监视 html 元素的属性变化
|
|
32
|
+
observer.observe(document.documentElement, {
|
|
33
|
+
attributes: true // 仅监视属性变化
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// 在组件销毁时断开观察器
|
|
37
|
+
this.$once('hook:beforeDestroy', () => {
|
|
38
|
+
observer.disconnect();
|
|
39
|
+
});
|
|
40
|
+
}
|
|
27
41
|
}
|
|
28
42
|
}
|
|
29
43
|
};
|
|
@@ -66,8 +66,14 @@
|
|
|
66
66
|
</template>
|
|
67
67
|
|
|
68
68
|
<script>
|
|
69
|
-
import
|
|
69
|
+
import VdIcon from '../icon';
|
|
70
|
+
import VdButton from '../button';
|
|
71
|
+
import { inBrowser } from '../utils/env'
|
|
70
72
|
export default {
|
|
73
|
+
components: {
|
|
74
|
+
VdIcon,
|
|
75
|
+
VdButton,
|
|
76
|
+
},
|
|
71
77
|
name: 'vd-noticebar',
|
|
72
78
|
props: {
|
|
73
79
|
prefixCls: {
|