vxe-pc-ui 4.7.17 → 4.7.19

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 (220) hide show
  1. package/es/color-picker/src/color-picker.js +15 -3
  2. package/es/date-panel/style.css +1 -1
  3. package/es/date-panel/style.min.css +1 -1
  4. package/es/date-picker/src/date-picker.js +9 -5
  5. package/es/date-range-picker/src/date-range-picker.js +10 -1
  6. package/es/form/src/itemInfo.js +11 -3
  7. package/es/form/src/render.js +20 -11
  8. package/es/form/style.css +12 -11
  9. package/es/form/style.min.css +1 -1
  10. package/es/icon/style.css +1 -1
  11. package/es/icon-picker/src/icon-picker.js +13 -1
  12. package/es/input/src/input.js +10 -4
  13. package/es/language/ar-EG.js +1 -0
  14. package/es/language/de-DE.js +1 -0
  15. package/es/language/en-US.js +1 -0
  16. package/es/language/es-ES.js +1 -0
  17. package/es/language/fr-FR.js +1 -0
  18. package/es/language/hu-HU.js +1 -0
  19. package/es/language/hy-AM.js +1 -0
  20. package/es/language/id-ID.js +1 -0
  21. package/es/language/it-IT.js +1 -0
  22. package/es/language/ja-JP.js +1 -0
  23. package/es/language/ko-KR.js +1 -0
  24. package/es/language/ms-MY.js +1 -0
  25. package/es/language/nb-NO.js +1 -0
  26. package/es/language/pt-BR.js +1 -0
  27. package/es/language/ru-RU.js +1 -0
  28. package/es/language/th-TH.js +1 -0
  29. package/es/language/ug-CN.js +1 -0
  30. package/es/language/uk-UA.js +1 -0
  31. package/es/language/uz-UZ.js +1 -0
  32. package/es/language/vi-VN.js +1 -0
  33. package/es/language/zh-CHT.js +1 -0
  34. package/es/language/zh-CN.js +1 -0
  35. package/es/list/src/list.js +6 -2
  36. package/es/number-input/src/number-input.js +2 -2
  37. package/es/pulldown/src/pulldown.js +14 -11
  38. package/es/select/src/select.js +15 -3
  39. package/es/style.css +1 -1
  40. package/es/style.min.css +1 -1
  41. package/es/table-select/src/table-select.js +13 -1
  42. package/es/tree/src/tree.js +6 -2
  43. package/es/tree-select/src/tree-select.js +13 -1
  44. package/es/ui/index.js +1 -1
  45. package/es/ui/src/log.js +1 -1
  46. package/es/vxe-date-panel/style.css +1 -1
  47. package/es/vxe-date-panel/style.min.css +1 -1
  48. package/es/vxe-form/style.css +12 -11
  49. package/es/vxe-form/style.min.css +1 -1
  50. package/lib/color-picker/src/color-picker.js +18 -3
  51. package/lib/color-picker/src/color-picker.min.js +1 -1
  52. package/lib/date-panel/style/style.css +1 -1
  53. package/lib/date-panel/style/style.min.css +1 -1
  54. package/lib/date-picker/src/date-picker.js +9 -4
  55. package/lib/date-picker/src/date-picker.min.js +1 -1
  56. package/lib/date-range-picker/src/date-range-picker.js +11 -1
  57. package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
  58. package/lib/form/src/itemInfo.js +12 -2
  59. package/lib/form/src/itemInfo.min.js +1 -1
  60. package/lib/form/src/render.js +24 -8
  61. package/lib/form/src/render.min.js +1 -1
  62. package/lib/form/style/style.css +12 -11
  63. package/lib/form/style/style.min.css +1 -1
  64. package/lib/icon/style/style.css +1 -1
  65. package/lib/icon/style/style.min.css +1 -1
  66. package/lib/icon-picker/src/icon-picker.js +16 -1
  67. package/lib/icon-picker/src/icon-picker.min.js +1 -1
  68. package/lib/index.umd.js +181 -45
  69. package/lib/index.umd.min.js +1 -1
  70. package/lib/input/src/input.js +11 -4
  71. package/lib/input/src/input.min.js +1 -1
  72. package/lib/language/ar-EG.js +1 -0
  73. package/lib/language/ar-EG.min.js +1 -1
  74. package/lib/language/ar-EG.umd.js +1 -0
  75. package/lib/language/de-DE.js +1 -0
  76. package/lib/language/de-DE.min.js +1 -1
  77. package/lib/language/de-DE.umd.js +1 -0
  78. package/lib/language/en-US.js +1 -0
  79. package/lib/language/en-US.min.js +1 -1
  80. package/lib/language/en-US.umd.js +1 -0
  81. package/lib/language/es-ES.js +1 -0
  82. package/lib/language/es-ES.min.js +1 -1
  83. package/lib/language/es-ES.umd.js +1 -0
  84. package/lib/language/fr-FR.js +1 -0
  85. package/lib/language/fr-FR.min.js +1 -1
  86. package/lib/language/fr-FR.umd.js +1 -0
  87. package/lib/language/hu-HU.js +1 -0
  88. package/lib/language/hu-HU.min.js +1 -1
  89. package/lib/language/hu-HU.umd.js +1 -0
  90. package/lib/language/hy-AM.js +1 -0
  91. package/lib/language/hy-AM.min.js +1 -1
  92. package/lib/language/hy-AM.umd.js +1 -0
  93. package/lib/language/id-ID.js +1 -0
  94. package/lib/language/id-ID.min.js +1 -1
  95. package/lib/language/id-ID.umd.js +1 -0
  96. package/lib/language/it-IT.js +1 -0
  97. package/lib/language/it-IT.min.js +1 -1
  98. package/lib/language/it-IT.umd.js +1 -0
  99. package/lib/language/ja-JP.js +1 -0
  100. package/lib/language/ja-JP.min.js +1 -1
  101. package/lib/language/ja-JP.umd.js +1 -0
  102. package/lib/language/ko-KR.js +1 -0
  103. package/lib/language/ko-KR.min.js +1 -1
  104. package/lib/language/ko-KR.umd.js +1 -0
  105. package/lib/language/ms-MY.js +1 -0
  106. package/lib/language/ms-MY.min.js +1 -1
  107. package/lib/language/ms-MY.umd.js +1 -0
  108. package/lib/language/nb-NO.js +1 -0
  109. package/lib/language/nb-NO.min.js +1 -1
  110. package/lib/language/nb-NO.umd.js +1 -0
  111. package/lib/language/pt-BR.js +1 -0
  112. package/lib/language/pt-BR.min.js +1 -1
  113. package/lib/language/pt-BR.umd.js +1 -0
  114. package/lib/language/ru-RU.js +1 -0
  115. package/lib/language/ru-RU.min.js +1 -1
  116. package/lib/language/ru-RU.umd.js +1 -0
  117. package/lib/language/th-TH.js +1 -0
  118. package/lib/language/th-TH.min.js +1 -1
  119. package/lib/language/th-TH.umd.js +1 -0
  120. package/lib/language/ug-CN.js +1 -0
  121. package/lib/language/ug-CN.min.js +1 -1
  122. package/lib/language/ug-CN.umd.js +1 -0
  123. package/lib/language/uk-UA.js +1 -0
  124. package/lib/language/uk-UA.min.js +1 -1
  125. package/lib/language/uk-UA.umd.js +1 -0
  126. package/lib/language/uz-UZ.js +1 -0
  127. package/lib/language/uz-UZ.min.js +1 -1
  128. package/lib/language/uz-UZ.umd.js +1 -0
  129. package/lib/language/vi-VN.js +1 -0
  130. package/lib/language/vi-VN.min.js +1 -1
  131. package/lib/language/vi-VN.umd.js +1 -0
  132. package/lib/language/zh-CHT.js +1 -0
  133. package/lib/language/zh-CHT.min.js +1 -1
  134. package/lib/language/zh-CHT.umd.js +1 -0
  135. package/lib/language/zh-CN.js +1 -0
  136. package/lib/language/zh-CN.min.js +1 -1
  137. package/lib/language/zh-CN.umd.js +1 -0
  138. package/lib/list/src/list.js +6 -2
  139. package/lib/list/src/list.min.js +1 -1
  140. package/lib/number-input/src/number-input.js +2 -2
  141. package/lib/number-input/src/number-input.min.js +1 -1
  142. package/lib/pulldown/src/pulldown.js +17 -11
  143. package/lib/pulldown/src/pulldown.min.js +1 -1
  144. package/lib/select/src/select.js +18 -3
  145. package/lib/select/src/select.min.js +1 -1
  146. package/lib/style.css +1 -1
  147. package/lib/style.min.css +1 -1
  148. package/lib/table-select/src/table-select.js +16 -1
  149. package/lib/table-select/src/table-select.min.js +1 -1
  150. package/lib/tree/src/tree.js +6 -2
  151. package/lib/tree/src/tree.min.js +1 -1
  152. package/lib/tree-select/src/tree-select.js +16 -1
  153. package/lib/tree-select/src/tree-select.min.js +1 -1
  154. package/lib/ui/index.js +1 -1
  155. package/lib/ui/index.min.js +1 -1
  156. package/lib/ui/src/log.js +1 -1
  157. package/lib/ui/src/log.min.js +1 -1
  158. package/lib/vxe-date-panel/style/style.css +1 -1
  159. package/lib/vxe-date-panel/style/style.min.css +1 -1
  160. package/lib/vxe-form/style/style.css +12 -11
  161. package/lib/vxe-form/style/style.min.css +1 -1
  162. package/package.json +1 -1
  163. package/packages/color-picker/src/color-picker.ts +15 -3
  164. package/packages/date-picker/src/date-picker.ts +9 -4
  165. package/packages/date-range-picker/src/date-range-picker.ts +10 -1
  166. package/packages/form/src/itemInfo.ts +12 -3
  167. package/packages/form/src/render.ts +25 -10
  168. package/packages/icon-picker/src/icon-picker.ts +13 -1
  169. package/packages/input/src/input.ts +15 -8
  170. package/packages/language/ar-EG.ts +1 -0
  171. package/packages/language/de-DE.ts +1 -0
  172. package/packages/language/en-US.ts +1 -0
  173. package/packages/language/es-ES.ts +1 -0
  174. package/packages/language/fr-FR.ts +1 -0
  175. package/packages/language/hu-HU.ts +1 -0
  176. package/packages/language/hy-AM.ts +1 -0
  177. package/packages/language/id-ID.ts +1 -0
  178. package/packages/language/it-IT.ts +1 -0
  179. package/packages/language/ja-JP.ts +1 -0
  180. package/packages/language/ko-KR.ts +1 -0
  181. package/packages/language/ms-MY.ts +1 -0
  182. package/packages/language/nb-NO.ts +1 -0
  183. package/packages/language/pt-BR.ts +1 -0
  184. package/packages/language/ru-RU.ts +1 -0
  185. package/packages/language/th-TH.ts +1 -0
  186. package/packages/language/ug-CN.ts +1 -0
  187. package/packages/language/uk-UA.ts +1 -0
  188. package/packages/language/uz-UZ.ts +1 -0
  189. package/packages/language/vi-VN.ts +1 -0
  190. package/packages/language/zh-CHT.ts +1 -0
  191. package/packages/language/zh-CN.ts +1 -0
  192. package/packages/list/src/list.ts +7 -3
  193. package/packages/number-input/src/number-input.ts +6 -6
  194. package/packages/pulldown/src/pulldown.ts +14 -11
  195. package/packages/select/src/select.ts +15 -3
  196. package/packages/table-select/src/table-select.ts +13 -1
  197. package/packages/tree/src/tree.ts +7 -3
  198. package/packages/tree-select/src/tree-select.ts +13 -1
  199. package/styles/components/date-panel.scss +12 -0
  200. package/styles/components/form.scss +12 -11
  201. package/types/components/form-design.d.ts +11 -0
  202. package/types/components/form-item.d.ts +17 -3
  203. package/types/components/input.d.ts +5 -5
  204. package/types/components/list.d.ts +4 -3
  205. package/types/components/number-input.d.ts +5 -5
  206. package/types/components/table.d.ts +4 -3
  207. package/types/components/textarea.d.ts +6 -6
  208. package/types/components/tree.d.ts +6 -3
  209. /package/es/icon/{iconfont.1753002678278.ttf → iconfont.1753160925338.ttf} +0 -0
  210. /package/es/icon/{iconfont.1753002678278.woff → iconfont.1753160925338.woff} +0 -0
  211. /package/es/icon/{iconfont.1753002678278.woff2 → iconfont.1753160925338.woff2} +0 -0
  212. /package/es/{iconfont.1753002678278.ttf → iconfont.1753160925338.ttf} +0 -0
  213. /package/es/{iconfont.1753002678278.woff → iconfont.1753160925338.woff} +0 -0
  214. /package/es/{iconfont.1753002678278.woff2 → iconfont.1753160925338.woff2} +0 -0
  215. /package/lib/icon/style/{iconfont.1753002678278.ttf → iconfont.1753160925338.ttf} +0 -0
  216. /package/lib/icon/style/{iconfont.1753002678278.woff → iconfont.1753160925338.woff} +0 -0
  217. /package/lib/icon/style/{iconfont.1753002678278.woff2 → iconfont.1753160925338.woff2} +0 -0
  218. /package/lib/{iconfont.1753002678278.ttf → iconfont.1753160925338.ttf} +0 -0
  219. /package/lib/{iconfont.1753002678278.woff → iconfont.1753160925338.woff} +0 -0
  220. /package/lib/{iconfont.1753002678278.woff2 → iconfont.1753160925338.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -3501,6 +3501,7 @@ setTheme();
3501
3501
  groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
3502
3502
  scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
3503
3503
  errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
3504
+ modelConflicts: '绑定的字段值 "{0}" 与 "{1}" 存在冲突,将会出现错误',
3504
3505
  notSupportProp: '当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',
3505
3506
  notConflictProp: '当使用 "{0}" 时,应该设置 "{1}",否则可能会存在功能冲突',
3506
3507
  unableInsert: '无法插入到指定位置,请检查参数是否正确',
@@ -4285,14 +4286,14 @@ function checkDynamic() {
4285
4286
  }
4286
4287
  ;// CONCATENATED MODULE: ./packages/ui/src/log.ts
4287
4288
 
4288
- const log_version = `ui v${"4.7.17"}`;
4289
+ const log_version = `ui v${"4.7.19"}`;
4289
4290
  const warnLog = log.create('warn', log_version);
4290
4291
  const errLog = log.create('error', log_version);
4291
4292
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
4292
4293
 
4293
4294
 
4294
4295
 
4295
- const ui_version = "4.7.17";
4296
+ const ui_version = "4.7.19";
4296
4297
  index_esm_VxeUI.uiVersion = ui_version;
4297
4298
  index_esm_VxeUI.dynamicApp = dynamicApp;
4298
4299
  function config(options) {
@@ -11974,10 +11975,10 @@ function toFloatValueFixed(inputValue, digitsValue) {
11974
11975
  }
11975
11976
  };
11976
11977
  const validMaxNum = num => {
11977
- return props.max === null || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(num) <= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.max);
11978
+ return props.max === null || props.max === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(num) <= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.max);
11978
11979
  };
