vxe-pc-ui 4.16.22 → 4.16.24
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 +13 -7
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/form/style.css +2 -2
- package/es/form/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/select/src/select.js +10 -5
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-form/style.css +2 -2
- package/es/vxe-form/style.min.css +1 -1
- package/lib/form/style/style.css +2 -2
- package/lib/form/style/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 +15 -5
- package/lib/index.umd.min.js +1 -1
- package/lib/select/src/select.js +12 -3
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +2 -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-form/style/style.css +2 -2
- package/lib/vxe-form/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/select/src/select.ts +10 -5
- package/packages/ui/index.ts +1 -0
- package/styles/components/form.scss +2 -2
- package/types/components/select.d.ts +3 -1
- /package/es/icon/{iconfont.1784893283450.ttf → iconfont.1785391082558.ttf} +0 -0
- /package/es/icon/{iconfont.1784893283450.woff → iconfont.1785391082558.woff} +0 -0
- /package/es/icon/{iconfont.1784893283450.woff2 → iconfont.1785391082558.woff2} +0 -0
- /package/es/{iconfont.1784893283450.ttf → iconfont.1785391082558.ttf} +0 -0
- /package/es/{iconfont.1784893283450.woff → iconfont.1785391082558.woff} +0 -0
- /package/es/{iconfont.1784893283450.woff2 → iconfont.1785391082558.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1784893283450.ttf → iconfont.1785391082558.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1784893283450.woff → iconfont.1785391082558.woff} +0 -0
- /package/lib/icon/style/{iconfont.1784893283450.woff2 → iconfont.1785391082558.woff2} +0 -0
- /package/lib/{iconfont.1784893283450.ttf → iconfont.1785391082558.ttf} +0 -0
- /package/lib/{iconfont.1784893283450.woff → iconfont.1785391082558.woff} +0 -0
- /package/lib/{iconfont.1784893283450.woff2 → iconfont.1785391082558.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -81,7 +81,7 @@ function checkDynamic() {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const { log } = VxeUI;
|
|
84
|
-
const uiVersion = `ui v${"4.16.
|
|
84
|
+
const uiVersion = `ui v${"4.16.24"}`;
|
|
85
85
|
function createComponentLog(name) {
|
|
86
86
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
87
87
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -95,7 +95,7 @@ function createComponentLog(name) {
|
|
|
95
95
|
const warnLog$h = log.create('warn', uiVersion);
|
|
96
96
|
log.create('error', uiVersion);
|
|
97
97
|
|
|
98
|
-
const version = "4.16.
|
|
98
|
+
const version = "4.16.24";
|
|
99
99
|
VxeUI.uiVersion = version;
|
|
100
100
|
VxeUI.dynamicApp = dynamicApp;
|
|
101
101
|
function config(options) {
|
|
@@ -426,6 +426,7 @@ setConfig$1({
|
|
|
426
426
|
row: {},
|
|
427
427
|
segmented: {},
|
|
428
428
|
select: {
|
|
429
|
+
emptyValue: null,
|
|
429
430
|
multiCharOverflow: 8,
|
|
430
431
|
radioConfig: {
|
|
431
432
|
showIcon: true,
|
|
@@ -31330,6 +31331,10 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
31330
31331
|
props: {
|
|
31331
31332
|
modelValue: [String, Number, Boolean, Array],
|
|
31332
31333
|
defaultConfig: Object,
|
|
31334
|
+
emptyValue: {
|
|
31335
|
+
type: [String, Number, Boolean, Array],
|
|
31336
|
+
default: () => getConfig$3().select.emptyValue
|
|
31337
|
+
},
|
|
31333
31338
|
clearable: {
|
|
31334
31339
|
type: Boolean,
|
|
31335
31340
|
default: () => getConfig$3().select.clearable
|
|
@@ -31923,8 +31928,9 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
31923
31928
|
dispatchEvent('clear', { value: selectValue }, evnt);
|
|
31924
31929
|
};
|
|
31925
31930
|
const clearEvent = (params) => {
|
|
31931
|
+
const { emptyValue } = props;
|
|
31926
31932
|
const { $event } = params;
|
|
31927
|
-
clearValueEvent($event,
|
|
31933
|
+
clearValueEvent($event, emptyValue);
|
|
31928
31934
|
hideOptionPanel($event);
|
|
31929
31935
|
};
|
|
31930
31936
|
const allCheckedPanelEvent = (params) => {
|
|
@@ -31960,9 +31966,9 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
31960
31966
|
}
|
|
31961
31967
|
};
|
|
31962
31968
|
const clearCheckedPanelEvent = (params) => {
|
|
31963
|
-
const { clearClosable } = props;
|
|
31969
|
+
const { emptyValue, clearClosable } = props;
|
|
31964
31970
|
const { $event } = params;
|
|
31965
|
-
clearValueEvent($event,
|
|
31971
|
+
clearValueEvent($event, emptyValue);
|
|
31966
31972
|
if (clearClosable) {
|
|
31967
31973
|
hideOptionPanel($event);
|
|
31968
31974
|
}
|
|
@@ -32108,7 +32114,7 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
32108
32114
|
return null;
|
|
32109
32115
|
};
|
|
32110
32116
|
const handleGlobalKeydownEvent = (evnt) => {
|
|
32111
|
-
const { clearable } = props;
|
|
32117
|
+
const { emptyValue, clearable } = props;
|
|
32112
32118
|
const { visiblePanel, currentOption } = reactData;
|
|
32113
32119
|
const isDisabled = computeIsDisabled.value;
|
|
32114
32120
|
const popupOpts = computePopupOpts.value;
|
|
@@ -32155,7 +32161,7 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
32155
32161
|
}
|
|
32156
32162
|
if (reactData.isActivated) {
|
|
32157
32163
|
if (isDel && clearable) {
|
|
32158
|
-
clearValueEvent(evnt,
|
|
32164
|
+
clearValueEvent(evnt, emptyValue);
|
|
32159
32165
|
}
|
|
32160
32166
|
}
|
|
32161
32167
|
}
|