vxe-pc-ui 4.16.3 → 4.16.4

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 (43) hide show
  1. package/dist/all.esm.js +19 -13
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/date-picker/src/date-picker.js +7 -4
  5. package/es/date-range-picker/src/date-range-picker.js +5 -2
  6. package/es/icon/style.css +1 -1
  7. package/es/icon-picker/src/icon-picker.js +5 -5
  8. package/es/style.css +1 -1
  9. package/es/style.min.css +1 -1
  10. package/es/ui/index.js +1 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/lib/date-picker/src/date-picker.js +7 -4
  13. package/lib/date-picker/src/date-picker.min.js +1 -1
  14. package/lib/date-range-picker/src/date-range-picker.js +5 -2
  15. package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
  16. package/lib/icon/style/style.css +1 -1
  17. package/lib/icon/style/style.min.css +1 -1
  18. package/lib/icon-picker/src/icon-picker.js +6 -5
  19. package/lib/icon-picker/src/icon-picker.min.js +1 -1
  20. package/lib/index.umd.js +20 -13
  21. package/lib/index.umd.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 +1 -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/package.json +1 -1
  29. package/packages/date-picker/src/date-picker.ts +8 -4
  30. package/packages/date-range-picker/src/date-range-picker.ts +6 -2
  31. package/packages/icon-picker/src/icon-picker.ts +5 -5
  32. /package/es/icon/{iconfont.1783607056967.ttf → iconfont.1783654856324.ttf} +0 -0
  33. /package/es/icon/{iconfont.1783607056967.woff → iconfont.1783654856324.woff} +0 -0
  34. /package/es/icon/{iconfont.1783607056967.woff2 → iconfont.1783654856324.woff2} +0 -0
  35. /package/es/{iconfont.1783607056967.ttf → iconfont.1783654856324.ttf} +0 -0
  36. /package/es/{iconfont.1783607056967.woff → iconfont.1783654856324.woff} +0 -0
  37. /package/es/{iconfont.1783607056967.woff2 → iconfont.1783654856324.woff2} +0 -0
  38. /package/lib/icon/style/{iconfont.1783607056967.ttf → iconfont.1783654856324.ttf} +0 -0
  39. /package/lib/icon/style/{iconfont.1783607056967.woff → iconfont.1783654856324.woff} +0 -0
  40. /package/lib/icon/style/{iconfont.1783607056967.woff2 → iconfont.1783654856324.woff2} +0 -0
  41. /package/lib/{iconfont.1783607056967.ttf → iconfont.1783654856324.ttf} +0 -0
  42. /package/lib/{iconfont.1783607056967.woff → iconfont.1783654856324.woff} +0 -0
  43. /package/lib/{iconfont.1783607056967.woff2 → iconfont.1783654856324.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.3"}`;
84
+ const uiVersion = `ui v${"4.16.4"}`;
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.3";
98
+ const version = "4.16.4";
99
99
  VxeUI.uiVersion = version;
100
100
  VxeUI.dynamicApp = dynamicApp;
101
101
  function config(options) {
@@ -20187,7 +20187,7 @@ var VxeDatePickerComponent = defineVxeComponent({
20187
20187
  if (hasTimestampValueType(valueFormat)) {
20188
20188
  const dateVal = parseDateValue(value, type, { valueFormat: dateValueFormat });
20189
20189
  const timeNum = dateVal ? dateVal.getTime() : null;
20190
- emit('update:modelValue', timeNum);
20190
+ emitModel(timeNum);
20191
20191
  if (modelValue !== timeNum) {
20192
20192
  dispatchEvent('change', { value: timeNum }, evnt);
20193
20193
  // 自动更新校验状态
@@ -20198,7 +20198,7 @@ var VxeDatePickerComponent = defineVxeComponent({
20198
20198
  }
20199
20199
  else if (hasDateValueType(valueFormat)) {
20200
20200
  const dateVal = parseDateValue(value, type, { valueFormat: dateValueFormat });
20201
- emit('update:modelValue', dateVal);
20201
+ emitModel(dateVal);
20202
20202
  if (modelValue && dateVal ? XEUtils.toStringDate(modelValue).getTime() !== dateVal.getTime() : modelValue !== dateVal) {
20203
20203
  dispatchEvent('change', { value: dateVal }, evnt);
20204
20204
  // 自动更新校验状态
@@ -20208,7 +20208,7 @@ var VxeDatePickerComponent = defineVxeComponent({
20208
20208
  }
20209
20209
  }
20210
20210
  else {
20211
- emit('update:modelValue', value);
20211
+ emitModel(value);
20212
20212
  if (XEUtils.toValueString(modelValue) !== value) {
20213
20213
  dispatchEvent('change', { value }, evnt);
20214
20214
  // 自动更新校验状态
@@ -21036,11 +21036,14 @@ var VxeDatePickerComponent = defineVxeComponent({
21036
21036
  const dispatchEvent = (type, params, evnt) => {
21037
21037
  emit(type, createEvent(evnt, { $datePicker: $xeDatePicker }, params));
21038
21038
  };
21039
+ const emitModel = (value) => {
21040
+ emit('update:modelValue', value);
21041
+ };
21039
21042
  const datePickerMethods = {
21040
21043
  dispatchEvent,
21041
21044
  setModelValue(value) {
21042
21045
  reactData.inputValue = value;
21043
- emit('update:modelValue', value);
21046
+ emitModel(value);
21044
21047
  },
21045
21048
  setModelValueByEvent(evnt, value) {
21046
21049
  handleChange(value || '', evnt);
@@ -21887,7 +21890,7 @@ var VxeDateRangePickerComponent = defineVxeComponent({
21887
21890
  reactData.selectEdValue = endRest;
21888
21891
  const value = getRangeValue(startRest, endRest);
21889
21892
  const isFinish = (startRest && endRest) || (!startRest && !endRest);
21890
- emit('update:modelValue', value);
21893
+ emitModel(value);
21891
21894
  emit('update:startValue', startRest || '');
21892
21895
  emit('update:endValue', endRest || '');
21893
21896
  if (XEUtils.toValueString(modelValue) !== value) {
@@ -22488,13 +22491,16 @@ var VxeDateRangePickerComponent = defineVxeComponent({
22488
22491
  const dispatchEvent = (type, params, evnt) => {
22489
22492
  emit(type, createEvent(evnt, { $dateRangePicker: $xeDateRangePicker }, params));
22490
22493
  };
22494
+ const emitModel = (value) => {
22495
+ emit('update:modelValue', value);
22496
+ };
22491
22497
  dateRangePickerMethods = {
22492
22498
  dispatchEvent,
22493
22499
  setModelValue(startValue, endValue) {
22494
22500
  reactData.selectStValue = startValue || '';
22495
22501
  reactData.selectEdValue = endValue || '';
22496
22502
  const value = getRangeValue(startValue, endValue);
22497
- emit('update:modelValue', value);
22503
+ emitModel(value);
22498
22504
  },
22499
22505
  setModelValueByEvent(evnt, startValue, endValue) {
22500
22506
  handleChange(startValue || '', endValue || '', evnt);
@@ -26155,7 +26161,7 @@ var VxeIconPickerComponent = defineVxeComponent({
26155
26161
  }
26156
26162
  return getI18n$2('vxe.base.pleaseSelect');
26157
26163
  });
26158
- const computePanelStyle = computed(() => {
26164
+ const computeWrapperStyle = computed(() => {
26159
26165
  const popupOpts = computePopupOpts.value;
26160
26166
  const { chunkSize, height, maxHeight } = popupOpts;
26161
26167
  const stys = {
@@ -26211,7 +26217,7 @@ var VxeIconPickerComponent = defineVxeComponent({
26211
26217
  const panelElem = refOptionPanel.value;
26212
26218
  const btnTransfer = computeBtnTransfer.value;
26213
26219
  const popupOpts = computePopupOpts.value;
26214
- const { width } = popupOpts;
26220
+ const { width, transfer } = popupOpts;
26215
26221
  const handleStyle = () => {
26216
26222
  const ppObj = updatePanelPlacement(targetElem, panelElem, {
26217
26223
  placement: popupOpts.placement || placement,
@@ -26224,7 +26230,7 @@ var VxeIconPickerComponent = defineVxeComponent({
26224
26230
  if (width) {
26225
26231
  Object.assign(panelStyle, {
26226
26232
  width: toCssUnit(width),
26227
- minWidth: undefined
26233
+ minWidth: transfer ? undefined : toCssUnit(width)
26228
26234
  });
26229
26235
  }
26230
26236
  reactData.panelStyle = panelStyle;
@@ -26567,7 +26573,7 @@ var VxeIconPickerComponent = defineVxeComponent({
26567
26573
  const btnTransfer = computeBtnTransfer.value;
26568
26574
  const formReadonly = computeFormReadonly.value;
26569
26575
  const inpPlaceholder = computeInpPlaceholder.value;
26570
- const panelStyle = computePanelStyle.value;
26576
+ const wrapperStyle = computeWrapperStyle.value;
26571
26577
  const popupOpts = computePopupOpts.value;
26572
26578
  const ppClassName = popupOpts.className || props.popupClassName;
26573
26579
  if (formReadonly) {
@@ -26643,7 +26649,7 @@ var VxeIconPickerComponent = defineVxeComponent({
26643
26649
  initialized && (visiblePanel || isAniVisible)
26644
26650
  ? h('div', {
26645
26651
  class: 'vxe-ico-picker--panel-wrapper',
26646
- style: panelStyle
26652
+ style: wrapperStyle
26647
26653
  }, [
26648
26654
  filterable
26649
26655
  ? h('div', {