vxe-pc-ui 4.9.13 → 4.9.15

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 (61) hide show
  1. package/es/countdown/src/countdown.js +2 -1
  2. package/es/icon/style.css +1 -1
  3. package/es/input/src/input.js +1 -1
  4. package/es/radio/src/button.js +26 -13
  5. package/es/radio/src/group.js +3 -3
  6. package/es/radio/src/radio.js +26 -13
  7. package/es/slider/src/slider.js +7 -1
  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/countdown/src/countdown.js +4 -1
  13. package/lib/countdown/src/countdown.min.js +1 -1
  14. package/lib/icon/style/style.css +1 -1
  15. package/lib/icon/style/style.min.css +1 -1
  16. package/lib/index.umd.js +99 -38
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/input/src/input.js +1 -1
  19. package/lib/input/src/input.min.js +1 -1
  20. package/lib/radio/src/button.js +36 -14
  21. package/lib/radio/src/button.min.js +1 -1
  22. package/lib/radio/src/group.js +4 -3
  23. package/lib/radio/src/group.min.js +1 -1
  24. package/lib/radio/src/radio.js +37 -14
  25. package/lib/radio/src/radio.min.js +1 -1
  26. package/lib/slider/src/slider.js +13 -1
  27. package/lib/slider/src/slider.min.js +1 -1
  28. package/lib/style.css +1 -1
  29. package/lib/style.min.css +1 -1
  30. package/lib/ui/index.js +1 -1
  31. package/lib/ui/index.min.js +1 -1
  32. package/lib/ui/src/log.js +1 -1
  33. package/lib/ui/src/log.min.js +1 -1
  34. package/package.json +2 -2
  35. package/packages/countdown/src/countdown.ts +2 -1
  36. package/packages/input/src/input.ts +1 -1
  37. package/packages/radio/src/button.ts +28 -14
  38. package/packages/radio/src/group.ts +3 -3
  39. package/packages/radio/src/radio.ts +28 -14
  40. package/packages/slider/src/slider.ts +7 -1
  41. package/types/components/gantt-plugins/extend-gantt-chart.d.ts +22 -0
  42. package/types/components/gantt-plugins/index.d.ts +1 -0
  43. package/types/components/gantt.d.ts +43 -0
  44. package/types/components/radio-button.d.ts +12 -2
  45. package/types/components/radio-group.d.ts +9 -2
  46. package/types/components/radio.d.ts +7 -1
  47. package/types/components/slider.d.ts +28 -1
  48. package/types/components/table-plugins/extend-cell-area.d.ts +2 -0
  49. package/types/components/table.d.ts +10 -0
  50. /package/es/icon/{iconfont.1756803060105.ttf → iconfont.1757057037549.ttf} +0 -0
  51. /package/es/icon/{iconfont.1756803060105.woff → iconfont.1757057037549.woff} +0 -0
  52. /package/es/icon/{iconfont.1756803060105.woff2 → iconfont.1757057037549.woff2} +0 -0
  53. /package/es/{iconfont.1756803060105.ttf → iconfont.1757057037549.ttf} +0 -0
  54. /package/es/{iconfont.1756803060105.woff → iconfont.1757057037549.woff} +0 -0
  55. /package/es/{iconfont.1756803060105.woff2 → iconfont.1757057037549.woff2} +0 -0
  56. /package/lib/icon/style/{iconfont.1756803060105.ttf → iconfont.1757057037549.ttf} +0 -0
  57. /package/lib/icon/style/{iconfont.1756803060105.woff → iconfont.1757057037549.woff} +0 -0
  58. /package/lib/icon/style/{iconfont.1756803060105.woff2 → iconfont.1757057037549.woff2} +0 -0
  59. /package/lib/{iconfont.1756803060105.ttf → iconfont.1757057037549.ttf} +0 -0
  60. /package/lib/{iconfont.1756803060105.woff → iconfont.1757057037549.woff} +0 -0
  61. /package/lib/{iconfont.1756803060105.woff2 → iconfont.1757057037549.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -2352,7 +2352,7 @@ if (typeof window !== 'undefined') {
2352
2352
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
2353
2353
  var es_array_push = __webpack_require__(4114);
2354
2354
  ;// CONCATENATED MODULE: ./node_modules/@vxe-ui/core/es/src/core.js
2355
- const coreVersion = "4.2.11";
2355
+ const coreVersion = "4.2.12";
2356
2356
  const VxeCore = {
2357
2357
  coreVersion,
2358
2358
  uiVersion: '',
@@ -2952,7 +2952,7 @@ function createLog(type, name) {
2952
2952
  return msg;
2953
2953
  };
2954
2954
  }
2955
- const version = "4.2.11";
2955
+ const version = "4.2.12";
2956
2956
  const log = {
2957
2957
  create: createLog,
2958
2958
  warn: createLog('warn', `v${version}`),
@@ -3588,14 +3588,14 @@ function checkDynamic() {
3588
3588
  }
3589
3589
  ;// CONCATENATED MODULE: ./packages/ui/src/log.ts
3590
3590
 
3591
- const log_version = `ui v${"4.9.13"}`;
3591
+ const log_version = `ui v${"4.9.15"}`;
3592
3592
  const warnLog = log.create('warn', log_version);
3593
3593
  const errLog = log.create('error', log_version);
3594
3594
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
3595
3595
 
3596
3596
 
3597
3597
 
3598
- const ui_version = "4.9.13";
3598
+ const ui_version = "4.9.15";
3599
3599
  index_esm_VxeUI.uiVersion = ui_version;
3600
3600
  index_esm_VxeUI.dynamicApp = dynamicApp;
3601
3601
  function config(options) {
@@ -13801,7 +13801,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
13801
13801
  } else if (['number', 'integer', 'float'].includes(type)) {
13802
13802
  warnLog('vxe.error.useNew', [`<vxe-input type="${type}" ... />`, `<vxe-number-input type="${type}" ... />`]);
13803
13803
  } else if (['password'].includes(type)) {
13804
- warnLog('vxe.error.useNew', [`<vxe-input type="${type}" ... />`, `<vxe-password-input type="${type}" ... />`]);
13804
+ warnLog('vxe.error.useNew', [`<vxe-input type="${type}" ... />`, '<vxe-password-input ... />']);
13805
13805
  }
13806
13806
  globalEvents.on($xeInput, 'mousewheel', handleGlobalMousewheelEvent);
13807
13807
  globalEvents.on($xeInput, 'mousedown', handleGlobalMousedownEvent);
@@ -16114,7 +16114,10 @@ const ColorPicker = VxeColorPicker;
16114
16114
  const {
16115
16115
  currNum
16116
16116
  } = reactData;
16117
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getDateDiff(Date.now(), Date.now() + currNum);
16117
+ const diffRest = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getDateDiff(Date.now(), Date.now() + currNum);
16118
+ return Object.assign(diffRest, {
16119
+ done: !(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(diffRest.status) ? diffRest.status : diffRest.done)
16120
+ });
16118
16121
  });
16119
16122
  const computeFormatLabel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
16120
16123
  const {
@@ -32802,9 +32805,9 @@ const Pulldown = VxePulldown;
32802
32805
  name: 'VxeRadio',
32803
32806
  props: {
32804
32807
  modelValue: [String, Number, Boolean],
32805
- label: {
32808
+ checkedValue: {
32806
32809
  type: [String, Number, Boolean],
32807
- default: null
32810
+ default: undefined
32808
32811
  },
32809
32812
  title: [String, Number],
32810
32813
  content: [String, Number],
@@ -32820,6 +32823,13 @@ const Pulldown = VxePulldown;
32820
32823
  size: {
32821
32824
  type: String,
32822
32825
  default: () => getConfig().radio.size || getConfig().size
32826
+ },
32827
+ /**
32828
+ * 已废弃,被 checkedValue 替换
32829
+ */
32830
+ label: {
32831
+ type: [String, Number, Boolean],
32832
+ default: null
32823
32833
  }
32824
32834
  },
32825
32835
  emits: ['update:modelValue', 'change'],
@@ -32864,38 +32874,52 @@ const Pulldown = VxePulldown;
32864
32874
  });
32865
32875
  const computeChecked = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
32866
32876
  const {
32867
- label
32877
+ label,
32878
+ checkedValue
32868
32879
  } = props;
32869
- return $xeRadioGroup ? $xeRadioGroup.props.modelValue === label : props.modelValue === label;
32880
+ const radioValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(checkedValue) ? label : checkedValue;
32881
+ return $xeRadioGroup ? $xeRadioGroup.props.modelValue === radioValue : props.modelValue === radioValue;
32870
32882
  });
