vxe-pc-ui 4.17.0 → 4.17.2

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 (73) hide show
  1. package/dist/all.esm.js +297 -152
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/date-picker/src/date-picker.js +6 -2
  5. package/es/date-range-picker/src/date-range-picker.js +6 -2
  6. package/es/icon/style.css +1 -1
  7. package/es/input/src/input.js +79 -51
  8. package/es/number-input/src/number-input.js +31 -23
  9. package/es/password-input/src/password-input.js +133 -62
  10. package/es/password-input/style.css +5 -0
  11. package/es/password-input/style.min.css +1 -1
  12. package/es/style.css +1 -1
  13. package/es/style.min.css +1 -1
  14. package/es/textarea/src/textarea.js +43 -13
  15. package/es/ui/index.js +1 -1
  16. package/es/ui/src/log.js +1 -1
  17. package/es/vxe-password-input/style.css +5 -0
  18. package/es/vxe-password-input/style.min.css +1 -1
  19. package/lib/date-picker/src/date-picker.js +6 -1
  20. package/lib/date-picker/src/date-picker.min.js +1 -1
  21. package/lib/date-range-picker/src/date-range-picker.js +6 -1
  22. package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
  23. package/lib/icon/style/style.css +1 -1
  24. package/lib/icon/style/style.min.css +1 -1
  25. package/lib/index.umd.js +321 -168
  26. package/lib/index.umd.min.js +1 -1
  27. package/lib/input/src/input.js +83 -53
  28. package/lib/input/src/input.min.js +1 -1
  29. package/lib/number-input/src/number-input.js +35 -25
  30. package/lib/number-input/src/number-input.min.js +1 -1
  31. package/lib/password-input/src/password-input.js +140 -71
  32. package/lib/password-input/src/password-input.min.js +1 -1
  33. package/lib/password-input/style/style.css +5 -0
  34. package/lib/password-input/style/style.min.css +1 -1
  35. package/lib/style.css +1 -1
  36. package/lib/style.min.css +1 -1
  37. package/lib/textarea/src/textarea.js +46 -13
  38. package/lib/textarea/src/textarea.min.js +1 -1
  39. package/lib/ui/index.js +1 -1
  40. package/lib/ui/index.min.js +1 -1
  41. package/lib/ui/src/log.js +1 -1
  42. package/lib/ui/src/log.min.js +1 -1
  43. package/lib/vxe-password-input/style/style.css +5 -0
  44. package/lib/vxe-password-input/style/style.min.css +1 -1
  45. package/package.json +1 -1
  46. package/packages/date-picker/src/date-picker.ts +6 -2
  47. package/packages/date-range-picker/src/date-range-picker.ts +6 -2
  48. package/packages/input/src/input.ts +85 -56
  49. package/packages/number-input/src/number-input.ts +32 -25
  50. package/packages/password-input/src/password-input.ts +145 -69
  51. package/packages/textarea/src/textarea.ts +49 -17
  52. package/styles/components/password-input.scss +4 -0
  53. package/types/components/date-picker.d.ts +2 -0
  54. package/types/components/date-range-picker.d.ts +2 -0
  55. package/types/components/input.d.ts +2 -0
  56. package/types/components/number-input.d.ts +2 -0
  57. package/types/components/password-input.d.ts +4 -0
  58. package/types/components/table-module/edit.d.ts +37 -4
  59. package/types/components/table.d.ts +9 -2
  60. package/types/components/textarea.d.ts +2 -0
  61. package/types/ui/renderer.d.ts +9 -3
  62. /package/es/icon/{iconfont.1786782471977.ttf → iconfont.1786868252000.ttf} +0 -0
  63. /package/es/icon/{iconfont.1786782471977.woff → iconfont.1786868252000.woff} +0 -0
  64. /package/es/icon/{iconfont.1786782471977.woff2 → iconfont.1786868252000.woff2} +0 -0
  65. /package/es/{iconfont.1786782471977.ttf → iconfont.1786868252000.ttf} +0 -0
  66. /package/es/{iconfont.1786782471977.woff → iconfont.1786868252000.woff} +0 -0
  67. /package/es/{iconfont.1786782471977.woff2 → iconfont.1786868252000.woff2} +0 -0
  68. /package/lib/icon/style/{iconfont.1786782471977.ttf → iconfont.1786868252000.ttf} +0 -0
  69. /package/lib/icon/style/{iconfont.1786782471977.woff → iconfont.1786868252000.woff} +0 -0
  70. /package/lib/icon/style/{iconfont.1786782471977.woff2 → iconfont.1786868252000.woff2} +0 -0
  71. /package/lib/{iconfont.1786782471977.ttf → iconfont.1786868252000.ttf} +0 -0
  72. /package/lib/{iconfont.1786782471977.woff → iconfont.1786868252000.woff} +0 -0
  73. /package/lib/{iconfont.1786782471977.woff2 → iconfont.1786868252000.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -3346,7 +3346,7 @@ if (typeof window !== 'undefined') {
3346
3346
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
3347
3347
  var es_array_push = __webpack_require__(4114);
3348
3348
  ;// ./node_modules/@vxe-ui/core/es/src/core.js
3349
- const coreVersion = "4.4.18";
3349
+ const coreVersion = "4.4.20";
3350
3350
  const VxeCore = {
3351
3351
  coreVersion,
3352
3352
  uiVersion: '',
@@ -3633,6 +3633,7 @@ const GLOBAL_EVENT_KEYS = {
3633
3633
  PAGE_DOWN: 'PageDown',
3634
3634
  HOME: 'Home',
3635
3635
  END: 'End',
3636
+ PROCESS: 'Process',
3636
3637
  A: 'A',
3637
3638
  X: 'X',
3638
3639
  C: 'C',
@@ -3973,7 +3974,7 @@ function createLog(type, name) {
3973
3974
  return msg;
3974
3975
  };
3975
3976
  }
3976
- const version = "4.4.18";
3977
+ const version = "4.4.20";
3977
3978
  const log = {
3978
3979
  create: createLog,
3979
3980
  warn: createLog('warn', `v${version}`),
@@ -4657,7 +4658,7 @@ function checkDynamic() {
4657
4658
  const {
4658
4659
  log: log_log
4659
4660
  } = VxeUI;
4660
- const uiVersion = `ui v${"4.17.0"}`;
4661
+ const uiVersion = `ui v${"4.17.2"}`;
4661
4662
  function createComponentLog(name) {
4662
4663
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
4663
4664
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -4675,7 +4676,7 @@ const errLog = log_log.create('error', uiVersion);
4675
4676
 
4676
4677
 
4677
4678
 
4678
- const ui_version = "4.17.0";
4679
+ const ui_version = "4.17.2";
4679
4680
  VxeUI.uiVersion = ui_version;
4680
4681
  VxeUI.dynamicApp = dynamicApp;
4681
4682
  function config(options) {
@@ -14662,6 +14663,10 @@ const {
14662
14663
  align: String,
14663
14664
  form: String,
14664
14665
  className: String,
14666
+ inputClassName: {
14667
+ type: String,
14668
+ default: () => getConfig().input.inputClassName
14669
+ },
14665
14670
  size: {
14666
14671
  type: String,
14667
14672
  default: () => getConfig().input.size || getConfig().size
@@ -14806,7 +14811,6 @@ const {
14806
14811
  internalData,
14807
14812
  getRefMaps: () => refMaps
14808
14813
  };
14809
- let inputMethods = {};
14810
14814
  const parseDate = (value, format) => {
14811
14815
  const {
14812
14816
  type
@@ -15325,10 +15329,10 @@ const {
15325
15329
  const {
15326
15330
  type,
15327
15331
  editable,
15328
- multiple,
15329
- readonly
15332
+ multiple
15330
15333
  } = props;
15331
- return readonly || multiple || !editable || type === 'week' || type === 'quarter';
15334
+ const formReadonly = computeFormReadonly.value;
15335
+ return formReadonly || multiple || !editable || type === 'week' || type === 'quarter';
15332
15336
  });
15333
15337
  const computeInputType = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
15334
15338
  const {
@@ -15411,6 +15415,12 @@ const {
15411
15415
  }
15412
15416
  return false;
15413
15417
  });
15418
+ const computeDomValue = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
15419
+ const {
15420
+ inputValue
15421
+ } = reactData;
15422
+ return inputValue;
15423
+ });
15414
15424
  const getNumberValue = val => {
15415
15425
  const {
15416
15426
  type,
@@ -15424,6 +15434,18 @@ const {
15424
15434
  }
15425
15435
  return restVal.slice(0, inpMaxLength);
15426
15436
  };
15437
+ const dispatchEvent = (type, params, evnt) => {
15438
+ emit(type, createEvent(evnt, {
15439
+ $input: $xeInput
15440
+ }, params));
15441
+ };
15442
+ const updateDomValue = () => {
15443
+ const domValue = computeDomValue.value;
15444
+ const inputElem = refInputTarget.value;
15445
+ if (inputElem) {
15446
+ inputElem.value = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(domValue) ? '' : '' + domValue;
15447
+ }
15448
+ };
15427
15449
  const emitModel = value => {
15428
15450
  emit('update:modelValue', value);
15429
15451
  };
@@ -15431,7 +15453,7 @@ const {
15431
15453
  const {
15432
15454
  inputValue
15433
15455
  } = reactData;
15434
- inputMethods.dispatchEvent(evnt.type, {
15456
+ dispatchEvent(evnt.type, {
15435
15457
  value: inputValue
15436
15458
  }, evnt);
15437
15459
  };
@@ -15441,11 +15463,11 @@ const {
15441
15463
  }
15442
15464
  reactData.inputValue = value;
15443
15465
  emitModel(value);
15444
- inputMethods.dispatchEvent('input', {
15466
+ dispatchEvent('input', {
15445
15467
  value
15446
15468
  }, evnt);
15447
15469
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(props.modelValue) !== value) {
15448
- inputMethods.dispatchEvent('change', {
15470
+ dispatchEvent('change', {
15449
15471
  value
15450
15472
  }, evnt);
15451
15473
  if (!$xeSelect && !$xeTreeSelect) {
@@ -15464,7 +15486,7 @@ const {
15464
15486
  if (inpImmediate) {
15465
15487
  handleChange(value, evnt);
15466
15488
  } else {
15467
- inputMethods.dispatchEvent('input', {
15489
+ dispatchEvent('input', {
15468
15490
  value
15469
15491
  }, evnt);
15470
15492
  if (!$xeSelect && !$xeTreeSelect) {
@@ -15486,7 +15508,7 @@ const {
15486
15508
  if (!inpImmediate) {
15487
15509
  triggerEvent(evnt);
15488
15510
  }
15489
- $xeInput.dispatchEvent('lazy-change', {
15511
+ dispatchEvent('lazy-change', {
15490
15512
  value: reactData.inputValue
15491
15513
  }, evnt);
15492
15514
  };
@@ -15503,7 +15525,7 @@ const {
15503
15525
  if (!reactData.visiblePanel) {
15504
15526
  reactData.isActivated = false;
15505
15527
  }
15506
- inputMethods.dispatchEvent('blur', {
15528
+ dispatchEvent('blur', {
15507
15529
  value
15508
15530
  }, evnt);
15509
15531
  if (!$xeSelect && !$xeTreeSelect) {
@@ -15533,7 +15555,7 @@ const {
15533
15555
  const {
15534
15556
  inputValue
15535
15557
  } = reactData;
15536
- $xeInput.dispatchEvent('prefix-click', {
15558
+ dispatchEvent('prefix-click', {
15537
15559
  value: inputValue
15538
15560
  }, evnt);
15539
15561
  }
@@ -15563,10 +15585,10 @@ const {
15563
15585
  }
15564
15586
  }
15565
15587
  handleChange('', evnt);
15566
- $xeInput.dispatchEvent('clear', {
15588
+ dispatchEvent('clear', {
15567
15589
  value
15568
15590
  }, evnt);
15569
- $xeInput.dispatchEvent('lazy-change', {
15591
+ dispatchEvent('lazy-change', {
15570
15592
  value
15571
15593
  }, evnt);
15572
15594
  };
@@ -15576,7 +15598,7 @@ const {
15576
15598
  const {
15577
15599
  inputValue
15578
15600
  } = reactData;
15579
- $xeInput.dispatchEvent('suffix-click', {
15601
+ dispatchEvent('suffix-click', {
15580
15602
  value: inputValue
15581
15603
  }, evnt);
15582
15604
  }
@@ -15844,14 +15866,14 @@ const {
15844
15866
  if (!isDisabled && !inputReadonly) {
15845
15867
  reactData.showPwd = !showPwd;
15846
15868
  }
15847
- inputMethods.dispatchEvent('toggle-visible', {
15869
+ dispatchEvent('toggle-visible', {
15848
15870
  visible: reactData.showPwd
15849
15871
  }, evnt);
15850
15872
  };
15851
15873
  // 密码
15852
15874
  // 搜索
15853
15875
  const searchEvent = evnt => {
15854
- inputMethods.dispatchEvent('search-click', {}, evnt);
15876
+ dispatchEvent('search-click', {}, evnt);
15855
15877
  };
15856
15878
  // 搜索
15857
15879
  // 数值
@@ -15885,7 +15907,7 @@ const {
15885
15907
  if (!isDisabled && !inputReadonly && !isDisabledSubtractNumber) {
15886
15908
  numberChange(false, evnt);
15887
15909
  }
15888
- inputMethods.dispatchEvent('next-number', {
15910
+ dispatchEvent('next-number', {
15889
15911
  value: reactData.inputValue
15890
15912
  }, evnt);
15891
15913
  };
@@ -15903,7 +15925,7 @@ const {
15903
15925
  if (!isDisabled && !inputReadonly && !isDisabledAddNumber) {
15904
15926
  numberChange(true, evnt);
15905
15927
  }
15906
- inputMethods.dispatchEvent('prev-number', {
15928
+ dispatchEvent('prev-number', {
15907
15929
  value: reactData.inputValue
15908
15930
  }, evnt);
15909
15931
  };
@@ -16062,7 +16084,7 @@ const {
16062
16084
  }
16063
16085
  }
16064
16086
  reactData.selectMonth = viewDate;
16065
- inputMethods.dispatchEvent('date-prev', {
16087
+ dispatchEvent('date-prev', {
16066
16088
  viewType: datePanelType,
16067
16089
  viewDate,
16068
16090
  value,
@@ -16076,7 +16098,7 @@ const {
16076
16098
  dateChange(reactData.currentDate);
16077
16099
  hidePanel();
16078
16100
  }
16079
- inputMethods.dispatchEvent('date-today', {
16101
+ dispatchEvent('date-today', {
16080
16102
  type: props.type
16081
16103
  }, evnt);
16082
16104
  };
@@ -16114,7 +16136,7 @@ const {
16114
16136
  }
16115
16137
  }
16116
16138
  reactData.selectMonth = viewDate;
16117
- inputMethods.dispatchEvent('date-next', {
16139
+ dispatchEvent('date-next', {
16118
16140
  viewType: datePanelType,
16119
16141
  viewDate,
16120
16142
  value,
@@ -16695,6 +16717,31 @@ const {
16695
16717
  }
16696
16718
  }
16697
16719
  };
16720
+ const inputMethods = {
16721
+ dispatchEvent,
16722
+ focus() {
16723
+ const inputElem = refInputTarget.value;
16724
+ reactData.isActivated = true;
16725
+ inputElem.focus();
16726
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
16727
+ },
16728
+ blur() {
16729
+ const inputElem = refInputTarget.value;
16730
+ inputElem.blur();
16731
+ reactData.isActivated = false;
16732
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
16733
+ },
16734
+ select() {
16735
+ const inputElem = refInputTarget.value;
16736
+ inputElem.select();
16737
+ reactData.isActivated = false;
16738
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
16739
+ },
16740
+ showPanel,
16741
+ hidePanel,
16742
+ updatePlacement
16743
+ };
16744
+ Object.assign($xeInput, inputMethods);
16698
16745
  const renderDateLabel = (item, label) => {
16699
16746
  const {
16700
16747
  festivalMethod
@@ -17239,39 +17286,10 @@ const {
17239
17286
  }
17240
17287
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
17241
17288
  };
17242
- const dispatchEvent = (type, params, evnt) => {
17243
- emit(type, createEvent(evnt, {
17244
- $input: $xeInput
17245
- }, params));
17246
- };
17247
- inputMethods = {
17248
- dispatchEvent,
17249
- focus() {
17250
- const inputElem = refInputTarget.value;
17251
- reactData.isActivated = true;
17252
- inputElem.focus();
17253
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
17254
- },
17255
- blur() {
17256
- const inputElem = refInputTarget.value;
17257
- inputElem.blur();
17258
- reactData.isActivated = false;
17259
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
17260
- },
17261
- select() {
17262
- const inputElem = refInputTarget.value;
17263
- inputElem.select();
17264
- reactData.isActivated = false;
17265
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
17266
- },
17267
- showPanel,
17268
- hidePanel,
17269
- updatePlacement
17270
- };
17271
- Object.assign($xeInput, inputMethods);
17272
17289
  const renderVN = () => {
17273
17290
  const {
17274
17291
  className,
17292
+ inputClassName,
17275
17293
  controls,
17276
17294
  type,
17277
17295
  title,
@@ -17326,8 +17344,7 @@ const {
17326
17344
  title: title || null
17327
17345
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('input', {
17328
17346
  ref: refInputTarget,
17329
- class: 'vxe-input--inner',
17330
- value: inputValue,
17347
+ class: 'vxe-input--inner' + (inputClassName ? ' ' + inputClassName : ''),
17331
17348
  name,
17332
17349
  type: inputType,
17333
17350
  placeholder: inpPlaceholder,
@@ -17378,6 +17395,19 @@ const {
17378
17395
  reactData.inputValue = props.multiple ? computeDateMultipleLabel.value : reactData.datePanelLabel;
17379
17396
  }
17380
17397
  });
17398
+ const rDvFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
17399
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeFormReadonly, () => {
17400
+ rDvFlag.value++;
17401
+ });
17402
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeDomValue, () => {
17403
+ rDvFlag.value++;
17404
+ });
17405
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(rDvFlag, () => {
17406
+ updateDomValue();
17407
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
17408
+ updateDomValue();
17409
+ });
17410
+ });
17381
17411
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
17382
17412
  const {
17383
17413
  type
@@ -17399,6 +17429,7 @@ const {
17399
17429
  globalEvents.on($xeInput, 'mousedown', handleGlobalMousedownEvent);
17400
17430
  globalEvents.on($xeInput, 'keydown', handleGlobalKeydownEvent);
17401
17431
  globalEvents.on($xeInput, 'blur', handleGlobalBlurEvent);
17432
+ updateDomValue();
17402
17433
  });
17403
17434
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
17404
17435
  numberStopDown();
@@ -21324,6 +21355,10 @@ function hexToRgb(str) {
21324
21355
  align: String,
21325
21356
  form: String,
21326
21357
  className: String,
21358
+ inputClassName: {
21359
+ type: String,
21360
+ default: () => getConfig().numberInput.inputClassName
21361
+ },
21327
21362
  size: {
21328
21363
  type: String,
21329
21364
  default: () => getConfig().numberInput.size || getConfig().size
@@ -21605,6 +21640,12 @@ function hexToRgb(str) {
21605
21640
  }
21606
21641
  return false;
21607
21642
  });
21643
+ const computeInpClassNamevalue = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
21644
+ const {
21645
+ inputClassName
21646
+ } = props;
21647
+ return 'vxe-number-input--input' + (inputClassName ? ' ' + inputClassName : '');
21648
+ });
21608
21649
  const refMaps = {
21609
21650
  refElem,
21610
21651
  refInput: refInputTarget
@@ -21621,7 +21662,11 @@ function hexToRgb(str) {
21621
21662
  getRefMaps: () => refMaps,
21622
21663
  getComputeMaps: () => computeMaps
21623
21664
  };
21624
- let numberInputMethods = {};
21665
+ const dispatchEvent = (type, params, evnt) => {
21666
+ emit(type, createEvent(evnt, {
21667
+ $numberInput: $xeNumberInput
21668
+ }, params));
21669
+ };
21625
21670
  const handleNumberString = val => {
21626
21671
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(val)) {
21627
21672
  return '';
@@ -21656,7 +21701,7 @@ function hexToRgb(str) {
21656
21701
  const {
21657
21702
  inputValue
21658
21703
  } = reactData;
21659
- numberInputMethods.dispatchEvent(evnt.type, {
21704
+ dispatchEvent(evnt.type, {
21660
21705
  value: inputValue
21661
21706
  }, evnt);
21662
21707
  };
@@ -21672,11 +21717,11 @@ function hexToRgb(str) {
21672
21717
  reactData.inputValue = inputValue || '';
21673
21718
  });
21674
21719
  }
21675
- numberInputMethods.dispatchEvent('input', {
21720
+ dispatchEvent('input', {
21676
21721
  value
21677
21722
  }, evnt);
21678
21723
  if (isChange) {
21679
- numberInputMethods.dispatchEvent('change', {
21724
+ dispatchEvent('change', {
21680
21725
  value
21681
21726
  }, evnt);
21682
21727
  // 自动更新校验状态
@@ -21692,7 +21737,7 @@ function hexToRgb(str) {
21692
21737
  if (inpImmediate) {
21693
21738
  handleChange(value, inputValue, evnt);
21694
21739
  } else {
21695
- numberInputMethods.dispatchEvent('input', {
21740
+ dispatchEvent('input', {
21696
21741
  value
21697
21742
  }, evnt);
21698
21743
  // 自动更新校验状态
@@ -21711,7 +21756,7 @@ function hexToRgb(str) {
21711
21756
  if (!inpImmediate) {
21712
21757
  triggerEvent(evnt);
21713
21758
  }
21714
- $xeNumberInput.dispatchEvent('lazy-change', {
21759
+ dispatchEvent('lazy-change', {
21715
21760
  value: reactData.inputValue
21716
21761
  }, evnt);
21717
21762
  };
@@ -21733,7 +21778,7 @@ function hexToRgb(str) {
21733
21778
  const {
21734
21779
  inputValue
21735
21780
  } = reactData;
21736
- numberInputMethods.dispatchEvent('prefix-click', {
21781
+ dispatchEvent('prefix-click', {
21737
21782
  value: inputValue
21738
21783
  }, evnt);
21739
21784
  }
@@ -21741,10 +21786,10 @@ function hexToRgb(str) {
21741
21786
  const clearValueEvent = (evnt, value) => {
21742
21787
  focus();
21743
21788
  handleChange(null, '', evnt);
21744
- numberInputMethods.dispatchEvent('clear', {
21789
+ dispatchEvent('clear', {
21745
21790
  value
21746
21791
  }, evnt);
21747
- $xeNumberInput.dispatchEvent('lazy-change', {
21792
+ dispatchEvent('lazy-change', {
21748
21793
  value
21749
21794
  }, evnt);
21750
21795
  };
@@ -21754,7 +21799,7 @@ function hexToRgb(str) {
21754
21799
  const {
21755
21800
  inputValue
21756
21801
  } = reactData;
21757
- numberInputMethods.dispatchEvent('suffix-click', {
21802
+ dispatchEvent('suffix-click', {
21758
21803
  value: inputValue
21759
21804
  }, evnt);
21760
21805
  }
@@ -21882,7 +21927,7 @@ function hexToRgb(str) {
21882
21927
  afterCheckValue();
21883
21928
  reactData.isFocus = false;
21884
21929
  reactData.isActivated = false;
21885
- numberInputMethods.dispatchEvent('blur', {
21930
+ dispatchEvent('blur', {
21886
21931
  value
21887
21932
  }, evnt);
21888
21933
  // 自动更新校验状态
@@ -21921,14 +21966,14 @@ function hexToRgb(str) {
21921
21966
  numberChange(true, evnt);
21922
21967
  }
21923
21968
  reactData.isActivated = true;
21924
- numberInputMethods.dispatchEvent('plus-number', {
21969
+ dispatchEvent('plus-number', {
21925
21970
  value: reactData.inputValue
21926
21971
  }, evnt);
21927
- $xeNumberInput.dispatchEvent('lazy-change', {
21972
+ dispatchEvent('lazy-change', {
21928
21973
  value: reactData.inputValue
21929
21974
  }, evnt);
21930
21975
  // 已废弃
21931
- numberInputMethods.dispatchEvent('next-number', {
21976
+ dispatchEvent('next-number', {
21932
21977
  value: reactData.inputValue
21933
21978
  }, evnt);
21934
21979
  };
@@ -21940,14 +21985,14 @@ function hexToRgb(str) {
21940
21985
  numberChange(false, evnt);
21941
21986
  }
21942
21987
  reactData.isActivated = true;
21943
- numberInputMethods.dispatchEvent('minus-number', {
21988
+ dispatchEvent('minus-number', {
21944
21989
  value: reactData.inputValue
21945
21990
  }, evnt);
21946
- $xeNumberInput.dispatchEvent('lazy-change', {
21991
+ dispatchEvent('lazy-change', {
21947
21992
  value: reactData.inputValue
21948
21993
  }, evnt);
21949
21994
  // 已废弃
21950
- numberInputMethods.dispatchEvent('prev-number', {
21995
+ dispatchEvent('prev-number', {
21951
21996
  value: reactData.inputValue
21952
21997
  }, evnt);
21953
21998
  };
@@ -22151,12 +22196,7 @@ function hexToRgb(str) {
22151
22196
  afterCheckValue();
22152
22197
  }
22153
22198
  };
22154
- const dispatchEvent = (type, params, evnt) => {
22155
- emit(type, createEvent(evnt, {
22156
- $numberInput: $xeNumberInput
22157
- }, params));
22158
- };
22159
- numberInputMethods = {
22199
+ const numberInputMethods = {
22160
22200
  dispatchEvent,
22161
22201
  focus() {
22162
22202
  const inputReadonly = computeInputReadonly.value;
@@ -22247,6 +22287,7 @@ function hexToRgb(str) {
22247
22287
  const inputReadonly = computeInputReadonly.value;
22248
22288
  const inpMaxLength = computeInpMaxLength.value;
22249
22289
  const inpPlaceholder = computeInpPlaceholder.value;
22290
+ const inpClassName = computeInpClassNamevalue.value;
22250
22291
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
22251
22292
  key: 'ni',
22252
22293
  class: 'vxe-number-input--input-wrapper'
@@ -22254,10 +22295,10 @@ function hexToRgb(str) {
22254
22295
  class: 'vxe-number-input--input-inner'
22255
22296
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('input', {
22256
22297
  ref: refInputTarget,
22257
- class: 'vxe-number-input--input',
22258
- value: !isFocus && type === 'amount' ? numLabel : inputValue,
22298
+ class: inpClassName,
22259
22299
  name,
22260
22300
  type: 'text',
22301
+ value: !isFocus && type === 'amount' ? numLabel : inputValue,
22261
22302
  placeholder: inpPlaceholder,
22262
22303
  maxlength: inpMaxLength,
22263
22304
  readonly: inputReadonly,
@@ -26796,6 +26837,10 @@ function date_picker_createInternalData() {
26796
26837
  },
26797
26838
  form: String,
26798
26839
  className: String,
26840
+ inputClassName: {
26841
+ type: String,
26842
+ default: () => getConfig().datePicker.inputClassName
26843
+ },
26799
26844
  zIndex: Number,
26800
26845
  size: {
26801
26846
  type: String,
@@ -28363,6 +28408,7 @@ function date_picker_createInternalData() {
28363
28408
  const renderVN = () => {
28364
28409
  const {
28365
28410
  className,
28411
+ inputClassName,
28366
28412
  type,
28367
28413
  name,
28368
28414
  autoComplete
@@ -28407,7 +28453,7 @@ function date_picker_createInternalData() {
28407
28453
  class: 'vxe-date-picker--wrapper'
28408
28454
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('input', {
28409
28455
  ref: refInputTarget,
28410
- class: 'vxe-date-picker--inner',
28456
+ class: 'vxe-date-picker--inner' + (inputClassName ? ' ' + inputClassName : ''),
28411
28457
  value: labelFlag ? inputLabel : '',
28412
28458
  name,
28413
28459
  type: 'text',
@@ -28563,6 +28609,10 @@ function date_range_picker_createInternalData() {
28563
28609
  },
28564
28610
  form: String,
28565
28611
  className: String,
28612
+ inputClassName: {
28613
+ type: String,
28614
+ default: () => getConfig().dateRangePicker.inputClassName
28615
+ },
28566
28616
  zIndex: Number,
28567
28617
  size: {
28568
28618
  type: String,
@@ -30032,6 +30082,7 @@ function date_range_picker_createInternalData() {
30032
30082
  const renderVN = () => {
30033
30083
  const {
30034
30084
  className,
30085
+ inputClassName,
30035
30086
  type,
30036
30087
  name,
30037
30088
  autoComplete
@@ -30072,7 +30123,7 @@ function date_range_picker_createInternalData() {
30072
30123
  class: 'vxe-date-range-picker--wrapper'
30073
30124
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('input', {
30074
30125
  ref: refInputTarget,
30075
- class: 'vxe-date-range-picker--inner',
30126
+ class: 'vxe-date-range-picker--inner' + (inputClassName ? ' ' + inputClassName : ''),
30076
30127
  value: inputLabel,
30077
30128
  name,
30078
30129
  type: 'text',
@@ -42162,6 +42213,10 @@ const Pager = VxePager;
42162
42213
  default: 'off'
42163
42214
  },
42164
42215
  className: String,
42216
+ inputClassName: {
42217
+ type: String,
42218
+ default: () => getConfig().passwordInput.inputClassName
42219
+ },
42165
42220
  size: {
42166
42221
  type: String,
42167
42222
  default: () => getConfig().passwordInput.size || getConfig().size
@@ -42172,6 +42227,10 @@ const Pager = VxePager;
42172
42227
  type: Boolean,
42173
42228
  default: () => getConfig().passwordInput.controls
42174
42229
  },
42230
+ editable: {
42231
+ type: Boolean,
42232
+ default: true
42233
+ },
42175
42234
  // 已废弃
42176
42235
  autocomplete: String
42177
42236
  },
@@ -42205,16 +42264,9 @@ const Pager = VxePager;
42205
42264
  reactData,
42206
42265
  getRefMaps: () => refMaps
42207
42266
  };
42208
- let passwordInputMethods = {};
42209
42267
  const computeIsClearable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
42210
42268
  return props.clearable;
42211
42269
  });
42212
- const computeInpReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
42213
- const {
42214
- readonly
42215
- } = props;
42216
- return readonly;
42217
- });
42218
42270
  const computeInpPlaceholder = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
42219
42271
  const {
42220
42272
  placeholder
@@ -42228,6 +42280,36 @@ const Pager = VxePager;
42228
42280
  }
42229
42281
  return getI18n('vxe.base.pleaseInput');
42230
42282
  });
42283
+ const computeFormReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
42284
+ if (getConfig().inputReadonly === 'obsolete') {
42285
+ if ($xeForm) {
42286
+ return $xeForm.props.readonly;
42287
+ }
42288
+ return false;
42289
+ }
42290
+ const {
42291
+ readonly
42292
+ } = props;
42293
+ if (readonly === null) {
42294
+ if ($xeForm) {
42295
+ return $xeForm.props.readonly;
42296
+ }
42297
+ return false;
42298
+ }
42299
+ return readonly;
42300
+ });
42301
+ const computeIsDisabled = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
42302
+ const {
42303
+ disabled
42304
+ } = props;
42305
+ if (disabled === null) {
42306
+ if ($xeForm) {
42307
+ return $xeForm.props.disabled;
42308
+ }
42309
+ return false;
42310
+ }
42311
+ return disabled;
42312
+ });
42231
42313
  const computeInputType = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
42232
42314
  const {
42233
42315
  showPwd
@@ -42243,11 +42325,36 @@ const Pager = VxePager;
42243
42325
  } = props;
42244
42326
  return immediate;
42245
42327
  });
42328
+ const computeInputReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
42329
+ const {
42330
+ editable
42331
+ } = props;
42332
+ const formReadonly = computeFormReadonly.value;
42333
+ return formReadonly || !editable;
42334
+ });
42335
+ const computeDomValue = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
42336
+ const {
42337
+ inputValue
42338
+ } = reactData;
42339
+ return inputValue;
42340
+ });
42341
+ const dispatchEvent = (type, params, evnt) => {
42342
+ emit(type, createEvent(evnt, {
42343
+ $passwordInput: $xePasswordInput
42344
+ }, params));
42345
+ };
42346
+ const updateDomValue = () => {
42347
+ const domValue = computeDomValue.value;
42348
+ const inputElem = refInputTarget.value;
42349
+ if (inputElem) {
42350
+ inputElem.value = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(domValue) ? '' : '' + domValue;
42351
+ }
42352
+ };
42246
42353
  const triggerEvent = evnt => {
42247
42354
  const {
42248
42355
  inputValue
42249
42356
  } = reactData;
42250
- passwordInputMethods.dispatchEvent(evnt.type, {
42357
+ dispatchEvent(evnt.type, {
42251
42358
  value: inputValue
42252
42359
  }, evnt);
42253
42360
  };
@@ -42257,7 +42364,7 @@ const Pager = VxePager;
42257
42364
  if (inpImmediate) {
42258
42365
  handleChange(value, evnt);
42259
42366
  } else {
42260
- passwordInputMethods.dispatchEvent('input', {
42367
+ dispatchEvent('input', {
42261
42368
  value
42262
42369
  }, evnt);
42263
42370
  }
@@ -42270,11 +42377,11 @@ const Pager = VxePager;
42270
42377
  const handleChange = (value, evnt) => {
42271
42378
  reactData.inputValue = value;
42272
42379
  emit('update:modelValue', value);
42273
- passwordInputMethods.dispatchEvent('input', {
42380
+ dispatchEvent('input', {
42274
42381
  value
42275
42382
  }, evnt);
42276
42383
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(props.modelValue) !== value) {
42277
- passwordInputMethods.dispatchEvent('change', {
42384
+ dispatchEvent('change', {
42278
42385
  value
42279
42386
  }, evnt);
42280
42387
  // 自动更新校验状态
@@ -42285,7 +42392,7 @@ const Pager = VxePager;
42285
42392
  };
42286
42393
  const changeEvent = evnt => {
42287
42394
  triggerEvent(evnt);
42288
- $xePasswordInput.dispatchEvent('lazy-change', {
42395
+ dispatchEvent('lazy-change', {
42289
42396
  value: reactData.inputValue
42290
42397
  }, evnt);
42291
42398
  // 自动更新校验状态
@@ -42303,7 +42410,7 @@ const Pager = VxePager;
42303
42410
  } = reactData;
42304
42411
  const value = inputValue;
42305
42412
  reactData.isActivated = false;
42306
- $xePasswordInput.dispatchEvent('blur', {
42413
+ dispatchEvent('blur', {
42307
42414
  value
42308
42415
  }, evnt);
42309
42416
  // 自动更新校验状态
@@ -42312,17 +42419,15 @@ const Pager = VxePager;
42312
42419
  }
42313
42420
  };
42314
42421
  const passwordToggleEvent = evnt => {
42315
- const {
42316
- readonly,
42317
- disabled
42318
- } = props;
42319
42422
  const {
42320
42423
  showPwd
42321
42424
  } = reactData;
42322
- if (!disabled && !readonly) {
42425
+ const isDisabled = computeIsDisabled.value;
42426
+ const formReadonly = computeFormReadonly.value;
42427
+ if (!isDisabled && !formReadonly) {
42323
42428
  reactData.showPwd = !showPwd;
42324
42429
  }
42325
- $xePasswordInput.dispatchEvent('toggle-visible', {
42430
+ dispatchEvent('toggle-visible', {
42326
42431
  visible: reactData.showPwd
42327
42432
  }, evnt);
42328
42433
  };
@@ -42332,39 +42437,57 @@ const Pager = VxePager;
42332
42437
  const clearValueEvent = (evnt, value) => {
42333
42438
  focus();
42334
42439
  handleChange('', evnt);
42335
- $xePasswordInput.dispatchEvent('clear', {
42440
+ dispatchEvent('clear', {
42336
42441
  value
42337
42442
  }, evnt);
42338
- $xePasswordInput.dispatchEvent('lazy-change', {
42443
+ dispatchEvent('lazy-change', {
42339
42444
  value: reactData.inputValue
42340
42445
  }, evnt);
42341
42446
  };
42342
42447
  const clickSuffixEvent = evnt => {
42343
- const {
42344
- disabled
42345
- } = props;
42346
- if (!disabled) {
42448
+ const isDisabled = computeIsDisabled.value;
42449
+ if (!isDisabled) {
42347
42450
  const {
42348
42451
  inputValue
42349
42452
  } = reactData;
42350
- $xePasswordInput.dispatchEvent('suffix-click', {
42453
+ dispatchEvent('suffix-click', {
42351
42454
  value: inputValue
42352
42455
  }, evnt);
42353
42456
  }
42354
42457
  };
42355
42458
  const clickPrefixEvent = evnt => {
42356
- const {
42357
- disabled
42358
- } = props;
42359
- if (!disabled) {
42459
+ const isDisabled = computeIsDisabled.value;
42460
+ if (!isDisabled) {
42360
42461
  const {
42361
42462
  inputValue
42362
42463
  } = reactData;
42363
- $xePasswordInput.dispatchEvent('prefix-click', {
42464
+ dispatchEvent('prefix-click', {
42364
42465
  value: inputValue
42365
42466
  }, evnt);
42366
42467
  }
42367
42468
  };
42469
+ const passwordInputMethods = {
42470
+ dispatchEvent,
42471
+ focus() {
42472
+ const inputElem = refInputTarget.value;
42473
+ reactData.isActivated = true;
42474
+ inputElem.focus();
42475
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
42476
+ },
42477
+ blur() {
42478
+ const inputElem = refInputTarget.value;
42479
+ inputElem.blur();
42480
+ reactData.isActivated = false;
42481
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
42482
+ },
42483
+ select() {
42484
+ const inputElem = refInputTarget.value;
42485
+ inputElem.select();
42486
+ reactData.isActivated = false;
42487
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
42488
+ }
42489
+ };
42490
+ Object.assign($xePasswordInput, passwordInputMethods);
42368
42491
  const renderPasswordIcon = () => {
42369
42492
  const {
42370
42493
  showPwd
@@ -42392,18 +42515,18 @@ const Pager = VxePager;
42392
42515
  };
42393
42516
  const renderSuffixIcon = () => {
42394
42517
  const {
42395
- disabled,
42396
42518
  suffixIcon,
42397
42519
  controls
42398
42520
  } = props;
42399
42521
  const {
42400
42522
  inputValue
42401
42523
  } = reactData;
42402
- const suffixSlot = slots.suffix;
42524
+ const isDisabled = computeIsDisabled.value;
42403
42525
  const isClearable = computeIsClearable.value;
42526
+ const suffixSlot = slots.suffix;
42404
42527
  return isClearable || controls || suffixSlot || suffixIcon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
42405
42528
  class: ['vxe-password-input--suffix', {
42406
- 'is--clear': isClearable && !disabled && !(inputValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(inputValue))
42529
+ 'is--clear': isClearable && !isDisabled && !(inputValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(inputValue))
42407
42530
  }]
42408
42531
  }, [isClearable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
42409
42532
  class: 'vxe-password-input--clear-icon',
@@ -42417,40 +42540,11 @@ const Pager = VxePager;
42417
42540
  class: suffixIcon
42418
42541
  })]) : renderEmptyElement($xePasswordInput)]) : null;
42419
42542
  };
42420
- passwordInputMethods = {
42421
- dispatchEvent(type, params, evnt) {
42422
- emit(type, createEvent(evnt, {
42423
- $passwordInput: $xePasswordInput
42424
- }, params));
42425
- },
42426
- focus() {
42427
- const inputElem = refInputTarget.value;
42428
- reactData.isActivated = true;
42429
- inputElem.focus();
42430
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
42431
- },
42432
- blur() {
42433
- const inputElem = refInputTarget.value;
42434
- inputElem.blur();
42435
- reactData.isActivated = false;
42436
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
42437
- },
42438
- select() {
42439
- const inputElem = refInputTarget.value;
42440
- inputElem.select();
42441
- reactData.isActivated = false;
42442
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
42443
- }
42444
- };
42445
- Object.assign($xePasswordInput, passwordInputMethods);
42446
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
42447
- reactData.inputValue = val;
42448
- });
42449
42543
  const renderVN = () => {
42450
42544
  const {
42451
42545
  className,
42546
+ inputClassName,
42452
42547
  name,
42453
- disabled,
42454
42548
  readonly,
42455
42549
  autocomplete,
42456
42550
  autoComplete,
@@ -42460,11 +42554,19 @@ const Pager = VxePager;
42460
42554
  inputValue,
42461
42555
  isActivated
42462
42556
  } = reactData;
42557
+ const isDisabled = computeIsDisabled.value;
42558
+ const formReadonly = computeFormReadonly.value;
42559
+ if (formReadonly) {
42560
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
42561
+ ref: refElem,
42562
+ class: ['vxe-password-input--readonly', className]
42563
+ }, getText(inputValue));
42564
+ }
42463
42565
  const vSize = computeSize.value;
42464
- const inpReadonly = computeInpReadonly.value;
42465
42566
  const inputType = computeInputType.value;
42466
42567
  const inpPlaceholder = computeInpPlaceholder.value;
42467
42568
  const isClearable = computeIsClearable.value;
42569
+ const inputReadonly = computeInputReadonly.value;
42468
42570
  const prefix = renderPrefixIcon();
42469
42571
  const suffix = renderSuffixIcon();
42470
42572
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
@@ -42474,22 +42576,21 @@ const Pager = VxePager;
42474
42576
  'is--prefix': !!prefix,
42475
42577
  'is--suffix': !!suffix,
42476
42578
  'is--readonly': readonly,
42477
- 'is--disabled': disabled,
42579
+ 'is--disabled': isDisabled,
42478
42580
  'is--active': isActivated,
42479
- 'show--clear': isClearable && !disabled && !(inputValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(inputValue))
42581
+ 'show--clear': isClearable && !isDisabled && !(inputValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(inputValue))
42480
42582
  }],
42481
42583
  spellcheck: false
42482
42584
  }, [prefix || renderEmptyElement($xePasswordInput), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
42483
42585
  class: 'vxe-password-input--wrapper'
42484
42586
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('input', {
42485
42587
  ref: refInputTarget,
42486
- class: 'vxe-password-input--inner',
42487
- value: inputValue,
42588
+ class: 'vxe-password-input--inner' + (inputClassName ? ' ' + inputClassName : ''),
42488
42589
  name,
42489
42590
  type: inputType,
42490
42591
  placeholder: inpPlaceholder,
42491
- readonly: inpReadonly,
42492
- disabled,
42592
+ readonly: inputReadonly,
42593
+ disabled: isDisabled,
42493
42594
  autocomplete: autocomplete || autoComplete,
42494
42595
  maxlength: maxLength,
42495
42596
  onClick: clickEvent,
@@ -42499,6 +42600,25 @@ const Pager = VxePager;
42499
42600
  onBlur: blurEvent
42500
42601
  })]), suffix || renderEmptyElement($xePasswordInput)]);
42501
42602
  };
42603
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
42604
+ reactData.inputValue = val;
42605
+ });
42606
+ const rDvFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
42607
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeFormReadonly, () => {
42608
+ rDvFlag.value++;
42609
+ });
42610
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeDomValue, () => {
42611
+ rDvFlag.value++;
42612
+ });
42613
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(rDvFlag, () => {
42614
+ updateDomValue();
42615
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
42616
+ updateDomValue();
42617
+ });
42618
+ });
42619
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
42620
+ updateDomValue();
42621
+ });
42502
42622
  $xePasswordInput.renderVN = renderVN;
42503
42623
  return $xePasswordInput;
42504
42624
  },
@@ -49345,6 +49465,10 @@ let autoTxtElem;
49345
49465
  props: {
49346
49466
  modelValue: [String, Number],
49347
49467
  className: String,
49468
+ inputClassName: {
49469
+ type: String,
49470
+ default: () => getConfig().textarea.inputClassName
49471
+ },
49348
49472
  immediate: {
49349
49473
  type: Boolean,
49350
49474
  default: true
@@ -49430,7 +49554,6 @@ let autoTxtElem;
49430
49554
  reactData,
49431
49555
  getRefMaps: () => refMaps
49432
49556
  };
49433
- let textareaMethods = {};
49434
49557
  const computeFormReadonly = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
49435
49558
  const {
49436
49559
  readonly
@@ -49506,6 +49629,24 @@ let autoTxtElem;
49506
49629
  maxRows: 10
49507
49630
  }, getConfig().textarea.autoSize, autoSize);
49508
49631
  });
49632
+ const computeDomValue = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
49633
+ const {
49634
+ inputValue
49635
+ } = reactData;
49636
+ return inputValue;
49637
+ });
49638
+ const dispatchEvent = (type, params, evnt) => {
49639
+ emit(type, createEvent(evnt, {
49640
+ $textarea: $xeTextarea
49641
+ }, params));
49642
+ };
49643
+ const updateDomValue = () => {
49644
+ const domValue = computeDomValue.value;
49645
+ const taElem = refTextarea.value;
49646
+ if (taElem) {
49647
+ taElem.value = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(domValue) ? '' : '' + domValue;
49648
+ }
49649
+ };
49509
49650
  const updateAutoTxt = () => {
49510
49651
  const {
49511
49652
  size,
@@ -49577,7 +49718,7 @@ let autoTxtElem;
49577
49718
  };
49578
49719
  const triggerEvent = evnt => {
49579
49720
  const value = reactData.inputValue;
49580
- $xeTextarea.dispatchEvent(evnt.type, {
49721
+ dispatchEvent(evnt.type, {
49581
49722
  value
49582
49723
  }, evnt);
49583
49724
  };
@@ -49612,7 +49753,7 @@ let autoTxtElem;
49612
49753
  $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
49613
49754
  }
49614
49755
  }
49615
- $xeTextarea.dispatchEvent('input', {
49756
+ dispatchEvent('input', {
49616
49757
  value
49617
49758
  }, evnt);
49618
49759
  handleResize();
@@ -49626,7 +49767,7 @@ let autoTxtElem;
49626
49767
  } else {
49627
49768
  handleChange(reactData.inputValue, evnt);
49628
49769
  }
49629
- $xeTextarea.dispatchEvent('lazy-change', {
49770
+ dispatchEvent('lazy-change', {
49630
49771
  value: reactData.inputValue
49631
49772
  }, evnt);
49632
49773
  };
@@ -49640,16 +49781,12 @@ let autoTxtElem;
49640
49781
  if (!immediate) {
49641
49782
  handleChange(inputValue, evnt);
49642
49783
  }
49643
- $xeTextarea.dispatchEvent('blur', {
49784
+ dispatchEvent('blur', {
49644
49785
  value: inputValue
49645
49786
  }, evnt);
49646
49787
  };
49647
- textareaMethods = {
49648
- dispatchEvent(type, params, evnt) {
49649
- emit(type, createEvent(evnt, {
49650
- $textarea: $xeTextarea
49651
- }, params));
49652
- },
49788
+ const textareaMethods = {
49789
+ dispatchEvent,
49653
49790
  focus() {
49654
49791
  const textElem = refTextarea.value;
49655
49792
  textElem.focus();
@@ -49665,6 +49802,7 @@ let autoTxtElem;
49665
49802
  const renderVN = () => {
49666
49803
  const {
49667
49804
  className,
49805
+ inputClassName,
49668
49806
  resize,
49669
49807
  autosize,
49670
49808
  autoSize,
@@ -49706,8 +49844,7 @@ let autoTxtElem;
49706
49844
  spellcheck: false
49707
49845
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('textarea', {
49708
49846
  ref: refTextarea,
49709
- class: 'vxe-textarea--inner',
49710
- value: inputValue,
49847
+ class: 'vxe-textarea--inner' + (inputClassName ? ' ' + inputClassName : ''),
49711
49848
  name: props.name,
49712
49849
  placeholder: inpPlaceholder,
49713
49850
  maxlength: inpMaxLength,
@@ -49754,6 +49891,22 @@ let autoTxtElem;
49754
49891
  updateAutoTxt();
49755
49892
  handleResize();
49756
49893
  });
49894
+ const rDvFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
49895
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeFormReadonly, () => {
49896
+ rDvFlag.value++;
49897
+ });
49898
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(computeDomValue, () => {
49899
+ rDvFlag.value++;
49900
+ });
49901
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(rDvFlag, () => {
49902
+ updateDomValue();
49903
+ });
49904
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
49905
+ updateDomValue();
49906
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
49907
+ updateDomValue();
49908
+ });
49909
+ });
49757
49910
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
49758
49911
  const {
49759
49912
  autosize,