11979
11980
  const validMinNum = num => {
11980
- return props.min === null || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(num) >= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.min);
11981
+ return props.min === null || props.min === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(num) >= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.min);
11981
11982
  };
11982
11983
  const dateRevert = () => {
11983
11984
  reactData.inputValue = props.multiple ? computeDateMultipleLabel.value : reactData.datePanelLabel;
@@ -12998,9 +12999,16 @@ function toFloatValueFixed(inputValue, digitsValue) {
12998
12999
  } = reactData;
12999
13000
  if (visiblePanel) {
13000
13001
  hidePanel();
13002
+ }
13003
+ if (isActivated) {
13004
+ reactData.isActivated = false;
13005
+ }
13006
+ if (visiblePanel || isActivated) {
13007
+ const inputElem = refInputTarget.value;
13001
13008
  afterCheckValue();
13002
- } else if (isActivated) {
13003
- afterCheckValue();
13009
+ if (inputElem) {
13010
+ inputElem.blur();
13011
+ }
13004
13012
  }
13005
13013
  };
13006
13014
  const renderDateLabel = (item, label) => {
@@ -13782,7 +13790,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
13782
13790
  computeSize
13783
13791
  } = useSize(props);
13784
13792
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
13785
- const refInput = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
13793
+ const refInputTarget = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
13786
13794
  const refOptionPanel = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