32871
- const handleValue = (label, evnt) => {
32883
+ const handleValue = (checkedValue, evnt) => {
32872
32884
  if ($xeRadioGroup) {
32873
32885
  $xeRadioGroup.handleChecked({
32874
- label
32886
+ label: checkedValue,
32887
+ checkedValue
32875
32888
  }, evnt);
32876
32889
  } else {
32877
- emit('update:modelValue', label);
32890
+ emit('update:modelValue', checkedValue);
32878
32891
  dispatchEvent('change', {
32879
- value: label,
32880
- label
32892
+ value: checkedValue,
32893
+ label: checkedValue,
32894
+ checkedValue
32881
32895
  }, evnt);
32882
32896
  // 自动更新校验状态
32883
32897
  if ($xeForm && formItemInfo) {
32884
- $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, label);
32898
+ $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, checkedValue);
32885
32899
  }
32886
32900
  }
32887
32901
  };
32888
32902
  const changeEvent = evnt => {
32889
32903
  const isDisabled = computeIsDisabled.value;
32890
32904
  if (!isDisabled) {
32891
- handleValue(props.label, evnt);
32905
+ const {
32906
+ label,
32907
+ checkedValue
32908
+ } = props;
32909
+ const radioValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(checkedValue) ? label : checkedValue;
32910
+ handleValue(radioValue, evnt);
32892
32911
  }
32893
32912
  };
