fast-element-plus 1.0.7 → 1.0.10

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 (182) hide show
  1. package/dist/index.full.js +894 -757
  2. package/dist/index.full.js.map +1 -1
  3. package/dist/index.full.min.js +1 -1
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +1 -1
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +894 -757
  8. package/dist/index.full.mjs.map +1 -1
  9. package/dist/styles/index.css +41 -23
  10. package/dist/styles/index.css.map +1 -1
  11. package/es/components/avatar/src/avatar.d.ts +4 -4
  12. package/es/components/avatar/src/avatar.mjs +1 -1
  13. package/es/components/avatar/src/avatar.mjs.map +1 -1
  14. package/es/components/button/src/button.mjs.map +1 -1
  15. package/es/components/carNumber/src/carNumber.d.ts +13 -5
  16. package/es/components/carNumber/src/carNumber.mjs +1 -1
  17. package/es/components/carNumber/src/carNumber.mjs.map +1 -1
  18. package/es/components/contextMenu/src/contextMenu.mjs +1 -1
  19. package/es/components/contextMenu/src/contextMenu.mjs.map +1 -1
  20. package/es/components/dialog/src/dialog.d.ts +4 -4
  21. package/es/components/dialog/src/dialog.mjs +1 -1
  22. package/es/components/dialog/src/dialog.mjs.map +1 -1
  23. package/es/components/drawer/src/drawer.d.ts +12 -4
  24. package/es/components/drawer/src/drawer.mjs +1 -1
  25. package/es/components/drawer/src/drawer.mjs.map +1 -1
  26. package/es/components/form/src/form.mjs +1 -1
  27. package/es/components/form/src/form.mjs.map +1 -1
  28. package/es/components/form/src/formItem.mjs +1 -1
  29. package/es/components/form/src/formItem.mjs.map +1 -1
  30. package/es/components/formItemTip/src/formItemTip.mjs +1 -1
  31. package/es/components/formItemTip/src/formItemTip.mjs.map +1 -1
  32. package/es/components/icon/src/icon.mjs +1 -1
  33. package/es/components/icon/src/icon.mjs.map +1 -1
  34. package/es/components/iconSelector/src/iconSelector.mjs +1 -1
  35. package/es/components/iconSelector/src/iconSelector.mjs.map +1 -1
  36. package/es/components/image/src/image.mjs +1 -1
  37. package/es/components/image/src/image.mjs.map +1 -1
  38. package/es/components/index.d.ts +1 -0
  39. package/es/components/index.mjs +1 -1
  40. package/es/components/inputDialogPage/index.d.ts +14 -0
  41. package/es/components/inputDialogPage/index.mjs +2 -0
  42. package/es/components/inputDialogPage/index.mjs.map +1 -0
  43. package/es/components/inputDialogPage/src/inputDialogPage.d.ts +131 -0
  44. package/es/components/inputDialogPage/src/inputDialogPage.mjs +2 -0
  45. package/es/components/inputDialogPage/src/inputDialogPage.mjs.map +1 -0
  46. package/es/components/layoutGrid/src/layoutGrid.mjs +1 -1
  47. package/es/components/layoutGrid/src/layoutGrid.mjs.map +1 -1
  48. package/es/components/layoutGrid/src/layoutGridItem.d.ts +6 -6
  49. package/es/components/layoutGrid/src/layoutGridItem.mjs +1 -1
  50. package/es/components/layoutGrid/src/layoutGridItem.mjs.map +1 -1
  51. package/es/components/select/src/select.d.ts +39 -34
  52. package/es/components/select/src/select.mjs +1 -1
  53. package/es/components/select/src/select.mjs.map +1 -1
  54. package/es/components/select/src/selectOption.mjs +1 -1
  55. package/es/components/select/src/selectOption.mjs.map +1 -1
  56. package/es/components/selectPage/src/selectPage.d.ts +39 -25
  57. package/es/components/selectPage/src/selectPage.mjs +1 -1
  58. package/es/components/selectPage/src/selectPage.mjs.map +1 -1
  59. package/es/components/selectV2/src/selectV2.d.ts +36 -44
  60. package/es/components/selectV2/src/selectV2.mjs +1 -1
  61. package/es/components/selectV2/src/selectV2.mjs.map +1 -1
  62. package/es/components/table/src/table.d.ts +6 -6
  63. package/es/components/table/src/table.mjs +1 -1
  64. package/es/components/table/src/table.mjs.map +1 -1
  65. package/es/components/table/src/table.type.d.ts +1 -1
  66. package/es/components/table/src/table.type.mjs.map +1 -1
  67. package/es/components/table/src/tableColumn.mjs +1 -1
  68. package/es/components/table/src/tableColumn.mjs.map +1 -1
  69. package/es/components/table/src/tableColumnSettingDialog.mjs +1 -1
  70. package/es/components/table/src/tableColumnSettingDialog.mjs.map +1 -1
  71. package/es/components/table/src/useTable.mjs +1 -1
  72. package/es/components/table/src/useTable.mjs.map +1 -1
  73. package/es/components/table/utils/table.mjs +1 -1
  74. package/es/components/table/utils/table.mjs.map +1 -1
  75. package/es/components/tree/src/tree.d.ts +68 -174
  76. package/es/components/tree/src/tree.mjs +1 -1
  77. package/es/components/tree/src/tree.mjs.map +1 -1
  78. package/es/components/treeSelect/src/treeSelect.d.ts +123 -221
  79. package/es/components/treeSelect/src/treeSelect.mjs +1 -1
  80. package/es/components/treeSelect/src/treeSelect.mjs.map +1 -1
  81. package/es/directives/click-copy/index.mjs.map +1 -1
  82. package/es/directives/click-debounce/index.mjs.map +1 -1
  83. package/es/directives/click-draggable/index.mjs.map +1 -1
  84. package/es/directives/click-icon-copy/index.mjs.map +1 -1
  85. package/es/directives/click-longpress/index.mjs.map +1 -1
  86. package/es/directives/click-throttle/index.mjs.map +1 -1
  87. package/es/index.mjs +1 -1
  88. package/es/index.mjs.map +1 -1
  89. package/es/make-installer.mjs +1 -1
  90. package/es/make-installer.mjs.map +1 -1
  91. package/es/version.d.ts +1 -1
  92. package/es/version.mjs +1 -1
  93. package/es/version.mjs.map +1 -1
  94. package/lib/components/avatar/src/avatar.d.ts +4 -4
  95. package/lib/components/avatar/src/avatar.js +1 -1
  96. package/lib/components/avatar/src/avatar.js.map +1 -1
  97. package/lib/components/button/src/button.js.map +1 -1
  98. package/lib/components/carNumber/src/carNumber.d.ts +13 -5
  99. package/lib/components/carNumber/src/carNumber.js +1 -1
  100. package/lib/components/carNumber/src/carNumber.js.map +1 -1
  101. package/lib/components/contextMenu/src/contextMenu.js +1 -1
  102. package/lib/components/contextMenu/src/contextMenu.js.map +1 -1
  103. package/lib/components/dialog/src/dialog.d.ts +4 -4
  104. package/lib/components/dialog/src/dialog.js +1 -1
  105. package/lib/components/dialog/src/dialog.js.map +1 -1
  106. package/lib/components/drawer/src/drawer.d.ts +12 -4
  107. package/lib/components/drawer/src/drawer.js +1 -1
  108. package/lib/components/drawer/src/drawer.js.map +1 -1
  109. package/lib/components/form/src/form.js +1 -1
  110. package/lib/components/form/src/form.js.map +1 -1
  111. package/lib/components/form/src/formItem.js +1 -1
  112. package/lib/components/form/src/formItem.js.map +1 -1
  113. package/lib/components/formItemTip/src/formItemTip.js +1 -1
  114. package/lib/components/formItemTip/src/formItemTip.js.map +1 -1
  115. package/lib/components/icon/src/icon.js +1 -1
  116. package/lib/components/icon/src/icon.js.map +1 -1
  117. package/lib/components/iconSelector/src/iconSelector.js +1 -1
  118. package/lib/components/iconSelector/src/iconSelector.js.map +1 -1
  119. package/lib/components/image/src/image.js +1 -1
  120. package/lib/components/image/src/image.js.map +1 -1
  121. package/lib/components/index.d.ts +1 -0
  122. package/lib/components/index.js +1 -1
  123. package/lib/components/inputDialogPage/index.d.ts +14 -0
  124. package/lib/components/inputDialogPage/index.js +2 -0
  125. package/lib/components/inputDialogPage/index.js.map +1 -0
  126. package/lib/components/inputDialogPage/src/inputDialogPage.d.ts +131 -0
  127. package/lib/components/inputDialogPage/src/inputDialogPage.js +2 -0
  128. package/lib/components/inputDialogPage/src/inputDialogPage.js.map +1 -0
  129. package/lib/components/layoutGrid/src/layoutGrid.js +1 -1
  130. package/lib/components/layoutGrid/src/layoutGrid.js.map +1 -1
  131. package/lib/components/layoutGrid/src/layoutGridItem.d.ts +6 -6
  132. package/lib/components/layoutGrid/src/layoutGridItem.js +1 -1
  133. package/lib/components/layoutGrid/src/layoutGridItem.js.map +1 -1
  134. package/lib/components/select/src/select.d.ts +39 -34
  135. package/lib/components/select/src/select.js +1 -1
  136. package/lib/components/select/src/select.js.map +1 -1
  137. package/lib/components/select/src/selectOption.js +1 -1
  138. package/lib/components/select/src/selectOption.js.map +1 -1
  139. package/lib/components/selectPage/src/selectPage.d.ts +39 -25
  140. package/lib/components/selectPage/src/selectPage.js +1 -1
  141. package/lib/components/selectPage/src/selectPage.js.map +1 -1
  142. package/lib/components/selectV2/src/selectV2.d.ts +36 -44
  143. package/lib/components/selectV2/src/selectV2.js +1 -1
  144. package/lib/components/selectV2/src/selectV2.js.map +1 -1
  145. package/lib/components/table/src/table.d.ts +6 -6
  146. package/lib/components/table/src/table.js +1 -1
  147. package/lib/components/table/src/table.js.map +1 -1
  148. package/lib/components/table/src/table.type.d.ts +1 -1
  149. package/lib/components/table/src/table.type.js.map +1 -1
  150. package/lib/components/table/src/tableColumn.js +1 -1
  151. package/lib/components/table/src/tableColumn.js.map +1 -1
  152. package/lib/components/table/src/tableColumnSettingDialog.js +1 -1
  153. package/lib/components/table/src/tableColumnSettingDialog.js.map +1 -1
  154. package/lib/components/table/src/useTable.js.map +1 -1
  155. package/lib/components/table/utils/table.js +1 -1
  156. package/lib/components/table/utils/table.js.map +1 -1
  157. package/lib/components/tree/src/tree.d.ts +68 -174
  158. package/lib/components/tree/src/tree.js +1 -1
  159. package/lib/components/tree/src/tree.js.map +1 -1
  160. package/lib/components/treeSelect/src/treeSelect.d.ts +123 -221
  161. package/lib/components/treeSelect/src/treeSelect.js +1 -1
  162. package/lib/components/treeSelect/src/treeSelect.js.map +1 -1
  163. package/lib/directives/click-copy/index.js.map +1 -1
  164. package/lib/directives/click-debounce/index.js.map +1 -1
  165. package/lib/directives/click-draggable/index.js.map +1 -1
  166. package/lib/directives/click-icon-copy/index.js.map +1 -1
  167. package/lib/directives/click-longpress/index.js.map +1 -1
  168. package/lib/directives/click-throttle/index.js.map +1 -1
  169. package/lib/index.js +1 -1
  170. package/lib/index.js.map +1 -1
  171. package/lib/make-installer.js.map +1 -1
  172. package/lib/version.d.ts +1 -1
  173. package/lib/version.js +1 -1
  174. package/lib/version.js.map +1 -1
  175. package/package.json +3 -3
  176. package/styles/components/dialog.scss +1 -1
  177. package/styles/components/select.scss +35 -0
  178. package/styles/components/selectPage.scss +0 -30
  179. package/styles/components/table.scss +1 -1
  180. package/styles/components/tree.scss +17 -2
  181. package/styles/index.scss +1 -0
  182. package/types/components.d.ts +110 -1
@@ -69,10 +69,10 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
69
69
  })
70
70
  });
71
71
  const elAvatarProps = utils.useProps(props, ElementPlus2.avatarProps, ["src"]);