13787
13795
  const refHueSliderElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
13788
13796
  const refHueSliderBtnElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
@@ -14330,7 +14338,22 @@ function toFloatValueFixed(inputValue, digitsValue) {
14330
14338
  }
14331
14339
  };
14332
14340
  const handleGlobalBlurEvent = () => {
14333
- hideOptionPanel();
14341
+ const {
14342
+ visiblePanel,
14343
+ isActivated
14344
+ } = reactData;
14345
+ if (visiblePanel) {
14346
+ hideOptionPanel();
14347
+ }
14348
+ if (isActivated) {
14349
+ reactData.isActivated = false;
14350
+ }
14351
+ if (visiblePanel || isActivated) {
14352
+ const targetElem = refInputTarget.value;
14353
+ if (targetElem) {
14354
+ targetElem.blur();
14355
+ }
14356
+ }
14334
14357
  };
14335
14358
  const handleGlobalResizeEvent = () => {
14336
14359
  const {
@@ -14616,7 +14639,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
14616
14639
  'is--active': isActivated
14617
14640
  }]
14618
14641
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('input', {
14619
- ref: refInput,
14642
+ ref: refInputTarget,
14620
14643
  class: 'vxe-color-picker--input',
14621
14644
  onFocus: focusEvent,
14622
14645
  onBlur: blurEvent
@@ -16861,7 +16884,7 @@ const DatePanel = VxeDatePanel;
16861
16884
  multiple: Boolean,
16862
16885
  limitCount: {
16863
16886
  type: [String, Number],
16864
- default: () => getConfig().upload.limitCount
16887
+ default: () => getConfig().datePicker.limitCount
16865
16888
  },
16866
16889
  // date、week、month、quarter、year
16867
16890
  startDate: {
@@ -17341,12 +17364,17 @@ const DatePanel = VxeDatePanel;
17341
17364
  } = reactData;
17342
17365
  if (visiblePanel) {
17343
17366
  hidePanel();
17367
+ }
17368
+ if (isActivated) {
17369
+ reactData.isActivated = false;
17370
+ }
17371
+ if (visiblePanel || isActivated) {
17344
17372
  if ($datePanel) {
17345
17373
  $datePanel.checkValue(reactData.inputLabel);
17346
17374
  }
17347
- } else if (isActivated) {
17348
- if ($datePanel) {
17349
- $datePanel.checkValue(reactData.inputLabel);
17375
+ const targetElem = refInputTarget.value;
17376
+ if (targetElem) {
17377
+ targetElem.blur();
17350
17378
  }
17351
17379
  }
17352
17380
  };
@@ -18466,11 +18494,21 @@ const DatePicker = VxeDatePicker;
18466
18494
  };
18467
18495
  const handleGlobalBlurEvent = () => {
18468
18496
  const {
18469
- visiblePanel
18497
+ visiblePanel,
18498
+ isActivated
18470
18499
  } = reactData;
18471
18500
  if (visiblePanel) {
18472
18501
  hidePanel();
18473
18502
  }
18503
+ if (isActivated) {
18504
+ reactData.isActivated = false;
18505
+ }
18506
+ if (visiblePanel || isActivated) {
18507
+ const targetElem = refInputTarget.value;
18508
+ if (targetElem) {
18509
+ targetElem.blur();
18510
+ }
18511
+ }
18474
18512
  };
18475
18513
  const handleGlobalResizeEvent = () => {
18476
18514
  const {
@@ -19802,6 +19840,8 @@ const Empty = VxeEmpty;
19802
19840
  class ItemInfo {
19803
19841
  constructor($xeForm, item) {
19804
19842
  const {
19843
+ field,
19844
+ itemRender,
19805
19845
  formatter
19806
19846
  } = item;
19807
19847
  if (formatter) {
@@ -19817,10 +19857,18 @@ class ItemInfo {
19817
19857
  }
19818
19858
  }
19819
19859
  }
19860
+ if (field && itemRender) {
19861
+ if (itemRender.startField && `${itemRender.startField}`.indexOf(field) >= 0) {
19862
+ errLog('vxe.error.modelConflicts', [`field=${field}`, `item-render.startField=${itemRender.startField}`]);
19863
+ }
19864
+ if (itemRender.endField && `${itemRender.endField}`.indexOf(field) >= 0) {
19865
+ errLog('vxe.error.modelConflicts', [`field=${field}`, `item-render.endField=${itemRender.endField}`]);
19866
+ }
19867
+ }
19820
19868
  Object.assign(this, {
19821
19869
  id: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId('item_'),
19822
19870
  title: item.title,
19823
- field: item.field,
19871
+ field: field,
19824
19872
  span: item.span,
19825
19873
  align: item.align,
19826
19874
  verticalAlign: item.verticalAlign,
@@ -19847,7 +19895,7 @@ class ItemInfo {
19847
19895
  contentStyle: item.contentStyle,
19848
19896
  titleClassName: item.titleClassName,
19849
19897
  titleStyle: item.titleStyle,
19850
- itemRender: item.itemRender,
19898
+ itemRender: itemRender,
19851
19899
  rules: item.rules,
19852
19900
  formatter,
19853
19901
  // 自定义参数
@@ -20055,7 +20103,7 @@ function destroyItem($xeForm, formItem) {
20055
20103
 
20056
20104
  function renderPrefixIcon(titlePrefix) {
20057
20105
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20058
- class: 'vxe-form--item-title-prefix'
20106
+ class: 'vxe-form--item-title-tip-prefix'
20059
20107
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(icon, {
20060
20108
  class: titlePrefix.icon || getIcon().FORM_PREFIX,
20061
20109
  status: titlePrefix.iconStatus
@@ -20063,7 +20111,7 @@ function renderPrefixIcon(titlePrefix) {
20063
20111
  }
20064
20112
  function renderSuffixIcon(titleSuffix) {
20065
20113
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20066
- class: 'vxe-form--item-title-suffix'
20114
+ class: 'vxe-form--item-title-tip-suffix'
20067
20115
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(icon, {
20068
20116
  class: titleSuffix.icon || getIcon().FORM_SUFFIX,
20069
20117
  status: titleSuffix.iconStatus
@@ -20230,12 +20278,20 @@ function renderTitle($xeForm, item, isGroup) {
20230
20278
  $grid: $xeGrid
20231
20279
  };
20232
20280
  const titleSlot = slots ? slots.title : null;
20233
- const extraSlot = slots ? slots.extra : null;
20281
+ const prefixSlot = slots ? slots.prefix : null;
20282
+ const suffixSlot = slots ? slots.suffix || slots.extra : null;
20234
20283
  const isTitle = showTitle !== false && (title || titleSlot);
20235
20284
  const hasGroup = children && children.length > 0;
20236
20285
  const titVNs = [];
20286
+ if (prefixSlot) {
20287
+ titVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20288
+ key: 'pt',
20289
+ class: 'vxe-form--item-title-prefix'
20290
+ }, $xeForm.callSlot(prefixSlot, params)));
20291
+ }
20237
20292
  if (titlePrefix) {
20238
20293
  titVNs.push(titlePrefix.content || titlePrefix.message ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(tooltip, {
20294
+ key: 'pm',
20239
20295
  ...tooltipOpts,
20240
20296
  ...titlePrefix,
20241
20297
  content: getFuncText(titlePrefix.content || titlePrefix.message)
@@ -20245,11 +20301,13 @@ function renderTitle($xeForm, item, isGroup) {
20245
20301
  }
20246
20302
  const rftTitle = compConf ? compConf.renderFormItemTitle || compConf.renderItemTitle : null;
20247
20303
  titVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20304
+ key: 'pl',
20248
20305
  class: 'vxe-form--item-title-label'
20249
20306
  }, titleSlot ? $xeForm.callSlot(titleSlot, params) : rftTitle ? getSlotVNs(rftTitle(itemRender, params)) : getFuncText(item.title)));
20250
20307
  const fixVNs = [];
20251
20308
  if (titleSuffix) {
20252
20309
  fixVNs.push(titleSuffix.content || titleSuffix.message ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(tooltip, {
20310
+ key: 'sm',
20253
20311
  ...tooltipOpts,
20254
20312
  ...titleSuffix,
20255
20313
  content: getFuncText(titleSuffix.content || titleSuffix.message)
@@ -20257,6 +20315,12 @@ function renderTitle($xeForm, item, isGroup) {
20257
20315
  default: () => renderSuffixIcon(titleSuffix)
20258
20316
  }) : renderSuffixIcon(titleSuffix));
20259
20317
  }
20318
+ if (suffixSlot) {
20319
+ fixVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
20320
+ key: 'st',
20321
+ class: 'vxe-form--item-title-suffix'
20322
+ }, $xeForm.callSlot(suffixSlot, params)));
20323
+ }
20260
20324
  const ons = ovTooltip ? {
20261
20325
  onMouseenter(evnt) {
20262
20326
  $xeForm.triggerTitleTipEvent(evnt, params);
@@ -20274,9 +20338,7 @@ function renderTitle($xeForm, item, isGroup) {
20274
20338
  class: 'vxe-form--item-title-content'
20275
20339
  }, titVNs), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20276
20340
  class: 'vxe-form--item-title-postfix'
20277
- }, fixVNs), extraSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20278
- class: 'vxe-form--item-title-extra'
20279
- }, $xeForm.callSlot(extraSlot, params)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
20341
+ }, fixVNs)]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
20280
20342
  }
20281
20343
  const renderItemContent = ($xeForm, item) => {
20282
20344
  const formProps = $xeForm.props;
@@ -22803,7 +22865,22 @@ const Icon = VxeIcon;
22803
22865
  }
22804
22866
  };
22805
22867
  const handleGlobalBlurEvent = () => {
22806
- hideOptionPanel();
22868
+ const {
22869
+ visiblePanel,
22870
+ isActivated
22871
+ } = reactData;
22872
+ if (visiblePanel) {
22873
+ hideOptionPanel();
22874
+ }
22875
+ if (isActivated) {
22876
+ reactData.isActivated = false;
22877
+ }
22878
+ if (visiblePanel || isActivated) {
22879
+ const $input = refInput.value;
22880
+ if ($input) {
22881
+ $input.blur();
22882
+ }
22883
+ }
22807
22884
  };
22808
22885
  const dispatchEvent = (type, params, evnt) => {
22809
22886
  emit(type, createEvent(evnt, {
@@ -24920,11 +24997,15 @@ const Link = VxeLink;
24920
24997
  };
24921
24998
  /**
24922
24999
  * 如果有滚动条,则滚动到对应的位置
24923
- * @param {Number} scrollLeft 左距离
24924
- * @param {Number} scrollTop 上距离
24925
25000
  */
24926
25001
  const scrollTo = (scrollLeft, scrollTop) => {
24927
25002
  const scrollBodyElem = refVirtualWrapper.value;
25003
+ if (scrollLeft) {
25004
+ if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(scrollLeft)) {
25005
+ scrollTop = scrollLeft.top;
25006
+ scrollLeft = scrollLeft.left;
25007
+ }
25008
+ }
24928
25009
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(scrollLeft)) {
24929
25010
  scrollBodyElem.scrollLeft = scrollLeft;
24930
25011
  }
@@ -27951,10 +28032,10 @@ const NoticeBar = VxeNoticeBar;
27951
28032
  }
27952
28033
  };
27953
28034
  const validMaxNum = num => {
27954
- return props.max === null || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(num) <= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.max);
28035
+ return props.max === null || props.max === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(num) <= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.max);
27955
28036
  };
27956
28037
  const validMinNum = num => {
27957
- return props.min === null || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(num) >= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.min);
28038
+ return props.min === null || props.min === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(num) >= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.min);
27958
28039
  };