32894
32913
  const clickEvent = evnt => {
32895
32914
  const isDisabled = computeIsDisabled.value;
32896
32915
  const isStrict = computeStrict.value;
32897
32916
  if (!isDisabled && !isStrict) {
32898
- if (props.label === ($xeRadioGroup ? $xeRadioGroup.props.modelValue : props.modelValue)) {
32917
+ const {
32918
+ label,
32919
+ checkedValue
32920
+ } = props;
32921
+ const radioValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(checkedValue) ? label : checkedValue;
32922
+ if (radioValue === ($xeRadioGroup ? $xeRadioGroup.props.modelValue : props.modelValue)) {
32899
32923
  handleValue(null, evnt);
32900
32924
  }
32901
32925
  }
@@ -32912,14 +32936,16 @@ const Pulldown = VxePulldown;
32912
32936
  Object.assign($xeRadio, radioMethods, radioPrivateMethods);
32913
32937
  const renderVN = () => {
32914
32938
  const {
32915
- label
32939
+ label,
32940
+ checkedValue
32916
32941
  } = props;
32942
+ const radioValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(checkedValue) ? label : checkedValue;
32917
32943
  const vSize = computeSize.value;
32918
32944
  const isDisabled = computeIsDisabled.value;
32919
32945
  const name = computeName.value;
32920
32946
  const isChecked = computeChecked.value;
32921
32947
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('label', {
32922
- key: label,
32948
+ key: radioValue,
32923
32949
  class: ['vxe-radio vxe-radio--default', {
32924
32950
  [`size--${vSize}`]: vSize,
32925
32951
  'is--checked': isChecked,
@@ -32970,9 +32996,9 @@ const Radio = VxeRadio;
32970
32996
  name: 'VxeRadioButton',
32971
32997
  props: {
32972
32998
  modelValue: [String, Number, Boolean],
32973
- label: {
32999
+ checkedValue: {
32974
33000
  type: [String, Number, Boolean],
32975
- default: null
33001
+ default: undefined
32976
33002
  },
32977
33003
  title: [String, Number],
32978
33004
  content: [String, Number],
@@ -32987,6 +33013,13 @@ const Radio = VxeRadio;
32987
33013
  size: {
32988
33014
  type: String,
32989
33015
  default: () => getConfig().radioButton.size || getConfig().size
33016
+ },
33017
+ /**
33018
+ * 已废弃,被 checkedValue 替换
33019
+ */
33020
+ label: {
33021
+ type: [String, Number, Boolean],
33022
+ default: null
32990
33023
  }
32991
33024
  },
32992
33025
  emits: ['update:modelValue', 'change'],
@@ -33031,9 +33064,11 @@ const Radio = VxeRadio;
33031
33064
  });
33032
33065
  const computeChecked = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
33033
33066
  const {
33034
- label
33067
+ label,
33068
+ checkedValue
33035
33069
  } = props;
33036
- return $xeRadioGroup ? $xeRadioGroup.props.modelValue === label : props.modelValue === label;
33070
+ const radioValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(checkedValue) ? label : checkedValue;
33071
+ return $xeRadioGroup ? $xeRadioGroup.props.modelValue === radioValue : props.modelValue === radioValue;
33037
33072
  });
33038
33073
  const radioButtonMethods = {
33039
33074
  dispatchEvent(type, params, evnt) {
@@ -33044,48 +33079,61 @@ const Radio = VxeRadio;
33044
33079
  };
33045
33080
  const radioButtonPrivateMethods = {};
33046
33081
  Object.assign($xeRadioButton, radioButtonMethods, radioButtonPrivateMethods);
33047
- const handleValue = (label, evnt) => {
33082
+ const handleValue = (checkedValue, evnt) => {
33048
33083
  if ($xeRadioGroup) {
33049
33084
  $xeRadioGroup.handleChecked({
33050
- label
33085
+ label: checkedValue,
33086
+ checkedValue
33051
33087
  }, evnt);
33052
33088
  } else {
33053
- emit('update:modelValue', label);
33089
+ emit('update:modelValue', checkedValue);
33054
33090
  radioButtonMethods.dispatchEvent('change', {
33055
- value: label,
33056
- label
33091
+ value: checkedValue,
33092
+ label: checkedValue
33057
33093
  }, evnt);
33058
33094
  // 自动更新校验状态
33059
33095
  if ($xeForm && formItemInfo) {
33060
- $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, label);
33096
+ $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, checkedValue);
33061
33097
  }
33062
33098
  }
33063
33099
  };
33064
33100
  const changeEvent = evnt => {
33065
33101
  const isDisabled = computeIsDisabled.value;
33066
33102
  if (!isDisabled) {
33067
- handleValue(props.label, evnt);
33103
+ const {
33104
+ label,
33105
+ checkedValue
33106
+ } = props;
33107
+ const radioValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(checkedValue) ? label : checkedValue;
33108
+ handleValue(radioValue, evnt);
33068
33109
  }
33069
33110
  };
33070
33111
  const clickEvent = evnt => {
33071
33112
  const isDisabled = computeIsDisabled.value;
33072
33113
  const isStrict = computeStrict.value;
33073
33114
  if (!isDisabled && !isStrict) {
33074
- if (props.label === ($xeRadioGroup ? $xeRadioGroup.props.modelValue : props.modelValue)) {
33115
+ const {
33116
+ label,
33117
+ checkedValue
33118
+ } = props;
33119
+ const radioValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(checkedValue) ? label : checkedValue;
33120
+ if (radioValue === ($xeRadioGroup ? $xeRadioGroup.props.modelValue : props.modelValue)) {
33075
33121
  handleValue(null, evnt);
33076
33122
  }
33077
33123
  }
33078
33124
  };
33079
33125
  const renderVN = () => {
33080
33126
  const {
33081
- label
33127
+ label,
33128
+ checkedValue
33082
33129
  } = props;
33130
+ const radioValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(checkedValue) ? label : checkedValue;
33083
33131
  const vSize = computeSize.value;
33084
33132
  const isDisabled = computeIsDisabled.value;
33085
33133
  const name = computeName.value;
33086
33134
  const isChecked = computeChecked.value;
33087
33135
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('label', {
33088
- key: label,
33136
+ key: radioValue,
33089
33137
  class: ['vxe-radio vxe-radio--button', {
33090
33138
  [`size--${vSize}`]: vSize,
33091
33139
  'is--disabled': isDisabled
@@ -33208,11 +33256,12 @@ const RadioButton = VxeRadioButton;
33208
33256
  };
33209
33257
  const radioGroupPrivateMethods = {
33210
33258
  handleChecked(params, evnt) {
33211
- const value = params.label;
33259
+ const value = params.checkedValue;
33212
33260
  emit('update:modelValue', value);
33213
33261
  dispatchEvent('change', {
33214
33262
  value,
33215
- label: value
33263
+ label: value,
33264
+ checkedValue: value
33216
33265
  }, evnt);
33217
33266
  // 自动更新校验状态
33218
33267
  if ($xeForm && formItemInfo) {
@@ -33239,7 +33288,7 @@ const RadioButton = VxeRadioButton;
33239
33288
  }, defaultSlot ? defaultSlot({}) : options ? options.map(item => {
33240
33289
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(btnComp, {
33241
33290
  key: item[valueField],
33242
- label: item[valueField],
33291
+ checkedValue: item[valueField],
33243
33292
  content: item[labelField],
33244
33293
  disabled: item[disabledField]
33245
33294
  });
@@ -34834,7 +34883,7 @@ const SplitPane = VxeSplitPane;
34834
34883
  default: null
34835
34884
  }
34836
34885
  },
34837
- emits: ['update:modelValue', 'change'],
34886
+ emits: ['update:modelValue', 'change', 'track-dragstart', 'track-dragover', 'track-dragend'],
34838
34887
  setup(props, context) {
34839
34888
  const {
34840
34889
  emit
@@ -35001,15 +35050,27 @@ const SplitPane = VxeSplitPane;
35001
35050
  } else {
35002
35051
  reactData.startValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().floor(Math.max(minNum, Math.min(maxNum, trackWidth * (maxNum - minNum))));
35003
35052
  }
35053
+ dispatchEvent('track-dragover', {
35054
+ startValue: reactData.startValue,
35055
+ endValue: reactData.endValue
35056
+ }, evnt);
35004
35057
  }
35005
35058
  updateBarStyle();
35006
35059
  };
35007
35060
  document.onmouseup = evnt => {
35008
35061
  document.onmousemove = null;
35009
35062
  document.onmouseup = null;
35063
+ dispatchEvent('track-dragend', {
35064
+ startValue: reactData.startValue,
35065
+ endValue: reactData.endValue
35066
+ }, evnt);
35010
35067
  changeEvent(evnt);
35011
35068
  updateBarStyle();
35012
35069
  };
35070
+ dispatchEvent('track-dragstart', {
35071
+ startValue: reactData.startValue,
35072
+ endValue: reactData.endValue
35073
+ }, evnt);
35013
35074
  }
35014
35075
  };
35015
35076
  const handleStartMousedownEvent = evnt => {