vdesign-ui 0.2.12 → 0.2.14
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 +78 -78
- 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 +38 -38
- package/dist/components/actions/index.js +6 -6
- package/dist/components/actions/index.vue +77 -76
- 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 +151 -151
- 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 +52 -52
- 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 +69 -69
- 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 +37 -37
- 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 +12 -12
- 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 +470 -470
- 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 +41 -41
- 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 +328 -328
- package/dist/components/overlay/index.js +8 -8
- package/dist/components/overlay/index.vue +184 -184
- package/dist/components/overlay/style.less +23 -23
- 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 +60 -60
- 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 +243 -243
- package/dist/components/radio/index.js +8 -8
- package/dist/components/radio/index.vue +184 -184
- package/dist/components/radio/style.less +293 -293
- package/dist/components/radio-group/index.js +6 -6
- package/dist/components/radio-group/index.vue +58 -58
- 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 +66 -66
- 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 -58
- 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 -362
- package/dist/components/stepper/index.js +8 -8
- package/dist/components/stepper/index.vue +146 -146
- 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 +94 -94
- package/dist/components/tabs/index.js +8 -8
- package/dist/components/tabs/index.vue +292 -281
- package/dist/components/tabs/style.less +408 -408
- 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 +97 -97
- package/dist/components/toast/index.vue +49 -49
- package/dist/components/toast/style.less +57 -57
- 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 +23 -17
- package/dist/vdesign-ui.common.js +141 -129
- package/dist/vdesign-ui.css +1 -1
- package/dist/vdesign-ui.umd.js +141 -129
- package/dist/vdesign-ui.umd.min.js +2 -2
- package/package.json +113 -113
|
@@ -1,197 +1,197 @@
|
|
|
1
|
-
@skeleton-prefix-cls: vd-skeleton;
|
|
2
|
-
|
|
3
|
-
.@{skeleton-prefix-cls} {
|
|
4
|
-
display: flex;
|
|
5
|
-
padding: 0 var(--spacing-base-loose);
|
|
6
|
-
|
|
7
|
-
&__img, &__title, &__button, &__img--s, &__paragraph, &__avatar, &__text,
|
|
8
|
-
&__stock--data, &__stock--subdatax, &__stock--subdatal, &__stock--center, &__stock--title,
|
|
9
|
-
&__stock--text, &__stock--content, &__stock--maindata {
|
|
10
|
-
background: var(--color-skeleton-bg);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&--animate &__img, &__title, &__button, &__img--s, &__paragraph, &__avatar, &__text,
|
|
14
|
-
&__stock--data, &__stock--subdatax, &__stock--subdatal, &__stock--center, &__stock--title,
|
|
15
|
-
&__stock--text, &__stock--content, &__stock--maindata {
|
|
16
|
-
background: linear-gradient(
|
|
17
|
-
90deg,
|
|
18
|
-
var(--color-skeleton-bg) 25%,
|
|
19
|
-
var(--color-skeleton-loading_gradient-bg-active) 44%,
|
|
20
|
-
var(--color-skeleton-bg) 88%
|
|
21
|
-
);
|
|
22
|
-
background-size: 400% 100%;
|
|
23
|
-
animation: skeleton-loading 1.4s ease infinite;
|
|
24
|
-
animation-fill-mode: forwards;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&__img {
|
|
28
|
-
width: 100%;
|
|
29
|
-
height: var(--height-skeleton-img);
|
|
30
|
-
border-radius: var(--radius-skeleton-img);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&__title {
|
|
34
|
-
width: var(--width-skeleton-head);
|
|
35
|
-
|
|
36
|
-
&--l {
|
|
37
|
-
height: var(--height-skeleton-text_l);
|
|
38
|
-
border-radius: var(--radius-skeleton-text_l);
|
|
39
|
-
}
|
|
40
|
-
&--m {
|
|
41
|
-
height: var(--height-skeleton-text_m);
|
|
42
|
-
border-radius: var(--radius-skeleton-text_s);
|
|
43
|
-
}
|
|
44
|
-
&--s {
|
|
45
|
-
height: var(--height-skeleton-text_s);
|
|
46
|
-
border-radius: var(--radius-skeleton-text_s);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&__button {
|
|
51
|
-
width: var(--width-skeleton-button);
|
|
52
|
-
height: var(--height-skeleton-button);
|
|
53
|
-
border-radius: var(--radius-skeleton-button);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&__img--s {
|
|
57
|
-
width: var(--width-skeleton-img_small);
|
|
58
|
-
height: var(--height-skeleton-small_shapes);
|
|
59
|
-
border-radius: var(--radius-skeleton-small_shapes);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&__content {
|
|
63
|
-
width: 100%;
|
|
64
|
-
.is-last {
|
|
65
|
-
width: 80%;
|
|
66
|
-
margin-block-end: 0;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&__paragraph {
|
|
71
|
-
width: 100%;
|
|
72
|
-
height: var(--height-skeleton-text_s);
|
|
73
|
-
margin-block-end: var(--spacing-skeleton-text-margin_bottom);
|
|
74
|
-
border-radius: var(--radius-skeleton-text_s);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&__avatar {
|
|
78
|
-
flex-shrink: 0;
|
|
79
|
-
border-radius: 50%;
|
|
80
|
-
margin-inline-end: var(--spacing-skeleton-avatar-margin_right);
|
|
81
|
-
|
|
82
|
-
&--l {
|
|
83
|
-
width: var(--width-skeleton-avatar_l);
|
|
84
|
-
height: var(--width-skeleton-avatar_l);
|
|
85
|
-
}
|
|
86
|
-
&--m {
|
|
87
|
-
width: var(--width-skeleton-avatar_m);
|
|
88
|
-
height: var(--width-skeleton-avatar_m);
|
|
89
|
-
}
|
|
90
|
-
&--s {
|
|
91
|
-
width: var(--width-skeleton-avatar_s);
|
|
92
|
-
height: var(--width-skeleton-avatar_s);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&__text {
|
|
97
|
-
margin: var(--spacing-skeleton-avatar-margin_bottom) 0;
|
|
98
|
-
width: var(--width-skeleton-avatar_text);
|
|
99
|
-
height: var(--height-skeleton-text_m);
|
|
100
|
-
border-radius: var(--radius-skeleton-text_s);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&__stock {
|
|
104
|
-
width: 100%;
|
|
105
|
-
display: flex;
|
|
106
|
-
justify-content: space-between;
|
|
107
|
-
|
|
108
|
-
&--left {
|
|
109
|
-
display: flex;
|
|
110
|
-
flex-direction: column;
|
|
111
|
-
}
|
|
112
|
-
&--data {
|
|
113
|
-
width: var(--width-skeleton-stock_data_s);
|
|
114
|
-
height: var(--height-skeleton-text_m);
|
|
115
|
-
border-radius: var(--radius-skeleton-text_s);
|
|
116
|
-
}
|
|
117
|
-
&--subdatax {
|
|
118
|
-
margin-block-start: var(--spacing-skeleton-stock-padding_x);
|
|
119
|
-
width: var(--width-skeleton-stock_data_xl);
|
|
120
|
-
height: var(--height-skeleton-text_s);
|
|
121
|
-
border-radius: var(--radius-skeleton-text_s);
|
|
122
|
-
}
|
|
123
|
-
&--subdatal {
|
|
124
|
-
margin-block-start: var(--spacing-skeleton-stock-padding_x);
|
|
125
|
-
width: var(--width-skeleton-stock_data_l);
|
|
126
|
-
height: var(--height-skeleton-text_s);
|
|
127
|
-
border-radius: var(--radius-skeleton-text_s);
|
|
128
|
-
}
|
|
129
|
-
&--center {
|
|
130
|
-
width: var(--width-skeleton-stock_data_m);
|
|
131
|
-
height: var(--height-skeleton-text_l);
|
|
132
|
-
border-radius: var(--radius-skeleton-text_s);
|
|
133
|
-
}
|
|
134
|
-
&--right {
|
|
135
|
-
margin-inline-start: var(--spacing-skeleton-data-padding_y);
|
|
136
|
-
display: flex;
|
|
137
|
-
align-items: flex-end;
|
|
138
|
-
flex-direction: column;
|
|
139
|
-
}
|
|
140
|
-
&--title {
|
|
141
|
-
width: var(--width-skeleton-stock_data_l);
|
|
142
|
-
height: var(--height-skeleton-text_m);
|
|
143
|
-
border-radius: var(--radius-skeleton-text_s);
|
|
144
|
-
}
|
|
145
|
-
&--text {
|
|
146
|
-
margin-block-start: var(--spacing-skeleton-stock-padding_x);
|
|
147
|
-
width: var(--width-skeleton-stock_data_s);
|
|
148
|
-
height: var(--height-skeleton-text_s);
|
|
149
|
-
border-radius: var(--radius-skeleton-text_s);
|
|
150
|
-
}
|
|
151
|
-
&--content {
|
|
152
|
-
display: flex;
|
|
153
|
-
align-items: flex-end;
|
|
154
|
-
flex-direction: column;
|
|
155
|
-
}
|
|
156
|
-
&--maindata {
|
|
157
|
-
width: var(--width-skeleton-stock_data_m);
|
|
158
|
-
height: var(--height-skeleton-text_m);
|
|
159
|
-
border-radius: var(--radius-skeleton-text_s);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
&--space {
|
|
164
|
-
display: flex;
|
|
165
|
-
align-items: center;
|
|
166
|
-
|
|
167
|
-
.spacing {
|
|
168
|
-
margin-inline-start: var(--spacing-skeleton-stock-padding_y);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&__equally {
|
|
173
|
-
display: flex;
|
|
174
|
-
width: 100%;
|
|
175
|
-
gap: var(--spacing-skeleton-avatar-margin_right);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
@keyframes skeleton-loading {
|
|
180
|
-
0% {
|
|
181
|
-
background-position: 100% 50%;
|
|
182
|
-
}
|
|
183
|
-
100% {
|
|
184
|
-
background-position: 0 50%;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
@keyframes skeleton-loading {
|
|
190
|
-
0%{
|
|
191
|
-
background-position: 100% 50%;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
100% {
|
|
195
|
-
background-position: 0 50%;
|
|
196
|
-
}
|
|
1
|
+
@skeleton-prefix-cls: vd-skeleton;
|
|
2
|
+
|
|
3
|
+
.@{skeleton-prefix-cls} {
|
|
4
|
+
display: flex;
|
|
5
|
+
padding: 0 var(--spacing-base-loose);
|
|
6
|
+
|
|
7
|
+
&__img, &__title, &__button, &__img--s, &__paragraph, &__avatar, &__text,
|
|
8
|
+
&__stock--data, &__stock--subdatax, &__stock--subdatal, &__stock--center, &__stock--title,
|
|
9
|
+
&__stock--text, &__stock--content, &__stock--maindata {
|
|
10
|
+
background: var(--color-skeleton-bg);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&--animate &__img, &__title, &__button, &__img--s, &__paragraph, &__avatar, &__text,
|
|
14
|
+
&__stock--data, &__stock--subdatax, &__stock--subdatal, &__stock--center, &__stock--title,
|
|
15
|
+
&__stock--text, &__stock--content, &__stock--maindata {
|
|
16
|
+
background: linear-gradient(
|
|
17
|
+
90deg,
|
|
18
|
+
var(--color-skeleton-bg) 25%,
|
|
19
|
+
var(--color-skeleton-loading_gradient-bg-active) 44%,
|
|
20
|
+
var(--color-skeleton-bg) 88%
|
|
21
|
+
);
|
|
22
|
+
background-size: 400% 100%;
|
|
23
|
+
animation: skeleton-loading 1.4s ease infinite;
|
|
24
|
+
animation-fill-mode: forwards;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__img {
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: var(--height-skeleton-img);
|
|
30
|
+
border-radius: var(--radius-skeleton-img);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__title {
|
|
34
|
+
width: var(--width-skeleton-head);
|
|
35
|
+
|
|
36
|
+
&--l {
|
|
37
|
+
height: var(--height-skeleton-text_l);
|
|
38
|
+
border-radius: var(--radius-skeleton-text_l);
|
|
39
|
+
}
|
|
40
|
+
&--m {
|
|
41
|
+
height: var(--height-skeleton-text_m);
|
|
42
|
+
border-radius: var(--radius-skeleton-text_s);
|
|
43
|
+
}
|
|
44
|
+
&--s {
|
|
45
|
+
height: var(--height-skeleton-text_s);
|
|
46
|
+
border-radius: var(--radius-skeleton-text_s);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__button {
|
|
51
|
+
width: var(--width-skeleton-button);
|
|
52
|
+
height: var(--height-skeleton-button);
|
|
53
|
+
border-radius: var(--radius-skeleton-button);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__img--s {
|
|
57
|
+
width: var(--width-skeleton-img_small);
|
|
58
|
+
height: var(--height-skeleton-small_shapes);
|
|
59
|
+
border-radius: var(--radius-skeleton-small_shapes);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&__content {
|
|
63
|
+
width: 100%;
|
|
64
|
+
.is-last {
|
|
65
|
+
width: 80%;
|
|
66
|
+
margin-block-end: 0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&__paragraph {
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: var(--height-skeleton-text_s);
|
|
73
|
+
margin-block-end: var(--spacing-skeleton-text-margin_bottom);
|
|
74
|
+
border-radius: var(--radius-skeleton-text_s);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&__avatar {
|
|
78
|
+
flex-shrink: 0;
|
|
79
|
+
border-radius: 50%;
|
|
80
|
+
margin-inline-end: var(--spacing-skeleton-avatar-margin_right);
|
|
81
|
+
|
|
82
|
+
&--l {
|
|
83
|
+
width: var(--width-skeleton-avatar_l);
|
|
84
|
+
height: var(--width-skeleton-avatar_l);
|
|
85
|
+
}
|
|
86
|
+
&--m {
|
|
87
|
+
width: var(--width-skeleton-avatar_m);
|
|
88
|
+
height: var(--width-skeleton-avatar_m);
|
|
89
|
+
}
|
|
90
|
+
&--s {
|
|
91
|
+
width: var(--width-skeleton-avatar_s);
|
|
92
|
+
height: var(--width-skeleton-avatar_s);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&__text {
|
|
97
|
+
margin: var(--spacing-skeleton-avatar-margin_bottom) 0;
|
|
98
|
+
width: var(--width-skeleton-avatar_text);
|
|
99
|
+
height: var(--height-skeleton-text_m);
|
|
100
|
+
border-radius: var(--radius-skeleton-text_s);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&__stock {
|
|
104
|
+
width: 100%;
|
|
105
|
+
display: flex;
|
|
106
|
+
justify-content: space-between;
|
|
107
|
+
|
|
108
|
+
&--left {
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
}
|
|
112
|
+
&--data {
|
|
113
|
+
width: var(--width-skeleton-stock_data_s);
|
|
114
|
+
height: var(--height-skeleton-text_m);
|
|
115
|
+
border-radius: var(--radius-skeleton-text_s);
|
|
116
|
+
}
|
|
117
|
+
&--subdatax {
|
|
118
|
+
margin-block-start: var(--spacing-skeleton-stock-padding_x);
|
|
119
|
+
width: var(--width-skeleton-stock_data_xl);
|
|
120
|
+
height: var(--height-skeleton-text_s);
|
|
121
|
+
border-radius: var(--radius-skeleton-text_s);
|
|
122
|
+
}
|
|
123
|
+
&--subdatal {
|
|
124
|
+
margin-block-start: var(--spacing-skeleton-stock-padding_x);
|
|
125
|
+
width: var(--width-skeleton-stock_data_l);
|
|
126
|
+
height: var(--height-skeleton-text_s);
|
|
127
|
+
border-radius: var(--radius-skeleton-text_s);
|
|
128
|
+
}
|
|
129
|
+
&--center {
|
|
130
|
+
width: var(--width-skeleton-stock_data_m);
|
|
131
|
+
height: var(--height-skeleton-text_l);
|
|
132
|
+
border-radius: var(--radius-skeleton-text_s);
|
|
133
|
+
}
|
|
134
|
+
&--right {
|
|
135
|
+
margin-inline-start: var(--spacing-skeleton-data-padding_y);
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: flex-end;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
}
|
|
140
|
+
&--title {
|
|
141
|
+
width: var(--width-skeleton-stock_data_l);
|
|
142
|
+
height: var(--height-skeleton-text_m);
|
|
143
|
+
border-radius: var(--radius-skeleton-text_s);
|
|
144
|
+
}
|
|
145
|
+
&--text {
|
|
146
|
+
margin-block-start: var(--spacing-skeleton-stock-padding_x);
|
|
147
|
+
width: var(--width-skeleton-stock_data_s);
|
|
148
|
+
height: var(--height-skeleton-text_s);
|
|
149
|
+
border-radius: var(--radius-skeleton-text_s);
|
|
150
|
+
}
|
|
151
|
+
&--content {
|
|
152
|
+
display: flex;
|
|
153
|
+
align-items: flex-end;
|
|
154
|
+
flex-direction: column;
|
|
155
|
+
}
|
|
156
|
+
&--maindata {
|
|
157
|
+
width: var(--width-skeleton-stock_data_m);
|
|
158
|
+
height: var(--height-skeleton-text_m);
|
|
159
|
+
border-radius: var(--radius-skeleton-text_s);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&--space {
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
|
|
167
|
+
.spacing {
|
|
168
|
+
margin-inline-start: var(--spacing-skeleton-stock-padding_y);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&__equally {
|
|
173
|
+
display: flex;
|
|
174
|
+
width: 100%;
|
|
175
|
+
gap: var(--spacing-skeleton-avatar-margin_right);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@keyframes skeleton-loading {
|
|
180
|
+
0% {
|
|
181
|
+
background-position: 100% 50%;
|
|
182
|
+
}
|
|
183
|
+
100% {
|
|
184
|
+
background-position: 0 50%;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
@keyframes skeleton-loading {
|
|
190
|
+
0%{
|
|
191
|
+
background-position: 100% 50%;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
100% {
|
|
195
|
+
background-position: 0 50%;
|
|
196
|
+
}
|
|
197
197
|
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
let isDragging = false;
|
|
2
|
-
import Vue from 'vue';
|
|
3
|
-
const supportTouch = !Vue.prototype.$isServer && 'ontouchstart' in window;
|
|
4
|
-
|
|
5
|
-
export default function(element, options) {
|
|
6
|
-
const moveFn = function(event) {
|
|
7
|
-
if (options.drag) {
|
|
8
|
-
options.drag(supportTouch ? event.changedTouches[0] || event.touches[0] : event);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const endFn = function(event) {
|
|
13
|
-
if (!supportTouch) {
|
|
14
|
-
document.removeEventListener('mousemove', moveFn);
|
|
15
|
-
document.removeEventListener('mouseup', endFn);
|
|
16
|
-
}
|
|
17
|
-
document.onselectstart = null;
|
|
18
|
-
document.ondragstart = null;
|
|
19
|
-
|
|
20
|
-
isDragging = false;
|
|
21
|
-
|
|
22
|
-
if (options.end) {
|
|
23
|
-
options.end(supportTouch ? event.changedTouches[0] || event.touches[0] : event);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
element.addEventListener(supportTouch ? 'touchstart' : 'mousedown', function(event) {
|
|
28
|
-
if (isDragging) return;
|
|
29
|
-
event.preventDefault();
|
|
30
|
-
document.onselectstart = function() { return false; };
|
|
31
|
-
document.ondragstart = function() { return false; };
|
|
32
|
-
|
|
33
|
-
if (!supportTouch) {
|
|
34
|
-
document.addEventListener('mousemove', moveFn);
|
|
35
|
-
document.addEventListener('mouseup', endFn);
|
|
36
|
-
}
|
|
37
|
-
isDragging = true;
|
|
38
|
-
|
|
39
|
-
if (options.start) {
|
|
40
|
-
options.start(supportTouch ? event.changedTouches[0] || event.touches[0] : event);
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
if (supportTouch) {
|
|
45
|
-
element.addEventListener('touchmove', moveFn);
|
|
46
|
-
element.addEventListener('touchend', endFn);
|
|
47
|
-
element.addEventListener('touchcancel', endFn);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
let isDragging = false;
|
|
2
|
+
import Vue from 'vue';
|
|
3
|
+
const supportTouch = !Vue.prototype.$isServer && 'ontouchstart' in window;
|
|
4
|
+
|
|
5
|
+
export default function(element, options) {
|
|
6
|
+
const moveFn = function(event) {
|
|
7
|
+
if (options.drag) {
|
|
8
|
+
options.drag(supportTouch ? event.changedTouches[0] || event.touches[0] : event);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const endFn = function(event) {
|
|
13
|
+
if (!supportTouch) {
|
|
14
|
+
document.removeEventListener('mousemove', moveFn);
|
|
15
|
+
document.removeEventListener('mouseup', endFn);
|
|
16
|
+
}
|
|
17
|
+
document.onselectstart = null;
|
|
18
|
+
document.ondragstart = null;
|
|
19
|
+
|
|
20
|
+
isDragging = false;
|
|
21
|
+
|
|
22
|
+
if (options.end) {
|
|
23
|
+
options.end(supportTouch ? event.changedTouches[0] || event.touches[0] : event);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
element.addEventListener(supportTouch ? 'touchstart' : 'mousedown', function(event) {
|
|
28
|
+
if (isDragging) return;
|
|
29
|
+
event.preventDefault();
|
|
30
|
+
document.onselectstart = function() { return false; };
|
|
31
|
+
document.ondragstart = function() { return false; };
|
|
32
|
+
|
|
33
|
+
if (!supportTouch) {
|
|
34
|
+
document.addEventListener('mousemove', moveFn);
|
|
35
|
+
document.addEventListener('mouseup', endFn);
|
|
36
|
+
}
|
|
37
|
+
isDragging = true;
|
|
38
|
+
|
|
39
|
+
if (options.start) {
|
|
40
|
+
options.start(supportTouch ? event.changedTouches[0] || event.touches[0] : event);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
if (supportTouch) {
|
|
45
|
+
element.addEventListener('touchmove', moveFn);
|
|
46
|
+
element.addEventListener('touchend', endFn);
|
|
47
|
+
element.addEventListener('touchcancel', endFn);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Slider from './index.vue';
|
|
2
|
-
import './style.less';
|
|
3
|
-
Slider.install = function(Vue) {
|
|
4
|
-
Vue.component(Slider.name, Slider)
|
|
5
|
-
}
|
|
6
|
-
|
|
1
|
+
import Slider from './index.vue';
|
|
2
|
+
import './style.less';
|
|
3
|
+
Slider.install = function(Vue) {
|
|
4
|
+
Vue.component(Slider.name, Slider)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
7
|
export default Slider;
|