vxe-pc-ui 4.18.3 → 4.18.5
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 +117 -25
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/color-picker/src/color-picker.js +14 -3
- package/es/date-picker/src/date-picker.js +12 -1
- package/es/date-range-picker/src/date-range-picker.js +12 -1
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +17 -6
- package/es/input/src/input.js +12 -1
- package/es/language/en-US.js +2 -2
- package/es/language/zh-CHT.js +2 -2
- package/es/language/zh-CN.js +2 -2
- package/es/number-input/src/number-input.js +12 -1
- package/es/password-input/src/password-input.js +12 -0
- package/es/select/src/select.js +19 -8
- package/es/space/src/space.js +8 -4
- 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/lib/color-picker/src/color-picker.js +18 -5
- package/lib/color-picker/src/color-picker.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +13 -0
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +13 -0
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +21 -8
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/index.umd.js +141 -31
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +13 -0
- package/lib/input/src/input.min.js +1 -1
- package/lib/language/en-US.js +2 -2
- package/lib/language/en-US.min.js +1 -1
- package/lib/language/en-US.umd.js +2 -2
- package/lib/language/zh-CHT.js +2 -2
- package/lib/language/zh-CHT.min.js +1 -1
- package/lib/language/zh-CHT.umd.js +2 -2
- package/lib/language/zh-CN.js +2 -2
- package/lib/language/zh-CN.min.js +1 -1
- package/lib/language/zh-CN.umd.js +2 -2
- package/lib/number-input/src/number-input.js +13 -0
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/password-input/src/password-input.js +14 -0
- package/lib/password-input/src/password-input.min.js +1 -1
- package/lib/select/src/select.js +23 -10
- package/lib/select/src/select.min.js +1 -1
- package/lib/space/src/space.js +9 -4
- package/lib/space/src/space.min.js +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/package.json +1 -1
- package/packages/color-picker/src/color-picker.ts +16 -4
- package/packages/date-picker/src/date-picker.ts +14 -2
- package/packages/date-range-picker/src/date-range-picker.ts +14 -2
- package/packages/icon-picker/src/icon-picker.ts +18 -6
- package/packages/input/src/input.ts +13 -1
- package/packages/language/en-US.ts +2 -2
- package/packages/language/zh-CHT.ts +2 -2
- package/packages/language/zh-CN.ts +2 -2
- package/packages/number-input/src/number-input.ts +14 -2
- package/packages/password-input/src/password-input.ts +14 -1
- package/packages/select/src/select.ts +20 -8
- package/packages/space/src/space.ts +8 -4
- package/types/components/color-picker.d.ts +2 -0
- package/types/components/date-picker.d.ts +2 -0
- package/types/components/date-range-picker.d.ts +2 -0
- package/types/components/gantt.d.ts +62 -3
- package/types/components/icon-picker.d.ts +2 -0
- package/types/components/input.d.ts +5 -0
- package/types/components/number-input.d.ts +5 -0
- package/types/components/password-input.d.ts +5 -0
- package/types/components/select.d.ts +5 -0
- package/types/components/space.d.ts +5 -0
- /package/es/icon/{iconfont.1788745459463.ttf → iconfont.1788857098184.ttf} +0 -0
- /package/es/icon/{iconfont.1788745459463.woff → iconfont.1788857098184.woff} +0 -0
- /package/es/icon/{iconfont.1788745459463.woff2 → iconfont.1788857098184.woff2} +0 -0
- /package/es/{iconfont.1788745459463.ttf → iconfont.1788857098184.ttf} +0 -0
- /package/es/{iconfont.1788745459463.woff → iconfont.1788857098184.woff} +0 -0
- /package/es/{iconfont.1788745459463.woff2 → iconfont.1788857098184.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788745459463.ttf → iconfont.1788857098184.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788745459463.woff → iconfont.1788857098184.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788745459463.woff2 → iconfont.1788857098184.woff2} +0 -0
- /package/lib/{iconfont.1788745459463.ttf → iconfont.1788857098184.ttf} +0 -0
- /package/lib/{iconfont.1788745459463.woff → iconfont.1788857098184.woff} +0 -0
- /package/lib/{iconfont.1788745459463.woff2 → iconfont.1788857098184.woff2} +0 -0
package/es/select/src/select.js
CHANGED
|
@@ -105,6 +105,7 @@ export default defineVxeComponent({
|
|
|
105
105
|
* @deprecated
|
|
106
106
|
*/
|
|
107
107
|
popupClassName: [String, Function],
|
|
108
|
+
width: [String, Number],
|
|
108
109
|
max: {
|
|
109
110
|
type: [String, Number],
|
|
110
111
|
default: null
|
|
@@ -330,6 +331,14 @@ export default defineVxeComponent({
|
|
|
330
331
|
const computeMultiMaxCharNum = computed(() => {
|
|
331
332
|
return XEUtils.toNumber(props.multiCharOverflow);
|
|
332
333
|
});
|
|
334
|
+
const computeCurrStyle = computed(() => {
|
|
335
|
+
const { width } = props;
|
|
336
|
+
const stys = {};
|
|
337
|
+
if (width) {
|
|
338
|
+
stys.width = toCssUnit(width);
|
|
339
|
+
}
|
|
340
|
+
return stys;
|
|
341
|
+
});
|
|
333
342
|
const computePopupWrapperStyle = computed(() => {
|
|
334
343
|
const popupOpts = computePopupOpts.value;
|
|
335
344
|
const { height, width } = popupOpts;
|
|
@@ -1511,14 +1520,7 @@ export default defineVxeComponent({
|
|
|
1511
1520
|
const btnTransfer = computeBtnTransfer.value;
|
|
1512
1521
|
const formReadonly = computeFormReadonly.value;
|
|
1513
1522
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
1514
|
-
const popupWrapperStyle = computePopupWrapperStyle.value;
|
|
1515
|
-
const popupOpts = computePopupOpts.value;
|
|
1516
|
-
const { appendTo } = popupOpts;
|
|
1517
1523
|
const defaultSlot = slots.default;
|
|
1518
|
-
const headerSlot = slots.header;
|
|
1519
|
-
const footerSlot = slots.footer;
|
|
1520
|
-
const prefixSlot = slots.prefix;
|
|
1521
|
-
const ppClassName = popupOpts.className || props.popupClassName;
|
|
1522
1524
|
if (formReadonly) {
|
|
1523
1525
|
return h('div', {
|
|
1524
1526
|
ref: refElem,
|
|
@@ -1534,7 +1536,15 @@ export default defineVxeComponent({
|
|
|
1534
1536
|
}, selectLabel)
|
|
1535
1537
|
]);
|
|
1536
1538
|
}
|
|
1539
|
+
const currStyle = computeCurrStyle.value;
|
|
1537
1540
|
const selectVals = computeSelectVals.value;
|
|
1541
|
+
const popupWrapperStyle = computePopupWrapperStyle.value;
|
|
1542
|
+
const popupOpts = computePopupOpts.value;
|
|
1543
|
+
const headerSlot = slots.header;
|
|
1544
|
+
const footerSlot = slots.footer;
|
|
1545
|
+
const prefixSlot = slots.prefix;
|
|
1546
|
+
const { appendTo } = popupOpts;
|
|
1547
|
+
const ppClassName = popupOpts.className || props.popupClassName;
|
|
1538
1548
|
return h('div', {
|
|
1539
1549
|
ref: refElem,
|
|
1540
1550
|
class: ['vxe-select', className ? (XEUtils.isFunction(className) ? className({ $select: $xeSelect }) : className) : '', {
|
|
@@ -1544,7 +1554,8 @@ export default defineVxeComponent({
|
|
|
1544
1554
|
'is--filter': filterable,
|
|
1545
1555
|
'is--loading': loading,
|
|
1546
1556
|
'is--active': isActivated
|
|
1547
|
-
}]
|
|
1557
|
+
}],
|
|
1558
|
+
style: currStyle
|
|
1548
1559
|
}, [
|
|
1549
1560
|
h('div', {
|
|
1550
1561
|
class: 'vxe-select-slots',
|
package/es/space/src/space.js
CHANGED
|
@@ -15,6 +15,7 @@ export default defineVxeComponent({
|
|
|
15
15
|
type: Boolean,
|
|
16
16
|
default: () => getConfig().space.wrap
|
|
17
17
|
},
|
|
18
|
+
width: [Number, String],
|
|
18
19
|
gap: {
|
|
19
20
|
type: [Number, String, Array, Object],
|
|
20
21
|
default: () => getConfig().space.gap
|
|
@@ -72,8 +73,8 @@ export default defineVxeComponent({
|
|
|
72
73
|
const refMaps = {
|
|
73
74
|
refElem
|
|
74
75
|
};
|
|
75
|
-
const
|
|
76
|
-
const { align, gap } = props;
|
|
76
|
+
const computeCurrStyle = computed(() => {
|
|
77
|
+
const { align, gap, width } = props;
|
|
77
78
|
const stys = {};
|
|
78
79
|
let rowGap = '';
|
|
79
80
|
let columGap = '';
|
|
@@ -91,6 +92,9 @@ export default defineVxeComponent({
|
|
|
91
92
|
columGap = gap.columGap || '';
|
|
92
93
|
}
|
|
93
94
|
}
|
|
95
|
+
if (width) {
|
|
96
|
+
stys.width = toCssUnit(width);
|
|
97
|
+
}
|
|
94
98
|
if (align) {
|
|
95
99
|
stys['align-items'] = align;
|
|
96
100
|
}
|
|
@@ -158,7 +162,7 @@ export default defineVxeComponent({
|
|
|
158
162
|
};
|
|
159
163
|
const renderVN = () => {
|
|
160
164
|
const { vertical, wrap, className, fill, itemWidth, itemMinWidth, itemMaxWidth } = props;
|
|
161
|
-
const
|
|
165
|
+
const currStyle = computeCurrStyle.value;
|
|
162
166
|
const vSize = computeSize.value;
|
|
163
167
|
return h('div', {
|
|
164
168
|
ref: refElem,
|
|
@@ -169,7 +173,7 @@ export default defineVxeComponent({
|
|
|
169
173
|
'is--fill': fill,
|
|
170
174
|
'is--width': itemWidth || itemMinWidth || itemMaxWidth
|
|
171
175
|
}],
|
|
172
|
-
style:
|
|
176
|
+
style: currStyle
|
|
173
177
|
}, renderItems());
|
|
174
178
|
};
|
|
175
179
|
$xeSpace.renderVN = renderVN;
|