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
package/package.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// Find components downward
|
|
4
|
-
export function findComponentsDownward (context, componentName, ignoreComponentNames = []) {
|
|
5
|
-
if (!Array.isArray(ignoreComponentNames)) {
|
|
6
|
-
ignoreComponentNames = [ignoreComponentNames];
|
|
7
|
-
}
|
|
8
|
-
return context.$children.reduce((components, child) => {
|
|
9
|
-
if (child.$options.name === componentName) components.push(child);
|
|
10
|
-
if (ignoreComponentNames.indexOf(child.$options.name) < 0) {
|
|
11
|
-
const foundChilds = findComponentsDownward(child, componentName);
|
|
12
|
-
return components.concat(foundChilds);
|
|
13
|
-
} else {
|
|
14
|
-
return components;
|
|
15
|
-
}
|
|
16
|
-
}, []);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Find components upward
|
|
20
|
-
export function findComponentUpward (context, componentName, componentNames) {
|
|
21
|
-
if (typeof componentName === 'string') {
|
|
22
|
-
componentNames = [componentName];
|
|
23
|
-
} else {
|
|
24
|
-
componentNames = componentName;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
let parent = context.$parent;
|
|
28
|
-
let name = parent.$options.name;
|
|
29
|
-
while (parent && (!name || componentNames.indexOf(name) < 0)) {
|
|
30
|
-
parent = parent.$parent;
|
|
31
|
-
if (parent) name = parent.$options.name;
|
|
32
|
-
}
|
|
33
|
-
return parent;
|
|
34
|
-
}
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
.vd-radio {
|
|
2
|
-
position: relative;
|
|
3
|
-
cursor: pointer;
|
|
4
|
-
display: flex;
|
|
5
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
6
|
-
}
|
|
7
|
-
.vd-radio__input {
|
|
8
|
-
position: relative;
|
|
9
|
-
margin-inline-end: calc(var(--spacing-check_radio-icon-margin_right) * 1px);
|
|
10
|
-
width: calc(var(--icon-check_radio-sizing) * 1px);
|
|
11
|
-
height: calc(var(--icon-check_radio-sizing) * 1px);
|
|
12
|
-
}
|
|
13
|
-
.vd-radio__label {
|
|
14
|
-
flex: 1;
|
|
15
|
-
}
|
|
16
|
-
.vd-radio__text {
|
|
17
|
-
color: var(--color-check_radio-text-default);
|
|
18
|
-
font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
|
|
19
|
-
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
20
|
-
}
|
|
21
|
-
.vd-radio__description {
|
|
22
|
-
line-height: 1;
|
|
23
|
-
margin-top: calc(var(--spacing-check_radio-text-margin_top) * 1px);
|
|
24
|
-
color: var(--color-check_radio-text_describe-default);
|
|
25
|
-
font-size: calc(var(--en-single-f-b-r-fontSize) * 1px);
|
|
26
|
-
font-weight: var(--en-single-f-b-r-fontWeight);
|
|
27
|
-
}
|
|
28
|
-
.vd-radio .vd-radio__icon {
|
|
29
|
-
display: block;
|
|
30
|
-
width: calc(var(--icon-check_radio-sizing) * 1px);
|
|
31
|
-
height: calc(var(--icon-check_radio-sizing) * 1px);
|
|
32
|
-
position: relative;
|
|
33
|
-
}
|
|
34
|
-
.vd-radio .vd-radio__icon::before {
|
|
35
|
-
position: absolute;
|
|
36
|
-
box-sizing: border-box;
|
|
37
|
-
content: ' ';
|
|
38
|
-
pointer-events: none;
|
|
39
|
-
top: -50%;
|
|
40
|
-
right: -50%;
|
|
41
|
-
bottom: -50%;
|
|
42
|
-
left: -50%;
|
|
43
|
-
border: 0 solid var(--color-check_radio-default);
|
|
44
|
-
-webkit-transform: scale(0.5);
|
|
45
|
-
transform: scale(0.5);
|
|
46
|
-
border-width: 3px;
|
|
47
|
-
border-radius: 50%;
|
|
48
|
-
}
|
|
49
|
-
.vd-radio__original {
|
|
50
|
-
width: 100%;
|
|
51
|
-
height: 100%;
|
|
52
|
-
position: absolute;
|
|
53
|
-
top: 0;
|
|
54
|
-
bottom: 0;
|
|
55
|
-
left: 0;
|
|
56
|
-
right: 0;
|
|
57
|
-
z-index: 1;
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
60
|
-
opacity: 0;
|
|
61
|
-
}
|
|
62
|
-
.vd-radio--checked .vd-radio__text {
|
|
63
|
-
font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
|
|
64
|
-
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
65
|
-
}
|
|
66
|
-
.vd-radio--checked .vd-radio__icon::before {
|
|
67
|
-
border: 0 solid var(--color-check_radio-active);
|
|
68
|
-
border-width: 3px;
|
|
69
|
-
}
|
|
70
|
-
.vd-radio--checked .vd-radio__icon::after {
|
|
71
|
-
position: absolute;
|
|
72
|
-
width: 8px;
|
|
73
|
-
height: 8px;
|
|
74
|
-
left: 50%;
|
|
75
|
-
top: 50%;
|
|
76
|
-
transform: translate(-50%, -50%);
|
|
77
|
-
border-radius: 50%;
|
|
78
|
-
display: table;
|
|
79
|
-
border-top: 0;
|
|
80
|
-
border-left: 0;
|
|
81
|
-
content: " ";
|
|
82
|
-
background-color: var(--color-check_radio-active);
|
|
83
|
-
}
|
|
84
|
-
.vd-radio--disabled {
|
|
85
|
-
cursor: not-allowed;
|
|
86
|
-
}
|
|
87
|
-
.vd-radio--disabled .vd-radio__text {
|
|
88
|
-
color: var(--color-check_radio-text-disable);
|
|
89
|
-
}
|
|
90
|
-
.vd-radio--disabled .vd-radio__description {
|
|
91
|
-
color: var(--color-check_radio-text_describe-disable);
|
|
92
|
-
}
|
|
93
|
-
.vd-radio--disabled .vd-radio__icon::before {
|
|
94
|
-
border-color: var(--color-check_radio-disable);
|
|
95
|
-
}
|
|
96
|
-
.vd-radio--checked.vd-radio--disabled .vd-radio__icon::before {
|
|
97
|
-
border-color: var(--color-check_radio-active-disable);
|
|
98
|
-
}
|
|
99
|
-
.vd-radio--checked.vd-radio--disabled .vd-radio__icon::after {
|
|
100
|
-
background-color: var(--color-check_radio-active-disable);
|
|
101
|
-
}
|
|
102
|
-
.vd-radio-group {
|
|
103
|
-
display: flex;
|
|
104
|
-
flex-direction: column;
|
|
105
|
-
gap: calc(var(--spacing-check_radio-group-margin_x)*1px);
|
|
106
|
-
}
|
|
107
|
-
.vd-radio-group-card {
|
|
108
|
-
display: flex;
|
|
109
|
-
flex-wrap: wrap;
|
|
110
|
-
flex-direction: row;
|
|
111
|
-
gap: 12px;
|
|
112
|
-
}
|
|
113
|
-
.vd-radio-group-card .vd-radio-button-cell {
|
|
114
|
-
flex: 1;
|
|
115
|
-
}
|
|
116
|
-
.vd-radio-button {
|
|
117
|
-
position: relative;
|
|
118
|
-
display: inline-flex;
|
|
119
|
-
align-items: center;
|
|
120
|
-
flex-direction: column;
|
|
121
|
-
justify-content: center;
|
|
122
|
-
line-height: 1;
|
|
123
|
-
width: 100%;
|
|
124
|
-
}
|
|
125
|
-
.vd-radio-button::after {
|
|
126
|
-
position: absolute;
|
|
127
|
-
box-sizing: border-box;
|
|
128
|
-
content: ' ';
|
|
129
|
-
pointer-events: none;
|
|
130
|
-
top: -50%;
|
|
131
|
-
right: -50%;
|
|
132
|
-
bottom: -50%;
|
|
133
|
-
left: -50%;
|
|
134
|
-
border: 0 solid var(--color-check_radio-radio_border-default);
|
|
135
|
-
-webkit-transform: scale(0.5);
|
|
136
|
-
transform: scale(0.5);
|
|
137
|
-
border-width: 1px;
|
|
138
|
-
}
|
|
139
|
-
.vd-radio-button--large {
|
|
140
|
-
height: calc(var(--height-check_radio-radio_button_l) * 1px);
|
|
141
|
-
}
|
|
142
|
-
.vd-radio-button--large .vd-radio-button-text {
|
|
143
|
-
color: var(--color-check_radio-radio_button_text-default);
|
|
144
|
-
font-size: calc(var(--en-single-f-d-r-fontSize) * 1px);
|
|
145
|
-
font-weight: var(--en-single-f-d-r-fontWeight);
|
|
146
|
-
}
|
|
147
|
-
.vd-radio-button--large::after {
|
|
148
|
-
border-radius: calc(var(--radius-check_radio-radio_l) * 2px);
|
|
149
|
-
}
|
|
150
|
-
.vd-radio-button--medium {
|
|
151
|
-
height: calc(var(--height-check_radio-radio_button_m) * 1px);
|
|
152
|
-
}
|
|
153
|
-
.vd-radio-button--medium .vd-radio-button-text {
|
|
154
|
-
color: var(--color-check_radio-radio_button_text-default);
|
|
155
|
-
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
156
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
157
|
-
}
|
|
158
|
-
.vd-radio-button--medium::after {
|
|
159
|
-
border-radius: calc(var(--radius-check_radio-m) * 2px);
|
|
160
|
-
}
|
|
161
|
-
.vd-radio-button--small {
|
|
162
|
-
height: calc(var(--height-check_radio-radio_button_s) * 1px);
|
|
163
|
-
}
|
|
164
|
-
.vd-radio-button--small .vd-radio-button-text {
|
|
165
|
-
color: var(--color-check_radio-radio_button_text-default);
|
|
166
|
-
font-size: calc(var(--en-single-f-c-r-fontSize) * 1px);
|
|
167
|
-
font-weight: var(--en-single-f-c-r-fontWeight);
|
|
168
|
-
}
|
|
169
|
-
.vd-radio-button--small::after {
|
|
170
|
-
border-radius: calc(var(--radius-check_radio-s) * 2px);
|
|
171
|
-
}
|
|
172
|
-
.vd-radio-button--checked {
|
|
173
|
-
background-color: var(--color-check_radio-radio_button_bg-active);
|
|
174
|
-
}
|
|
175
|
-
.vd-radio-button--checked::after {
|
|
176
|
-
border-color: var(--color-check_radio-radio_border-active);
|
|
177
|
-
border-width: 2px;
|
|
178
|
-
}
|
|
179
|
-
.vd-radio-button--checked .vd-radio-button-text {
|
|
180
|
-
color: var(--color-check_radio-radio_button_text-active);
|
|
181
|
-
}
|
|
182
|
-
.vd-radio-button--checked.vd-radio-button--large .vd-radio-button-text {
|
|
183
|
-
font-size: calc(var(--en-single-f-d-s-fontSize) * 1px);
|
|
184
|
-
font-weight: var(--en-single-f-d-s-fontWeight);
|
|
185
|
-
}
|
|
186
|
-
.vd-radio-button--checked.vd-radio-button--medium .vd-radio-button-text {
|
|
187
|
-
font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
|
|
188
|
-
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
189
|
-
}
|
|
190
|
-
.vd-radio-button--checked.vd-radio-button--small .vd-radio-button-text {
|
|
191
|
-
font-size: calc(var(--en-single-f-c-s-fontSize) * 1px);
|
|
192
|
-
font-weight: var(--en-single-f-c-s-fontWeight);
|
|
193
|
-
}
|
|
194
|
-
.vd-radio-button--disabled {
|
|
195
|
-
cursor: not-allowed;
|
|
196
|
-
}
|
|
197
|
-
.vd-radio-button--disabled .vd-radio-button-text {
|
|
198
|
-
color: var(--color-check_radio-radio_button_text-disable);
|
|
199
|
-
}
|
|
200
|
-
.vd-radio-group {
|
|
201
|
-
display: flex;
|
|
202
|
-
flex-direction: column;
|
|
203
|
-
gap: calc(var(--spacing-check_radio-group-margin_x)*1px);
|
|
204
|
-
}
|
|
205
|
-
.vd-radio-group__card {
|
|
206
|
-
display: flex;
|
|
207
|
-
flex-direction: row;
|
|
208
|
-
flex-wrap: wrap;
|
|
209
|
-
gap: 12px;
|
|
210
|
-
}
|
|
211
|
-
.vd-radio-group .vd-radio-button {
|
|
212
|
-
flex: 1;
|
|
213
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|