vxe-pc-ui 4.17.20 → 4.17.21
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/all.esm.js +202 -87
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/slider/src/slider.js +167 -72
- package/es/slider/style.css +8 -15
- package/es/slider/style.min.css +1 -1
- package/es/space/src/space.js +31 -11
- package/es/space/style.css +1 -0
- package/es/space/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-slider/style.css +8 -15
- package/es/vxe-slider/style.min.css +1 -1
- package/es/vxe-space/style.css +1 -0
- package/es/vxe-space/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +210 -92
- package/lib/index.umd.min.js +1 -1
- package/lib/slider/src/slider.js +170 -78
- package/lib/slider/src/slider.min.js +1 -1
- package/lib/slider/style/style.css +8 -15
- package/lib/slider/style/style.min.css +1 -1
- package/lib/space/src/space.js +36 -11
- package/lib/space/src/space.min.js +1 -1
- package/lib/space/style/style.css +1 -0
- package/lib/space/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-slider/style/style.css +8 -15
- package/lib/vxe-slider/style/style.min.css +1 -1
- package/lib/vxe-space/style/style.css +1 -0
- package/lib/vxe-space/style/style.min.css +1 -1
- package/package.json +4 -3
- package/packages/slider/src/slider.ts +165 -72
- package/packages/space/src/space.ts +37 -12
- package/styles/components/slider.scss +8 -13
- package/styles/components/space.scss +1 -0
- package/types/components/slider.d.ts +9 -2
- package/types/components/space.d.ts +2 -0
- /package/es/icon/{iconfont.1787911536008.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/es/icon/{iconfont.1787911536008.woff → iconfont.1787994747472.woff} +0 -0
- /package/es/icon/{iconfont.1787911536008.woff2 → iconfont.1787994747472.woff2} +0 -0
- /package/es/{iconfont.1787911536008.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/es/{iconfont.1787911536008.woff → iconfont.1787994747472.woff} +0 -0
- /package/es/{iconfont.1787911536008.woff2 → iconfont.1787994747472.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1787911536008.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1787911536008.woff → iconfont.1787994747472.woff} +0 -0
- /package/lib/icon/style/{iconfont.1787911536008.woff2 → iconfont.1787994747472.woff2} +0 -0
- /package/lib/{iconfont.1787911536008.ttf → iconfont.1787994747472.ttf} +0 -0
- /package/lib/{iconfont.1787911536008.woff → iconfont.1787994747472.woff} +0 -0
- /package/lib/{iconfont.1787911536008.woff2 → iconfont.1787994747472.woff2} +0 -0
package/lib/slider/src/slider.js
CHANGED
|
@@ -11,19 +11,21 @@ var _ui = require("../../ui");
|
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
function createInternalData() {
|
|
13
13
|
return {
|
|
14
|
-
// _isUp: false
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
function createReactData() {
|
|
18
|
-
return {
|
|
14
|
+
// _isUp: false,
|
|
15
|
+
currValue: 0,
|
|
19
16
|
startValue: 0,
|
|
20
17
|
endValue: 0
|
|
21
18
|
};
|
|
22
19
|
}
|
|
20
|
+
function createReactData() {
|
|
21
|
+
return {};
|
|
22
|
+
}
|
|
23
23
|
var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
24
24
|
name: 'VxeSlider',
|
|
25
25
|
props: {
|
|
26
26
|
modelValue: [String, Number, Array],
|
|
27
|
+
startValue: [String, Number],
|
|
28
|
+
endValue: [String, Number],
|
|
27
29
|
vertical: Boolean,
|
|
28
30
|
max: {
|
|
29
31
|
type: [String, Number],
|
|
@@ -58,7 +60,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
58
60
|
default: () => (0, _ui.getConfig)().slider.immediate
|
|
59
61
|
}
|
|
60
62
|
},
|
|
61
|
-
emits: ['update:modelValue', 'change', 'track-dragstart', 'track-dragover', 'track-dragend'],
|
|
63
|
+
emits: ['update:modelValue', 'update:startValue', 'update:endValue', 'change', 'track-dragstart', 'track-dragover', 'track-dragend'],
|
|
62
64
|
setup(props, context) {
|
|
63
65
|
const {
|
|
64
66
|
emit
|
|
@@ -109,6 +111,14 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
109
111
|
const computeMinNum = (0, _vue.computed)(() => {
|
|
110
112
|
return _xeUtils.default.toNumber(props.min || 0);
|
|
111
113
|
});
|
|
114
|
+
const computeMVal = (0, _vue.computed)(() => {
|
|
115
|
+
const {
|
|
116
|
+
range,
|
|
117
|
+
startValue,
|
|
118
|
+
endValue
|
|
119
|
+
} = props;
|
|
120
|
+
return range ? `${startValue || ''}${endValue || ''}` : '';
|
|
121
|
+
});
|
|
112
122
|
const computeMaps = {};
|
|
113
123
|
const $xeSlider = {
|
|
114
124
|
xID,
|
|
@@ -130,61 +140,119 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
130
140
|
const collapsePaneMethods = {
|
|
131
141
|
dispatchEvent
|
|
132
142
|
};
|
|
133
|
-
const
|
|
134
|
-
const {
|
|
135
|
-
range
|
|
136
|
-
} = props;
|
|
143
|
+
const getBarPercent = currValue => {
|
|
137
144
|
const maxNum = computeMaxNum.value;
|
|
138
145
|
const minNum = computeMinNum.value;
|
|
139
|
-
|
|
146
|
+
if (maxNum === minNum) {
|
|
147
|
+
return 0;
|
|
148
|
+
}
|
|
149
|
+
if (currValue < minNum) {
|
|
150
|
+
currValue = minNum;
|
|
151
|
+
}
|
|
152
|
+
if (currValue > maxNum) {
|
|
153
|
+
currValue = maxNum;
|
|
154
|
+
}
|
|
155
|
+
return (currValue - minNum) / (maxNum - minNum) * 100;
|
|
140
156
|
};
|
|
141
|
-
const
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
return _xeUtils.default.floor((endValue - (range ? startValue : 0) - minNum) / _xeUtils.default.toNumber(maxNum - minNum) * 100);
|
|
157
|
+
const parseFields = (startValue, endValue) => {
|
|
158
|
+
const [sVal, eVal] = _xeUtils.default.orderBy([_xeUtils.default.toNumber(startValue), _xeUtils.default.toNumber(endValue)]);
|
|
159
|
+
const currValue = _xeUtils.default.floor(_xeUtils.default.toNumber(sVal || 0));
|
|
160
|
+
internalData.currValue = currValue;
|
|
161
|
+
internalData.startValue = currValue;
|
|
162
|
+
internalData.endValue = _xeUtils.default.floor(_xeUtils.default.toNumber(eVal || 0));
|
|
148
163
|
};
|
|
149
|
-
const
|
|
164
|
+
const parseArrs = arrVals => {
|
|
165
|
+
const [sVal, eVal] = _xeUtils.default.orderBy(arrVals);
|
|
166
|
+
const currValue = _xeUtils.default.floor(_xeUtils.default.toNumber(sVal || 0));
|
|
167
|
+
internalData.currValue = currValue;
|
|
168
|
+
internalData.startValue = currValue;
|
|
169
|
+
internalData.endValue = _xeUtils.default.floor(_xeUtils.default.toNumber(eVal || 0));
|
|
170
|
+
};
|
|
171
|
+
const parseNum = val => {
|
|
172
|
+
const currValue = _xeUtils.default.floor(_xeUtils.default.toNumber(val || 0));
|
|
173
|
+
internalData.currValue = currValue;
|
|
174
|
+
internalData.startValue = 0;
|
|
175
|
+
internalData.endValue = currValue;
|
|
176
|
+
};
|
|
177
|
+
const updateModelValue = umType => {
|
|
150
178
|
const {
|
|
151
|
-
|
|
179
|
+
range,
|
|
180
|
+
modelValue,
|
|
181
|
+
startValue,
|
|
182
|
+
endValue
|
|
152
183
|
} = props;
|
|
153
|
-
if (
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
184
|
+
if (!umType) {
|
|
185
|
+
if (range) {
|
|
186
|
+
if (_xeUtils.default.eqNull(modelValue)) {
|
|
187
|
+
if (startValue || endValue) {
|
|
188
|
+
parseFields(startValue, endValue);
|
|
189
|
+
}
|
|
190
|
+
} else {
|
|
191
|
+
if (_xeUtils.default.isArray(modelValue)) {
|
|
192
|
+
parseArrs(modelValue.map(num => _xeUtils.default.toNumber(num)));
|
|
193
|
+
} else {
|
|
194
|
+
parseNum(modelValue);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
} else {
|
|
198
|
+
parseNum(modelValue);
|
|
199
|
+
}
|
|
200
|
+
} else if (range && umType === 2) {
|
|
201
|
+
parseFields(startValue, endValue);
|
|
157
202
|
} else {
|
|
158
|
-
|
|
159
|
-
|
|
203
|
+
if (_xeUtils.default.isArray(modelValue)) {
|
|
204
|
+
parseArrs(modelValue.map(num => _xeUtils.default.toNumber(num)));
|
|
205
|
+
} else {
|
|
206
|
+
parseNum(modelValue);
|
|
207
|
+
}
|
|
160
208
|
}
|
|
209
|
+
updateBarStyle();
|
|
210
|
+
updateTrackStyle();
|
|
161
211
|
};
|
|
162
212
|
const updateBarStyle = () => {
|
|
163
213
|
const {
|
|
214
|
+
range
|
|
215
|
+
} = props;
|
|
216
|
+
const {
|
|
217
|
+
currValue,
|
|
164
218
|
startValue,
|
|
165
219
|
endValue
|
|
166
|
-
} =
|
|
167
|
-
const trackElem = refTrackElem.value;
|
|
220
|
+
} = internalData;
|
|
168
221
|
const startBtnElem = refStartBtnElem.value;
|
|
169
222
|
const endBtnElem = refEndBtnElem.value;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
223
|
+
if (range) {
|
|
224
|
+
const [sVal, eVal] = _xeUtils.default.orderBy([startValue, endValue]);
|
|
225
|
+
if (startBtnElem) {
|
|
226
|
+
startBtnElem.style.left = getBarPercent(sVal) + '%';
|
|
227
|
+
}
|
|
228
|
+
if (endBtnElem) {
|
|
229
|
+
endBtnElem.style.left = getBarPercent(eVal) + '%';
|
|
230
|
+
}
|
|
175
231
|
} else {
|
|
176
|
-
|
|
177
|
-
|
|
232
|
+
if (endBtnElem) {
|
|
233
|
+
endBtnElem.style.left = getBarPercent(currValue) + '%';
|
|
234
|
+
}
|
|
178
235
|
}
|
|
236
|
+
};
|
|
237
|
+
const updateTrackStyle = () => {
|
|
238
|
+
const {
|
|
239
|
+
range
|
|
240
|
+
} = props;
|
|
241
|
+
const {
|
|
242
|
+
currValue,
|
|
243
|
+
startValue,
|
|
244
|
+
endValue
|
|
245
|
+
} = internalData;
|
|
246
|
+
const trackElem = refTrackElem.value;
|
|
179
247
|
if (trackElem) {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
248
|
+
if (range) {
|
|
249
|
+
const [sVal, eVal] = _xeUtils.default.orderBy([startValue, endValue]);
|
|
250
|
+
trackElem.style.left = getBarPercent(sVal) + '%';
|
|
251
|
+
trackElem.style.width = getBarPercent(eVal - sVal) + '%';
|
|
252
|
+
} else {
|
|
253
|
+
trackElem.style.left = '0';
|
|
254
|
+
trackElem.style.width = getBarPercent(currValue) + '%';
|
|
255
|
+
}
|
|
188
256
|
}
|
|
189
257
|
};
|
|
190
258
|
const changeEvent = evnt => {
|
|
@@ -192,11 +260,17 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
192
260
|
range
|
|
193
261
|
} = props;
|
|
194
262
|
const {
|
|
263
|
+
currValue,
|
|
195
264
|
startValue,
|
|
196
265
|
endValue
|
|
197
|
-
} =
|
|
198
|
-
const
|
|
266
|
+
} = internalData;
|
|
267
|
+
const vals = range ? _xeUtils.default.orderBy([startValue, endValue]) : [];
|
|
268
|
+
const value = range ? vals : currValue;
|
|
199
269
|
emitModel(value);
|
|
270
|
+
if (range) {
|
|
271
|
+
emit('update:startValue', vals[0] || 0);
|
|
272
|
+
emit('update:endValue', vals[1] || 0);
|
|
273
|
+
}
|
|
200
274
|
dispatchEvent('change', {
|
|
201
275
|
value
|
|
202
276
|
}, evnt);
|
|
@@ -205,14 +279,25 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
205
279
|
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
206
280
|
}
|
|
207
281
|
};
|
|
208
|
-
const
|
|
282
|
+
const getValueByLeft = (offsetLeft, barWidth) => {
|
|
283
|
+
const maxNum = computeMaxNum.value;
|
|
284
|
+
const minNum = computeMinNum.value;
|
|
285
|
+
if (barWidth === 0) {
|
|
286
|
+
return minNum;
|
|
287
|
+
}
|
|
288
|
+
const clamped = Math.max(0, Math.min(barWidth, offsetLeft));
|
|
289
|
+
const ratio = clamped / barWidth;
|
|
290
|
+
const raw = minNum + ratio * (maxNum - minNum);
|
|
291
|
+
return Math.floor(raw);
|
|
292
|
+
};
|
|
293
|
+
const handleBtnMousedownEvent = evnt => {
|
|
209
294
|
const {
|
|
295
|
+
range,
|
|
210
296
|
immediate
|
|
211
297
|
} = props;
|
|
298
|
+
const btnElem = evnt.currentTarget;
|
|
212
299
|
const formReadonly = computeFormReadonly.value;
|
|
213
300
|
const isDisabled = computeIsDisabled.value;
|
|
214
|
-
const maxNum = computeMaxNum.value;
|
|
215
|
-
const minNum = computeMinNum.value;
|
|
216
301
|
if (!(formReadonly || isDisabled)) {
|
|
217
302
|
evnt.preventDefault();
|
|
218
303
|
document.onmousemove = evnt => {
|
|
@@ -220,49 +305,49 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
220
305
|
const el = refElem.value;
|
|
221
306
|
const barElem = refBarElem.value;
|
|
222
307
|
if (el && barElem) {
|
|
308
|
+
const btnType = btnElem.getAttribute('data-type');
|
|
223
309
|
const barRect = barElem.getBoundingClientRect();
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
310
|
+
const barWidth = barRect.width;
|
|
311
|
+
const offsetLeft = Math.min(barWidth, Math.max(0, evnt.clientX - barRect.left));
|
|
312
|
+
const currValue = getValueByLeft(offsetLeft, barWidth);
|
|
313
|
+
if (range) {
|
|
314
|
+
if (btnType === '1') {
|
|
315
|
+
internalData.startValue = currValue;
|
|
316
|
+
} else {
|
|
317
|
+
internalData.endValue = currValue;
|
|
318
|
+
}
|
|
229
319
|
}
|
|
320
|
+
internalData.currValue = currValue;
|
|
321
|
+
btnElem.style.left = getBarPercent(currValue) + '%';
|
|
230
322
|
dispatchEvent('track-dragover', {
|
|
231
|
-
|
|
232
|
-
|
|
323
|
+
currentValue: internalData.currValue,
|
|
324
|
+
startValue: internalData.startValue,
|
|
325
|
+
endValue: internalData.endValue
|
|
233
326
|
}, evnt);
|
|
234
327
|
}
|
|
235
328
|
if (immediate) {
|
|
236
329
|
changeEvent(evnt);
|
|
237
330
|
}
|
|
238
|
-
|
|
331
|
+
updateTrackStyle();
|
|
239
332
|
};
|
|
240
333
|
document.onmouseup = evnt => {
|
|
241
334
|
document.onmousemove = null;
|
|
242
335
|
document.onmouseup = null;
|
|
243
336
|
dispatchEvent('track-dragend', {
|
|
244
|
-
|
|
245
|
-
|
|
337
|
+
currentValue: internalData.currValue,
|
|
338
|
+
startValue: internalData.startValue,
|
|
339
|
+
endValue: internalData.endValue
|
|
246
340
|
}, evnt);
|
|
247
341
|
changeEvent(evnt);
|
|
248
|
-
|
|
342
|
+
updateTrackStyle();
|
|
249
343
|
};
|
|
250
344
|
dispatchEvent('track-dragstart', {
|
|
251
|
-
|
|
252
|
-
|
|
345
|
+
currentValue: internalData.currValue,
|
|
346
|
+
startValue: internalData.startValue,
|
|
347
|
+
endValue: internalData.endValue
|
|
253
348
|
}, evnt);
|
|
254
349
|
}
|
|
255
350
|
};
|
|
256
|
-
const handleStartMousedownEvent = evnt => {
|
|
257
|
-
const endBtnElem = refEndBtnElem.value;
|
|
258
|
-
const startBtnElem = evnt.currentTarget;
|
|
259
|
-
handleMousedownEvent(evnt, endBtnElem ? endBtnElem.offsetLeft < startBtnElem.offsetLeft : false);
|
|
260
|
-
};
|
|
261
|
-
const handleEndMousedownEvent = evnt => {
|
|
262
|
-
const startBtnElem = refStartBtnElem.value;
|
|
263
|
-
const endBtnElem = evnt.currentTarget;
|
|
264
|
-
handleMousedownEvent(evnt, startBtnElem ? endBtnElem.offsetLeft > startBtnElem.offsetLeft : true);
|
|
265
|
-
};
|
|
266
351
|
const collapsePanePrivateMethods = {};
|
|
267
352
|
Object.assign($xeSlider, collapsePaneMethods, collapsePanePrivateMethods);
|
|
268
353
|
const renderVN = () => {
|
|
@@ -291,28 +376,35 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
291
376
|
class: 'vxe-slider--bar-track'
|
|
292
377
|
}), formReadonly || !range ? (0, _ui.renderEmptyElement)($xeSlider) : (0, _vue.h)('div', {
|
|
293
378
|
ref: refStartBtnElem,
|
|
294
|
-
class: 'vxe-slider--bar-btn
|
|
295
|
-
|
|
379
|
+
class: 'vxe-slider--bar-btn',
|
|
380
|
+
'data-type': '1',
|
|
381
|
+
onMousedown: handleBtnMousedownEvent
|
|
296
382
|
}), formReadonly ? (0, _ui.renderEmptyElement)($xeSlider) : (0, _vue.h)('div', {
|
|
297
383
|
ref: refEndBtnElem,
|
|
298
|
-
class: 'vxe-slider--bar-btn
|
|
299
|
-
|
|
384
|
+
class: 'vxe-slider--bar-btn',
|
|
385
|
+
'data-type': '2',
|
|
386
|
+
onMousedown: handleBtnMousedownEvent
|
|
300
387
|
})])]);
|
|
301
388
|
};
|
|
302
389
|
(0, _vue.watch)(() => props.modelValue, () => {
|
|
303
390
|
if (!internalData._isUp) {
|
|
304
|
-
|
|
391
|
+
updateModelValue(1);
|
|
392
|
+
}
|
|
393
|
+
internalData._isUp = false;
|
|
394
|
+
});
|
|
395
|
+
(0, _vue.watch)(computeMVal, () => {
|
|
396
|
+
if (!internalData._isUp) {
|
|
397
|
+
updateModelValue(2);
|
|
305
398
|
}
|
|
306
399
|
internalData._isUp = false;
|
|
307
400
|
});
|
|
308
401
|
(0, _vue.onMounted)(() => {
|
|
309
|
-
|
|
402
|
+
updateModelValue();
|
|
310
403
|
});
|
|
311
404
|
(0, _vue.onBeforeUnmount)(() => {
|
|
312
405
|
_xeUtils.default.assign(reactData, createReactData());
|
|
313
406
|
_xeUtils.default.assign(internalData, createInternalData());
|
|
314
407
|
});
|
|
315
|
-
updateModel();
|
|
316
408
|
$xeSlider.renderVN = renderVN;
|
|
317
409
|
return $xeSlider;
|
|
318
410
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function createInternalData(){return{}}function createReactData(){return{
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function createInternalData(){return{currValue:0,startValue:0,endValue:0}}function createReactData(){return{}}var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeSlider",props:{modelValue:[String,Number,Array],startValue:[String,Number],endValue:[String,Number],vertical:Boolean,max:{type:[String,Number],default:()=>(0,_ui.getConfig)().slider.max},min:{type:[String,Number],default:()=>(0,_ui.getConfig)().slider.min},step:{type:[String,Number],default:()=>(0,_ui.getConfig)().slider.step},size:{type:String,default:()=>(0,_ui.getConfig)().slider.size||(0,_ui.getConfig)().size},range:{type:Boolean,default:()=>(0,_ui.getConfig)().slider.range},readonly:{type:Boolean,default:null},disabled:{type:Boolean,default:null},immediate:{type:Boolean,default:()=>(0,_ui.getConfig)().slider.immediate}},emits:["update:modelValue","update:startValue","update:endValue","change","track-dragstart","track-dragover","track-dragend"],setup(d,e){let l=e.emit,i=(0,_vue.inject)("$xeForm",null),n=(0,_vue.inject)("xeFormItemInfo",null);var t=_xeUtils.default.uniqueId();let s=(0,_ui.useSize)(d).computeSize,o=(0,_vue.ref)(),f=(0,_vue.ref)(),v=(0,_vue.ref)(),_=(0,_vue.ref)(),m=(0,_vue.ref)(),a=(0,_vue.reactive)(createReactData()),c=createInternalData(),r={refElem:o},p=(0,_vue.computed)(()=>{var e=d.readonly;return null===e?!!i&&i.props.readonly:e}),V=(0,_vue.computed)(()=>{var e=d.disabled;return null===e?!!i&&i.props.disabled:e}),u=(0,_vue.computed)(()=>_xeUtils.default.toNumber(d.max||0)),g=(0,_vue.computed)(()=>_xeUtils.default.toNumber(d.min||0));var x=(0,_vue.computed)(()=>{var{range:e,startValue:t,endValue:a}=d;return e?""+(t||"")+(a||""):""});let y={},U={xID:t,props:d,context:e,reactData:a,getRefMaps:()=>r,getComputeMaps:()=>y},b=e=>{c._isUp=!0,l("update:modelValue",e)},h=(e,t,a)=>{l(e,(0,_ui.createEvent)(a,{$slider:U},t))};t={dispatchEvent:h};let N=e=>{var t=u.value,a=g.value;return t===a?0:((e=t<(e=e<a?a:e)?t:e)-a)/(t-a)*100},B=(e,t)=>{var[e,t]=_xeUtils.default.orderBy([_xeUtils.default.toNumber(e),_xeUtils.default.toNumber(t)]),e=_xeUtils.default.floor(_xeUtils.default.toNumber(e||0));c.currValue=e,c.startValue=e,c.endValue=_xeUtils.default.floor(_xeUtils.default.toNumber(t||0))},D=e=>{var[e,t]=_xeUtils.default.orderBy(e),e=_xeUtils.default.floor(_xeUtils.default.toNumber(e||0));c.currValue=e,c.startValue=e,c.endValue=_xeUtils.default.floor(_xeUtils.default.toNumber(t||0))},M=e=>{e=_xeUtils.default.floor(_xeUtils.default.toNumber(e||0));c.currValue=e,c.startValue=0,c.endValue=e},C=e=>{var{range:t,modelValue:a,startValue:r,endValue:u}=d;e?t&&2===e?B(r,u):_xeUtils.default.isArray(a)?D(a.map(e=>_xeUtils.default.toNumber(e))):M(a):t?_xeUtils.default.eqNull(a)?(r||u)&&B(r,u):_xeUtils.default.isArray(a)?D(a.map(e=>_xeUtils.default.toNumber(e))):M(a):M(a),(()=>{const{range:e}=d,{currValue:t,startValue:a,endValue:r}=c,u=_.value,l=m.value;if(e){const[i,n]=_xeUtils.default.orderBy([a,r]);if(u)u.style.left=N(i)+"%";if(l)l.style.left=N(n)+"%"}else if(l)l.style.left=N(t)+"%"})(),S()},S=()=>{var e=d.range,{currValue:t,startValue:a,endValue:r}=c,u=v.value;u&&(e?([e,a]=_xeUtils.default.orderBy([a,r]),u.style.left=N(e)+"%",u.style.width=N(a-e)+"%"):(u.style.left="0",u.style.width=N(t)+"%"))},q=e=>{var t=d.range,{currValue:a,startValue:r,endValue:u}=c,r=t?_xeUtils.default.orderBy([r,u]):[],u=t?r:a;b(u),t&&(l("update:startValue",r[0]||0),l("update:endValue",r[1]||0)),h("change",{value:u},e),i&&n&&i.triggerItemEvent(e,n.itemConfig.field,u)},w=(e,t)=>{var a=u.value,r=g.value;return 0===t?r:(e=Math.max(0,Math.min(t,e)),Math.floor(r+e/t*(a-r)))},E=e=>{let{range:u,immediate:l}=d,i=e.currentTarget;var t=p.value,a=V.value;t||a||(e.preventDefault(),document.onmousemove=e=>{e.preventDefault();var t,a=o.value,r=f.value;a&&r&&(a=i.getAttribute("data-type"),t=(r=r.getBoundingClientRect()).width,r=Math.min(t,Math.max(0,e.clientX-r.left)),r=w(r,t),u&&("1"===a?c.startValue=r:c.endValue=r),c.currValue=r,i.style.left=N(r)+"%",h("track-dragover",{currentValue:c.currValue,startValue:c.startValue,endValue:c.endValue},e)),l&&q(e),S()},document.onmouseup=e=>{document.onmousemove=null,document.onmouseup=null,h("track-dragend",{currentValue:c.currValue,startValue:c.startValue,endValue:c.endValue},e),q(e),S()},h("track-dragstart",{currentValue:c.currValue,startValue:c.startValue,endValue:c.endValue},e))};Object.assign(U,t,{});return(0,_vue.watch)(()=>d.modelValue,()=>{c._isUp||C(1),c._isUp=!1}),(0,_vue.watch)(x,()=>{c._isUp||C(2),c._isUp=!1}),(0,_vue.onMounted)(()=>{C()}),(0,_vue.onBeforeUnmount)(()=>{_xeUtils.default.assign(a,createReactData()),_xeUtils.default.assign(c,createInternalData())}),U.renderVN=()=>{var{vertical:e,range:t}=d,a=s.value,r=p.value,u=V.value;return(0,_vue.h)("div",{ref:o,class:["vxe-slider",{["size--"+a]:a,"is--vertical":e,"is--readonly":r,"is--disabled":u}]},[(0,_vue.h)("div",{class:"vxe-slider--inner"},[(0,_vue.h)("div",{ref:f,class:"vxe-slider--bar-wrapper"}),(0,_vue.h)("div",{ref:v,class:"vxe-slider--bar-track"}),r||!t?(0,_ui.renderEmptyElement)(U):(0,_vue.h)("div",{ref:_,class:"vxe-slider--bar-btn","data-type":"1",onMousedown:E}),r?(0,_ui.renderEmptyElement)(U):(0,_vue.h)("div",{ref:m,class:"vxe-slider--bar-btn","data-type":"2",onMousedown:E})])])},U},render(){return this.renderVN()}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.vxe-slider {
|
|
2
2
|
position: relative;
|
|
3
3
|
display: block;
|
|
4
|
-
padding: 0.
|
|
4
|
+
padding: 0.8em;
|
|
5
5
|
}
|
|
6
6
|
.vxe-slider.theme--primary .vxe-slider--bar-track {
|
|
7
7
|
background-color: var(--vxe-ui-font-primary-color);
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
cursor: pointer;
|
|
84
84
|
}
|
|
85
85
|
.vxe-slider:not(.is--disabled) .vxe-slider--bar-btn:hover {
|
|
86
|
-
transform: scale(1.2);
|
|
86
|
+
transform: translate(-50%, -50%) scale(1.2);
|
|
87
87
|
}
|
|
88
88
|
.vxe-slider:not(.is--disabled) .vxe-slider--bar-btn:active {
|
|
89
|
-
transform: scale(1.1);
|
|
89
|
+
transform: translate(-50%, -50%) scale(1.1);
|
|
90
90
|
}
|
|
91
91
|
.vxe-slider.is--readonly .vxe-slider--bar-wrapper,
|
|
92
92
|
.vxe-slider.is--readonly .vxe-slider--inner {
|
|
@@ -123,21 +123,14 @@
|
|
|
123
123
|
|
|
124
124
|
.vxe-slider--bar-btn {
|
|
125
125
|
position: absolute;
|
|
126
|
-
width:
|
|
127
|
-
height:
|
|
128
|
-
top:
|
|
126
|
+
width: 1.2em;
|
|
127
|
+
height: 1.2em;
|
|
128
|
+
top: 50%;
|
|
129
|
+
transform: translate(-50%, -50%);
|
|
129
130
|
border-radius: 50%;
|
|
130
|
-
border:
|
|
131
|
+
border: 2px solid var(--vxe-ui-font-primary-color);
|
|
131
132
|
background-color: #fff;
|
|
132
133
|
cursor: pointer;
|
|
133
134
|
z-index: 1;
|
|
134
135
|
transition: transform 0.1s ease-in-out;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.vxe-slider--start-btn {
|
|
138
|
-
left: -0.45em;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.vxe-slider--end-btn {
|
|
142
|
-
right: -0.45em;
|
|
143
136
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-slider{position:relative;display:block;padding:.
|
|
1
|
+
.vxe-slider{position:relative;display:block;padding:.8em}.vxe-slider.theme--primary .vxe-slider--bar-track{background-color:var(--vxe-ui-font-primary-color)}.vxe-slider.theme--primary .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-font-primary-lighten-color)}.vxe-slider.theme--primary .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-font-primary-darken-color)}.vxe-slider.theme--primary .vxe-slider--bar-btn{background-color:var(--vxe-ui-font-primary-color)}.vxe-slider.theme--success .vxe-slider--bar-track{background-color:var(--vxe-ui-status-success-color)}.vxe-slider.theme--success .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-success-lighten-color)}.vxe-slider.theme--success .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-success-darken-color)}.vxe-slider.theme--success .vxe-slider--bar-btn{background-color:var(--vxe-ui-status-success-color)}.vxe-slider.theme--info .vxe-slider--bar-track{background-color:var(--vxe-ui-status-info-color)}.vxe-slider.theme--info .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-info-lighten-color)}.vxe-slider.theme--info .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-info-darken-color)}.vxe-slider.theme--info .vxe-slider--bar-btn{background-color:var(--vxe-ui-status-info-color)}.vxe-slider.theme--warning .vxe-slider--bar-track{background-color:var(--vxe-ui-status-warning-color)}.vxe-slider.theme--warning .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-warning-lighten-color)}.vxe-slider.theme--warning .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-warning-darken-color)}.vxe-slider.theme--warning .vxe-slider--bar-btn{background-color:var(--vxe-ui-status-warning-color)}.vxe-slider.theme--danger .vxe-slider--bar-track{background-color:var(--vxe-ui-status-danger-color)}.vxe-slider.theme--danger .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-danger-lighten-color)}.vxe-slider.theme--danger .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-danger-darken-color)}.vxe-slider.theme--danger .vxe-slider--bar-btn{background-color:var(--vxe-ui-status-danger-color)}.vxe-slider.theme--error .vxe-slider--bar-track{background-color:var(--vxe-ui-status-error-color)}.vxe-slider.theme--error .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-error-lighten-color)}.vxe-slider.theme--error .vxe-slider--bar-track:hover{background-color:var(--vxe-ui-status-error-darken-color)}.vxe-slider.theme--error .vxe-slider--bar-btn{background-color:var(--vxe-ui-status-error-color)}.vxe-slider.is--disabled .vxe-slider--bar-btn{cursor:not-allowed}.vxe-slider:not(.is--disabled) .vxe-slider--bar-wrapper,.vxe-slider:not(.is--disabled) .vxe-slider--inner{cursor:pointer}.vxe-slider:not(.is--disabled) .vxe-slider--bar-btn:hover{transform:translate(-50%,-50%) scale(1.2)}.vxe-slider:not(.is--disabled) .vxe-slider--bar-btn:active{transform:translate(-50%,-50%) scale(1.1)}.vxe-slider.is--readonly .vxe-slider--bar-wrapper,.vxe-slider.is--readonly .vxe-slider--inner{cursor:default}.vxe-slider--inner{position:relative}.vxe-slider--bar-wrapper{background-color:#e4e7ed}.vxe-slider--bar-track{position:absolute;left:0;top:0;z-index:1;background-color:var(--vxe-ui-font-primary-color)}.vxe-slider--bar-track:hover{background-color:var(--vxe-ui-font-primary-lighten-color)}.vxe-slider--bar-track:active{background-color:var(--vxe-ui-font-primary-darken-color)}.vxe-slider--bar-track,.vxe-slider--bar-wrapper{height:.3em;border-radius:var(--vxe-ui-base-border-radius)}.vxe-slider--bar-btn{position:absolute;width:1.2em;height:1.2em;top:50%;transform:translate(-50%,-50%);border-radius:50%;border:2px solid var(--vxe-ui-font-primary-color);background-color:#fff;cursor:pointer;z-index:1;transition:transform .1s ease-in-out}
|
package/lib/space/src/space.js
CHANGED
|
@@ -41,6 +41,10 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
41
41
|
separator: {
|
|
42
42
|
type: String,
|
|
43
43
|
default: () => (0, _ui.getConfig)().space.separator
|
|
44
|
+
},
|
|
45
|
+
align: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: () => (0, _ui.getConfig)().space.align
|
|
44
48
|
}
|
|
45
49
|
},
|
|
46
50
|
emits: [],
|
|
@@ -62,6 +66,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
62
66
|
};
|
|
63
67
|
const computeWrapperStyle = (0, _vue.computed)(() => {
|
|
64
68
|
const {
|
|
69
|
+
align,
|
|
65
70
|
gap
|
|
66
71
|
} = props;
|
|
67
72
|
const stys = {};
|
|
@@ -79,6 +84,9 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
79
84
|
columGap = gap.columGap || '';
|
|
80
85
|
}
|
|
81
86
|
}
|
|
87
|
+
if (align) {
|
|
88
|
+
stys['align-items'] = align;
|
|
89
|
+
}
|
|
82
90
|
if (!(0, _utils.eqEmptyValue)(rowGap)) {
|
|
83
91
|
stys['--vxe-ui-space-current-row-gap'] = (0, _dom.toCssUnit)(rowGap);
|
|
84
92
|
}
|
|
@@ -106,16 +114,40 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
106
114
|
};
|
|
107
115
|
const spacePrivateMethods = {};
|
|
108
116
|
Object.assign($xeSpace, spaceMethods, spacePrivateMethods);
|
|
117
|
+
const renderItems = () => {
|
|
118
|
+
const {
|
|
119
|
+
separator,
|
|
120
|
+
itemClassName
|
|
121
|
+
} = props;
|
|
122
|
+
const itemVNs = [];
|
|
123
|
+
const defaultSlot = slots.default;
|
|
124
|
+
const separatorSlot = slots.separator;
|
|
125
|
+
if (defaultSlot) {
|
|
126
|
+
_xeUtils.default.each(defaultSlot({}), (itemVN, index, items) => {
|
|
127
|
+
itemVNs.push((0, _vue.h)('div', {
|
|
128
|
+
key: 'i' + index,
|
|
129
|
+
class: ['vxe-space--item', (0, _dom.getPropClass)(itemClassName, {
|
|
130
|
+
index
|
|
131
|
+
})]
|
|
132
|
+
}, [itemVN]));
|
|
133
|
+
if ((separator || separatorSlot) && index < items.length - 1) {
|
|
134
|
+
itemVNs.push((0, _vue.h)('div', {
|
|
135
|
+
key: 's' + index,
|
|
136
|
+
class: 'vxe-space--separator'
|
|
137
|
+
}, separatorSlot ? separatorSlot({}) : '' + separator));
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
return itemVNs;
|
|
142
|
+
};
|
|
109
143
|
const renderVN = () => {
|
|
110
144
|
const {
|
|
111
145
|
vertical,
|
|
112
146
|
wrap,
|
|
113
|
-
className
|
|
114
|
-
itemClassName
|
|
147
|
+
className
|
|
115
148
|
} = props;
|
|
116
149
|
const wrapperStyle = computeWrapperStyle.value;
|
|
117
150
|
const vSize = computeSize.value;
|
|
118
|
-
const defaultSlot = slots.default;
|
|
119
151
|
return (0, _vue.h)('div', {
|
|
120
152
|
ref: refElem,
|
|
121
153
|
class: ['vxe-space', (0, _dom.getPropClass)(className, {}), {
|
|
@@ -124,14 +156,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
|
|
|
124
156
|
'is--vertical': vertical
|
|
125
157
|
}],
|
|
126
158
|
style: wrapperStyle
|
|
127
|
-
},
|
|
128
|
-
return (0, _vue.h)('div', {
|
|
129
|
-
key: index,
|
|
130
|
-
class: ['vxe-space--item', (0, _dom.getPropClass)(itemClassName, {
|
|
131
|
-
index
|
|
132
|
-
})]
|
|
133
|
-
}, [itemVN]);
|
|
134
|
-
}) : []);
|
|
159
|
+
}, renderItems());
|
|
135
160
|
};
|
|
136
161
|
$xeSpace.renderVN = renderVN;
|
|
137
162
|
return $xeSpace;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_dom=require("../../ui/src/dom"),_utils=require("../../ui/src/utils");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeSpace",props:{size:{type:String,default:()=>(0,_ui.getConfig)().space.size||(0,_ui.getConfig)().size},wrap:{type:Boolean,default:()=>(0,_ui.getConfig)().space.wrap},gap:{type:[Number,String,Array,Object],default:()=>(0,_ui.getConfig)().space.gap},vertical:{type:Boolean,default:()=>(0,_ui.getConfig)().space.vertical},className:{type:String,default:()=>(0,_ui.getConfig)().space.className},itemClassName:{type:String,default:()=>(0,_ui.getConfig)().space.itemClassName},separator:{type:String,default:()=>(0,_ui.getConfig)().space.separator}},emits:[],setup(l,e){let{emit:i,slots:p}=e;var t=_xeUtils.default.uniqueId();let
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _vue=require("vue"),_comp=require("../../ui/src/comp"),_xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../ui"),_dom=require("../../ui/src/dom"),_utils=require("../../ui/src/utils");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _default=exports.default=(0,_comp.defineVxeComponent)({name:"VxeSpace",props:{size:{type:String,default:()=>(0,_ui.getConfig)().space.size||(0,_ui.getConfig)().size},wrap:{type:Boolean,default:()=>(0,_ui.getConfig)().space.wrap},gap:{type:[Number,String,Array,Object],default:()=>(0,_ui.getConfig)().space.gap},vertical:{type:Boolean,default:()=>(0,_ui.getConfig)().space.vertical},className:{type:String,default:()=>(0,_ui.getConfig)().space.className},itemClassName:{type:String,default:()=>(0,_ui.getConfig)().space.itemClassName},separator:{type:String,default:()=>(0,_ui.getConfig)().space.separator},align:{type:String,default:()=>(0,_ui.getConfig)().space.align}},emits:[],setup(l,e){let{emit:i,slots:p}=e;var t=_xeUtils.default.uniqueId();let s=(0,_ui.useSize)(l).computeSize,u=(0,_vue.ref)();var a=(0,_vue.reactive)({activeValue:null});let r={refElem:u},o=(0,_vue.computed)(()=>{var{align:e,gap:t}=l,a={};let i="",r="";return _xeUtils.default.isNumber(t)||_xeUtils.default.isString(t)?(i=t,r=t):t&&(r=_xeUtils.default.isArray(t)?(i=t[0],t[1]):(i=t.rowGap||"",t.columGap||"")),e&&(a["align-items"]=e),(0,_utils.eqEmptyValue)(i)||(a["--vxe-ui-space-current-row-gap"]=(0,_dom.toCssUnit)(i)),(0,_utils.eqEmptyValue)(r)||(a["--vxe-ui-space-current-column-gap"]=(0,_dom.toCssUnit)(r)),a}),n={},c={xID:t,props:l,context:e,reactData:a,getRefMaps:()=>r,getComputeMaps:()=>n};Object.assign(c,{dispatchEvent:(e,t,a)=>{i(e,(0,_ui.createEvent)(a,{$space:c},t))}},{});return c.renderVN=()=>{var{vertical:e,wrap:t,className:a}=l,i=o.value,r=s.value;return(0,_vue.h)("div",{ref:u,class:["vxe-space",(0,_dom.getPropClass)(a,{}),{["size--"+r]:r,"is--wrap":t,"is--vertical":e}],style:i},(()=>{let{separator:i,itemClassName:r}=l,s=[];var e=p.default;let u=p.separator;return e&&_xeUtils.default.each(e({}),(e,t,a)=>{s.push((0,_vue.h)("div",{key:"i"+t,class:["vxe-space--item",(0,_dom.getPropClass)(r,{index:t})]},[e])),(i||u)&&t<a.length-1&&s.push((0,_vue.h)("div",{key:"s"+t,class:"vxe-space--separator"},u?u({}):""+i))}),s})())},c},render(){return this.renderVN()}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.vxe-space{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-default);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-default)}.vxe-space.size--xlarge{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-xlarge);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-xlarge)}.vxe-space.size--large{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-large);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-large)}.vxe-space.size--medium{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-medium);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-medium)}.vxe-space.size--small{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-small);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-small)}.vxe-space.size--mini{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-mini);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-mini)}.vxe-space{display:inline-flex;flex-direction:row;gap:var(--vxe-ui-space-current-row-gap) var(--vxe-ui-space-current-column-gap)}.vxe-space.is--wrap{flex-wrap:wrap}.vxe-space.is--vertical{flex-direction:column}
|
|
1
|
+
.vxe-space{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-default);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-default)}.vxe-space.size--xlarge{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-xlarge);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-xlarge)}.vxe-space.size--large{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-large);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-large)}.vxe-space.size--medium{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-medium);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-medium)}.vxe-space.size--small{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-small);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-small)}.vxe-space.size--mini{--vxe-ui-space-current-row-gap:var(--vxe-ui-space-row-gap-mini);--vxe-ui-space-current-column-gap:var(--vxe-ui-space-column-gap-mini)}.vxe-space{display:inline-flex;flex-direction:row;align-items:center;gap:var(--vxe-ui-space-current-row-gap) var(--vxe-ui-space-current-column-gap)}.vxe-space.is--wrap{flex-wrap:wrap}.vxe-space.is--vertical{flex-direction:column}
|