72
- utils.useRender(() => vue.createVNode(ElementPlus2.ElAvatar, vue.mergeProps(elAvatarProps.value, {
72
+ const elAvatarEmits = utils.useEmits(ElementPlus2.avatarEmits, emit);
73
+ utils.useRender(() => vue.createVNode(ElementPlus2.ElAvatar, vue.mergeProps(elAvatarProps.value, elAvatarEmits.value, {
73
74
  "class": "fa-avatar",
74
- "src": state.src,
75
- "onError": (evt) => emit("error", evt)
75
+ "src": state.src
76
76
  }), {
77
77
  default: () => [slots.default && slots.default({
78
78
  src: state.src
@@ -315,12 +315,12 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
315
315
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
316
316
  var root = freeGlobal || freeSelf || Function("return this")();
317
317
  var Symbol$1 = root.Symbol;
318
- var objectProto$s = Object.prototype;
319
- var hasOwnProperty$o = objectProto$s.hasOwnProperty;
320
- var nativeObjectToString$3 = objectProto$s.toString;
318
+ var objectProto$t = Object.prototype;
319
+ var hasOwnProperty$p = objectProto$t.hasOwnProperty;
320
+ var nativeObjectToString$3 = objectProto$t.toString;
321
321
  var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : void 0;
322
322
  function getRawTag(value) {
323
- var isOwn = hasOwnProperty$o.call(value, symToStringTag$1), tag2 = value[symToStringTag$1];
323
+ var isOwn = hasOwnProperty$p.call(value, symToStringTag$1), tag2 = value[symToStringTag$1];
324
324
  try {
325
325
  value[symToStringTag$1] = void 0;
326
326
  var unmasked = true;
@@ -336,8 +336,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
336
336
  }
337
337
  return result2;
338
338
  }
339
- var objectProto$r = Object.prototype;
340
- var nativeObjectToString$2 = objectProto$r.toString;
339
+ var objectProto$s = Object.prototype;
340
+ var nativeObjectToString$2 = objectProto$s.toString;
341
341
  function objectToString(value) {
342
342
  return nativeObjectToString$2.call(value);
343
343
  }
@@ -519,11 +519,11 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
519
519
  }
520
520
  var reRegExpChar$1 = /[\\^$.*+?()[\]{}|]/g;
521
521
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
522
- var funcProto$1 = Function.prototype, objectProto$q = Object.prototype;
522
+ var funcProto$1 = Function.prototype, objectProto$r = Object.prototype;
523
523
  var funcToString$1 = funcProto$1.toString;
524
- var hasOwnProperty$n = objectProto$q.hasOwnProperty;
524
+ var hasOwnProperty$o = objectProto$r.hasOwnProperty;
525
525
  var reIsNative = RegExp(
526
- "^" + funcToString$1.call(hasOwnProperty$n).replace(reRegExpChar$1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
526
+ "^" + funcToString$1.call(hasOwnProperty$o).replace(reRegExpChar$1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
527
527
  );
528
528
  function baseIsNative(value) {
529
529
  if (!isObject$1(value) || isMasked(value)) {
@@ -671,10 +671,10 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
671
671
  return metaMap.get(func2);
672
672
  };
673
673
  var realNames = {};
674
- var objectProto$p = Object.prototype;
675
- var hasOwnProperty$m = objectProto$p.hasOwnProperty;
674
+ var objectProto$q = Object.prototype;
675
+ var hasOwnProperty$n = objectProto$q.hasOwnProperty;
676
676
  function getFuncName(func2) {
677
- var result2 = func2.name + "", array2 = realNames[result2], length = hasOwnProperty$m.call(realNames, result2) ? array2.length : 0;
677
+ var result2 = func2.name + "", array2 = realNames[result2], length = hasOwnProperty$n.call(realNames, result2) ? array2.length : 0;
678
678
  while (length--) {
679
679
  var data = array2[length], otherFunc = data.func;
680
680
  if (otherFunc == null || otherFunc == func2) {
@@ -710,14 +710,14 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
710
710
  result2.__values__ = wrapper.__values__;
711
711
  return result2;
712
712
  }
713
- var objectProto$o = Object.prototype;
714
- var hasOwnProperty$l = objectProto$o.hasOwnProperty;
713
+ var objectProto$p = Object.prototype;
714
+ var hasOwnProperty$m = objectProto$p.hasOwnProperty;
715
715
  function lodash(value) {
716
716
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
717
717
  if (value instanceof LodashWrapper) {
718
718
  return value;
719
719
  }
720
- if (hasOwnProperty$l.call(value, "__wrapped__")) {
720
+ if (hasOwnProperty$m.call(value, "__wrapped__")) {
721
721
  return wrapperClone(value);
722
722
  }
723
723
  }
@@ -1123,11 +1123,11 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
1123
1123
  function eq(value, other) {
1124
1124
  return value === other || value !== value && other !== other;
1125
1125
  }
1126
- var objectProto$n = Object.prototype;
1127
- var hasOwnProperty$k = objectProto$n.hasOwnProperty;
1126
+ var objectProto$o = Object.prototype;
1127
+ var hasOwnProperty$l = objectProto$o.hasOwnProperty;
1128
1128
  function assignValue(object2, key, value) {
1129
1129
  var objValue = object2[key];
1130
- if (!(hasOwnProperty$k.call(object2, key) && eq(objValue, value)) || value === void 0 && !(key in object2)) {
1130
+ if (!(hasOwnProperty$l.call(object2, key) && eq(objValue, value)) || value === void 0 && !(key in object2)) {
1131
1131
  baseAssignValue(object2, key, value);
1132
1132
  }
1133
1133
  }
@@ -1204,9 +1204,9 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
1204
1204
  return object2;
1205
1205
  });
1206
1206
  }
1207
- var objectProto$m = Object.prototype;
1207
+ var objectProto$n = Object.prototype;
1208
1208
  function isPrototype(value) {
1209
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$m;
1209
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$n;
1210
1210
  return value === proto;
1211
1211
  }
1212
1212
  function baseTimes(n, iteratee2) {
@@ -1220,13 +1220,13 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
1220
1220
  function baseIsArguments(value) {
1221
1221
  return isObjectLike(value) && baseGetTag(value) == argsTag$3;
1222
1222
  }
1223
- var objectProto$l = Object.prototype;
1224
- var hasOwnProperty$j = objectProto$l.hasOwnProperty;
1225
- var propertyIsEnumerable$1 = objectProto$l.propertyIsEnumerable;
1223
+ var objectProto$m = Object.prototype;
1224
+ var hasOwnProperty$k = objectProto$m.hasOwnProperty;
1225
+ var propertyIsEnumerable$1 = objectProto$m.propertyIsEnumerable;
1226
1226
  var isArguments = baseIsArguments(/* @__PURE__ */ (function() {
1227
1227
  return arguments;
1228
1228
  })()) ? baseIsArguments : function(value) {
1229
- return isObjectLike(value) && hasOwnProperty$j.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
1229
+ return isObjectLike(value) && hasOwnProperty$k.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
1230
1230
  };
1231
1231
  function stubFalse() {
1232
1232
  return false;
@@ -1266,12 +1266,12 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
1266
1266
  })();
1267
1267
  var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
1268
1268
  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1269
- var objectProto$k = Object.prototype;
1270
- var hasOwnProperty$i = objectProto$k.hasOwnProperty;
1269
+ var objectProto$l = Object.prototype;
1270
+ var hasOwnProperty$j = objectProto$l.hasOwnProperty;
1271
1271
  function arrayLikeKeys(value, inherited) {
1272
1272
  var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String) : [], length = result2.length;
1273
1273
  for (var key in value) {
1274
- if ((inherited || hasOwnProperty$i.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
1274
+ if ((inherited || hasOwnProperty$j.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
1275
1275
  (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1276
1276
  isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1277
1277
  isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
@@ -1287,15 +1287,15 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
1287
1287
  };
1288
1288
  }
1289
1289
  var nativeKeys = overArg(Object.keys, Object);
1290
- var objectProto$j = Object.prototype;
1291
- var hasOwnProperty$h = objectProto$j.hasOwnProperty;
1290
+ var objectProto$k = Object.prototype;
1291
+ var hasOwnProperty$i = objectProto$k.hasOwnProperty;
1292
1292
  function baseKeys(object2) {
1293
1293
  if (!isPrototype(object2)) {
1294
1294
  return nativeKeys(object2);
1295
1295
  }
1296
1296
  var result2 = [];
1297
1297
  for (var key in Object(object2)) {
1298
- if (hasOwnProperty$h.call(object2, key) && key != "constructor") {
1298
+ if (hasOwnProperty$i.call(object2, key) && key != "constructor") {
1299
1299
  result2.push(key);
1300
1300
  }
1301
1301
  }
@@ -1304,15 +1304,15 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
1304
1304
  function keys$1(object2) {
1305
1305
  return isArrayLike(object2) ? arrayLikeKeys(object2) : baseKeys(object2);
1306
1306
  }
1307
- var objectProto$i = Object.prototype;
1308
- var hasOwnProperty$g = objectProto$i.hasOwnProperty;
1307
+ var objectProto$j = Object.prototype;
1308
+ var hasOwnProperty$h = objectProto$j.hasOwnProperty;
1309
1309
  var assign = createAssigner(function(object2, source) {
1310
1310
  if (isPrototype(source) || isArrayLike(source)) {
1311
1311
  copyObject(source, keys$1(source), object2);
1312
1312
  return;
1313
1313
  }
1314
1314
  for (var key in source) {
1315
- if (hasOwnProperty$g.call(source, key)) {
1315
+ if (hasOwnProperty$h.call(source, key)) {
1316
1316
  assignValue(object2, key, source[key]);
1317
1317
  }
1318
1318
  }
@@ -1326,15 +1326,15 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
1326
1326
  }
1327
1327
  return result2;
1328
1328
  }
1329
- var objectProto$h = Object.prototype;
1330
- var hasOwnProperty$f = objectProto$h.hasOwnProperty;
1329
+ var objectProto$i = Object.prototype;
1330
+ var hasOwnProperty$g = objectProto$i.hasOwnProperty;
1331
1331
  function baseKeysIn(object2) {
1332
1332
  if (!isObject$1(object2)) {
1333
1333
  return nativeKeysIn(object2);
1334
1334
  }
1335
1335
  var isProto = isPrototype(object2), result2 = [];
1336
1336
  for (var key in object2) {
1337
- if (!(key == "constructor" && (isProto || !hasOwnProperty$f.call(object2, key)))) {
1337
+ if (!(key == "constructor" && (isProto || !hasOwnProperty$g.call(object2, key)))) {
1338
1338
  result2.push(key);
1339
1339
  }
1340
1340
  }
@@ -1374,21 +1374,21 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
1374
1374
  return result2;
1375
1375
  }
1376
1376
  var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
1377
- var objectProto$g = Object.prototype;
1378
- var hasOwnProperty$e = objectProto$g.hasOwnProperty;
1377
+ var objectProto$h = Object.prototype;
1378
+ var hasOwnProperty$f = objectProto$h.hasOwnProperty;
1379
1379
  function hashGet(key) {
1380
1380
  var data = this.__data__;
1381
1381
  if (nativeCreate) {
1382
1382
  var result2 = data[key];
1383
1383
  return result2 === HASH_UNDEFINED$2 ? void 0 : result2;
1384
1384
  }
1385
- return hasOwnProperty$e.call(data, key) ? data[key] : void 0;
1385
+ return hasOwnProperty$f.call(data, key) ? data[key] : void 0;
1386
1386
  }
1387
- var objectProto$f = Object.prototype;
1388
- var hasOwnProperty$d = objectProto$f.hasOwnProperty;
1387
+ var objectProto$g = Object.prototype;
1388
+ var hasOwnProperty$e = objectProto$g.hasOwnProperty;
1389
1389
  function hashHas(key) {
1390
1390
  var data = this.__data__;
1391
- return nativeCreate ? data[key] !== void 0 : hasOwnProperty$d.call(data, key);
1391
+ return nativeCreate ? data[key] !== void 0 : hasOwnProperty$e.call(data, key);
1392
1392
  }
1393
1393
  var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
1394
1394
  function hashSet(key, value) {
@@ -1632,9 +1632,9 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
1632
1632
  var at = flatRest(baseAt);
1633
1633
  var getPrototype = overArg(Object.getPrototypeOf, Object);
1634
1634
  var objectTag$3 = "[object Object]";
1635
- var funcProto = Function.prototype, objectProto$e = Object.prototype;
1635
+ var funcProto = Function.prototype, objectProto$f = Object.prototype;
1636
1636
  var funcToString = funcProto.toString;
1637
- var hasOwnProperty$c = objectProto$e.hasOwnProperty;
1637
+ var hasOwnProperty$d = objectProto$f.hasOwnProperty;
1638
1638
  var objectCtorString = funcToString.call(Object);
1639
1639
  function isPlainObject(value) {
1640
1640
  if (!isObjectLike(value) || baseGetTag(value) != objectTag$3) {
@@ -1644,7 +1644,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
1644
1644
  if (proto === null) {
1645
1645
  return true;
1646
1646
  }
1647
- var Ctor = hasOwnProperty$c.call(proto, "constructor") && proto.constructor;
1647
+ var Ctor = hasOwnProperty$d.call(proto, "constructor") && proto.constructor;
1648
1648
  return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
1649
1649
  }
1650
1650
  var domExcTag = "[object DOMException]", errorTag$2 = "[object Error]";
@@ -2162,8 +2162,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
2162
2162
  function stubArray() {
2163
2163
  return [];
2164
2164
  }
2165
- var objectProto$d = Object.prototype;
2166
- var propertyIsEnumerable = objectProto$d.propertyIsEnumerable;
2165
+ var objectProto$e = Object.prototype;
2166
+ var propertyIsEnumerable = objectProto$e.propertyIsEnumerable;
2167
2167
  var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
2168
2168
  var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object2) {
2169
2169
  if (object2 == null) {
@@ -2227,11 +2227,11 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
2227
2227
  };
2228
2228
  }
2229
2229
  const getTag$1 = getTag;
2230
- var objectProto$c = Object.prototype;
2231
- var hasOwnProperty$b = objectProto$c.hasOwnProperty;
2230
+ var objectProto$d = Object.prototype;
2231
+ var hasOwnProperty$c = objectProto$d.hasOwnProperty;
2232
2232
  function initCloneArray(array2) {
2233
2233
  var length = array2.length, result2 = new array2.constructor(length);
2234
- if (length && typeof array2[0] == "string" && hasOwnProperty$b.call(array2, "index")) {
2234
+ if (length && typeof array2[0] == "string" && hasOwnProperty$c.call(array2, "index")) {
2235
2235
  result2.index = array2.index;
2236
2236
  result2.input = array2.input;
2237
2237
  }
@@ -2557,8 +2557,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
2557
2557
  return false;
2558
2558
  }
2559
2559
  var COMPARE_PARTIAL_FLAG$3 = 1;
2560
- var objectProto$b = Object.prototype;
2561
- var hasOwnProperty$a = objectProto$b.hasOwnProperty;
2560
+ var objectProto$c = Object.prototype;
2561
+ var hasOwnProperty$b = objectProto$c.hasOwnProperty;
2562
2562
  function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
2563
2563
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys(object2), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
2564
2564
  if (objLength != othLength && !isPartial) {
@@ -2567,7 +2567,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
2567
2567
  var index2 = objLength;
2568
2568
  while (index2--) {
2569
2569
  var key = objProps[index2];
2570
- if (!(isPartial ? key in other : hasOwnProperty$a.call(other, key))) {
2570
+ if (!(isPartial ? key in other : hasOwnProperty$b.call(other, key))) {
2571
2571
  return false;
2572
2572
  }
2573
2573
  }
@@ -2604,8 +2604,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
2604
2604
  }
2605
2605
  var COMPARE_PARTIAL_FLAG$2 = 1;
2606
2606
  var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
2607
- var objectProto$a = Object.prototype;
2608
- var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
2607
+ var objectProto$b = Object.prototype;
2608
+ var hasOwnProperty$a = objectProto$b.hasOwnProperty;
2609
2609
  function baseIsEqualDeep(object2, other, bitmask, customizer, equalFunc, stack) {
2610
2610
  var objIsArr = isArray(object2), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag$1(object2), othTag = othIsArr ? arrayTag : getTag$1(other);
2611
2611
  objTag = objTag == argsTag ? objectTag : objTag;
@@ -2623,7 +2623,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
2623
2623
  return objIsArr || isTypedArray(object2) ? equalArrays(object2, other, bitmask, customizer, equalFunc, stack) : equalByTag(object2, other, objTag, bitmask, customizer, equalFunc, stack);
2624
2624
  }
2625
2625
  if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
2626
- var objIsWrapped = objIsObj && hasOwnProperty$9.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$9.call(other, "__wrapped__");
2626
+ var objIsWrapped = objIsObj && hasOwnProperty$a.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$a.call(other, "__wrapped__");
2627
2627
  if (objIsWrapped || othIsWrapped) {
2628
2628
  var objUnwrapped = objIsWrapped ? object2.value() : object2, othUnwrapped = othIsWrapped ? other.value() : other;
2629
2629
  stack || (stack = new Stack());
@@ -2862,10 +2862,10 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
2862
2862
  return func2(collection2, setter, baseIteratee(iteratee2, 2), accumulator);
2863
2863
  };
2864
2864
  }
2865
- var objectProto$9 = Object.prototype;
2866
- var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
2865
+ var objectProto$a = Object.prototype;
2866
+ var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
2867
2867
  var countBy = createAggregator(function(result2, value, key) {
2868
- if (hasOwnProperty$8.call(result2, key)) {
2868
+ if (hasOwnProperty$9.call(result2, key)) {
2869
2869
  ++result2[key];
2870
2870
  } else {
2871
2871
  baseAssignValue(result2, key, 1);
@@ -2980,8 +2980,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
2980
2980
  function defaultTo(value, defaultValue) {
2981
2981
  return value == null || value !== value ? defaultValue : value;
2982
2982
  }
2983
- var objectProto$8 = Object.prototype;
2984
- var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
2983
+ var objectProto$9 = Object.prototype;
2984
+ var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
2985
2985
  var defaults$2 = baseRest(function(object2, sources) {
2986
2986
  object2 = Object(object2);
2987
2987
  var index2 = -1;
@@ -2998,7 +2998,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
2998
2998
  while (++propsIndex < propsLength) {
2999
2999
  var key = props[propsIndex];
3000
3000
  var value = object2[key];
3001
- if (value === void 0 || eq(value, objectProto$8[key]) && !hasOwnProperty$7.call(object2, key)) {
3001
+ if (value === void 0 || eq(value, objectProto$9[key]) && !hasOwnProperty$8.call(object2, key)) {
3002
3002
  object2[key] = source[key];
3003
3003
  }
3004
3004
  }
@@ -3532,10 +3532,10 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
3532
3532
  function functionsIn(object2) {
3533
3533
  return object2 == null ? [] : baseFunctions(object2, keysIn(object2));
3534
3534
  }
3535
- var objectProto$7 = Object.prototype;
3536
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
3535
+ var objectProto$8 = Object.prototype;
3536
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
3537
3537
  var groupBy = createAggregator(function(result2, value, key) {
3538
- if (hasOwnProperty$6.call(result2, key)) {
3538
+ if (hasOwnProperty$7.call(result2, key)) {
3539
3539
  result2[key].push(value);
3540
3540
  } else {
3541
3541
  baseAssignValue(result2, key, [value]);
@@ -3557,10 +3557,10 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
3557
3557
  var gte = createRelationalOperation(function(value, other) {
3558
3558
  return value >= other;
3559
3559
  });
3560
- var objectProto$6 = Object.prototype;
3561
- var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
3560
+ var objectProto$7 = Object.prototype;
3561
+ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
3562
3562
  function baseHas(object2, key) {
3563
- return object2 != null && hasOwnProperty$5.call(object2, key);
3563
+ return object2 != null && hasOwnProperty$6.call(object2, key);
3564
3564
  }
3565
3565
  function has(object2, path) {
3566
3566
  return object2 != null && hasPath(object2, path, baseHas);
@@ -3686,22 +3686,22 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
3686
3686
  return baseInverter(object2, setter, toIteratee(iteratee2), {});
3687
3687
  };
3688
3688
  }
3689
- var objectProto$5 = Object.prototype;
3690
- var nativeObjectToString$1 = objectProto$5.toString;
3689
+ var objectProto$6 = Object.prototype;
3690
+ var nativeObjectToString$1 = objectProto$6.toString;
3691
3691
  var invert = createInverter(function(result2, value, key) {
3692
3692
  if (value != null && typeof value.toString != "function") {
3693
3693
  value = nativeObjectToString$1.call(value);
3694
3694
  }
3695
3695
  result2[value] = key;
3696
3696
  }, constant(identity$1));
3697
- var objectProto$4 = Object.prototype;
3698
- var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
3699
- var nativeObjectToString = objectProto$4.toString;
3697
+ var objectProto$5 = Object.prototype;
3698
+ var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
3699
+ var nativeObjectToString = objectProto$5.toString;
3700
3700
  var invertBy = createInverter(function(result2, value, key) {
3701
3701
  if (value != null && typeof value.toString != "function") {
3702
3702
  value = nativeObjectToString.call(value);
3703
3703
  }
3704
- if (hasOwnProperty$4.call(result2, value)) {
3704
+ if (hasOwnProperty$5.call(result2, value)) {
3705
3705
  result2[value].push(key);
3706
3706
  } else {
3707
3707
  result2[value] = [key];
@@ -3744,8 +3744,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
3744
3744
  return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
3745
3745
  }
3746
3746
  var mapTag$2 = "[object Map]", setTag$2 = "[object Set]";
3747
- var objectProto$3 = Object.prototype;
3748
- var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
3747
+ var objectProto$4 = Object.prototype;
3748
+ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
3749
3749
  function isEmpty(value) {
3750
3750
  if (value == null) {
3751
3751
  return true;
@@ -3761,7 +3761,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
3761
3761
  return !baseKeys(value).length;
3762
3762
  }
3763
3763
  for (var key in value) {
3764
- if (hasOwnProperty$3.call(value, key)) {
3764
+ if (hasOwnProperty$4.call(value, key)) {
3765
3765
  return false;
3766
3766
  }
3767
3767
  }
@@ -4049,10 +4049,32 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
4049
4049
  return baseNth(args, n);
4050
4050
  });
4051
4051
  }
4052
+ var objectProto$3 = Object.prototype;
4053
+ var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
4052
4054
  function baseUnset(object2, path) {
4053
4055
  path = castPath(path, object2);
4054
- object2 = parent(object2, path);
4055
- return object2 == null || delete object2[toKey(last(path))];
4056
+ var index2 = -1, length = path.length;
4057
+ if (!length) {
4058
+ return true;
4059
+ }
4060
+ var isRootPrimitive = object2 == null || typeof object2 !== "object" && typeof object2 !== "function";
4061
+ while (++index2 < length) {
4062
+ var key = path[index2];
4063
+ if (typeof key !== "string") {
4064
+ continue;
4065
+ }
4066
+ if (key === "__proto__" && !hasOwnProperty$3.call(object2, "__proto__")) {
4067
+ return false;
4068
+ }
4069
+ if (key === "constructor" && index2 + 1 < length && typeof path[index2 + 1] === "string" && path[index2 + 1] === "prototype") {
4070
+ if (isRootPrimitive && index2 === 0) {
4071
+ continue;
4072
+ }
4073
+ return false;
4074
+ }
4075
+ }
4076
+ var obj = parent(object2, path);
4077
+ return obj == null || delete obj[toKey(last(path))];
4056
4078
  }
4057
4079
  function customOmitClone(value) {
4058
4080
  return isPlainObject(value) ? void 0 : value;
@@ -5825,7 +5847,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
5825
5847
  }
5826
5848
  return result2;
5827
5849
  }
5828
- var VERSION = "4.17.21";
5850
+ var VERSION = "4.17.22";
5829
5851
  var WRAP_BIND_KEY_FLAG = 2;
5830
5852
  var LAZY_FILTER_FLAG = 1, LAZY_WHILE_FLAG = 3;
5831
5853
  var MAX_ARRAY_LENGTH = 4294967295;
@@ -6337,7 +6359,6 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
6337
6359
  * @description 点击事件
6338
6360
  * @param done 需要手动隐藏Loading
6339
6361
  */
6340
- // eslint-disable-next-line @typescript-eslint/no-empty-function
6341
6362
  click: (event, done = () => {
6342
6363
  }) => event instanceof MouseEvent && isFunction(done)
6343
6364
  };
@@ -6619,226 +6640,13 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
6619
6640
  "C",
6620
6641
  "V",
6621
6642
  "B",
6622
- "N",
6623
- "M",
6624
- "警",
6625
- "港",
6626
- "澳"
6627
- ];
6628
- const CarNumberDigit = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"];
6629
- function _isSlot$6(s) {
6630
- return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
6631
- }
6632
- const CarNumber = /* @__PURE__ */ vue.defineComponent({
6633
- name: "FaCarNumber",
6634
- props: {
6635
- ...ElementPlus2.inputProps,
6636
- /** @description placeholder */
6637
- placeholder: {
6638
- type: String,
6639
- default: "请选择"
6640
- }
6641
- },
6642
- emits: {
6643
- /** @description v-model 回调 */
6644
- "update:modelValue": (value) => isString(value) || isNull(value),
6645
- /** @description 改变 */
6646
- change: (value) => isString(value) || isNull(value)
6647
- },
6648
- setup(props, {
6649
- attrs,
6650
- emit
6651
- }) {
6652
- const state = vue.reactive({
6653
- value: utils.withDefineType(),
6654
- switchLetter: vue.computed(() => {
6655
- if (state.value?.length >= 1) {
6656
- return true;
6657
- }
6658
- return false;
6659
- }),
6660
- disabledButton: vue.computed(() => {
6661
- if (state.value?.length >= 8) {
6662
- return true;
6663
- }
6664
- return false;
6665
- })
6666
- });
6667
- const popoverRef = vue.ref();
6668
- const formContext = vue.inject(ElementPlus2.formContextKey, void 0);
6669
- const formItemContext = vue.inject(ElementPlus2.formItemContextKey, void 0);
6670
- const handleInputFormatter = (value) => {
6671
- if (value.length === 2) {
6672
- return `${value} ● `;
6673
- } else if (value.length > 2) {
6674
- return `${value.slice(0, 2)} ● ${value.slice(2)}`;
6675
- } else {
6676
- return value;
6677
- }
6678
- };
6679
- const handleSelectCarNumber = (value) => {
6680
- state.value ??= "";
6681
- state.value += value;
6682
- };
6683
- const handleBackClick = () => {
6684
- if (state.value?.length === 0) return;
6685
- state.value = state.value.substring(0, state.value.length - 1);
6686
- };
6687
- const handleConfirmClick = () => {
6688
- let success = false;
6689
- if (state.value.length === 7) {
6690
- success = RegExps.CarNumber.test(state.value);
6691
- } else if (state.value.length === 8) {
6692
- success = RegExps.NewEnergyCarNumber.test(state.value);
6693
- }
6694
- if (success) {
6695
- emit("update:modelValue", state.value);
6696
- emit("change", state.value);
6697
- formItemContext?.prop && formContext?.validateField([formItemContext.prop]);
6698
- } else {
6699
- if (formItemContext?.prop && formContext) {
6700
- emit("update:modelValue", state.value);
6701
- emit("change", state.value);
6702
- formContext.validateField([formItemContext.prop]);
6703
- } else {
6704
- ElementPlus2.ElMessage.error("车牌号格式不正确");
6705
- }
6706
- }
6707
- popoverRef.value?.hide();
6708
- };
6709
- const handleClearClick = () => {
6710
- state.value = null;
6711
- emit("update:modelValue", null);
6712
- emit("change", null);
6713
- formItemContext?.prop && formContext?.validateField([formItemContext.prop]);
6714
- };
6715
- vue.watch(() => props.modelValue, (newValue) => {
6716
- state.value = newValue.toString();
6717
- }, {
6718
- immediate: true
6719
- });
6720
- const elInputProps = utils.useProps(props, ElementPlus2.inputProps, ["modelValue", "readonly", "formatter"]);
6721
- utils.useRender(() => vue.createVNode(ElementPlus2.ElPopover, {
6722
- "ref": popoverRef,
6723
- "width": "auto",
6724
- "popperClass": "fa-car-number__popover",
6725
- "trigger": "click",
6726
- "showArrow": false,
6727
- "showAfter": 0,
6728
- "hideAfter": 0
6729
- }, {
6730
- reference: () => vue.createVNode(ElementPlus2.ElInput, vue.mergeProps(elInputProps.value, {
6731
- "class": "fa-car-number__input",
6732
- "modelValue": state.value,
6733
- "onUpdate:modelValue": ($event) => state.value = $event,
6734
- "readonly": true,
6735
- "formatter": handleInputFormatter
6736
- }), null),
6737
- default: () => vue.createVNode(vue.Fragment, null, [vue.createVNode("div", {
6738
- "class": ["fa-car-number__popover__area", state.switchLetter ? "fa-car-number__popover__hide" : ""]
6739
- }, [CarNumberArea.map((area) => vue.createVNode(ElementPlus2.ElButton, {
6740
- "disabled": state.disabledButton,
6741
- "onClick": () => handleSelectCarNumber(area)
6742
- }, _isSlot$6(area) ? area : {
6743
- default: () => [area]
6744
- }))]), vue.createVNode("div", {
6745
- "class": ["fa-car-number__popover__digit-letter", state.switchLetter ? "" : "fa-car-number__popover__hide"]
6746
- }, [CarNumberDigit.map((digit) => vue.createVNode(ElementPlus2.ElButton, {
6747
- "disabled": state.disabledButton,
6748
- "onClick": () => handleSelectCarNumber(digit)
6749
- }, _isSlot$6(digit) ? digit : {
6750
- default: () => [digit]
6751
- })), CarNumberLetter.map((letter) => vue.createVNode(ElementPlus2.ElButton, {
6752
- "disabled": state.disabledButton,
6753
- "onClick": () => handleSelectCarNumber(letter)
6754
- }, _isSlot$6(letter) ? letter : {
6755
- default: () => [letter]
6756
- }))]), vue.createVNode("div", {
6757
- "class": "fa-car-number__popover__btn"
6758
- }, [vue.createVNode(ElementPlus2.ElButton, {
6759
- "class": "fa-car-number__popover__btn__clear",
6760
- "disabled": state.value === null || state.value.length === 0,
6761
- "onClick": handleClearClick
6762
- }, {
6763
- default: () => [vue.createTextVNode("清除")]
6764
- }), vue.createVNode(ElementPlus2.ElButton, {
6765
- "class": "fa-car-number__popover__btn__back",
6766
- "type": "danger",
6767
- "icon": ElementPlusIconsVue2.Back,
6768
- "disabled": state.value === null || state.value.length === 0,
6769
- "onClick": handleBackClick
6770
- }, null), vue.createVNode(ElementPlus2.ElButton, {
6771
- "class": "fa-car-number__popover__btn__confirm",
6772
- "type": "primary",
6773
- "disabled": state.value === null || state.value.length < 7,
6774
- "onClick": handleConfirmClick
6775
- }, {
6776
- default: () => [vue.createTextVNode("确认")]
6777
- })])])
6778
- }));
6779
- }
6780
- });
6781
- const FaCarNumber = utils.withInstall(CarNumber);
6782
- function _isSlot$5(s) {
6783
- return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
6784
- }
6785
- const faIconProps = {
6786
- /** @description el-icon- 使用 El-icon 的图标;fa-icon 使用 Fast 图标组件库; */
6787
- name: {
6788
- type: String,
6789
- required: true
6790
- },
6791
- /** @description 大小 */
6792
- size: {
6793
- type: [String, Number]
6794
- },
6795
- /** @description 颜色*/
6796
- color: String
6797
- };
6798
- const Icon = /* @__PURE__ */ vue.defineComponent({
6799
- name: "FaIcon",
6800
- props: faIconProps,
6801
- setup(props, {
6802
- attrs
6803
- }) {
6804
- const state = vue.reactive({
6805
- isUrl: vue.computed(() => RegExps.External.test(props.name)),
6806
- style: vue.computed(() => {
6807
- const result2 = {};
6808
- if (props.size) {
6809
- result2.size = utils.addUnit(props.size);
6810
- }
6811
- if (props.color) {
6812
- result2.color = props.color;
6813
- }
6814
- if (state.isUrl) {
6815
- result2.mask = `url(${props.name}) no-repeat 50% 50%`;
6816
- result2["-webkit-mask"] = `url(${props.name}) no-repeat 50% 50%`;
6817
- }
6818
- return result2;
6819
- })
6820
- });
6821
- utils.useRender(() => {
6822
- let _slot, _slot2;
6823
- return props.name.indexOf("el-icon-") === 0 ? vue.createVNode(ElementPlus2.ElIcon, vue.mergeProps(attrs, props, {
6824
- "class": ["fa-icon", props.name]
6825
- }), _isSlot$5(_slot = vue.h(vue.resolveComponent(props.name))) ? _slot : {
6826
- default: () => [_slot]
6827
- }) : props.name.indexOf("fa-icon") === 0 ? vue.createVNode(ElementPlus2.ElIcon, vue.mergeProps(attrs, props, {
6828
- "class": ["fa-icon", props.name]
6829
- }), _isSlot$5(_slot2 = vue.h(vue.resolveComponent(props.name))) ? _slot2 : {
6830
- default: () => [_slot2]
6831
- }) : state.isUrl ? vue.createVNode("div", vue.mergeProps(attrs, {
6832
- "class": "el-icon fa-icon url-icon",
6833
- "style": state.style
6834
- }), null) : vue.createVNode("i", vue.mergeProps(attrs, {
6835
- "class": ["el-icon fa-icon", props.name],
6836
- "style": state.style
6837
- }), null);
6838
- });
6839
- }
6840
- });
6841
- const FaIcon = utils.withInstall(Icon);
6643
+ "N",
6644
+ "M",
6645
+ "警",
6646
+ "港",
6647
+ "澳"
6648
+ ];
6649
+ const CarNumberDigit = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"];
6842
6650
  function computedEager(fn, options) {
6843
6651
  var _options$flush;
6844
6652
  const result2 = vue.shallowRef();
@@ -9261,7 +9069,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
9261
9069
  error
9262
9070
  };
9263
9071
  }
9264
- const ssrWidthSymbol = Symbol("vueuse-ssr-width");
9072
+ const ssrWidthSymbol = /* @__PURE__ */ Symbol("vueuse-ssr-width");
9265
9073
  // @__NO_SIDE_EFFECTS__
9266
9074
  function useSSRWidth() {
9267
9075
  const ssrWidth = vue.hasInjectionContext() ? /* @__PURE__ */ injectLocal(ssrWidthSymbol, null) : null;
@@ -15135,6 +14943,221 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
15135
14943
  height
15136
14944
  };
15137
14945
  }
14946
+ function _isSlot$6(s) {
14947
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
14948
+ }
14949
+ const CarNumber = /* @__PURE__ */ vue.defineComponent({
14950
+ name: "FaCarNumber",
14951
+ props: {
14952
+ ...ElementPlus2.inputProps,
14953
+ /** @description v-model绑定值 */
14954
+ modelValue: {
14955
+ type: String,
14956
+ default: void 0
14957
+ },
14958
+ /** @description placeholder */
14959
+ placeholder: {
14960
+ type: String,
14961
+ default: "请选择"
14962
+ }
14963
+ },
14964
+ emits: {
14965
+ /** @description v-model 回调 */
14966
+ "update:modelValue": (value) => isString(value) || isNull(value),
14967
+ /** @description 改变 */
14968
+ change: (value) => isString(value) || isNull(value)
14969
+ },
14970
+ setup(props, {
14971
+ attrs,
14972
+ slots,
14973
+ emit,
14974
+ expose
14975
+ }) {
14976
+ const modelValue = /* @__PURE__ */ useVModel(props, "modelValue", emit);
14977
+ const state = vue.reactive({
14978
+ switchLetter: vue.computed(() => {
14979
+ if (modelValue.value?.length >= 1) {
14980
+ return true;
14981
+ }
14982
+ return false;
14983
+ }),
14984
+ disabledButton: vue.computed(() => {
14985
+ if (modelValue.value?.length >= 8) {
14986
+ return true;
14987
+ }
14988
+ return false;
14989
+ })
14990
+ });
14991
+ const popoverRef = vue.ref();
14992
+ const formContext = vue.inject(ElementPlus2.formContextKey, void 0);
14993
+ const formItemContext = vue.inject(ElementPlus2.formItemContextKey, void 0);
14994
+ const handleInputFormatter = (value) => {
14995
+ if (value.length === 2) {
14996
+ return `${value} ● `;
14997
+ } else if (value.length > 2) {
14998
+ return `${value.slice(0, 2)} ● ${value.slice(2)}`;
14999
+ } else {
15000
+ return value;
15001
+ }
15002
+ };
15003
+ const handleSelectCarNumber = (value) => {
15004
+ modelValue.value ??= "";
15005
+ modelValue.value += value;
15006
+ };
15007
+ const handleBackClick = () => {
15008
+ if (modelValue.value?.length === 0) return;
15009
+ modelValue.value = modelValue.value.substring(0, modelValue.value.length - 1);
15010
+ };
15011
+ const handleConfirmClick = () => {
15012
+ let success = false;
15013
+ if (modelValue.value.length === 7) {
15014
+ success = RegExps.CarNumber.test(modelValue.value);
15015
+ } else if (modelValue.value.length === 8) {
15016
+ success = RegExps.NewEnergyCarNumber.test(modelValue.value);
15017
+ }
15018
+ if (success) {
15019
+ emit("change", modelValue.value);
15020
+ formItemContext?.prop && formContext?.validateField([formItemContext.prop]);
15021
+ } else {
15022
+ if (formItemContext?.prop && formContext) {
15023
+ emit("change", modelValue.value);
15024
+ formContext.validateField([formItemContext.prop]);
15025
+ } else {
15026
+ ElementPlus2.ElMessage.error("车牌号格式不正确");
15027
+ }
15028
+ }
15029
+ popoverRef.value?.hide();
15030
+ };
15031
+ const handleClearClick = () => {
15032
+ modelValue.value = null;
15033
+ emit("change", null);
15034
+ formItemContext?.prop && formContext?.validateField([formItemContext.prop]);
15035
+ };
15036
+ const elInputProps = utils.useProps(props, ElementPlus2.inputProps, ["modelValue", "readonly", "formatter"]);
15037
+ utils.useRender(() => vue.createVNode(ElementPlus2.ElPopover, {
15038
+ "ref": popoverRef,
15039
+ "width": "auto",
15040
+ "popperClass": "fa-car-number__popover",
15041
+ "trigger": "click",
15042
+ "showArrow": false,
15043
+ "showAfter": 0,
15044
+ "hideAfter": 0
15045
+ }, {
15046
+ reference: () => vue.createVNode(ElementPlus2.ElInput, vue.mergeProps(elInputProps.value, {
15047
+ "class": "fa-car-number__input",
15048
+ "modelValue": modelValue.value,
15049
+ "onUpdate:modelValue": ($event) => modelValue.value = $event,
15050
+ "readonly": true,
15051
+ "formatter": handleInputFormatter
15052
+ }), null),
15053
+ default: () => vue.createVNode(vue.Fragment, null, [vue.createVNode("div", {
15054
+ "class": ["fa-car-number__popover__area", state.switchLetter ? "fa-car-number__popover__hide" : ""]
15055
+ }, [CarNumberArea.map((area) => vue.createVNode(ElementPlus2.ElButton, {
15056
+ "disabled": state.disabledButton,
15057
+ "onClick": () => handleSelectCarNumber(area)
15058
+ }, _isSlot$6(area) ? area : {
15059
+ default: () => [area]
15060
+ }))]), vue.createVNode("div", {
15061
+ "class": ["fa-car-number__popover__digit-letter", state.switchLetter ? "" : "fa-car-number__popover__hide"]
15062
+ }, [CarNumberDigit.map((digit) => vue.createVNode(ElementPlus2.ElButton, {
15063
+ "disabled": state.disabledButton,
15064
+ "onClick": () => handleSelectCarNumber(digit)
15065
+ }, _isSlot$6(digit) ? digit : {
15066
+ default: () => [digit]
15067
+ })), CarNumberLetter.map((letter) => vue.createVNode(ElementPlus2.ElButton, {
15068
+ "disabled": state.disabledButton,
15069
+ "onClick": () => handleSelectCarNumber(letter)
15070
+ }, _isSlot$6(letter) ? letter : {
15071
+ default: () => [letter]
15072
+ }))]), vue.createVNode("div", {
15073
+ "class": "fa-car-number__popover__btn"
15074
+ }, [vue.createVNode(ElementPlus2.ElButton, {
15075
+ "class": "fa-car-number__popover__btn__clear",
15076
+ "disabled": modelValue.value === null || modelValue.value.length === 0,
15077
+ "onClick": handleClearClick
15078
+ }, {
15079
+ default: () => [vue.createTextVNode("清除")]
15080
+ }), vue.createVNode(ElementPlus2.ElButton, {
15081
+ "class": "fa-car-number__popover__btn__back",
15082
+ "type": "danger",
15083
+ "icon": ElementPlusIconsVue2.Back,
15084
+ "disabled": modelValue.value === null || modelValue.value.length === 0,
15085
+ "onClick": handleBackClick
15086
+ }, null), vue.createVNode(ElementPlus2.ElButton, {
15087
+ "class": "fa-car-number__popover__btn__confirm",
15088
+ "type": "primary",
15089
+ "disabled": modelValue.value === null || modelValue.value.length < 7,
15090
+ "onClick": handleConfirmClick
15091
+ }, {
15092
+ default: () => [vue.createTextVNode("确认")]
15093
+ })])])
15094
+ }));
15095
+ }
15096
+ });
15097
+ const FaCarNumber = utils.withInstall(CarNumber);
15098
+ function _isSlot$5(s) {
15099
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
15100
+ }
15101
+ const faIconProps = {
15102
+ /** @description el-icon- 使用 El-icon 的图标;fa-icon 使用 Fast 图标组件库; */
15103
+ name: {
15104
+ type: String,
15105
+ required: true
15106
+ },
15107
+ /** @description 大小 */
15108
+ size: {
15109
+ type: [String, Number]
15110
+ },
15111
+ /** @description 颜色*/
15112
+ color: String
15113
+ };
15114
+ const Icon = /* @__PURE__ */ vue.defineComponent({
15115
+ name: "FaIcon",
15116
+ props: faIconProps,
15117
+ setup(props, {
15118
+ attrs,
15119
+ slots,
15120
+ emit,
15121
+ expose
15122
+ }) {
15123
+ const state = vue.reactive({
15124
+ isUrl: vue.computed(() => RegExps.External.test(props.name)),
15125
+ style: vue.computed(() => {
15126
+ const result2 = {};
15127
+ if (props.size) {
15128
+ result2.size = utils.addUnit(props.size);
15129
+ }
15130
+ if (props.color) {
15131
+ result2.color = props.color;
15132
+ }
15133
+ if (state.isUrl) {
15134
+ result2.mask = `url(${props.name}) no-repeat 50% 50%`;
15135
+ result2["-webkit-mask"] = `url(${props.name}) no-repeat 50% 50%`;
15136
+ }
15137
+ return result2;
15138
+ })
15139
+ });
15140
+ utils.useRender(() => {
15141
+ let _slot, _slot2;
15142
+ return props.name.indexOf("el-icon-") === 0 ? vue.createVNode(ElementPlus2.ElIcon, vue.mergeProps(attrs, props, {
15143
+ "class": ["fa-icon", props.name]
15144
+ }), _isSlot$5(_slot = vue.h(vue.resolveComponent(props.name))) ? _slot : {
15145
+ default: () => [_slot]
15146
+ }) : props.name.indexOf("fa-icon") === 0 ? vue.createVNode(ElementPlus2.ElIcon, vue.mergeProps(attrs, props, {
15147
+ "class": ["fa-icon", props.name]
15148
+ }), _isSlot$5(_slot2 = vue.h(vue.resolveComponent(props.name))) ? _slot2 : {
15149
+ default: () => [_slot2]
15150
+ }) : state.isUrl ? vue.createVNode("div", vue.mergeProps(attrs, {
15151
+ "class": "el-icon fa-icon url-icon",
15152
+ "style": state.style
15153
+ }), null) : vue.createVNode("i", vue.mergeProps(attrs, {
15154
+ "class": ["el-icon fa-icon", props.name],
15155
+ "style": state.style
15156
+ }), null);
15157
+ });
15158
+ }
15159
+ });
15160
+ const FaIcon = utils.withInstall(Icon);
15138
15161
  const ContextMenu = /* @__PURE__ */ vue.defineComponent({
15139
15162
  name: "FaContextMenu",
15140
15163
  props: {
@@ -15149,6 +15172,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
15149
15172
  click: (event, data) => event instanceof MouseEvent && isObject$1(data)
15150
15173
  },
15151
15174
  setup(props, {
15175
+ attrs,
15176
+ slots,
15152
15177
  emit,
15153
15178
  expose
15154
15179
  }) {
@@ -15283,7 +15308,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
15283
15308
  /** @description 隐藏底部操作 */
15284
15309
  hideFooter: Boolean,
15285
15310
  /** @description 撑满高度 */
15286
- fillHeight: Boolean,
15311
+ fullHeight: Boolean,
15287
15312
  /** @description 显示关闭回调 */
15288
15313
  showBeforeClose: Boolean,
15289
15314
  /** @description 打开之后 */
@@ -15399,21 +15424,18 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
15399
15424
  emit("update:modelValue", newValue);
15400
15425
  });
15401
15426
  const elDialogProps = utils.useProps(props, ElementPlus2.dialogProps, ["modelValue", "fullscreen", "showClose", "beforeClose"]);
15402
- utils.useRender(() => vue.createVNode(ElementPlus2.ElDialog, vue.mergeProps(elDialogProps.value, {
15427
+ const elDialogEmits = utils.useEmits(ElementPlus2.dialogEmits, emit, ["update:modelValue"]);
15428
+ utils.useRender(() => vue.createVNode(ElementPlus2.ElDialog, vue.mergeProps(elDialogProps.value, elDialogEmits.value, {
15403
15429
  "ref": dialogRef,
15404
15430
  "class": ["fa-dialog", `fa-dialog-${_globalSize.value}`, {
15405
- "fa-dialog__fill-height": props.fillHeight,
15431
+ "fa-dialog__full-height": props.fullHeight,
15406
15432
  "fa-dialog__fullscreen": state.fullscreen
15407
15433
  }],
15408
15434
  "modelValue": state.visible,
15409
15435
  "onUpdate:modelValue": ($event) => state.visible = $event,
15410
15436
  "fullscreen": state.fullscreen,
15411
15437
  "showClose": false,
15412
- "beforeClose": handleBeforeClose,
15413
- "onOpened": () => emit("opened"),
15414
- "onClosed": () => emit("closed"),
15415
- "onOpenAutoFocus": () => emit("openAutoFocus"),
15416
- "onCloseAutoFocus": () => emit("closeAutoFocus")
15438
+ "beforeClose": handleBeforeClose
15417
15439
  }), {
15418
15440
  header: () => vue.createVNode(vue.Fragment, null, [vue.createVNode("div", {
15419
15441
  "class": "fa-dialog__header-title"
@@ -15664,7 +15686,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
15664
15686
  };
15665
15687
  };
15666
15688
  const elDrawerProps = utils.useProps(props, ElementPlus2.drawerProps, ["modelValue", "size", "showClose", "beforeClose"]);
15667
- utils.useRender(() => vue.createVNode(ElementPlus2.ElDrawer, vue.mergeProps(elDrawerProps.value, {
15689
+ const elDrawerEmits = utils.useEmits(ElementPlus2.drawerEmits, emit, ["update:modelValue"]);
15690
+ utils.useRender(() => vue.createVNode(ElementPlus2.ElDrawer, vue.mergeProps(elDrawerProps.value, elDrawerEmits.value, {
15668
15691
  "ref": drawerRef,
15669
15692
  "class": ["fa-drawer", `fa-drawer-${_globalSize.value}`, {
15670
15693
  "fa-drawer__fullscreen": state.fullscreen
@@ -15673,11 +15696,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
15673
15696
  "onUpdate:modelValue": ($event) => state.visible = $event,
15674
15697
  "size": state.size,
15675
15698
  "showClose": false,
15676
- "beforeClose": handleBeforeClose,
15677
- "onOpened": () => emit("opened"),
15678
- "onClosed": () => emit("closed"),
15679
- "onOpenAutoFocus": () => emit("openAutoFocus"),
15680
- "onCloseAutoFocus": () => emit("closeAutoFocus")
15699
+ "beforeClose": handleBeforeClose
15681
15700
  }), {
15682
15701
  header: () => vue.createVNode(vue.Fragment, null, [vue.createVNode("div", {
15683
15702
  "class": "fa-drawer__header-title"
@@ -15793,6 +15812,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
15793
15812
  },
15794
15813
  slots: utils.makeSlots(),
15795
15814
  setup(props, {
15815
+ attrs,
15796
15816
  slots,
15797
15817
  emit,
15798
15818
  expose
@@ -15934,12 +15954,12 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
15934
15954
  props: {
15935
15955
  /** @description 偏移 */
15936
15956
  offset: {
15937
- type: Number,
15957
+ type: [String, Number],
15938
15958
  default: 0
15939
15959
  },
15940
15960
  /** @description 占位 */
15941
15961
  span: {
15942
- type: Number,
15962
+ type: [String, Number],
15943
15963
  default: 1
15944
15964
  },
15945
15965
  /** @description 后缀 */
@@ -15997,8 +16017,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
15997
16017
  const cols = vue.inject("cols", vue.ref(5));
15998
16018
  const style = vue.computed(() => {
15999
16019
  const breakPointObk = props[breakPoint.value];
16000
- const span = breakPointObk?.span ?? props.span;
16001
- const offset = breakPointObk?.offset ?? props.offset;
16020
+ const span = breakPointObk?.span ?? (isNumber(props.span) ? props.span : Number(props.span));
16021
+ const offset = breakPointObk?.offset ?? (isNumber(props.offset) ? props.offset : Number(props.offset));
16002
16022
  if (props.suffix) {
16003
16023
  return {
16004
16024
  gridColumnStart: cols.value - span - offset + 1,
@@ -16277,6 +16297,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
16277
16297
  setup(props, {
16278
16298
  attrs,
16279
16299
  slots,
16300
+ emit,
16280
16301
  expose
16281
16302
  }) {
16282
16303
  const _globalSize = ElementPlus2.useGlobalSize();
@@ -16343,7 +16364,10 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
16343
16364
  props: faFormItemTipProps,
16344
16365
  slots: utils.makeSlots(),
16345
16366
  setup(props, {
16346
- slots
16367
+ attrs,
16368
+ slots,
16369
+ emit,
16370
+ expose
16347
16371
  }) {
16348
16372
  utils.useRender(() => vue.createVNode("div", {
16349
16373
  "class": "fa-form-item-tip"
@@ -16390,6 +16414,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
16390
16414
  setup(props, {
16391
16415
  attrs,
16392
16416
  slots,
16417
+ emit,
16393
16418
  expose
16394
16419
  }) {
16395
16420
  const formItemRef = vue.ref();
@@ -16514,7 +16539,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
16514
16539
  state.iconNames = Object.keys(ElementPlusIconsVue__namespace).map((m) => `el-icon-${m}`);
16515
16540
  break;
16516
16541
  case "fastEle":
16517
- state.iconNames = Object.keys(FastElementPlusIconsVue2).map((m) => `fa-icon-${m}`);
16542
+ state.iconNames = Object.keys(FastElementPlusIconsVue__namespace).map((m) => `fa-icon-${m}`);
16518
16543
  break;
16519
16544
  case "local":
16520
16545
  state.iconNames = props.customIcons;
@@ -16644,6 +16669,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
16644
16669
  setup(props, {
16645
16670
  attrs,
16646
16671
  slots,
16672
+ emit,
16647
16673
  expose
16648
16674
  }) {
16649
16675
  const state = vue.reactive({
@@ -16722,7 +16748,10 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
16722
16748
  },
16723
16749
  slots: utils.makeSlots(),
16724
16750
  setup(props, {
16725
- slots
16751
+ attrs,
16752
+ slots,
16753
+ emit,
16754
+ expose
16726
16755
  }) {
16727
16756
  const state = vue.reactive({
16728
16757
  value: vue.computed(() => isUndefined(props.value) ? props.data.value : props.value),
@@ -16742,7 +16771,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
16742
16771
  default: () => [_slot]
16743
16772
  }) : vue.createVNode(ElementPlus2.ElOption, {
16744
16773
  "class": {
16745
- "fa-select-page-dropdown__selector__more-detail": props.moreDetail && slots.default
16774
+ "fa-select-dropdown__selector__more-detail": props.moreDetail && slots.default
16746
16775
  },
16747
16776
  "value": state.value,
16748
16777
  "label": state.label,
@@ -16972,6 +17001,11 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
16972
17001
  };
16973
17002
  const faSelectProps = {
16974
17003
  ...SelectProps,
17004
+ /** @description whether Select is disabled 重载使其支持 ElForm*/
17005
+ disabled: {
17006
+ type: Boolean,
17007
+ default: void 0
17008
+ },
16975
17009
  /** @description displayed text while loading data from server, default is 'Loading' */
16976
17010
  loadingText: {
16977
17011
  type: String,
@@ -17041,6 +17075,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17041
17075
  initParam: utils.definePropType([String, Number, Object])
17042
17076
  };
17043
17077
  const faSelectEmits = {
17078
+ ...ElementPlus2.selectEmits,
17044
17079
  /** @description v-model 回调 */
17045
17080
  "update:modelValue": (value) => isString(value) || isNumber(value) || isBoolean(value) || isObject$1(value) || isArray(value) || isNull(value),
17046
17081
  /** @description v-model:label 回调 */
@@ -17048,17 +17083,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17048
17083
  /** @description 数据改变 */
17049
17084
  dataChangeCallBack: (data) => isArray(data),
17050
17085
  /** @description 改变 */
17051
- change: (data, value) => (isObject$1(data) || isArray(data) || isNull(data)) && (isString(value) || isNumber(value) || isBoolean(value) || isObject$1(value) || isArray(value) || isNull(value)),
17052
- /** @description 下拉框出现/隐藏时触发 */
17053
- visibleChange: (visible) => isBoolean(visible),
17054
- /** @description 多选模式下移除tag时触发 */
17055
- removeTag: (tagValue) => isString(tagValue) || isNumber(tagValue) || isBoolean(tagValue) || isObject$1(tagValue) || isArray(tagValue),
17056
- /** @description 可清空的单选模式下用户点击清空按钮时触发 */
17057
- clear: () => true,
17058
- /** @description 当 input 失去焦点时触发 */
17059
- blur: (event) => event instanceof FocusEvent,
17060
- /** @description 当 input 获得焦点时触发 */
17061
- focus: (event) => event instanceof FocusEvent
17086
+ change: (data, value) => true
17062
17087
  };
17063
17088
  const Select = /* @__PURE__ */ vue.defineComponent({
17064
17089
  name: "FaSelect",
@@ -17071,9 +17096,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17071
17096
  emit,
17072
17097
  expose
17073
17098
  }) {
17074
- const selectedLabel = /* @__PURE__ */ useVModel(props, "label", emit, {
17075
- passive: true
17076
- });
17099
+ const selectedLabel = /* @__PURE__ */ useVModel(props, "label", emit);
17100
+ const _globalSize = ElementPlus2.useGlobalSize();
17077
17101
  const state = vue.reactive({
17078
17102
  value: utils.withDefineType(),
17079
17103
  loading: false,
@@ -17149,6 +17173,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17149
17173
  const handleClear = () => {
17150
17174
  state.value = null;
17151
17175
  selectedLabel.value = null;
17176
+ emit("update:modelValue", null);
17152
17177
  emit("clear");
17153
17178
  };
17154
17179
  const handleVisibleChange = async (visible) => {
@@ -17163,7 +17188,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17163
17188
  }
17164
17189
  }
17165
17190
  }
17166
- emit("visibleChange", visible);
17191
+ emit("visible-change", visible);
17167
17192
  };
17168
17193
  vue.watch(() => props.modelValue, (newValue) => {
17169
17194
  if (state.echo && !isNil(newValue)) {
@@ -17229,10 +17254,18 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17229
17254
  });
17230
17255
  });
17231
17256
  const elSelectProps = utils.useProps(props, SelectProps, ["modelValue", "popperClass", "loading"]);
17232
- utils.useRender(() => vue.createVNode(ElementPlus2.ElSelect, vue.mergeProps(elSelectProps.value, {
17257
+ const elSelectEmits = utils.useEmits(ElementPlus2.selectEmits, emit, ["update:modelValue", "change", "clear", "visible-change"]);
17258
+ const elPopperClass = vue.computed(() => {
17259
+ let localClass = `fa-select-dropdown ${props.popperClass}`;
17260
+ if (props.moreDetail) {
17261
+ localClass += ` fa-select-dropdown__more-detail fa-select-dropdown__more-detail-${_globalSize.value}`;
17262
+ }
17263
+ return localClass;
17264
+ });
17265
+ utils.useRender(() => vue.createVNode(ElementPlus2.ElSelect, vue.mergeProps(elSelectProps.value, elSelectEmits.value, {
17233
17266
  "ref": selectRef,
17234
17267
  "class": "fa-select",
17235
- "popperClass": `fa-select-dropdown ${props.popperClass}`,
17268
+ "popperClass": elPopperClass.value,
17236
17269
  "style": {
17237
17270
  width: utils.addUnit(props.width)
17238
17271
  },
@@ -17241,10 +17274,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17241
17274
  "loading": state.loading,
17242
17275
  "onChange": handleChange,
17243
17276
  "onClear": handleClear,
17244
- "onVisibleChange": handleVisibleChange,
17245
- "onRemoveTag": (tagValue) => emit("removeTag", tagValue),
17246
- "onBlur": (event) => emit("blur", event),
17247
- "onFocus": (event) => emit("focus", event)
17277
+ "onVisibleChange": handleVisibleChange
17248
17278
  }), {
17249
17279
  default: () => state.selectorData.map((item) => vue.createVNode(SelectOption, {
17250
17280
  "data": item,
@@ -17304,6 +17334,11 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17304
17334
  const FaSelectOption = utils.withNoopInstall(SelectOption);
17305
17335
  const faSelectPageProps = {
17306
17336
  ...SelectProps,
17337
+ /** @description whether Select is disabled 重载使其支持 ElForm*/
17338
+ disabled: {
17339
+ type: Boolean,
17340
+ default: void 0
17341
+ },
17307
17342
  /** @description displayed text while loading data from server, default is 'Loading' */
17308
17343
  loadingText: {
17309
17344
  type: String,
@@ -17361,6 +17396,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17361
17396
  initParam: utils.definePropType([String, Number, Object])
17362
17397
  };
17363
17398
  const faSelectPageEmits = {
17399
+ ...ElementPlus2.selectEmits,
17364
17400
  /** @description v-model 回调 */
17365
17401
  "update:modelValue": (value) => isString(value) || isNumber(value) || isBoolean(value) || isObject$1(value) || isArray(value) || isNull(value),
17366
17402
  /** @description v-model:label 回调 */
@@ -17368,17 +17404,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17368
17404
  /** @description 数据改变 */
17369
17405
  dataChangeCallBack: (data) => isArray(data),
17370
17406
  /** @description 改变 */
17371
- change: (data, value) => (isObject$1(data) || isArray(data) || isNull(data)) && (isString(value) || isNumber(value) || isBoolean(value) || isObject$1(value) || isArray(value) || isNull(value)),
17372
- /** @description 下拉框出现/隐藏时触发 */
17373
- visibleChange: (visible) => isBoolean(visible),
17374
- /** @description 多选模式下移除tag时触发 */
17375
- removeTag: (tagValue) => isString(tagValue) || isNumber(tagValue) || isBoolean(tagValue) || isObject$1(tagValue) || isArray(tagValue),
17376
- /** @description 可清空的单选模式下用户点击清空按钮时触发 */
17377
- clear: () => true,
17378
- /** @description 当 input 失去焦点时触发 */
17379
- blur: (event) => event instanceof FocusEvent,
17380
- /** @description 当 input 获得焦点时触发 */
17381
- focus: (event) => event instanceof FocusEvent
17407
+ change: (data, value) => true
17382
17408
  };
17383
17409
  const SelectPage = /* @__PURE__ */ vue.defineComponent({
17384
17410
  name: "FaSelectPage",
@@ -17391,9 +17417,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17391
17417
  emit,
17392
17418
  expose
17393
17419
  }) {
17394
- const selectedLabel = /* @__PURE__ */ useVModel(props, "label", emit, {
17395
- passive: true
17396
- });
17420
+ const selectedLabel = /* @__PURE__ */ useVModel(props, "label", emit);
17397
17421
  const _globalSize = ElementPlus2.useGlobalSize();
17398
17422
  const state = vue.reactive({
17399
17423
  value: utils.withDefineType(),
@@ -17488,6 +17512,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17488
17512
  state.value = null;
17489
17513
  selectedLabel.value = null;
17490
17514
  state.selectedList = [];
17515
+ emit("update:modelValue", null);
17491
17516
  emit("clear");
17492
17517
  };
17493
17518
  const handleVisibleChange = async (visible) => {
@@ -17502,7 +17527,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17502
17527
  }
17503
17528
  }
17504
17529
  }
17505
- emit("visibleChange", visible);
17530
+ emit("visible-change", visible);
17506
17531
  };
17507
17532
  vue.watch(() => props.modelValue, (newValue) => {
17508
17533
  if (state.echo && !isNil(newValue)) {
@@ -17550,10 +17575,18 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17550
17575
  });
17551
17576
  });
17552
17577
  const elSelectProps = utils.useProps(props, SelectProps, ["modelValue", "popperClass", "loading"]);
17553
- utils.useRender(() => vue.createVNode(ElementPlus2.ElSelect, vue.mergeProps(elSelectProps.value, {
17578
+ const elSelectEmits = utils.useEmits(ElementPlus2.selectEmits, emit, ["update:modelValue", "change", "clear", "visible-change"]);
17579
+ const elPopperClass = vue.computed(() => {
17580
+ let localClass = `fa-select-page-dropdown fa-select-page-dropdown-${_globalSize.value} ${props.popperClass}`;
17581
+ if (props.moreDetail) {
17582
+ localClass += ` fa-select-dropdown__more-detail fa-select-dropdown__more-detail-${_globalSize.value}`;
17583
+ }
17584
+ return localClass;
17585
+ });
17586
+ utils.useRender(() => vue.createVNode(ElementPlus2.ElSelect, vue.mergeProps(elSelectProps.value, elSelectEmits.value, {
17554
17587
  "ref": selectRef,
17555
17588
  "class": "fa-select-page",
17556
- "popperClass": `fa-select-page-dropdown fa-select-page-dropdown-${_globalSize.value} ${props.popperClass}`,
17589
+ "popperClass": elPopperClass.value,
17557
17590
  "style": {
17558
17591
  width: utils.addUnit(props.width)
17559
17592
  },
@@ -17562,10 +17595,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17562
17595
  "loading": state.loading,
17563
17596
  "onChange": handleChange,
17564
17597
  "onClear": handleClear,
17565
- "onVisibleChange": handleVisibleChange,
17566
- "onRemoveTag": (tagValue) => emit("removeTag", tagValue),
17567
- "onBlur": (event) => emit("blur", event),
17568
- "onFocus": (event) => emit("focus", event)
17598
+ "onVisibleChange": handleVisibleChange
17569
17599
  }), {
17570
17600
  default: () => state.selectorData.map((item) => vue.createVNode(FaSelectOption, {
17571
17601
  "data": item,
@@ -17941,8 +17971,22 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
17941
17971
  ...ElementPlus2.useEmptyValuesProps,
17942
17972
  ...ElementPlus2.useAriaProps(["ariaLabel"])
17943
17973
  };
17974
+ const selectV2Emits = {
17975
+ "update:modelValue": (value) => true,
17976
+ change: (val) => true,
17977
+ "remove-tag": (val) => true,
17978
+ "visible-change": (visible) => true,
17979
+ focus: (evt) => true,
17980
+ blur: (evt) => true,
17981
+ clear: () => true
17982
+ };
17944
17983
  const faSelectV2Props = {
17945
17984
  ...SelectV2Props,
17985
+ /** @description whether Select is disabled 重载使其支持 ElForm*/
17986
+ disabled: {
17987
+ type: Boolean,
17988
+ default: void 0
17989
+ },
17946
17990
  /** @description displayed text while loading data from server, default is 'Loading' */
17947
17991
  loadingText: {
17948
17992
  type: String,
@@ -18004,6 +18048,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
18004
18048
  initParam: utils.definePropType([String, Number, Object])
18005
18049
  };
18006
18050
  const faSelectV2Emits = {
18051
+ ...selectV2Emits,
18007
18052
  /** @description v-model 回调 */
18008
18053
  "update:modelValue": (value) => isString(value) || isNumber(value) || isBoolean(value) || isObject$1(value) || isArray(value) || isNull(value),
18009
18054
  /** @description v-model:label 回调 */
@@ -18011,17 +18056,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
18011
18056
  /** @description 数据改变 */
18012
18057
  dataChangeCallBack: (data) => isArray(data),
18013
18058
  /** @description 改变 */
18014
- change: (data, value) => (isObject$1(data) || isArray(data) || isNull(data)) && (isString(value) || isNumber(value) || isBoolean(value) || isObject$1(value) || isArray(value) || isNull(value)),
18015
- /** @description 下拉框出现/隐藏时触发 */
18016
- visibleChange: (visible) => isBoolean(visible),
18017
- /** @description 多选模式下移除tag时触发 */
18018
- removeTag: (tagValue) => isString(tagValue) || isNumber(tagValue) || isBoolean(tagValue) || isObject$1(tagValue) || isArray(tagValue),
18019
- /** @description 可清空的单选模式下用户点击清空按钮时触发 */
18020
- clear: () => true,
18021
- /** @description 当 input 失去焦点时触发 */
18022
- blur: (event) => event instanceof FocusEvent,
18023
- /** @description 当 input 获得焦点时触发 */
18024
- focus: (event) => event instanceof FocusEvent
18059
+ change: (data, value) => true
18025
18060
  };
18026
18061
  const SelectV2 = /* @__PURE__ */ vue.defineComponent({
18027
18062
  name: "FaSelectV2",
@@ -18034,9 +18069,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
18034
18069
  emit,
18035
18070
  expose
18036
18071
  }) {
18037
- const selectedLabel = /* @__PURE__ */ useVModel(props, "label", emit, {
18038
- passive: true
18039
- });
18072
+ const selectedLabel = /* @__PURE__ */ useVModel(props, "label", emit);
18040
18073
  const _globalSize = ElementPlus2.useGlobalSize();
18041
18074
  const state = vue.reactive({
18042
18075
  value: utils.withDefineType(),
@@ -18107,6 +18140,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
18107
18140
  const handleClear = () => {
18108
18141
  state.value = null;
18109
18142
  selectedLabel.value = null;
18143
+ emit("update:modelValue", null);
18110
18144
  emit("clear");
18111
18145
  };
18112
18146
  const handleVisibleChange = async (visible) => {
@@ -18121,7 +18155,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
18121
18155
  }
18122
18156
  }
18123
18157
  }
18124
- emit("visibleChange", visible);
18158
+ emit("visible-change", visible);
18125
18159
  };
18126
18160
  vue.watch(() => props.modelValue, (newValue) => {
18127
18161
  if (state.echo && !isNil(newValue)) {
@@ -18187,10 +18221,18 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
18187
18221
  });
18188
18222
  });
18189
18223
  const elSelectV2Props = utils.useProps(props, SelectV2Props, ["modelValue", "popperClass", "loading", "options", "itemHeight"]);
18190
- utils.useRender(() => vue.createVNode(ElementPlus2.ElSelectV2, vue.mergeProps(elSelectV2Props.value, {
18224
+ const elSelectV2Emits = utils.useEmits(faSelectV2Emits, emit, ["update:modelValue", "change", "clear", "visible-change"]);
18225
+ const elPopperClass = vue.computed(() => {
18226
+ let localClass = `fa-select-v2-dropdown ${props.popperClass}`;
18227
+ if (props.moreDetail) {
18228
+ localClass += ` fa-select-dropdown__more-detail fa-select-dropdown__more-detail-${_globalSize.value}`;
18229
+ }
18230
+ return localClass;
18231
+ });
18232
+ utils.useRender(() => vue.createVNode(ElementPlus2.ElSelectV2, vue.mergeProps(elSelectV2Props.value, elSelectV2Emits.value, {
18191
18233
  "ref": selectV2Ref,
18192
18234
  "class": "fa-select-v2",
18193
- "popperClass": `${props.moreDetail && `fa-select-v2-dropdown__more-detail`} ${props.popperClass}`,
18235
+ "popperClass": elPopperClass.value,
18194
18236
  "style": {
18195
18237
  width: utils.addUnit(props.width)
18196
18238
  },
@@ -18201,10 +18243,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
18201
18243
  "itemHeight": props.itemHeight + (_globalSize.value === "small" ? 0 : 8),
18202
18244
  "onChange": handleChange,
18203
18245
  "onClear": handleClear,
18204
- "onVisibleChange": handleVisibleChange,
18205
- "onRemoveTag": (tagValue) => emit("removeTag", tagValue),
18206
- "onBlur": (event) => emit("blur", event),
18207
- "onFocus": (event) => emit("focus", event)
18246
+ "onVisibleChange": handleVisibleChange
18208
18247
  }), {
18209
18248
  ...slots.default && {
18210
18249
  default: ({
@@ -18366,9 +18405,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
18366
18405
  setEnumMap(columnEnum, prop, enumMap) {
18367
18406
  if (!columnEnum) return;
18368
18407
  if (isFunction(columnEnum)) {
18369
- columnEnum().then((res) => {
18370
- enumMap.set(prop, res);
18371
- });
18408
+ enumMap.set(prop, columnEnum());
18372
18409
  } else if (isArray(columnEnum)) {
18373
18410
  enumMap.set(prop, columnEnum);
18374
18411
  }
@@ -18393,8 +18430,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
18393
18430
  return flatArr.filter((item) => !item._children?.length);
18394
18431
  }
18395
18432
  };
18396
- const tableStateKey = Symbol("tableState");
18397
- const enumMapKey = Symbol("enumMap");
18433
+ const tableStateKey = /* @__PURE__ */ Symbol("tableState");
18434
+ const enumMapKey = /* @__PURE__ */ Symbol("enumMap");
18398
18435
  const useTable = (props, slots, emit) => {
18399
18436
  const _globalSize = ElementPlus2.useGlobalSize();
18400
18437
  const elementRef = vue.ref();
@@ -19011,32 +19048,23 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
19011
19048
  emit
19012
19049
  }) {
19013
19050
  const _globalSize = ElementPlus2.useGlobalSize();
19014
- const tableState = vue.inject(tableStateKey);
19015
- const enumMap = vue.inject(enumMapKey);
19016
- const columnCtx = vue.computed(() => props);
19017
- const renderCellData = ({
19018
- row
19019
- }) => {
19020
- let enumKey = props.prop;
19021
- if (isString(props.enum)) {
19022
- enumKey = props.enum;
19051
+ const tableState = vue.inject(tableStateKey);
19052
+ const enumMap = vue.inject(enumMapKey);
19053
+ const columnCtx = vue.computed(() => props);
19054
+ const getClassName = () => {
19055
+ let className = "";
19056
+ if (props.type === "timeInfo") {
19057
+ className += "fa-table__line-height-normal-column";
19023
19058
  }
19024
- const enumData = enumMap.get(enumKey);
19025
- if (enumData) {
19026
- return tableUtil.filterEnum(tableUtil.handleRowAccordingToProp(row, props.prop), enumData);
19027
- } else {
19028
- return tableUtil.formatValue(tableUtil.handleRowAccordingToProp(row, props.prop));
19059
+ if (props.type === "date" || props.type === "time" || props.type === "dateTime") {
19060
+ if (props.dateFix) {
19061
+ className += "fa-table__line-height-normal-column";
19062
+ }
19029
19063
  }
19030
- };
19031
- const getTagType = ({
19032
- row
19033
- }) => {
19034
- let enumKey = props.prop;
19035
- if (isString(props.enum)) {
19036
- enumKey = props.enum;
19064
+ if (props.className) {
19065
+ return `${className} ${props.className}`;
19037
19066
  }
19038
- const enumData = enumMap.get(enumKey);
19039
- return tableUtil.filterEnum(tableUtil.handleRowAccordingToProp(row, props.prop), enumData, null, "tag");
19067
+ return className ? className : void 0;
19040
19068
  };
19041
19069
  const getWidth = (defAttr) => {
19042
19070
  if (props.autoWidth) {
@@ -19062,6 +19090,15 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
19062
19090
  return el;
19063
19091
  }
19064
19092
  };
19093
+ const autoWidthRender = (el) => {
19094
+ if (props.autoWidth) {
19095
+ return vue.createVNode("div", {
19096
+ "class": ["fa-table__auto-width-column__cell", `__fa-table__auto-width-column__cell__${props.prop}`]
19097
+ }, [el]);
19098
+ } else {
19099
+ return el;
19100
+ }
19101
+ };
19065
19102
  const headerRender = ({
19066
19103
  column,
19067
19104
  $index
@@ -19082,39 +19119,51 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
19082
19119
  return autoWidthHeaderRender(vue.createVNode("span", null, [props.label]));
19083
19120
  }
19084
19121
  };
19085
- const autoWidthRender = (el) => {
19086
- if (props.autoWidth) {
19087
- return vue.createVNode("div", {
19088
- "class": ["fa-table__auto-width-column__cell", `__fa-table__auto-width-column__cell__${props.prop}`]
19089
- }, [el]);
19090
- } else {
19091
- return el;
19092
- }
19093
- };
19094
- const handleCopyClick = async (value) => {
19095
- try {
19096
- await utils.stringUtil.copy(String(value));
19097
- ElementPlus2.ElMessage({
19098
- type: "success",
19099
- message: "复制成功"
19100
- });
19101
- } catch (error) {
19102
- utils.consoleError("FaTableColumn", error);
19103
- ElementPlus2.ElMessage({
19104
- type: "error",
19105
- message: "复制失败"
19106
- });
19107
- }
19108
- };
19109
19122
  const copyRender = (value, copy) => {
19110
19123
  return (props.copy || copy) && value && vue.createVNode(ElementPlus2.ElIcon, {
19111
19124
  "class": "fa__copy-icon",
19112
19125
  "title": "复制",
19113
- "onClick": () => handleCopyClick(value)
19126
+ "onClick": async () => {
19127
+ try {
19128
+ await utils.stringUtil.copy(String(value));
19129
+ ElementPlus2.ElMessage({
19130
+ type: "success",
19131
+ message: "复制成功"
19132
+ });
19133
+ } catch (error) {
19134
+ utils.consoleError("FaTableColumn", error);
19135
+ ElementPlus2.ElMessage({
19136
+ type: "error",
19137
+ message: "复制失败"
19138
+ });
19139
+ }
19140
+ }
19114
19141
  }, {
19115
19142
  default: () => [vue.createVNode(ElementPlusIconsVue2.CopyDocument, null, null)]
19116
19143
  });
19117
19144
  };
19145
+ const renderCellData = ({
19146
+ row
19147
+ }) => {
19148
+ const cellValue = tableUtil.handleRowAccordingToProp(row, props.prop);
19149
+ let enumKey = props.prop;
19150
+ let enumData;
19151
+ if (isString(props.enum)) {
19152
+ enumKey = props.enum;
19153
+ enumData = enumMap.get(enumKey);
19154
+ } else if (isArray(props.enum)) {
19155
+ enumData = props.enum;
19156
+ } else if (isFunction(props.enum)) {
19157
+ enumData = props.enum({
19158
+ row
19159
+ });
19160
+ }
19161
+ if (enumData) {
19162
+ return tableUtil.filterEnum(cellValue, enumData);
19163
+ } else {
19164
+ return tableUtil.formatValue(cellValue);
19165
+ }
19166
+ };
19118
19167
  const formatterRender = (row, column, cellValue, index2) => {
19119
19168
  if (column.formatter) {
19120
19169
  return column.formatter(row, column, cellValue, index2);
@@ -19122,147 +19171,170 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
19122
19171
  return cellValue;
19123
19172
  }
19124
19173
  };
19174
+ const timeInfoRender = (row, column, $index) => {
19175
+ let _slot;
19176
+ const userName = row[props.timeInfoField?.userName ?? "createdUserName"];
19177
+ const time = row[props.timeInfoField?.time ?? "createdTime"];
19178
+ return vue.createVNode(vue.Fragment, null, [vue.createVNode("div", {
19179
+ "style": "white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",
19180
+ "title": time
19181
+ }, [userName && vue.createVNode("span", {
19182
+ "style": "margin-right: 5px;"
19183
+ }, [userName]), vue.createVNode("span", null, [time])]), time && vue.createVNode(ElementPlus2.ElTag, {
19184
+ "type": "info",
19185
+ "round": true,
19186
+ "effect": "light",
19187
+ "size": "small"
19188
+ }, _isSlot$2(_slot = utils.dateUtil.dateTimeFix(String(time))) ? _slot : {
19189
+ default: () => [_slot]
19190
+ })]);
19191
+ };
19192
+ const tagRender = (row, column, $index) => {
19193
+ const renderValue = formatterRender(row, column, renderCellData({
19194
+ row
19195
+ }), $index);
19196
+ let enumKey = props.prop;
19197
+ if (isString(props.enum)) {
19198
+ enumKey = props.enum;
19199
+ }
19200
+ const enumData = enumMap.get(enumKey);
19201
+ const type = tableUtil.filterEnum(tableUtil.handleRowAccordingToProp(row, props.prop), enumData, null, "tag");
19202
+ return vue.createVNode(vue.Fragment, null, [copyRender(renderValue), renderValue ? vue.createVNode(ElementPlus2.ElTag, {
19203
+ "type": type
19204
+ }, _isSlot$2(renderValue) ? renderValue : {
19205
+ default: () => [renderValue]
19206
+ }) : null]);
19207
+ };
19208
+ const dateRender = (row, column, $index) => {
19209
+ let _slot2;
19210
+ let dateFormat;
19211
+ switch (props.type) {
19212
+ case "date":
19213
+ dateFormat = "YYYY-MM-DD";
19214
+ break;
19215
+ case "time":
19216
+ dateFormat = "HH:mm:ss";
19217
+ break;
19218
+ case "dateTime":
19219
+ dateFormat = "YYYY-MM-DD HH:mm:ss";
19220
+ break;
19221
+ }
19222
+ const renderValue = row[props.prop] ? formatterRender(row, column, ElementPlus2.dayjs(row[props.prop]).format(props.dateFormat ?? dateFormat), $index) : null;
19223
+ return vue.createVNode(vue.Fragment, null, [copyRender(renderValue), renderValue, props.dateFix && renderValue && vue.createVNode(vue.Fragment, null, [vue.createVNode("br", null, null), vue.createVNode(ElementPlus2.ElTag, {
19224
+ "type": "info",
19225
+ "round": true,
19226
+ "effect": "light",
19227
+ "size": "small"
19228
+ }, _isSlot$2(_slot2 = utils.dateUtil.dateTimeFix(String(renderValue))) ? _slot2 : {
19229
+ default: () => [_slot2]
19230
+ })])]);
19231
+ };
19232
+ const numberRender = (row, column, $index) => {
19233
+ const renderValue = row[props.prop];
19234
+ if (!renderValue || !isNumber(renderValue)) {
19235
+ return formatterRender(row, column, renderValue, $index);
19236
+ }
19237
+ let useGrouping = false;
19238
+ let maximumFractionDigits;
19239
+ switch (props.type) {
19240
+ case "d2":
19241
+ maximumFractionDigits = 2;
19242
+ break;
19243
+ case "d4":
19244
+ maximumFractionDigits = 4;
19245
+ break;
19246
+ case "d6":
19247
+ maximumFractionDigits = 6;
19248
+ break;
19249
+ case "gd2":
19250
+ maximumFractionDigits = 2;
19251
+ useGrouping = true;
19252
+ break;
19253
+ case "gd4":
19254
+ maximumFractionDigits = 4;
19255
+ useGrouping = true;
19256
+ break;
19257
+ case "gd6":
19258
+ maximumFractionDigits = 6;
19259
+ useGrouping = true;
19260
+ break;
19261
+ }
19262
+ return formatterRender(row, column, renderValue.toLocaleString("zh-CN", {
19263
+ minimumFractionDigits: 2,
19264
+ maximumFractionDigits,
19265
+ useGrouping
19266
+ }), $index);
19267
+ };
19268
+ const linkRender = (row, column, $index) => {
19269
+ const renderValue = formatterRender(row, column, row[props.prop], $index);
19270
+ return autoWidthRender(vue.createVNode(vue.Fragment, null, [copyRender(renderValue), renderValue && vue.createVNode(ElementPlus2.ElText, {
19271
+ "class": "el-link is-hover-underline fa-table__link-column__text",
19272
+ "onClick": () => {
19273
+ if (props.dataDeleteField && row[props.dataDeleteField] === true) return;
19274
+ if (props.click) {
19275
+ props.click({
19276
+ row,
19277
+ $index
19278
+ });
19279
+ } else {
19280
+ emit("customCellClick", props.clickEmit, {
19281
+ row,
19282
+ column: columnCtx.value,
19283
+ $index
19284
+ });
19285
+ }
19286
+ }
19287
+ }, _isSlot$2(renderValue) ? renderValue : {
19288
+ default: () => [renderValue]
19289
+ })]));
19290
+ };
19125
19291
  const defaultRender = ({
19126
19292
  row,
19127
19293
  column,
19128
19294
  $index
19129
19295
  }) => {
19130
19296
  if (props.type === "timeInfo") {
19131
- let _slot;
19132
- const userName = row[props.timeInfoField?.userName ?? "createdUserName"];
19133
- const time = row[props.timeInfoField?.time ?? "createdTime"];
19134
- return vue.createVNode(vue.Fragment, null, [vue.createVNode("div", {
19135
- "style": "white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",
19136
- "title": time
19137
- }, [userName && vue.createVNode("span", {
19138
- "style": "margin-right: 5px;"
19139
- }, [userName]), vue.createVNode("span", null, [time])]), time && vue.createVNode(ElementPlus2.ElTag, {
19140
- "type": "info",
19141
- "round": true,
19142
- "effect": "light",
19143
- "size": "small"
19144
- }, _isSlot$2(_slot = utils.dateUtil.dateTimeFix(String(time))) ? _slot : {
19145
- default: () => [_slot]
19146
- })]);
19147
- } else if (props.tag) {
19148
- const renderValue = formatterRender(row, column, renderCellData({
19149
- row
19150
- }), $index);
19151
- return vue.createVNode(vue.Fragment, null, [copyRender(renderValue), renderValue ? vue.createVNode(ElementPlus2.ElTag, {
19152
- "type": getTagType({
19153
- row
19154
- })
19155
- }, _isSlot$2(renderValue) ? renderValue : {
19156
- default: () => [renderValue]
19157
- }) : null]);
19158
- } else if (props.type === "date" || props.type === "time" || props.type === "dateTime") {
19159
- let _slot2;
19160
- let dateFormat;
19161
- switch (props.type) {
19162
- case "date":
19163
- dateFormat = "YYYY-MM-DD";
19164
- break;
19165
- case "time":
19166
- dateFormat = "HH:mm:ss";
19167
- break;
19168
- case "dateTime":
19169
- dateFormat = "YYYY-MM-DD HH:mm:ss";
19170
- break;
19171
- }
19172
- const renderValue = row[props.prop] ? formatterRender(row, column, ElementPlus2.dayjs(row[props.prop]).format(props.dateFormat ?? dateFormat), $index) : null;
19173
- return vue.createVNode(vue.Fragment, null, [copyRender(renderValue), renderValue, props.dateFix && renderValue && vue.createVNode(vue.Fragment, null, [vue.createVNode("br", null, null), vue.createVNode(ElementPlus2.ElTag, {
19174
- "type": "info",
19175
- "round": true,
19176
- "effect": "light",
19177
- "size": "small"
19178
- }, _isSlot$2(_slot2 = utils.dateUtil.dateTimeFix(String(renderValue))) ? _slot2 : {
19179
- default: () => [_slot2]
19180
- })])]);
19181
- } else if (props.type === "d2" || props.type === "d4" || props.type === "d6" || props.type === "gd2" || props.type === "gd4" || props.type === "gd6") {
19182
- const renderValue = row[props.prop];
19183
- if (renderValue) {
19184
- if (isNumber(renderValue)) {
19185
- let useGrouping = false;
19186
- let maximumFractionDigits;
19187
- switch (props.type) {
19188
- case "d2":
19189
- maximumFractionDigits = 2;
19190
- break;
19191
- case "d4":
19192
- maximumFractionDigits = 4;
19193
- break;
19194
- case "d6":
19195
- maximumFractionDigits = 6;
19196
- break;
19197
- case "gd2":
19198
- maximumFractionDigits = 2;
19199
- useGrouping = true;
19200
- break;
19201
- case "gd4":
19202
- maximumFractionDigits = 4;
19203
- useGrouping = true;
19204
- break;
19205
- case "gd6":
19206
- maximumFractionDigits = 6;
19207
- useGrouping = true;
19208
- break;
19209
- }
19210
- return renderValue.toLocaleString("zh-CN", {
19211
- minimumFractionDigits: 2,
19212
- maximumFractionDigits,
19213
- useGrouping
19214
- });
19215
- }
19216
- }
19217
- return renderValue;
19218
- } else if (props.link) {
19219
- const renderValue = formatterRender(row, column, row[props.prop], $index);
19220
- return autoWidthRender(vue.createVNode(vue.Fragment, null, [copyRender(renderValue), renderValue && vue.createVNode(ElementPlus2.ElText, {
19221
- "class": "el-link is-hover-underline fa-table__link-column__text",
19222
- "onClick": () => {
19223
- if (props.dataDeleteField && row[props.dataDeleteField] === true) return;
19224
- if (props.click) {
19225
- props.click({
19226
- row,
19227
- $index
19228
- });
19229
- } else {
19230
- emit("customCellClick", props.clickEmit, {
19231
- row,
19232
- column: columnCtx.value,
19233
- $index
19234
- });
19235
- }
19236
- }
19237
- }, _isSlot$2(renderValue) ? renderValue : {
19238
- default: () => [renderValue]
19239
- })]));
19240
- } else if (props.render) {
19297
+ return timeInfoRender(row, column, $index);
19298
+ }
19299
+ if (props.tag) {
19300
+ return tagRender(row, column, $index);
19301
+ }
19302
+ if (props.type === "date" || props.type === "time" || props.type === "dateTime") {
19303
+ return dateRender(row, column, $index);
19304
+ }
19305
+ if (props.type === "d2" || props.type === "d4" || props.type === "d6" || props.type === "gd2" || props.type === "gd4" || props.type === "gd6") {
19306
+ return numberRender(row, column, $index);
19307
+ }
19308
+ if (props.link) {
19309
+ return linkRender(row, column, $index);
19310
+ }
19311
+ if (props.render) {
19241
19312
  return autoWidthRender(props.render({
19242
19313
  row,
19243
19314
  column: columnCtx.value,
19244
19315
  $index,
19245
19316
  ...getTableDefaultSlots(tableState)
19246
19317
  }));
19247
- } else if (props.slot) {
19318
+ }
19319
+ if (props.slot) {
19248
19320
  return autoWidthRender(slots[props.slot] && slots[props.slot]({
19249
19321
  row,
19250
19322
  column: columnCtx.value,
19251
19323
  $index,
19252
19324
  ...getTableDefaultSlots(tableState)
19253
19325
  }));
19254
- } else {
19255
- const renderValue = formatterRender(row, column, row[props.prop], $index);
19256
- return autoWidthRender(vue.createVNode(vue.Fragment, null, [copyRender(renderValue), renderValue]));
19257
19326
  }
19327
+ const renderValue = formatterRender(row, column, row[props.prop], $index);
19328
+ return autoWidthRender(vue.createVNode(vue.Fragment, null, [copyRender(renderValue), renderValue]));
19258
19329
  };
19259
19330
  let elTableColumnProps = utils.useProps(props, tableColumnProps, ["type", "width", "minWidth", "sortable", "sortOrders", "resizable", "showOverflowTooltip"]);
19260
19331
  vue.watch(() => props, () => {
19261
- elTableColumnProps = utils.useProps(props, tableColumnProps, ["type", "minWidth", "sortable", "sortOrders", "resizable", "showOverflowTooltip"]);
19332
+ elTableColumnProps = utils.useProps(props, tableColumnProps, ["type", "className", "minWidth", "sortable", "sortOrders", "resizable", "showOverflowTooltip"]);
19262
19333
  });
19263
19334
  utils.useRender(() => vue.createVNode(vue.Fragment, null, [
19264
19335
  // 如果有配置多级表头的数据,则递归该组件
19265
19336
  props._children?.length ? vue.createVNode(ElementPlus2.ElTableColumn, vue.mergeProps(elTableColumnProps.value, {
19337
+ "className": getClassName(),
19266
19338
  "minWidth": getWidth("auto"),
19267
19339
  "sortable": props.sortable ? "custom" : false,
19268
19340
  "sortOrders": props.sortOrders ?? ["descending", "ascending", null],
@@ -19320,6 +19392,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
19320
19392
  }) : (
19321
19393
  // 其他正常的列
19322
19394
  vue.createVNode(ElementPlus2.ElTableColumn, vue.mergeProps(elTableColumnProps.value, {
19395
+ "className": getClassName(),
19323
19396
  "minWidth": getWidth("auto"),
19324
19397
  "sortable": props.sortable ? "custom" : false,
19325
19398
  "sortOrders": props.sortOrders ?? ["descending", "ascending", null],
@@ -22284,7 +22357,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
22284
22357
  "onConfirmClick": handleConfirmClick,
22285
22358
  "showFullscreen": false,
22286
22359
  "confirmButtonText": state.change ? "保存更改" : "确认",
22287
- "fillHeight": true
22360
+ "fullHeight": true
22288
22361
  }, {
22289
22362
  header: () => vue.createVNode(vue.Fragment, null, [vue.createTextVNode("列表配置(留空则恢复默认配置)"), vue.createVNode(vue.resolveComponent("el-text"), {
22290
22363
  "type": "info"
@@ -22366,7 +22439,9 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
22366
22439
  "placeholder": "请输入宽度"
22367
22440
  }, autoWidthDisabled(row), pureSearchDisabled(row), {
22368
22441
  "onChange": handleColumnChange
22369
- }), null)
22442
+ }), {
22443
+ suffix: () => vue.createVNode("span", null, [vue.createTextVNode("px")])
22444
+ })
22370
22445
  }), vue.createVNode(ElementPlus2.ElTableColumn, {
22371
22446
  "label": "小的宽度",
22372
22447
  "width": 200
@@ -22384,7 +22459,9 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
22384
22459
  "placeholder": "请输入小的宽度"
22385
22460
  }, autoWidthDisabled(row), pureSearchDisabled(row), {
22386
22461
  "onChange": handleColumnChange
22387
- }), null)
22462
+ }), {
22463
+ suffix: () => vue.createVNode("span", null, [vue.createTextVNode("px")])
22464
+ })
22388
22465
  }), vue.createVNode(ElementPlus2.ElTableColumn, {
22389
22466
  "label": "顺序",
22390
22467
  "width": 100
@@ -22392,6 +22469,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
22392
22469
  default: ({
22393
22470
  row
22394
22471
  }) => vue.createVNode(ElementPlus2.ElInputNumber, vue.mergeProps({
22472
+ "style": "width: auto;",
22395
22473
  "modelValue": row.order,
22396
22474
  "onUpdate:modelValue": ($event) => row.order = $event,
22397
22475
  "min": 1,
@@ -23433,14 +23511,14 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
23433
23511
  }
23434
23512
  state.searchParam.sortList = [.../* @__PURE__ */ new Set([...props.initParam?.sortList ?? [], ...state.searchParam?.sortList ?? []])];
23435
23513
  const orgColumn = state.orgColumns.find((f) => f.prop === prop);
23436
- const enField = orgColumn.sortableField ?? orgColumn.prop ?? orgColumn.property;
23514
+ const enField = orgColumn?.sortableField ?? orgColumn?.prop ?? column.property;
23437
23515
  const fieldIndex = state.searchParam.sortList.findIndex((f) => f.enField === enField);
23438
23516
  if (!column.multiOrder) {
23439
23517
  state.searchParam.sortList.splice(fieldIndex, 1);
23440
23518
  } else if (fieldIndex === -1) {
23441
23519
  state.searchParam.sortList.push({
23442
23520
  enField,
23443
- cnField: orgColumn.label,
23521
+ cnField: column.label,
23444
23522
  mode: column.multiOrder
23445
23523
  });
23446
23524
  } else {
@@ -23491,22 +23569,6 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
23491
23569
  }
23492
23570
  }
23493
23571
  }
23494
- if (columnInfo?.type === "timeInfo") {
23495
- if (localCellClassName) {
23496
- localCellClassName += " fa-table__line-height-normal-column";
23497
- } else {
23498
- localCellClassName = "fa-table__line-height-normal-column";
23499
- }
23500
- }
23501
- if (columnInfo?.type === "date" || columnInfo?.type === "time" || columnInfo?.type === "dateTime") {
23502
- if (columnInfo?.dateFix) {
23503
- if (localCellClassName) {
23504
- localCellClassName += " fa-table__line-height-normal-column";
23505
- } else {
23506
- localCellClassName = "fa-table__line-height-normal-column";
23507
- }
23508
- }
23509
- }
23510
23572
  if (props.cellClassName) {
23511
23573
  let cellClassName = null;
23512
23574
  if (isString(props.cellClassName)) {
@@ -24074,6 +24136,11 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24074
24136
  };
24075
24137
  const faTreeProps = {
24076
24138
  ...treeProps,
24139
+ /** @description whether Select is disabled 重载使其支持 ElForm*/
24140
+ disabled: {
24141
+ type: Boolean,
24142
+ default: void 0
24143
+ },
24077
24144
  /** 每个树节点用来作为唯一标识的属性,整棵树应该是唯一的 */
24078
24145
  nodeKey: {
24079
24146
  type: String,
@@ -24136,40 +24203,15 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24136
24203
  initParam: utils.definePropType([String, Number, Object])
24137
24204
  };
24138
24205
  const faTreeEmits = {
24206
+ ...ElementPlus2.treeEmits,
24139
24207
  /** @description v-model 回调 */
24140
24208
  "update:modelValue": (value) => isString(value) || isNumber(value) || isBoolean(value) || isObject$1(value) || isNull(value),
24141
24209
  /** @description v-model:label 回调 */
24142
24210
  "update:label": (value) => isString(value) || isNull(value),
24143
24211
  /** @description 数据改变 */
24144
- dataChangeCallBack: (data, orgData) => isArray(data) && isArray(orgData),
24212
+ dataChangeCallBack: (data) => isArray(data),
24145
24213
  /** @description 改变 */
24146
- change: (data, node, instance, event) => isObject$1(data) && isObject$1(node) && isObject$1(instance) && event instanceof MouseEvent,
24147
- /** @description 当节点被点击的时候触发 */
24148
- nodeClick: (data, node, instance, event) => isObject$1(data) && isObject$1(node) && isObject$1(instance) && event instanceof MouseEvent,
24149
- /** @description 当某一节点被鼠标右键点击时会触发该事件 */
24150
- nodeContextmenu: (event, data, node, instance) => event instanceof Event && isObject$1(data) && isObject$1(node) && isObject$1(instance),
24151
- /** @description 当复选框被点击的时候触发 */
24152
- checkChange: (data, checked, indeterminate) => isObject$1(data) && isBoolean(checked) && isBoolean(indeterminate),
24153
- /** @description 点击节点复选框之后触发 */
24154
- check: (data, node) => isObject$1(data) && isObject$1(node),
24155
- /** @description 当前选中节点变化时触发的事件 */
24156
- currentChange: (data, node) => isObject$1(data) && isObject$1(node),
24157
- /** @description 节点被展开时触发的事件 */
24158
- nodeExpand: (data, node, instance) => isObject$1(data) && isObject$1(node) && isObject$1(instance),
24159
- /** @description 节点被关闭时触发的事件 */
24160
- nodeCollapse: (data, node, instance) => isObject$1(data) && isObject$1(node) && isObject$1(instance),
24161
- /** @description 节点开始拖拽时触发的事件 */
24162
- nodeDragStart: (node, event) => isObject$1(node) && event instanceof DragEvent,
24163
- /** @description 拖拽进入其他节点时触发的事件 */
24164
- nodeDragEnter: (node, enterNode, event) => isObject$1(node) && isObject$1(enterNode) && event instanceof DragEvent,
24165
- /** @description 拖拽离开某个节点时触发的事件 */
24166
- nodeDragLeave: (node, leaveNode, event) => isObject$1(node) && isObject$1(leaveNode) && event instanceof DragEvent,
24167
- /** @description 在拖拽节点时触发的事件(类似浏览器的 mouseover 事件) */
24168
- nodeDragOver: (node, dropNode, event) => isObject$1(node) && isObject$1(dropNode) && event instanceof DragEvent,
24169
- /** @description 拖拽结束时(可能未成功)触发的事件 */
24170
- nodeDragEnd: (node, dropNode, dropType, event) => isObject$1(node) && isObject$1(dropNode) && isString(dropType) && event instanceof DragEvent,
24171
- /** @description 拖拽成功完成时触发的事件 */
24172
- nodeDrop: (node, dropNode, dropType, event) => isObject$1(node) && isObject$1(dropNode) && isString(dropType) && event instanceof DragEvent
24214
+ change: (data, node, instance, event) => true
24173
24215
  };
24174
24216
  const Tree = /* @__PURE__ */ vue.defineComponent({
24175
24217
  name: "FaTree",
@@ -24182,9 +24224,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24182
24224
  emit,
24183
24225
  expose
24184
24226
  }) {
24185
- const selectedLabel = /* @__PURE__ */ useVModel(props, "label", emit, {
24186
- passive: true
24187
- });
24227
+ const selectedLabel = /* @__PURE__ */ useVModel(props, "label", emit);
24188
24228
  const _globalSize = ElementPlus2.useGlobalSize();
24189
24229
  const state = vue.reactive({
24190
24230
  value: utils.withDefineType(),
@@ -24192,9 +24232,9 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24192
24232
  searchValue: utils.withDefineType(),
24193
24233
  orgTreeData: utils.withDefineType([]),
24194
24234
  treeData: utils.withDefineType([]),
24195
- hamburger: false,
24235
+ hamburger: props.hamburger || false,
24196
24236
  width: vue.computed(() => {
24197
- if (props.hamburger || state.hamburger) {
24237
+ if (state.hamburger) {
24198
24238
  return "130px";
24199
24239
  } else {
24200
24240
  const width = utils.addUnit(props.width);
@@ -24208,21 +24248,12 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24208
24248
  });
24209
24249
  const fold = vue.computed(() => [...state.orgTreeData].filter((f) => f[props.props.children]?.length > 0).length === 0);
24210
24250
  const treeRef = vue.ref();
24211
- const setTreeData = (treeData) => {
24212
- if (!props.hideAll) {
24213
- treeData.unshift({
24214
- [props.nodeKey]: props.allValue,
24215
- label: "全部",
24216
- all: true
24217
- });
24218
- }
24219
- state.treeData = treeData;
24220
- };
24221
24251
  const loadData = async () => {
24222
24252
  let curSelectedData;
24223
24253
  if (props.nodeKey) {
24224
24254
  curSelectedData = treeRef.value.getCurrentKey();
24225
24255
  }
24256
+ let treeData = [];
24226
24257
  if (props.requestApi) {
24227
24258
  state.loading = true;
24228
24259
  const params = {
@@ -24230,21 +24261,26 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24230
24261
  searchValue: state.searchValue
24231
24262
  };
24232
24263
  try {
24233
- const resData = await props.requestApi(params);
24234
- state.orgTreeData = resData;
24235
- setTreeData(resData);
24264
+ treeData = await props.requestApi(params);
24236
24265
  } catch (error) {
24237
24266
  utils.consoleError("FaTree", error);
24238
- state.orgTreeData = [];
24239
- setTreeData([]);
24240
- emit("dataChangeCallBack", state.treeData, state.orgTreeData);
24241
24267
  } finally {
24242
24268
  state.loading = false;
24243
24269
  }
24244
24270
  } else {
24245
- state.orgTreeData = props.data;
24246
- setTreeData(props.data);
24271
+ treeData = props.data;
24247
24272
  }
24273
+ if (!props.hideAll) {
24274
+ treeData.unshift({
24275
+ [props.nodeKey]: props.allValue,
24276
+ label: "全部",
24277
+ value: null,
24278
+ all: true
24279
+ });
24280
+ }
24281
+ state.orgTreeData = treeData;
24282
+ state.treeData = treeData;
24283
+ emit("dataChangeCallBack", state.treeData);
24248
24284
  if (props.nodeKey && curSelectedData) {
24249
24285
  vue.nextTick(() => {
24250
24286
  treeRef.value.setCurrentKey(curSelectedData);
@@ -24258,8 +24294,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24258
24294
  }
24259
24295
  };
24260
24296
  const handleHamburgerClick = () => {
24261
- if (props.hamburger || state.hamburger) {
24262
- setTreeData(state.orgTreeData);
24297
+ if (state.hamburger) {
24298
+ state.treeData = state.orgTreeData;
24263
24299
  } else {
24264
24300
  state.treeData = state.orgTreeData.map((m) => ({
24265
24301
  ...m,
@@ -24294,7 +24330,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24294
24330
  selectedLabel.value = node.label;
24295
24331
  emit("update:modelValue", state.value);
24296
24332
  emit("change", data, node, instance, event);
24297
- emit("nodeClick", data, node, instance, event);
24333
+ emit("node-click", data, node, instance, event);
24298
24334
  };
24299
24335
  vue.onMounted(async () => {
24300
24336
  await loadData();
@@ -24307,9 +24343,10 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24307
24343
  });
24308
24344
  });
24309
24345
  const elTreeProps = utils.useProps(props, treeProps, ["data", "expandOnClickNode", "filterNodeMethod"]);
24346
+ const elTreeEmits = utils.useEmits(ElementPlus2.treeEmits, emit, ["node-click"]);
24310
24347
  utils.useRender(() => vue.withDirectives(vue.createVNode("div", {
24311
24348
  "class": ["el-card fa-tree", `fa-tree-${_globalSize.value}`, {
24312
- "fa-tree__fold": props.hamburger && state.hamburger || fold.value
24349
+ "fa-tree__fold": state.hamburger || fold.value
24313
24350
  }],
24314
24351
  "style": {
24315
24352
  width: state.width
@@ -24333,30 +24370,18 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24333
24370
  "trim": true
24334
24371
  },
24335
24372
  "onUpdate:modelValue": ($event) => state.searchValue = $event,
24336
- "placeholder": props.hamburger || state.hamburger ? "关键字过滤" : "输入关键字进行过滤",
24373
+ "placeholder": state.hamburger ? "关键字过滤" : "输入关键字进行过滤",
24337
24374
  "clearable": true,
24338
24375
  "onInput": (value) => treeRef.value.filter(value)
24339
24376
  }, null), vue.createVNode(ElementPlus2.ElScrollbar, {
24340
24377
  "class": "fa-tree__scrollbar"
24341
24378
  }, {
24342
- default: () => [vue.createVNode(ElementPlus2.ElTree, vue.mergeProps(elTreeProps.value, {
24379
+ default: () => [vue.createVNode(ElementPlus2.ElTree, vue.mergeProps(elTreeProps.value, elTreeEmits.value, {
24343
24380
  "ref": treeRef,
24344
24381
  "data": state.treeData,
24345
24382
  "expandOnClickNode": props.checkOnClickNode ? false : props.expandOnClickNode,
24346
24383
  "filterNodeMethod": handleFilterNode,
24347
- "onNodeClick": handleNodeClick,
24348
- "onNodeContextmenu": (event, data, node, instance) => emit("nodeContextmenu", event, data, node, instance),
24349
- "onCheckChange": (data, checked, indeterminate) => emit("checkChange", data, checked, indeterminate),
24350
- "onCheck": (data, node) => emit("check", data, node),
24351
- "onCurrentChange": (data, node) => emit("currentChange", data, node),
24352
- "onNodeExpand": (data, node, instance) => emit("nodeExpand", data, node, instance),
24353
- "onNodeCollapse": (data, node, instance) => emit("nodeCollapse", data, node, instance),
24354
- "onNodeDragStart": (node, event) => emit("nodeDragStart", node, event),
24355
- "onNodeDragEnter": (node, enterNode, event) => emit("nodeDragEnter", node, enterNode, event),
24356
- "onNodeDragLeave": (node, leaveNode, event) => emit("nodeDragLeave", node, leaveNode, event),
24357
- "onNodeDragOver": (node, dropNode, event) => emit("nodeDragOver", node, dropNode, event),
24358
- "onNodeDragEnd": (node, dropNode, dropType, event) => emit("nodeDragEnd", node, dropNode, dropType, event),
24359
- "onNodeDrop": (node, dropNode, dropType, event) => emit("nodeDrop", node, dropNode, dropType, event)
24384
+ "onNodeClick": handleNodeClick
24360
24385
  }), {
24361
24386
  default: ({
24362
24387
  node,
@@ -24367,10 +24392,10 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24367
24392
  "style": {
24368
24393
  paddingLeft: fold.value ? "3px" : ""
24369
24394
  }
24370
- }, [vue.createVNode("span", null, [slots.label ? slots.label({
24395
+ }, [vue.createVNode("div", null, [data?.all ? data.label : slots.label ? slots.label({
24371
24396
  node,
24372
24397
  data
24373
- }) : data?.all ? data.label : node.label]), node.key && data.showQuantity ? vue.createVNode("span", null, [vue.createTextVNode("["), data.quantity, vue.createTextVNode("]")]) : null, slots.default && vue.createVNode("span", null, [slots.default({
24398
+ }) : node.label]), node.key && data.showQuantity ? vue.createVNode("span", null, [vue.createTextVNode("["), data.quantity, vue.createTextVNode("]")]) : null, !data?.all && slots.default && vue.createVNode("span", null, [slots.default({
24374
24399
  node,
24375
24400
  data
24376
24401
  })])]),
@@ -24427,6 +24452,11 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24427
24452
  const faTreeSelectProps = {
24428
24453
  ...SelectProps,
24429
24454
  ...treeProps,
24455
+ /** @description whether Select is disabled 重载使其支持 ElForm*/
24456
+ disabled: {
24457
+ type: Boolean,
24458
+ default: void 0
24459
+ },
24430
24460
  /** @description displayed text while loading data from server, default is 'Loading' */
24431
24461
  loadingText: {
24432
24462
  type: String,
@@ -24481,8 +24511,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24481
24511
  * @description The cached data of the lazy node, the structure is the same as the data, used to get the label of the unloaded data
24482
24512
  */
24483
24513
  cacheData: {
24484
- type: Array,
24485
- default: () => []
24514
+ type: utils.definePropType(Array),
24515
+ default: []
24486
24516
  },
24487
24517
  /** @description v-model绑定值 */
24488
24518
  modelValue: {
@@ -24528,6 +24558,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24528
24558
  initParam: utils.definePropType([String, Number, Object])
24529
24559
  };
24530
24560
  const faTreeSelectEmits = {
24561
+ ...ElementPlus2.selectEmits,
24562
+ ...ElementPlus2.treeEmits,
24531
24563
  /** @description v-model 回调 */
24532
24564
  "update:modelValue": (value) => isString(value) || isNumber(value) || isBoolean(value) || isObject$1(value) || isArray(value) || isNull(value),
24533
24565
  /** @description v-model:label 回调 */
@@ -24535,43 +24567,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24535
24567
  /** @description 数据改变 */
24536
24568
  dataChangeCallBack: (data) => isArray(data),
24537
24569
  /** @description 改变 */
24538
- change: (data, value) => (isObject$1(data) || isArray(data) || isNull(data)) && (isString(value) || isNumber(value) || isBoolean(value) || isObject$1(value) || isArray(value) || isNull(value)),
24539
- /** @description 下拉框出现/隐藏时触发 */
24540
- visibleChange: (visible) => isBoolean(visible),
24541
- /** @description 多选模式下移除tag时触发 */
24542
- removeTag: (tagValue) => isString(tagValue) || isNumber(tagValue) || isBoolean(tagValue) || isObject$1(tagValue) || isArray(tagValue),
24543
- /** @description 可清空的单选模式下用户点击清空按钮时触发 */
24544
- clear: () => true,
24545
- /** @description 当 input 失去焦点时触发 */
24546
- blur: (event) => event instanceof FocusEvent,
24547
- /** @description 当 input 获得焦点时触发 */
24548
- focus: (event) => event instanceof FocusEvent,
24549
- /** @description 当节点被点击的时候触发 */
24550
- nodeClick: (data, node, instance) => isObject$1(data) && isObject$1(node) && isObject$1(instance),
24551
- /** @description 当某一节点被鼠标右键点击时会触发该事件 */
24552
- nodeContextmenu: (event, data, node, instance) => event instanceof Event && isObject$1(data) && isObject$1(node) && isObject$1(instance),
24553
- /** @description 当复选框被点击的时候触发 */
24554
- checkChange: (data, checked, indeterminate) => isObject$1(data) && isBoolean(checked) && isBoolean(indeterminate),
24555
- /** @description 点击节点复选框之后触发 */
24556
- check: (data, node) => isObject$1(data) && isObject$1(node),
24557
- /** @description 当前选中节点变化时触发的事件 */
24558
- currentChange: (data, node) => isObject$1(data) && isObject$1(node),
24559
- /** @description 节点被展开时触发的事件 */
24560
- nodeExpand: (data, node, instance) => isObject$1(data) && isObject$1(node) && isObject$1(instance),
24561
- /** @description 节点被关闭时触发的事件 */
24562
- nodeCollapse: (data, node, instance) => isObject$1(data) && isObject$1(node) && isObject$1(instance),
24563
- /** @description 节点开始拖拽时触发的事件 */
24564
- nodeDragStart: (node, event) => isObject$1(node) && event instanceof DragEvent,
24565
- /** @description 拖拽进入其他节点时触发的事件 */
24566
- nodeDragEnter: (node, enterNode, event) => isObject$1(node) && isObject$1(enterNode) && event instanceof DragEvent,
24567
- /** @description 拖拽离开某个节点时触发的事件 */
24568
- nodeDragLeave: (node, leaveNode, event) => isObject$1(node) && isObject$1(leaveNode) && event instanceof DragEvent,
24569
- /** @description 在拖拽节点时触发的事件(类似浏览器的 mouseover 事件) */
24570
- nodeDragOver: (node, dropNode, event) => isObject$1(node) && isObject$1(dropNode) && event instanceof DragEvent,
24571
- /** @description 拖拽结束时(可能未成功)触发的事件 */
24572
- nodeDragEnd: (node, dropNode, dropType, event) => isObject$1(node) && isObject$1(dropNode) && isString(dropType) && event instanceof DragEvent,
24573
- /** @description 拖拽成功完成时触发的事件 */
24574
- nodeDrop: (node, dropNode, dropType, event) => isObject$1(node) && isObject$1(dropNode) && isString(dropType) && event instanceof DragEvent
24570
+ change: (data, value) => true
24575
24571
  };
24576
24572
  const TreeSelect = /* @__PURE__ */ vue.defineComponent({
24577
24573
  name: "FaTreeSelect",
@@ -24584,9 +24580,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24584
24580
  emit,
24585
24581
  expose
24586
24582
  }) {
24587
- const selectedLabel = /* @__PURE__ */ useVModel(props, "label", emit, {
24588
- passive: true
24589
- });
24583
+ const selectedLabel = /* @__PURE__ */ useVModel(props, "label", emit);
24590
24584
  const state = vue.reactive({
24591
24585
  value: utils.withDefineType(),
24592
24586
  loading: false,
@@ -24676,6 +24670,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24676
24670
  const handleClear = () => {
24677
24671
  state.value = null;
24678
24672
  selectedLabel.value = null;
24673
+ emit("update:modelValue", null);
24679
24674
  emit("clear");
24680
24675
  };
24681
24676
  const handleNodeClick = (data, node, instance, event) => {
@@ -24693,7 +24688,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24693
24688
  handleChange(data.value, data);
24694
24689
  }
24695
24690
  }
24696
- emit("nodeClick", data, node, instance);
24691
+ emit("node-click", data, node, instance, event);
24697
24692
  };
24698
24693
  const handleVisibleChange = async (visible) => {
24699
24694
  if (visible) {
@@ -24707,7 +24702,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24707
24702
  }
24708
24703
  }
24709
24704
  }
24710
- emit("visibleChange", visible);
24705
+ emit("visible-change", visible);
24711
24706
  };
24712
24707
  vue.watch(() => props.modelValue, (newValue) => {
24713
24708
  if (state.echo && !isNil(newValue)) {
@@ -24780,7 +24775,11 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24780
24775
  ...SelectProps,
24781
24776
  ...treeProps
24782
24777
  }, ["modelValue", "popperClass", "loading", "expandOnClickNode", "filterNodeMethod"]);
24783
- utils.useRender(() => vue.createVNode(ElementPlus2.ElTreeSelect, vue.mergeProps(elTreeSelectProps.value, {
24778
+ const elTreeSelectEmits = utils.useEmits({
24779
+ ...ElementPlus2.selectEmits,
24780
+ ...ElementPlus2.treeEmits
24781
+ }, emit, ["update:modelValue", "clear", "visible-change", "node-click"]);
24782
+ utils.useRender(() => vue.createVNode(ElementPlus2.ElTreeSelect, vue.mergeProps(elTreeSelectProps.value, elTreeSelectEmits.value, {
24784
24783
  "ref": treeSelectRef,
24785
24784
  "class": "fa-tree-select",
24786
24785
  "popperClass": `fa-tree-select-dropdown ${props.popperClass}`,
@@ -24795,22 +24794,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24795
24794
  "filterNodeMethod": handleFilterNode,
24796
24795
  "onNodeClick": handleNodeClick,
24797
24796
  "onClear": handleClear,
24798
- "onVisibleChange": handleVisibleChange,
24799
- "onRemoveTag": (tagValue) => emit("removeTag", tagValue),
24800
- "onBlur": (event) => emit("blur", event),
24801
- "onFocus": (event) => emit("focus", event),
24802
- "onNodeContextmenu": (event, data, node, instance) => emit("nodeContextmenu", event, data, node, instance),
24803
- "onCheckChange": (data, checked, indeterminate) => emit("checkChange", data, checked, indeterminate),
24804
- "onCheck": (data, node) => emit("check", data, node),
24805
- "onCurrentChange": (data, node) => emit("currentChange", data, node),
24806
- "onNodeExpand": (data, node, instance) => emit("nodeExpand", data, node, instance),
24807
- "onNodeCollapse": (data, node, instance) => emit("nodeCollapse", data, node, instance),
24808
- "onNodeDragStart": (node, event) => emit("nodeDragStart", node, event),
24809
- "onNodeDragEnter": (node, enterNode, event) => emit("nodeDragEnter", node, enterNode, event),
24810
- "onNodeDragLeave": (node, leaveNode, event) => emit("nodeDragLeave", node, leaveNode, event),
24811
- "onNodeDragOver": (node, dropNode, event) => emit("nodeDragOver", node, dropNode, event),
24812
- "onNodeDragEnd": (node, dropNode, dropType, event) => emit("nodeDragEnd", node, dropNode, dropType, event),
24813
- "onNodeDrop": (node, dropNode, dropType, event) => emit("nodeDrop", node, dropNode, dropType, event)
24797
+ "onVisibleChange": handleVisibleChange
24814
24798
  }), {
24815
24799
  ...slots.default && {
24816
24800
  default: ({
@@ -24850,48 +24834,49 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
24850
24834
  }
24851
24835
  }));
24852
24836
  return utils.useExpose(expose, {
24853
- /** @description 使选择器的输入框获取焦点 */
24854
- focus: vue.computed(() => treeSelectRef.value?.focus),
24855
- /** @description 使选择器的输入框失去焦点,并隐藏下拉框 */
24856
- blur: vue.computed(() => treeSelectRef.value?.blur),
24857
- /** @description 获取当前选中的标签 */
24858
- selectedLabel: vue.computed(() => treeSelectRef.value?.selectedLabel),
24859
- /** @description 过滤所有树节点,过滤后的节点将被隐藏 */
24860
- filter: vue.computed(() => treeSelectRef.value?.filter),
24861
- /** @description 为节点设置新数据,只有当设置 node-key 属性的时候才可用 */
24862
- updateKeyChildren: vue.computed(() => treeSelectRef.value?.updateKeyChildren),
24863
- /** @description 如果节点可以被选中,(show-checkbox true), 本方法将返回当前选中节点的数组 */
24864
- getCheckedNodes: vue.computed(() => treeSelectRef.value?.getCheckedNodes),
24865
- /** @description 设置目前勾选的节点,使用此方法必须提前设置 node-key 属性 */
24866
- setCheckedNodes: vue.computed(() => treeSelectRef.value?.setCheckedNodes),
24867
- /** @description 若节点可用被选中 (show-checkbox true), 它将返回当前选中节点 key 的数组 */
24868
- getCheckedKeys: vue.computed(() => treeSelectRef.value?.getCheckedKeys),
24869
- /** @description 设置目前选中的节点,使用此方法必须设置 node-key 属性 */
24870
- setCheckedKeys: vue.computed(() => treeSelectRef.value?.setCheckedKeys),
24871
- /** @description 设置节点是否被选中, 使用此方法必须设置 node-key 属性 */
24872
- setChecked: vue.computed(() => treeSelectRef.value?.setChecked),
24873
- /** @description 如果节点可用被选中 (show-checkbox true), 它将返回当前半选中的节点组成的数组 */
24874
- getHalfCheckedNodes: vue.computed(() => treeSelectRef.value?.getHalfCheckedNodes),
24875
- /** @description 若节点可被选中(show-checkbox true),则返回目前半选中的节点的 key 所组成的数组 */
24876
- getHalfCheckedKeys: vue.computed(() => treeSelectRef.value?.getHalfCheckedKeys),
24877
- /** @description 返回当前被选中节点的数据 (如果没有则返回 null) */
24878
- getCurrentKey: vue.computed(() => treeSelectRef.value?.getCurrentKey),
24879
- /** @description 返回当前被选中节点的数据 (如果没有则返回 null) */
24880
- getCurrentNode: vue.computed(() => treeSelectRef.value?.getCurrentNode),
24881
- /** @description 通过 key 设置某个节点的当前选中状态,使用此方法必须设置 node-key 属性 */
24882
- setCurrentKey: vue.computed(() => treeSelectRef.value?.setCurrentKey),
24883
- /** @description 设置节点为选中状态,使用此方法必须设置 node-key 属性 */
24884
- setCurrentNode: vue.computed(() => treeSelectRef.value?.setCurrentNode),
24885
- /** @description 根据 data 或者 key 拿到 Tree 组件中的 node */
24886
- getNode: vue.computed(() => treeSelectRef.value?.getNode),
24887
- /** @description 删除 Tree 中的一个节点,使用此方法必须设置 node-key 属性 */
24888
- remove: vue.computed(() => treeSelectRef.value?.remove),
24889
- /** @description Tree 中的一个节点追加一个子节点 */
24890
- append: vue.computed(() => treeSelectRef.value?.append),
24891
- /** @description Tree 中给定节点前插入一个节点 */
24892
- insertBefore: vue.computed(() => treeSelectRef.value?.insertBefore),
24893
- /** @description Tree 中给定节点后插入一个节点 */
24894
- insertAfter: vue.computed(() => treeSelectRef.value?.insertAfter),
24837
+ // TODO:这里 EL 没有返回类型,等待下一个版本修复
24838
+ // /** @description 使选择器的输入框获取焦点 */
24839
+ // focus: computed(() => treeSelectRef.value?.focus),
24840
+ // /** @description 使选择器的输入框失去焦点,并隐藏下拉框 */
24841
+ // blur: computed(() => treeSelectRef.value?.blur),
24842
+ // /** @description 获取当前选中的标签 */
24843
+ // selectedLabel: computed(() => treeSelectRef.value?.selectedLabel),
24844
+ // /** @description 过滤所有树节点,过滤后的节点将被隐藏 */
24845
+ // filter: computed(() => treeSelectRef.value?.filter),
24846
+ // /** @description 为节点设置新数据,只有当设置 node-key 属性的时候才可用 */
24847
+ // updateKeyChildren: computed(() => treeSelectRef.value?.updateKeyChildren),
24848
+ // /** @description 如果节点可以被选中,(show-checkbox true), 本方法将返回当前选中节点的数组 */
24849
+ // getCheckedNodes: computed(() => treeSelectRef.value?.getCheckedNodes),
24850
+ // /** @description 设置目前勾选的节点,使用此方法必须提前设置 node-key 属性 */
24851
+ // setCheckedNodes: computed(() => treeSelectRef.value?.setCheckedNodes),
24852
+ // /** @description 若节点可用被选中 (show-checkbox true), 它将返回当前选中节点 key 的数组 */
24853
+ // getCheckedKeys: computed(() => treeSelectRef.value?.getCheckedKeys),
24854
+ // /** @description 设置目前选中的节点,使用此方法必须设置 node-key 属性 */
24855
+ // setCheckedKeys: computed(() => treeSelectRef.value?.setCheckedKeys),
24856
+ // /** @description 设置节点是否被选中, 使用此方法必须设置 node-key 属性 */
24857
+ // setChecked: computed(() => treeSelectRef.value?.setChecked),
24858
+ // /** @description 如果节点可用被选中 (show-checkbox true), 它将返回当前半选中的节点组成的数组 */
24859
+ // getHalfCheckedNodes: computed(() => treeSelectRef.value?.getHalfCheckedNodes),
24860
+ // /** @description 若节点可被选中(show-checkbox 为 true),则返回目前半选中的节点的 key 所组成的数组 */
24861
+ // getHalfCheckedKeys: computed(() => treeSelectRef.value?.getHalfCheckedKeys),
24862
+ // /** @description 返回当前被选中节点的数据 (如果没有则返回 null) */
24863
+ // getCurrentKey: computed(() => treeSelectRef.value?.getCurrentKey),
24864
+ // /** @description 返回当前被选中节点的数据 (如果没有则返回 null) */
24865
+ // getCurrentNode: computed(() => treeSelectRef.value?.getCurrentNode),
24866
+ // /** @description 通过 key 设置某个节点的当前选中状态,使用此方法必须设置 node-key 属性 */
24867
+ // setCurrentKey: computed(() => treeSelectRef.value?.setCurrentKey),
24868
+ // /** @description 设置节点为选中状态,使用此方法必须设置 node-key 属性 */
24869
+ // setCurrentNode: computed(() => treeSelectRef.value?.setCurrentNode),
24870
+ // /** @description 根据 data 或者 key 拿到 Tree 组件中的 node */
24871
+ // getNode: computed(() => treeSelectRef.value?.getNode),
24872
+ // /** @description 删除 Tree 中的一个节点,使用此方法必须设置 node-key 属性 */
24873
+ // remove: computed(() => treeSelectRef.value?.remove),
24874
+ // /** @description 为 Tree 中的一个节点追加一个子节点 */
24875
+ // append: computed(() => treeSelectRef.value?.append),
24876
+ // /** @description 在 Tree 中给定节点前插入一个节点 */
24877
+ // insertBefore: computed(() => treeSelectRef.value?.insertBefore),
24878
+ // /** @description 在 Tree 中给定节点后插入一个节点 */
24879
+ // insertAfter: computed(() => treeSelectRef.value?.insertAfter),
24895
24880
  /** @description 加载状态 */
24896
24881
  loading: vue.computed(() => state.loading),
24897
24882
  /** @description 刷新 */
@@ -27048,7 +27033,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
27048
27033
  function trunc(x) {
27049
27034
  return finalise(x = new this(x), x.e + 1, 1);
27050
27035
  }
27051
- P[Symbol.for("nodejs.util.inspect.custom")] = P.toString;
27036
+ P[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = P.toString;
27052
27037
  P[Symbol.toStringTag] = "Decimal";
27053
27038
  var Decimal = P.constructor = clone(DEFAULTS);
27054
27039
  LN10 = new Decimal(LN10);
@@ -28309,8 +28294,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
28309
28294
  }
28310
28295
  app.use(ElementPlus2);
28311
28296
  };
28312
- const version$1 = "1.0.7";
28313
- const INSTALLED_KEY = Symbol("INSTALLED_KEY");
28297
+ const version$1 = "1.0.10";
28298
+ const INSTALLED_KEY = /* @__PURE__ */ Symbol("INSTALLED_KEY");
28314
28299
  const makeInstaller = () => {
28315
28300
  const install2 = (app) => {
28316
28301
  if (app[INSTALLED_KEY]) return;
@@ -28327,6 +28312,152 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
28327
28312
  install: install2
28328
28313
  };
28329
28314
  };
28315
+ const faInputDialogPageProps = {
28316
+ /** @description key of row data, used for optimizing rendering. Required if `reserve-selection` is on or display tree data. When its type is String, multi-level access is supported, e.g. `user.info.id`, but `user.info[0].id` is not supported, in which case `Function` should be used */
28317
+ rowKey: {
28318
+ type: [String, Function],
28319
+ default: "id"
28320
+ },
28321
+ /** @description v-model绑定值 */
28322
+ modelValue: [String, Number],
28323
+ /** @description v-model:label绑定值 */
28324
+ label: String,
28325
+ /** @description 输入框占位文本 */
28326
+ placeholder: {
28327
+ type: String,
28328
+ default: "请选择"
28329
+ },
28330
+ /** @description 禁用 */
28331
+ disabled: Boolean,
28332
+ /** @description 标题 */
28333
+ title: String,
28334
+ /** @description 请求api */
28335
+ requestApi: {
28336
+ type: utils.definePropType(Function)
28337
+ },
28338
+ /** 初始化参数 */
28339
+ initParam: utils.definePropType([String, Number, Object]),
28340
+ /** @description 显示文本 Key */
28341
+ labelKey: {
28342
+ type: String,
28343
+ default: "name"
28344
+ }
28345
+ };
28346
+ const faInputDialogPageEmits = {
28347
+ /** @description v-model 回调 */
28348
+ "update:modelValue": (value) => isString(value) || isNumber(value) || isNull(value),
28349
+ /** @description v-model:label 回调 */
28350
+ "update:label": (value) => isString(value) || isNull(value),
28351
+ /** @description 改变 */
28352
+ change: (value) => isString(value) || isNumber(value) || isNull(value)
28353
+ };
28354
+ const InputDialogPage = /* @__PURE__ */ vue.defineComponent({
28355
+ name: "FaInputDialogPage",
28356
+ props: faInputDialogPageProps,
28357
+ emits: faInputDialogPageEmits,
28358
+ slots: utils.makeSlots(),
28359
+ setup(props, {
28360
+ attrs,
28361
+ slots,
28362
+ emit,
28363
+ expose
28364
+ }) {
28365
+ const modelValue = /* @__PURE__ */ useVModel(props, "modelValue", emit);
28366
+ const selectedLabel = /* @__PURE__ */ useVModel(props, "label", emit);
28367
+ const state = vue.reactive({
28368
+ selectionRow: utils.withDefineType()
28369
+ });
28370
+ const faDialogRef = vue.ref();
28371
+ const faTableRef = vue.ref();
28372
+ const handleDeleteClick = () => {
28373
+ modelValue.value = null;
28374
+ selectedLabel.value = null;
28375
+ emit("change", null);
28376
+ };
28377
+ const handleSearchClick = () => {
28378
+ faDialogRef.value.open(() => {
28379
+ if (state.selectionRow) {
28380
+ const rowSelected = faTableRef.value.selectedListIds.includes(isFunction(props.rowKey) ? props.rowKey(state.selectionRow) : state.selectionRow[props.rowKey]);
28381
+ if (!rowSelected) {
28382
+ faTableRef.value.toggleRowSelection(state.selectionRow);
28383
+ }
28384
+ }
28385
+ });
28386
+ };
28387
+ const handleConfirmClick = () => {
28388
+ faDialogRef.value.close(() => {
28389
+ if (faTableRef.value.selected) {
28390
+ const selectedData = faTableRef.value.selectedList[0];
28391
+ modelValue.value = selectedData[isFunction(props.rowKey) ? props.rowKey(selectedData) : selectedData[props.rowKey]];
28392
+ selectedLabel.value = selectedData[props.labelKey];
28393
+ emit("change", selectedData);
28394
+ } else {
28395
+ modelValue.value = null;
28396
+ selectedLabel.value = null;
28397
+ emit("change", null);
28398
+ }
28399
+ });
28400
+ };
28401
+ const handleTableRowDblclick = (row) => {
28402
+ faTableRef.value.clearSelection();
28403
+ faTableRef.value.toggleRowSelection(row);
28404
+ state.selectionRow = row;
28405
+ handleConfirmClick();
28406
+ };
28407
+ utils.useRender(() => vue.createVNode("div", {
28408
+ "class": "fa-input-dialog-page"
28409
+ }, [vue.createVNode(ElementPlus2.ElInput, {
28410
+ "modelValue": selectedLabel.value,
28411
+ "onUpdate:modelValue": ($event) => selectedLabel.value = $event,
28412
+ "placeholder": props.placeholder,
28413
+ "disabled": props.disabled,
28414
+ "readonly": true
28415
+ }, {
28416
+ append: () => vue.createVNode(ElementPlus2.ElButtonGroup, null, {
28417
+ default: () => [vue.createVNode(ElementPlus2.ElButton, {
28418
+ "disabled": props.disabled,
28419
+ "icon": ElementPlusIconsVue2.Delete,
28420
+ "onClick": handleDeleteClick
28421
+ }, null), vue.createVNode(ElementPlus2.ElButton, {
28422
+ "disabled": props.disabled,
28423
+ "icon": ElementPlusIconsVue2.Search,
28424
+ "onClick": handleSearchClick
28425
+ }, null)]
28426
+ })
28427
+ }), vue.createVNode(FaDialog, {
28428
+ "ref": faDialogRef,
28429
+ "style": "--height: 70%;",
28430
+ "width": "50%",
28431
+ "title": props.title,
28432
+ "fillHeight": true,
28433
+ "disabledConfirmButton": !faTableRef.value?.selected,
28434
+ "onConfirmClick": handleConfirmClick
28435
+ }, {
28436
+ default: () => [vue.createVNode(FaTable, {
28437
+ "ref": faTableRef,
28438
+ "rowKey": props.rowKey,
28439
+ "requestApi": props.requestApi,
28440
+ "initParam": props.initParam,
28441
+ "single": true,
28442
+ "rowClickSelection": true,
28443
+ "hideSearchTime": true,
28444
+ "exportBtn": false,
28445
+ "onRowDblclick": handleTableRowDblclick
28446
+ }, {
28447
+ default: () => slots.default && slots.default()
28448
+ })]
28449
+ })]));
28450
+ return utils.useExpose(expose, {
28451
+ /** @description 选择行数据 */
28452
+ selectionRow: vue.computed(() => state.selectionRow),
28453
+ /** @description 打开选择器弹窗 */
28454
+ open: handleSearchClick,
28455
+ /** @description 清除选择 */
28456
+ clear: handleDeleteClick
28457
+ });
28458
+ }
28459
+ });
28460
+ const FaInputDialogPage = utils.withInstall(InputDialogPage);
28330
28461
  const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28331
28462
  __proto__: null,
28332
28463
  CarNumberArea,
@@ -28344,6 +28475,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
28344
28475
  FaIcon,
28345
28476
  FaIconSelector,
28346
28477
  FaImage,
28478
+ FaInputDialogPage,
28347
28479
  FaLayoutGrid,
28348
28480
  FaLayoutGridItem,
28349
28481
  FaSelect,
@@ -28368,6 +28500,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
28368
28500
  faFormItemTipProps,
28369
28501
  faFormProps,
28370
28502
  faImageProps,
28503
+ faInputDialogPageEmits,
28504
+ faInputDialogPageProps,
28371
28505
  faSelectPageEmits,
28372
28506
  faSelectPageProps,
28373
28507
  faSelectProps,
@@ -28407,6 +28541,7 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
28407
28541
  exports.FaIcon = FaIcon;
28408
28542
  exports.FaIconSelector = FaIconSelector;
28409
28543
  exports.FaImage = FaImage;
28544
+ exports.FaInputDialogPage = FaInputDialogPage;
28410
28545
  exports.FaLayoutGrid = FaLayoutGrid;
28411
28546
  exports.FaLayoutGridItem = FaLayoutGridItem;
28412
28547
  exports.FaMimeType = FaMimeType;
@@ -28436,6 +28571,8 @@ var FastElementPlus = (function(exports, FastElementPlusIconsVue2, utils, vue, E
28436
28571
  exports.faFormItemTipProps = faFormItemTipProps;
28437
28572
  exports.faFormProps = faFormProps;
28438
28573
  exports.faImageProps = faImageProps;
28574
+ exports.faInputDialogPageEmits = faInputDialogPageEmits;
28575
+ exports.faInputDialogPageProps = faInputDialogPageProps;
28439
28576
  exports.faSelectPageEmits = faSelectPageEmits;
28440
28577
  exports.faSelectPageProps = faSelectPageProps;
28441
28578
  exports.faSelectProps = faSelectProps;