vxe-pc-ui 4.9.36 → 4.9.38

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 (58) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/input/src/input.js +6 -3
  3. package/es/number-input/src/number-input.js +5 -0
  4. package/es/password-input/src/password-input.js +9 -7
  5. package/es/style.css +1 -1
  6. package/es/style.min.css +1 -1
  7. package/es/table-select/src/table-select.js +27 -12
  8. package/es/textarea/src/textarea.js +3 -1
  9. package/es/ui/index.js +1 -1
  10. package/es/ui/src/log.js +1 -1
  11. package/lib/icon/style/style.css +1 -1
  12. package/lib/icon/style/style.min.css +1 -1
  13. package/lib/index.umd.js +81 -34
  14. package/lib/index.umd.min.js +1 -1
  15. package/lib/input/src/input.js +10 -4
  16. package/lib/input/src/input.min.js +1 -1
  17. package/lib/number-input/src/number-input.js +13 -1
  18. package/lib/number-input/src/number-input.min.js +1 -1
  19. package/lib/password-input/src/password-input.js +13 -10
  20. package/lib/password-input/src/password-input.min.js +1 -1
  21. package/lib/style.css +1 -1
  22. package/lib/style.min.css +1 -1
  23. package/lib/table-select/src/table-select.js +39 -16
  24. package/lib/table-select/src/table-select.min.js +1 -1
  25. package/lib/textarea/src/textarea.js +4 -1
  26. package/lib/textarea/src/textarea.min.js +1 -1
  27. package/lib/ui/index.js +1 -1
  28. package/lib/ui/index.min.js +1 -1
  29. package/lib/ui/src/log.js +1 -1
  30. package/lib/ui/src/log.min.js +1 -1
  31. package/package.json +1 -1
  32. package/packages/input/src/input.ts +6 -3
  33. package/packages/number-input/src/number-input.ts +5 -0
  34. package/packages/password-input/src/password-input.ts +9 -7
  35. package/packages/table-select/src/table-select.ts +27 -12
  36. package/packages/textarea/src/textarea.ts +3 -1
  37. package/types/components/column.d.ts +17 -0
  38. package/types/components/grid.d.ts +8 -0
  39. package/types/components/input.d.ts +6 -0
  40. package/types/components/number-input.d.ts +1 -0
  41. package/types/components/password-input.d.ts +1 -0
  42. package/types/components/table-module/filter.d.ts +50 -4
  43. package/types/components/table-select.d.ts +7 -7
  44. package/types/components/table.d.ts +33 -4
  45. package/types/components/textarea.d.ts +7 -1
  46. package/types/ui/renderer.d.ts +24 -0
  47. /package/es/icon/{iconfont.1758801549529.ttf → iconfont.1759031228909.ttf} +0 -0
  48. /package/es/icon/{iconfont.1758801549529.woff → iconfont.1759031228909.woff} +0 -0
  49. /package/es/icon/{iconfont.1758801549529.woff2 → iconfont.1759031228909.woff2} +0 -0
  50. /package/es/{iconfont.1758801549529.ttf → iconfont.1759031228909.ttf} +0 -0
  51. /package/es/{iconfont.1758801549529.woff → iconfont.1759031228909.woff} +0 -0
  52. /package/es/{iconfont.1758801549529.woff2 → iconfont.1759031228909.woff2} +0 -0
  53. /package/lib/icon/style/{iconfont.1758801549529.ttf → iconfont.1759031228909.ttf} +0 -0
  54. /package/lib/icon/style/{iconfont.1758801549529.woff → iconfont.1759031228909.woff} +0 -0
  55. /package/lib/icon/style/{iconfont.1758801549529.woff2 → iconfont.1759031228909.woff2} +0 -0
  56. /package/lib/{iconfont.1758801549529.ttf → iconfont.1759031228909.ttf} +0 -0
  57. /package/lib/{iconfont.1758801549529.woff → iconfont.1759031228909.woff} +0 -0
  58. /package/lib/{iconfont.1758801549529.woff2 → iconfont.1759031228909.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -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.36"}`;
3591
+ const log_version = `ui v${"4.9.38"}`;
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.36";
3598
+ const ui_version = "4.9.38";
3599
3599
  index_esm_VxeUI.uiVersion = ui_version;
3600
3600
  index_esm_VxeUI.dynamicApp = dynamicApp;
3601
3601
  function config(options) {
@@ -11301,7 +11301,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
11301
11301
  // 已废弃
11302
11302
  autocomplete: String
11303
11303
  },
11304
- emits: ['update:modelValue', 'input', 'change', 'keydown', 'keyup', 'wheel', 'click', 'focus', 'blur', 'clear', 'search-click', 'toggle-visible', 'prev-number', 'next-number', 'prefix-click', 'suffix-click', 'date-prev', 'date-today', 'date-next'],
11304
+ emits: ['update:modelValue', 'input', 'change', 'keydown', 'keyup', 'wheel', 'click', 'focus', 'blur', 'clear', 'lazy-change', 'search-click', 'toggle-visible', 'prev-number', 'next-number', 'prefix-click', 'suffix-click', 'date-prev', 'date-today', 'date-next'],
11305
11305
  setup(props, context) {
11306
11306
  const {
11307
11307
  slots,
@@ -12019,6 +12019,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
12019
12019
  if (!inpImmediate) {
12020
12020
  triggerEvent(evnt);
12021
12021
  }
12022
+ $xeInput.dispatchEvent('lazy-change', {
12023
+ value: reactData.inputValue
12024
+ }, evnt);
12022
12025
  };
12023
12026
  const blurEvent = evnt => {
12024
12027
  const {
@@ -12063,7 +12066,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
12063
12066
  const {
12064
12067
  inputValue
12065
12068
  } = reactData;
12066
- inputMethods.dispatchEvent('prefix-click', {
12069
+ $xeInput.dispatchEvent('prefix-click', {
12067
12070
  value: inputValue
12068
12071
  }, evnt);
12069
12072
  }
@@ -12093,7 +12096,10 @@ function toFloatValueFixed(inputValue, digitsValue) {
12093
12096
  }
12094
12097
  }
12095
12098
  handleChange('', evnt);
12096
- inputMethods.dispatchEvent('clear', {
12099
+ $xeInput.dispatchEvent('clear', {
12100
+ value
12101
+ }, evnt);
12102
+ $xeInput.dispatchEvent('lazy-change', {
12097
12103
  value
12098
12104
  }, evnt);
12099
12105
  };
@@ -12103,7 +12109,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
12103
12109
  const {
12104
12110
  inputValue
12105
12111
  } = reactData;
12106
- inputMethods.dispatchEvent('suffix-click', {
12112
+ $xeInput.dispatchEvent('suffix-click', {
12107
12113
  value: inputValue
12108
12114
  }, evnt);
12109
12115
  }
@@ -14037,7 +14043,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
14037
14043
  // 已废弃
14038
14044
  autocomplete: String
14039
14045
  },
14040
- emits: ['update:modelValue', 'input', 'change', 'keydown', 'keyup', 'wheel', 'click', 'focus', 'blur', 'clear', 'plus-number', 'minus-number', 'prefix-click', 'suffix-click',
14046
+ emits: ['update:modelValue', 'input', 'change', 'keydown', 'keyup', 'wheel', 'click', 'focus', 'blur', 'clear', 'lazy-change', 'plus-number', 'minus-number', 'prefix-click', 'suffix-click',
14041
14047
  // 已废弃
14042
14048
  'prev-number', 'next-number'],
14043
14049
  setup(props, context) {
@@ -14332,6 +14338,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
14332
14338
  if (!inpImmediate) {
14333
14339
  triggerEvent(evnt);
14334
14340
  }
14341
+ $xeNumberInput.dispatchEvent('lazy-change', {
14342
+ value: reactData.inputValue
14343
+ }, evnt);
14335
14344
  };
14336
14345
  const focusEvent = evnt => {
14337
14346
  const inputReadonly = computeInputReadonly.value;
@@ -14362,6 +14371,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
14362
14371
  numberInputMethods.dispatchEvent('clear', {
14363
14372
  value
14364
14373
  }, evnt);
14374
+ $xeNumberInput.dispatchEvent('lazy-change', {
14375
+ value
14376
+ }, evnt);
14365
14377
  };
14366
14378
  const clickSuffixEvent = evnt => {
14367
14379
  const isDisabled = computeIsDisabled.value;
@@ -14535,6 +14547,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
14535
14547
  numberInputMethods.dispatchEvent('plus-number', {
14536
14548
  value: reactData.inputValue
14537
14549
  }, evnt);
14550
+ $xeNumberInput.dispatchEvent('lazy-change', {
14551
+ value: reactData.inputValue
14552
+ }, evnt);
14538
14553
  // 已废弃
14539
14554
  numberInputMethods.dispatchEvent('next-number', {
14540
14555
  value: reactData.inputValue
@@ -14551,6 +14566,9 @@ function toFloatValueFixed(inputValue, digitsValue) {
14551
14566
  numberInputMethods.dispatchEvent('minus-number', {
14552
14567
  value: reactData.inputValue
14553
14568
  }, evnt);
14569
+ $xeNumberInput.dispatchEvent('lazy-change', {
14570
+ value: reactData.inputValue
14571
+ }, evnt);
14554
14572
  // 已废弃
14555
14573
  numberInputMethods.dispatchEvent('prev-number', {
14556
14574
  value: reactData.inputValue
@@ -31909,7 +31927,7 @@ const Pager = VxePager;
31909
31927
  // 已废弃
31910
31928
  autocomplete: String
31911
31929
  },
31912
- emits: ['update:modelValue', 'input', 'change', 'click', 'focus', 'blur', 'clear', 'toggle-visible', 'prefix-click', 'suffix-click'],
31930
+ emits: ['update:modelValue', 'input', 'change', 'click', 'focus', 'blur', 'clear', 'lazy-change', 'toggle-visible', 'prefix-click', 'suffix-click'],
31913
31931
  setup(props, context) {
31914
31932
  const {
31915
31933
  emit,
@@ -32019,12 +32037,12 @@ const Pager = VxePager;
32019
32037
  };
32020
32038
  const changeEvent = evnt => {
32021
32039
  triggerEvent(evnt);
32022
- const {
32023
- inputValue
32024
- } = reactData;
32040
+ $xePasswordInput.dispatchEvent('lazy-change', {
32041
+ value: reactData.inputValue
32042
+ }, evnt);
32025
32043
  // 自动更新校验状态
32026
32044
  if ($xeForm && formItemInfo) {
32027
- $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, inputValue);
32045
+ $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, reactData.inputValue);
32028
32046
  }
32029
32047
  };
32030
32048
  const focusEvent = evnt => {
@@ -32036,7 +32054,7 @@ const Pager = VxePager;
32036
32054
  inputValue
32037
32055
  } = reactData;
32038
32056
  const value = inputValue;
32039
- passwordInputMethods.dispatchEvent('blur', {
32057
+ $xePasswordInput.dispatchEvent('blur', {
32040
32058
  value
32041
32059
  }, evnt);
32042
32060
  // 自动更新校验状态
@@ -32055,7 +32073,7 @@ const Pager = VxePager;
32055
32073
  if (!disabled && !readonly) {
32056
32074
  reactData.showPwd = !showPwd;
32057
32075
  }
32058
- passwordInputMethods.dispatchEvent('toggle-visible', {
32076
+ $xePasswordInput.dispatchEvent('toggle-visible', {
32059
32077
  visible: reactData.showPwd
32060
32078
  }, evnt);
32061
32079
  };
@@ -32065,9 +32083,12 @@ const Pager = VxePager;
32065
32083
  const clearValueEvent = (evnt, value) => {
32066
32084
  focus();
32067
32085
  handleChange('', evnt);
32068
- passwordInputMethods.dispatchEvent('clear', {
32086
+ $xePasswordInput.dispatchEvent('clear', {
32069
32087
  value
32070
32088
  }, evnt);
32089
+ $xePasswordInput.dispatchEvent('lazy-change', {
32090
+ value: reactData.inputValue
32091
+ }, evnt);
32071
32092
  };
32072
32093
  const clickSuffixEvent = evnt => {
32073
32094
  const {
@@ -32077,7 +32098,7 @@ const Pager = VxePager;
32077
32098
  const {
32078
32099
  inputValue
32079
32100
  } = reactData;
32080
- passwordInputMethods.dispatchEvent('suffix-click', {
32101
+ $xePasswordInput.dispatchEvent('suffix-click', {
32081
32102
  value: inputValue
32082
32103
  }, evnt);
32083
32104
  }
@@ -32090,7 +32111,7 @@ const Pager = VxePager;
32090
32111
  const {
32091
32112
  inputValue
32092
32113
  } = reactData;
32093
- passwordInputMethods.dispatchEvent('prefix-click', {
32114
+ $xePasswordInput.dispatchEvent('prefix-click', {
32094
32115
  value: inputValue
32095
32116
  }, evnt);
32096
32117
  }
@@ -35994,6 +36015,13 @@ const TabPane = VxeTabPane;
35994
36015
  function getRowUniqueId() {
35995
36016
  return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId('row_');
35996
36017
  }
36018
+ function table_select_createInternalData() {
36019
+ return {
36020
+ // hpTimeout: undefined,
36021
+ // vpTimeout: undefined,
36022
+ fullRowMaps: {}
36023
+ };
36024
+ }
35997
36025
  /* harmony default export */ var table_select = (defineVxeComponent({
35998
36026
  name: 'VxeTableSelect',
35999
36027
  props: {
@@ -36057,7 +36085,6 @@ function getRowUniqueId() {
36057
36085
  initialized: false,
36058
36086
  tableColumns: [],
36059
36087
  fullOptionList: [],
36060
- fullRowMaps: {},
36061
36088
  panelIndex: 0,
36062
36089
  panelStyle: {},
36063
36090
  panelPlacement: null,
@@ -36066,10 +36093,7 @@ function getRowUniqueId() {
36066
36093
  isAniVisible: false,
36067
36094
  isActivated: false
36068
36095
  });
36069
- const internalData = {
36070
- // hpTimeout: undefined,
36071
- // vpTimeout: undefined
36072
- };
36096
+ const internalData = table_select_createInternalData();
36073
36097
  const refMaps = {
36074
36098
  refElem
36075
36099
  };
@@ -36144,6 +36168,7 @@ function getRowUniqueId() {
36144
36168
  const computeSelectGridOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
36145
36169
  const gridOpts = computeGridOpts.value;
36146
36170
  const {
36171
+ pagerConfig,
36147
36172
  proxyConfig
36148
36173
  } = gridOpts;
36149
36174
  if (proxyConfig) {
@@ -36156,13 +36181,24 @@ function getRowUniqueId() {
36156
36181
  Object.assign(newProxyConfig.ajax, {
36157
36182
  query(params, ...args) {
36158
36183
  return Promise.resolve(ajaxMethods(params, ...args)).then(rest => {
36159
- const listProp = resConfigs.list;
36160
- const tableData = (listProp ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(listProp) ? listProp({
36161
- data: rest,
36162
- $table: null,
36163
- $grid: null,
36164
- $gantt: null
36165
- }) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(rest, listProp) : rest) || [];
36184
+ let tableData = [];
36185
+ if (pagerConfig) {
36186
+ const resultProp = resConfigs.result;
36187
+ tableData = (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(resultProp) ? resultProp({
36188
+ data: rest,
36189
+ $table: null,
36190
+ $grid: null,
36191
+ $gantt: null
36192
+ }) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(rest, resultProp || 'result')) || [];
36193
+ } else {
36194
+ const listProp = resConfigs.list;
36195
+ tableData = (listProp ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(listProp) ? listProp({
36196
+ data: rest,
36197
+ $table: null,
36198
+ $grid: null,
36199
+ $gantt: null
36200
+ }) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(rest, listProp) : rest) || [];
36201
+ }
36166
36202
  cacheDataMap(tableData || []);
36167
36203
  return rest;
36168
36204
  });
@@ -36182,10 +36218,16 @@ function getRowUniqueId() {
36182
36218
  lazyOptions
36183
36219
  } = props;
36184
36220
  const {
36185
- fullRowMaps
36221
+ fullOptionList
36186
36222
  } = reactData;
36223
+ const {
36224
+ fullRowMaps
36225
+ } = internalData;
36187
36226
  const valueField = computeValueField.value;
36188
36227
  const labelField = computeLabelField.value;
36228
+ if (!fullOptionList) {
36229
+ return '';
36230
+ }
36189
36231
  return (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue) ? modelValue : [modelValue]).map(val => {
36190
36232
  const cacheItem = fullRowMaps[val];
36191
36233
  if (cacheItem) {
@@ -36251,7 +36293,7 @@ function getRowUniqueId() {
36251
36293
  const getRowsByValue = modelValue => {
36252
36294
  const {
36253
36295
  fullRowMaps
36254
- } = reactData;
36296
+ } = internalData;
36255
36297
  const rows = [];
36256
36298
  const vals = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(modelValue) ? [] : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue) ? modelValue : [modelValue];
36257
36299
  vals.forEach(val => {
@@ -36323,7 +36365,8 @@ function getRowUniqueId() {
36323
36365
  const valueField = computeValueField.value;
36324
36366
  const gridOpts = computeGridOpts.value;
36325
36367
  const {
36326
- treeConfig
36368
+ treeConfig,
36369
+ pagerConfig
36327
36370
  } = gridOpts;
36328
36371
  const rowMaps = {};
36329
36372
  const keyMaps = {};
@@ -36353,7 +36396,7 @@ function getRowUniqueId() {
36353
36396
  });
36354
36397
  }
36355
36398
  reactData.fullOptionList = dataList || options || [];
36356
- reactData.fullRowMaps = rowMaps;
36399
+ internalData.fullRowMaps = pagerConfig ? Object.assign({}, internalData.fullRowMaps, rowMaps) : rowMaps;
36357
36400
  updateModel(props.modelValue);
36358
36401
  };
36359
36402
  const updateZindex = () => {
@@ -36714,6 +36757,7 @@ function getRowUniqueId() {
36714
36757
  globalEvents.off($xeTableSelect, 'mousedown');
36715
36758
  globalEvents.off($xeTableSelect, 'blur');
36716
36759
  globalEvents.off($xeTableSelect, 'resize');
36760
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, table_select_createInternalData());
36717
36761
  });
36718
36762
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
36719
36763
  if (!VxeTableGridComponent) {
@@ -38203,7 +38247,7 @@ let autoTxtElem;
38203
38247
  // 已废弃
38204
38248
  maxlength: [String, Number]
38205
38249
  },
38206
- emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'click', 'change', 'focus', 'blur'],
38250
+ emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'click', 'change', 'focus', 'blur', 'lazy-change'],
38207
38251
  setup(props, context) {
38208
38252
  const {
38209
38253
  emit
@@ -38397,6 +38441,9 @@ let autoTxtElem;
38397
38441
  } else {
38398
38442
  handleChange(reactData.inputValue, evnt);
38399
38443
  }
38444
+ $xeTextarea.dispatchEvent('lazy-change', {
38445
+ value: reactData.inputValue
38446
+ }, evnt);
38400
38447
  };
38401
38448
  const blurEvent = evnt => {
38402
38449
  const {