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.
Files changed (46) hide show
  1. package/dist/all.esm.js +13 -7
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/form/style.css +2 -2
  5. package/es/form/style.min.css +1 -1
  6. package/es/icon/style.css +1 -1
  7. package/es/select/src/select.js +10 -5
  8. package/es/style.css +1 -1
  9. package/es/style.min.css +1 -1
  10. package/es/ui/index.js +2 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/es/vxe-form/style.css +2 -2
  13. package/es/vxe-form/style.min.css +1 -1
  14. package/lib/form/style/style.css +2 -2
  15. package/lib/form/style/style.min.css +1 -1
  16. package/lib/icon/style/style.css +1 -1
  17. package/lib/icon/style/style.min.css +1 -1
  18. package/lib/index.umd.js +15 -5
  19. package/lib/index.umd.min.js +1 -1
  20. package/lib/select/src/select.js +12 -3
  21. package/lib/select/src/select.min.js +1 -1
  22. package/lib/style.css +1 -1
  23. package/lib/style.min.css +1 -1
  24. package/lib/ui/index.js +2 -1
  25. package/lib/ui/index.min.js +1 -1
  26. package/lib/ui/src/log.js +1 -1
  27. package/lib/ui/src/log.min.js +1 -1
  28. package/lib/vxe-form/style/style.css +2 -2
  29. package/lib/vxe-form/style/style.min.css +1 -1
  30. package/package.json +1 -1
  31. package/packages/select/src/select.ts +10 -5
  32. package/packages/ui/index.ts +1 -0
  33. package/styles/components/form.scss +2 -2
  34. package/types/components/select.d.ts +3 -1
  35. /package/es/icon/{iconfont.1784893283450.ttf → iconfont.1785391082558.ttf} +0 -0
  36. /package/es/icon/{iconfont.1784893283450.woff → iconfont.1785391082558.woff} +0 -0
  37. /package/es/icon/{iconfont.1784893283450.woff2 → iconfont.1785391082558.woff2} +0 -0
  38. /package/es/{iconfont.1784893283450.ttf → iconfont.1785391082558.ttf} +0 -0
  39. /package/es/{iconfont.1784893283450.woff → iconfont.1785391082558.woff} +0 -0
  40. /package/es/{iconfont.1784893283450.woff2 → iconfont.1785391082558.woff2} +0 -0
  41. /package/lib/icon/style/{iconfont.1784893283450.ttf → iconfont.1785391082558.ttf} +0 -0
  42. /package/lib/icon/style/{iconfont.1784893283450.woff → iconfont.1785391082558.woff} +0 -0
  43. /package/lib/icon/style/{iconfont.1784893283450.woff2 → iconfont.1785391082558.woff2} +0 -0
  44. /package/lib/{iconfont.1784893283450.ttf → iconfont.1785391082558.ttf} +0 -0
  45. /package/lib/{iconfont.1784893283450.woff → iconfont.1785391082558.woff} +0 -0
  46. /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.22"}`;
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.22";
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, null);
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, null);
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, null);
32164
+ clearValueEvent(evnt, emptyValue);
32159
32165
  }
32160
32166
  }
32161
32167
  }