27959
28040
  const afterCheckValue = () => {
27960
28041
  const {
@@ -29112,7 +29193,7 @@ function getOptUniqueId() {
29112
29193
  value: modelValue
29113
29194
  }));
29114
29195
  } else if (filterable) {
29115
- avList = fullData.filter(option => isOptionVisible(option) && (!searchStr || `${option[labelField]}`.toLowerCase().indexOf(searchStr) > -1));
29196
+ avList = fullData.filter(option => isOptionVisible(option) && (!searchStr || `${option[labelField] || option[valueField]}`.toLowerCase().indexOf(searchStr) > -1));
29116
29197
  } else {
29117
29198
  avList = fullData.filter(isOptionVisible);
29118
29199
  }
@@ -29485,7 +29566,22 @@ function getOptUniqueId() {
29485
29566
  }
29486
29567
  };
29487
29568
  const handleGlobalBlurEvent = () => {
29488
- hideOptionPanel();
29569
+ const {
29570
+ visiblePanel,
29571
+ isActivated
29572
+ } = reactData;
29573
+ if (visiblePanel) {
29574
+ hideOptionPanel();
29575
+ }
29576
+ if (isActivated) {
29577
+ reactData.isActivated = false;
29578
+ }
29579
+ if (visiblePanel || isActivated) {
29580
+ const $input = refInput.value;
29581
+ if ($input) {
29582
+ $input.blur();
29583
+ }
29584
+ }
29489
29585
  };
29490
29586
  const handleGlobalResizeEvent = () => {
29491
29587
  const {
@@ -29992,7 +30088,7 @@ function getOptUniqueId() {
29992
30088
  } else if (defaultSlot) {
29993
30089
  optVNs = callSlot(defaultSlot, optParams);
29994
30090
  } else {
29995
- optLabel = getFuncText(option[isOptGroup ? groupLabelField : labelField]);
30091
+ optLabel = getFuncText(option[isOptGroup ? groupLabelField : labelField] || optionValue);
29996
30092
  optVNs = optLabel;
29997
30093
  }
29998
30094
  return isVisible ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
@@ -32112,7 +32208,7 @@ const Print = VxePrint;
32112
32208
  /**
32113
32209
  * 隐藏下拉面板
32114
32210
  */
32115
- const hidePanel = () => {
32211
+ const hideOptionPanel = () => {
32116
32212
  reactData.visiblePanel = false;
32117
32213
  dispatchEvent('visible-change', {
32118
32214
  visible: false
@@ -32138,14 +32234,14 @@ const Print = VxePrint;
32138
32234
  */
32139
32235
  const togglePanel = () => {
32140
32236
  if (reactData.visiblePanel) {
32141
- return hidePanel();
32237
+ return hideOptionPanel();
32142
32238
  }
32143
32239
  return showPanel();
32144
32240
  };
32145
32241
  const handleOptionEvent = (evnt, option) => {
32146
32242
  if (!option.disabled) {
32147
32243
  if (reactData.visiblePanel) {
32148
- hidePanel();
32244
+ hideOptionPanel();
32149
32245
  dispatchEvent('hide-panel', {}, evnt);
32150
32246
  }
32151
32247
  dispatchEvent('option-click', {
@@ -32159,7 +32255,7 @@ const Print = VxePrint;
32159
32255
  } = props;
32160
32256
  if (trigger === 'click') {
32161
32257
  if (reactData.visiblePanel) {
32162
- hidePanel();
32258
+ hideOptionPanel();
32163
32259
  dispatchEvent('hide-panel', {}, evnt);
32164
32260
  } else {
32165
32261
  showPanel();
@@ -32183,7 +32279,7 @@ const Print = VxePrint;
32183
32279
  if (getEventTargetNode(evnt, panelElem).flag) {
32184
32280
  updatePlacement();
32185
32281
  } else {
32186
- hidePanel();
32282
+ hideOptionPanel();
32187
32283
  dispatchEvent('hide-panel', {}, evnt);
32188
32284
  }
32189
32285
  }
@@ -32201,17 +32297,23 @@ const Print = VxePrint;
32201
32297
  if (!disabled) {
32202
32298
  reactData.isActivated = getEventTargetNode(evnt, el).flag || getEventTargetNode(evnt, panelElem).flag;
32203
32299
  if (visiblePanel && !reactData.isActivated) {
32204
- hidePanel();
32300
+ hideOptionPanel();
32205
32301
  dispatchEvent('hide-panel', {}, evnt);
32206
32302
  }
32207
32303
  }
32208
32304
  };
32209
32305
  const handleGlobalBlurEvent = evnt => {
32210
- if (reactData.visiblePanel) {
32211
- reactData.isActivated = false;
32212
- hidePanel();
32306
+ const {
32307
+ visiblePanel,
32308
+ isActivated
32309
+ } = reactData;
32310
+ if (visiblePanel) {
32311
+ hideOptionPanel();
32213
32312
  dispatchEvent('hide-panel', {}, evnt);
32214
32313
  }
32314
+ if (isActivated) {
32315
+ reactData.isActivated = false;
32316
+ }
32215
32317
  };
32216
32318
  const handleGlobalResizeEvent = () => {
32217
32319
  const {
@@ -32231,7 +32333,7 @@ const Print = VxePrint;
32231
32333
  isPanelVisible,
32232
32334
  togglePanel,
32233
32335
  showPanel,
32234
- hidePanel
32336
+ hidePanel: hideOptionPanel
32235
32337
  };
32236
32338
  Object.assign($xePulldown, pulldownMethods);
32237
32339
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, value => {
@@ -32239,7 +32341,7 @@ const Print = VxePrint;
32239
32341
  if (value) {
32240
32342
  showPanel();
32241
32343
  } else {
32242
- hidePanel();
32344
+ hideOptionPanel();
32243
32345
  }
32244
32346
  });
32245
32347
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
@@ -35302,7 +35404,22 @@ function getRowUniqueId() {
35302
35404
  }
35303
35405
  };
35304
35406
  const handleGlobalBlurEvent = () => {
35305
- hideOptionPanel();
35407
+ const {
35408
+ visiblePanel,
35409
+ isActivated
35410
+ } = reactData;
35411
+ if (visiblePanel) {
35412
+ hideOptionPanel();
35413
+ }
35414
+ if (isActivated) {
35415
+ reactData.isActivated = false;
35416
+ }
35417
+ if (visiblePanel || isActivated) {
35418
+ const $input = refInput.value;
35419
+ if ($input) {
35420
+ $input.blur();
35421
+ }
35422
+ }
35306
35423
  };
35307
35424
  const handleGlobalResizeEvent = () => {
35308
35425
  const {
@@ -38285,11 +38402,15 @@ function getNodeUniqueId() {
38285
38402
  };
38286
38403
  /**
38287
38404
  * 如果有滚动条,则滚动到对应的位置
38288
- * @param {Number} scrollLeft 左距离
38289
- * @param {Number} scrollTop 上距离
38290
38405
  */
38291
38406
  const scrollTo = (scrollLeft, scrollTop) => {
38292
38407
  const scrollBodyElem = refVirtualWrapper.value;
38408
+ if (scrollLeft) {
38409
+ if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(scrollLeft)) {
38410
+ scrollTop = scrollLeft.top;
38411
+ scrollLeft = scrollLeft.left;
38412
+ }
38413
+ }
38293
38414
  if (scrollBodyElem) {
38294
38415
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(scrollLeft)) {
38295
38416
  scrollBodyElem.scrollLeft = scrollLeft;
@@ -40099,7 +40220,22 @@ function tree_select_getOptUniqueId() {
40099
40220
  }
40100
40221
  };
40101
40222
  const handleGlobalBlurEvent = () => {
40102
- hideOptionPanel();
40223
+ const {
40224
+ visiblePanel,
40225
+ isActivated
40226
+ } = reactData;
40227
+ if (visiblePanel) {
40228
+ hideOptionPanel();
40229
+ }
40230
+ if (isActivated) {
40231
+ reactData.isActivated = false;
40232
+ }
40233
+ if (visiblePanel || isActivated) {
40234
+ const $input = refInput.value;
40235
+ if ($input) {
40236
+ $input.blur();
40237
+ }
40238
+ }
40103
40239
  };
40104
40240
  const handleGlobalResizeEvent = () => {
40105
40241
  const {