@silver-formily/element-plus 2.3.0 → 3.0.0

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 (145) hide show
  1. package/esm/__builtins__/index.mjs +20 -19
  2. package/esm/__builtins__/shared/index.mjs +11 -10
  3. package/esm/__builtins__/shared/transform-component.d.ts +1 -1
  4. package/esm/__builtins__/shared/utils.d.ts +1 -0
  5. package/esm/__builtins__/shared/utils.mjs +22 -18
  6. package/esm/__builtins__/shared/utils.mjs.map +1 -1
  7. package/esm/array-base/index.mjs +27 -27
  8. package/esm/array-base/index.mjs.map +1 -1
  9. package/esm/array-base/symbols.mjs +1 -1
  10. package/esm/array-base/symbols.mjs.map +1 -1
  11. package/esm/array-base/utils.d.ts +0 -1
  12. package/esm/array-base/utils.mjs +27 -35
  13. package/esm/array-base/utils.mjs.map +1 -1
  14. package/esm/array-cards/index.mjs +1 -1
  15. package/esm/array-cards/index.mjs.map +1 -1
  16. package/esm/array-collapse/index.mjs +2 -5
  17. package/esm/array-collapse/index.mjs.map +1 -1
  18. package/esm/array-items/index.mjs +1 -1
  19. package/esm/array-list-tabs/index.mjs +9 -9
  20. package/esm/array-table/index.mjs +7 -9
  21. package/esm/array-table/index.mjs.map +1 -1
  22. package/esm/array-tabs/index.mjs +1 -2
  23. package/esm/array-tabs/index.mjs.map +1 -1
  24. package/esm/autocomplete/autocomplete.d.ts +16 -16
  25. package/esm/autocomplete/index.d.ts +8 -8
  26. package/esm/autocomplete/index.mjs +2 -2
  27. package/esm/autocomplete/index.mjs.map +1 -1
  28. package/esm/cascader/index.mjs +2 -2
  29. package/esm/checkbox/index.d.ts +27 -27
  30. package/esm/checkbox/index.mjs +7 -12
  31. package/esm/checkbox/index.mjs.map +1 -1
  32. package/esm/editable/editable.d.ts +14 -12
  33. package/esm/editable/index.d.ts +7 -6
  34. package/esm/editable/index.mjs +57 -61
  35. package/esm/editable/index.mjs.map +1 -1
  36. package/esm/env.d.d.ts +1 -0
  37. package/esm/form/form.mjs +5 -5
  38. package/esm/form-button-group/form-button-group.d.ts +9 -0
  39. package/esm/form-button-group/index.d.ts +15 -0
  40. package/esm/form-button-group/index.mjs +33 -25
  41. package/esm/form-button-group/index.mjs.map +1 -1
  42. package/esm/form-collapse/index.mjs +1 -1
  43. package/esm/form-collapse/utils.mjs +0 -2
  44. package/esm/form-collapse/utils.mjs.map +1 -1
  45. package/esm/form-dialog/index.mjs +63 -70
  46. package/esm/form-dialog/index.mjs.map +1 -1
  47. package/esm/form-drawer/index.mjs +62 -69
  48. package/esm/form-drawer/index.mjs.map +1 -1
  49. package/esm/form-grid/form-grid.d.ts +2 -2
  50. package/esm/form-grid/hooks.d.ts +1 -2
  51. package/esm/form-grid/hooks.mjs +4 -11
  52. package/esm/form-grid/hooks.mjs.map +1 -1
  53. package/esm/form-grid/index.mjs +38 -35
  54. package/esm/form-grid/index.mjs.map +1 -1
  55. package/esm/form-item/index.d.ts +1 -0
  56. package/esm/form-item/index.mjs +102 -107
  57. package/esm/form-item/index.mjs.map +1 -1
  58. package/esm/form-item/types.d.ts +12 -6
  59. package/esm/form-layout/form-layout.mjs +2 -2
  60. package/esm/form-layout/utils.mjs +24 -24
  61. package/esm/form-layout/utils.mjs.map +1 -1
  62. package/esm/form-step/index.mjs +2 -2
  63. package/esm/form-step/utils.mjs +0 -3
  64. package/esm/form-step/utils.mjs.map +1 -1
  65. package/esm/form-tab/hooks.d.ts +2 -1
  66. package/esm/form-tab/hooks.mjs +13 -20
  67. package/esm/form-tab/hooks.mjs.map +1 -1
  68. package/esm/form-tab/index.mjs +38 -39
  69. package/esm/form-tab/index.mjs.map +1 -1
  70. package/esm/index.d.ts +2 -0
  71. package/esm/index.mjs +62 -58
  72. package/esm/index.mjs.map +1 -1
  73. package/esm/input/index.mjs +2 -2
  74. package/esm/input-number/index.d.ts +15 -15
  75. package/esm/input-tag/index.mjs +2 -2
  76. package/esm/mention/index.mjs +2 -2
  77. package/esm/pagination/pagination.mjs +1 -1
  78. package/esm/pagination/pagination.mjs.map +1 -1
  79. package/esm/preview-text/index.mjs +33 -42
  80. package/esm/preview-text/index.mjs.map +1 -1
  81. package/esm/preview-text/utils.mjs +1 -1
  82. package/esm/preview-text/utils.mjs.map +1 -1
  83. package/esm/query-form/default-components.d.ts +5 -0
  84. package/esm/query-form/default-components.mjs +47 -0
  85. package/esm/query-form/default-components.mjs.map +1 -0
  86. package/esm/query-form/hooks.d.ts +25 -0
  87. package/esm/query-form/hooks.mjs +29 -0
  88. package/esm/query-form/hooks.mjs.map +1 -0
  89. package/esm/query-form/index.d.ts +117 -0
  90. package/esm/query-form/index.mjs +331 -0
  91. package/esm/query-form/index.mjs.map +1 -0
  92. package/esm/query-form/query-form-light.d.ts +27 -0
  93. package/esm/query-form/query-form.d.ts +52 -0
  94. package/esm/query-form/types.d.ts +44 -0
  95. package/esm/query-form/types.mjs +2 -0
  96. package/esm/query-form/types.mjs.map +1 -0
  97. package/esm/query-form-item/index.d.ts +151 -0
  98. package/esm/query-form-item/index.mjs +181 -0
  99. package/esm/query-form-item/index.mjs.map +1 -0
  100. package/esm/query-form-item/query-form-item.d.ts +96 -0
  101. package/esm/query-form-item/types.d.ts +46 -0
  102. package/esm/query-form-item/types.mjs +2 -0
  103. package/esm/query-form-item/types.mjs.map +1 -0
  104. package/esm/radio/index.d.ts +18 -18
  105. package/esm/radio/index.mjs +7 -12
  106. package/esm/radio/index.mjs.map +1 -1
  107. package/esm/reset/index.mjs +2 -2
  108. package/esm/segmented/index.mjs +2 -2
  109. package/esm/select/index.d.ts +16 -16
  110. package/esm/select/index.mjs +1 -1
  111. package/esm/select-table/index.d.ts +6 -6
  112. package/esm/select-table/index.mjs +22 -24
  113. package/esm/select-table/index.mjs.map +1 -1
  114. package/esm/select-table/select-table.d.ts +2 -2
  115. package/esm/shared/overlay-elements.mjs +14 -11
  116. package/esm/shared/overlay-elements.mjs.map +1 -1
  117. package/esm/styles/form-button-group/index.css +1 -1
  118. package/esm/styles/form-grid/index.css +1 -1
  119. package/esm/styles/form-item/index.css +1 -1
  120. package/esm/styles/query-form/index.css +1 -0
  121. package/esm/styles/query-form-item/index.css +1 -0
  122. package/esm/submit/index.mjs +3 -3
  123. package/esm/submit/index.mjs.map +1 -1
  124. package/esm/switch/index.d.ts +9 -9
  125. package/esm/time-select/index.d.ts +12 -12
  126. package/esm/transfer/index.d.ts +12 -12
  127. package/esm/tree/index.mjs +3 -3
  128. package/esm/tree/utils.mjs +0 -2
  129. package/esm/tree/utils.mjs.map +1 -1
  130. package/esm/tree-select/index.mjs +2 -2
  131. package/esm/upload/index.d.ts +12 -12
  132. package/esm/upload/index.mjs +3 -3
  133. package/esm/upload/upload.d.ts +24 -24
  134. package/esm/vendor/icon.mjs.map +1 -1
  135. package/esm/vendor/lodash.mjs +777 -663
  136. package/esm/vendor/lodash.mjs.map +1 -1
  137. package/esm/vendor/runtime.mjs +23 -29
  138. package/esm/vendor/runtime.mjs.map +1 -1
  139. package/esm/vendor/shared.esm-bundler.mjs +2 -7
  140. package/esm/vendor/shared.esm-bundler.mjs.map +1 -1
  141. package/esm/vendor/sizes.mjs.map +1 -1
  142. package/esm/vendor/types.mjs +5 -5
  143. package/esm/vendor/types.mjs.map +1 -1
  144. package/package.json +89 -115
  145. package/LICENSE +0 -21
@@ -1,6 +1,6 @@
1
1
  import { useField as _, connect as A, mapProps as D } from "@silver-formily/vue";
2
2
  import { PreviewText as H } from "../preview-text/index.mjs";
3
- import { defineComponent as P, useSlots as R, ref as h, computed as y, watch as v, nextTick as k, createBlock as g, openBlock as C, unref as a, withCtx as T, withDirectives as w, mergeProps as F, createSlots as B, renderList as E, renderSlot as L, normalizeProps as j, guardReactiveProps as z } from "vue";
3
+ import { defineComponent as P, useSlots as R, ref as h, computed as y, watch as v, nextTick as k, openBlock as g, createBlock as C, unref as a, withCtx as T, withDirectives as w, mergeProps as F, createSlots as B, renderList as E, renderSlot as L, normalizeProps as j, guardReactiveProps as z } from "vue";
4
4
  import { isFn as I } from "@formily/shared";
5
5
  import { ElScrollbar as N, ElTree as O, vLoading as $ } from "element-plus";
6
6
  import { addDisabledToNodes as q, flattenTree as G, getInputKeys as J, getOutputData as M } from "./utils.mjs";
@@ -62,12 +62,12 @@ const W = /* @__PURE__ */ P({
62
62
  const p = _();
63
63
  return p.value?.inject({
64
64
  getTreeRef: () => o
65
- }), (t, f) => (C(), g(a(N), {
65
+ }), (t, f) => (g(), C(a(N), {
66
66
  height: e.height,
67
67
  "max-height": e.maxHeight
68
68
  }, {
69
69
  default: T(() => [
70
- w((C(), g(a(O), F({
70
+ w((g(), C(a(O), F({
71
71
  ref_key: "treeRef",
72
72
  ref: o,
73
73
  data: n.value,
@@ -54,7 +54,6 @@ function T(c, r, t, e, n = []) {
54
54
  return u;
55
55
  }
56
56
  }
57
- /* istanbul ignore next -- @preserve */
58
57
  return [];
59
58
  }
60
59
  function v(c, r, t, e) {
@@ -114,7 +113,6 @@ function D(c, r = [], t) {
114
113
  }
115
114
  function b(c, r) {
116
115
  const { optionAsValue: t, nodeKey: e, flatData: n, propsConfig: l, data: i, valueType: o, checkStrictly: u } = r;
117
- /* istanbul ignore if -- @preserve */
118
116
  if (!c || !Array.isArray(c))
119
117
  return [];
120
118
  const a = t ? c.map((d) => d[e]) : c;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.mjs","sources":["../../src/tree/utils.ts"],"sourcesContent":["import type { TreeNodeData } from 'element-plus'\r\n\r\nexport function flattenTree(nodes: TreeNodeData[], result: TreeNodeData[] = [], childrenKey = 'children'): TreeNodeData[] {\r\n for (const node of nodes) {\r\n result.push(node)\r\n if (node[childrenKey] && node[childrenKey].length > 0) {\r\n flattenTree(node[childrenKey], result, childrenKey)\r\n }\r\n }\r\n return result\r\n}\r\n\r\nexport function addDisabledToNodes(nodes: TreeNodeData[], disabled: boolean, propsConfig: any): TreeNodeData[] {\r\n if (!disabled) {\r\n return nodes\r\n }\r\n\r\n return nodes.map((node) => {\r\n const newNode = { ...node }\r\n newNode[propsConfig.disabled!] = true\r\n\r\n if (node[propsConfig.children!] && node[propsConfig.children!].length > 0) {\r\n newNode[propsConfig.children!] = addDisabledToNodes(node[propsConfig.children!], disabled, propsConfig)\r\n }\r\n\r\n return newNode\r\n })\r\n}\r\n\r\nexport function traverseTree(\r\n nodes: TreeNodeData[],\r\n callback: (node: TreeNodeData) => void,\r\n options: {\r\n leafOnly?: boolean\r\n childrenKey?: string\r\n } = {},\r\n) {\r\n const { leafOnly = false, childrenKey = 'children' } = options\r\n\r\n for (const node of nodes) {\r\n const children = node[childrenKey] || []\r\n const isLeaf = children.length === 0\r\n\r\n if (!leafOnly || isLeaf) {\r\n callback(node)\r\n }\r\n if (children.length > 0) {\r\n traverseTree(children, callback, options)\r\n }\r\n }\r\n}\r\n\r\nexport function getChildrenKeys(node: TreeNodeData, nodeKey: string, propsConfig: any): any[] {\r\n const children = node[propsConfig.children!] || []\r\n if (children.length === 0)\r\n return []\r\n\r\n const keys: any[] = []\r\n traverseTree(children, (child) => {\r\n keys.push(child[nodeKey])\r\n }, { childrenKey: propsConfig.children })\r\n\r\n return keys\r\n}\r\n\r\nexport function extractKeysFromPath(pathNodes: TreeNodeData[], nodeKey: string, propsConfig: any): any[] {\r\n const keys: any[] = []\r\n traverseTree(pathNodes, (node) => {\r\n keys.push(node[nodeKey])\r\n }, { leafOnly: true, childrenKey: propsConfig.children })\r\n\r\n return keys\r\n}\r\n\r\nexport function getSelectedPath(nodes: TreeNodeData[], selectedKeys: any[], nodeKey: string, propsConfig: any): TreeNodeData[] {\r\n const result: TreeNodeData[] = []\r\n\r\n for (const node of nodes) {\r\n const children = node[propsConfig.children!] || []\r\n const hasSelectedChild = children.length > 0\r\n ? getSelectedPath(children, selectedKeys, nodeKey, propsConfig).length > 0\r\n : false\r\n\r\n if (selectedKeys.includes(node[nodeKey]) || hasSelectedChild) {\r\n const newNode = { ...node }\r\n if (hasSelectedChild && children.length > 0) {\r\n newNode[propsConfig.children!] = getSelectedPath(children, selectedKeys, nodeKey, propsConfig)\r\n }\r\n result.push(newNode)\r\n }\r\n }\r\n\r\n return result\r\n}\r\n\r\n/**\r\n * 查找节点的所有父节点路径\r\n */\r\nexport function findParents(nodes: TreeNodeData[], targetKey: any, nodeKey: string, propsConfig: any, parents: any[] = []): any[] {\r\n for (const node of nodes) {\r\n const currentPath = [...parents, node[nodeKey]]\r\n\r\n if (node[nodeKey] === targetKey) {\r\n return currentPath\r\n }\r\n\r\n const children = node[propsConfig.children!] || []\r\n if (children.length > 0) {\r\n const found = findParents(children, targetKey, nodeKey, propsConfig, currentPath)\r\n if (found.length > 0) {\r\n return found\r\n }\r\n }\r\n }\r\n /* istanbul ignore next -- @preserve */\r\n return []\r\n}\r\n\r\n/**\r\n * 过滤叶子节点\r\n */\r\nexport function filterLeafNodes(keys: any[], flatData: TreeNodeData[], nodeKey: string, propsConfig: any): any[] {\r\n return keys.filter((key) => {\r\n const node = flatData.find(n => n[nodeKey] === key)\r\n if (!node)\r\n return false\r\n const children = node[propsConfig.children!] || []\r\n return children.length === 0\r\n })\r\n}\r\n\r\n/**\r\n * 获取输出数据\r\n */\r\nexport function getOutputData(\r\n keys: any[],\r\n halfCheckedKeys: any[] = [],\r\n options: {\r\n flatData: TreeNodeData[]\r\n nodeKey: string\r\n propsConfig: any\r\n data: TreeNodeData[]\r\n valueType: string\r\n includeHalfChecked: boolean\r\n checkStrictly: boolean\r\n },\r\n) {\r\n const { flatData, nodeKey, propsConfig, data, valueType, includeHalfChecked, checkStrictly } = options\r\n\r\n const selectedNodes = flatData.filter(node =>\r\n keys.includes(node[nodeKey]),\r\n )\r\n\r\n let outputKeys = [...keys]\r\n let outputNodes = [...selectedNodes]\r\n\r\n if (checkStrictly) {\r\n return {\r\n value: outputKeys,\r\n nodes: outputNodes,\r\n }\r\n }\r\n\r\n switch (valueType) {\r\n case 'parent': {\r\n const allChildKeys: any[] = []\r\n for (const node of selectedNodes) {\r\n allChildKeys.push(...getChildrenKeys(node, nodeKey, propsConfig))\r\n }\r\n outputKeys = keys.filter(key => !allChildKeys.includes(key))\r\n outputNodes = selectedNodes.filter(node =>\r\n outputKeys.includes(node[nodeKey]),\r\n )\r\n break\r\n }\r\n\r\n case 'child': {\r\n for (const node of selectedNodes) {\r\n const childKeys = getChildrenKeys(node, nodeKey, propsConfig)\r\n const hasSelectedChild = childKeys.some(key => keys.includes(key))\r\n if (hasSelectedChild) {\r\n outputKeys = outputKeys.filter(key => key !== node[nodeKey])\r\n outputNodes = outputNodes.filter(n =>\r\n n[nodeKey] !== node[nodeKey],\r\n )\r\n }\r\n }\r\n break\r\n }\r\n\r\n case 'path': {\r\n const selectedPath = getSelectedPath(data, keys, nodeKey, propsConfig)\r\n return {\r\n value: selectedPath,\r\n nodes: selectedPath,\r\n }\r\n }\r\n\r\n default: { // 'all'\r\n if (includeHalfChecked && halfCheckedKeys.length > 0) {\r\n const halfCheckedNodes = flatData.filter(node =>\r\n halfCheckedKeys.includes(node[nodeKey]),\r\n )\r\n outputKeys = [...outputKeys, ...halfCheckedKeys]\r\n outputNodes = [...outputNodes, ...halfCheckedNodes]\r\n }\r\n break\r\n }\r\n }\r\n\r\n return {\r\n value: outputKeys,\r\n nodes: outputNodes,\r\n }\r\n}\r\n\r\n/**\r\n * 根据valueType将输入值转换为checkedKeys\r\n */\r\nexport function getInputKeys(\r\n inputValue: any,\r\n options: {\r\n optionAsValue: boolean\r\n nodeKey: string\r\n flatData: TreeNodeData[]\r\n propsConfig: any\r\n data: TreeNodeData[]\r\n valueType: string\r\n checkStrictly: boolean\r\n },\r\n): any[] {\r\n const { optionAsValue, nodeKey, flatData, propsConfig, data, valueType, checkStrictly } = options\r\n\r\n /* istanbul ignore if -- @preserve */\r\n if (!inputValue || !Array.isArray(inputValue))\r\n return []\r\n\r\n const valueArray = optionAsValue ? inputValue.map((item: any) => item[nodeKey]) : inputValue\r\n\r\n if (checkStrictly) {\r\n return valueArray\r\n }\r\n\r\n switch (valueType) {\r\n case 'parent': {\r\n const allKeys = [...valueArray]\r\n\r\n for (const key of valueArray) {\r\n const node = flatData.find(n => n[nodeKey] === key)\r\n if (node) {\r\n const childKeys = getChildrenKeys(node, nodeKey, propsConfig)\r\n allKeys.push(...childKeys)\r\n }\r\n }\r\n return filterLeafNodes(allKeys, flatData, nodeKey, propsConfig)\r\n }\r\n\r\n case 'child': {\r\n const allKeys = [...valueArray]\r\n for (const key of valueArray) {\r\n const parentPath = findParents(data, key, nodeKey, propsConfig)\r\n allKeys.push(...parentPath)\r\n }\r\n return filterLeafNodes(allKeys, flatData, nodeKey, propsConfig)\r\n }\r\n\r\n case 'path': {\r\n return extractKeysFromPath(valueArray, nodeKey, propsConfig)\r\n }\r\n\r\n default: { // 'all'\r\n return filterLeafNodes(valueArray, flatData, nodeKey, propsConfig)\r\n }\r\n }\r\n}\r\n"],"names":["flattenTree","nodes","result","childrenKey","node","addDisabledToNodes","disabled","propsConfig","newNode","traverseTree","callback","options","leafOnly","children","isLeaf","getChildrenKeys","nodeKey","keys","child","extractKeysFromPath","pathNodes","getSelectedPath","selectedKeys","hasSelectedChild","findParents","targetKey","parents","currentPath","found","filterLeafNodes","flatData","key","n","getOutputData","halfCheckedKeys","data","valueType","includeHalfChecked","checkStrictly","selectedNodes","outputKeys","outputNodes","allChildKeys","selectedPath","halfCheckedNodes","getInputKeys","inputValue","optionAsValue","valueArray","item","allKeys","childKeys","parentPath"],"mappings":"AAEO,SAASA,EAAYC,GAAuBC,IAAyB,CAAA,GAAIC,IAAc,YAA4B;AACxH,aAAWC,KAAQH;AACjB,IAAAC,EAAO,KAAKE,CAAI,GACZA,EAAKD,CAAW,KAAKC,EAAKD,CAAW,EAAE,SAAS,KAClDH,EAAYI,EAAKD,CAAW,GAAGD,GAAQC,CAAW;AAGtD,SAAOD;AACT;AAEO,SAASG,EAAmBJ,GAAuBK,GAAmBC,GAAkC;AAC7G,SAAKD,IAIEL,EAAM,IAAI,CAACG,MAAS;AACzB,UAAMI,IAAU,EAAE,GAAGJ,EAAA;AACrB,WAA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AACH,aAAOY,EAAoB6B,GAAYhC,GAAST,CAAW;AAAA,IAG7D;AACE,aAAOsB,EAAgBmB,GAAYlB,GAAUd,GAAST,CAAW;AAAA,EACnE;AAEJ;"}
1
+ {"version":3,"file":"utils.mjs","sources":["../../src/tree/utils.ts"],"sourcesContent":["import type { TreeNodeData } from 'element-plus'\r\n\r\nexport function flattenTree(nodes: TreeNodeData[], result: TreeNodeData[] = [], childrenKey = 'children'): TreeNodeData[] {\r\n for (const node of nodes) {\r\n result.push(node)\r\n if (node[childrenKey] && node[childrenKey].length > 0) {\r\n flattenTree(node[childrenKey], result, childrenKey)\r\n }\r\n }\r\n return result\r\n}\r\n\r\nexport function addDisabledToNodes(nodes: TreeNodeData[], disabled: boolean, propsConfig: any): TreeNodeData[] {\r\n if (!disabled) {\r\n return nodes\r\n }\r\n\r\n return nodes.map((node) => {\r\n const newNode = { ...node }\r\n newNode[propsConfig.disabled!] = true\r\n\r\n if (node[propsConfig.children!] && node[propsConfig.children!].length > 0) {\r\n newNode[propsConfig.children!] = addDisabledToNodes(node[propsConfig.children!], disabled, propsConfig)\r\n }\r\n\r\n return newNode\r\n })\r\n}\r\n\r\nexport function traverseTree(\r\n nodes: TreeNodeData[],\r\n callback: (node: TreeNodeData) => void,\r\n options: {\r\n leafOnly?: boolean\r\n childrenKey?: string\r\n } = {},\r\n) {\r\n const { leafOnly = false, childrenKey = 'children' } = options\r\n\r\n for (const node of nodes) {\r\n const children = node[childrenKey] || []\r\n const isLeaf = children.length === 0\r\n\r\n if (!leafOnly || isLeaf) {\r\n callback(node)\r\n }\r\n if (children.length > 0) {\r\n traverseTree(children, callback, options)\r\n }\r\n }\r\n}\r\n\r\nexport function getChildrenKeys(node: TreeNodeData, nodeKey: string, propsConfig: any): any[] {\r\n const children = node[propsConfig.children!] || []\r\n if (children.length === 0)\r\n return []\r\n\r\n const keys: any[] = []\r\n traverseTree(children, (child) => {\r\n keys.push(child[nodeKey])\r\n }, { childrenKey: propsConfig.children })\r\n\r\n return keys\r\n}\r\n\r\nexport function extractKeysFromPath(pathNodes: TreeNodeData[], nodeKey: string, propsConfig: any): any[] {\r\n const keys: any[] = []\r\n traverseTree(pathNodes, (node) => {\r\n keys.push(node[nodeKey])\r\n }, { leafOnly: true, childrenKey: propsConfig.children })\r\n\r\n return keys\r\n}\r\n\r\nexport function getSelectedPath(nodes: TreeNodeData[], selectedKeys: any[], nodeKey: string, propsConfig: any): TreeNodeData[] {\r\n const result: TreeNodeData[] = []\r\n\r\n for (const node of nodes) {\r\n const children = node[propsConfig.children!] || []\r\n const hasSelectedChild = children.length > 0\r\n ? getSelectedPath(children, selectedKeys, nodeKey, propsConfig).length > 0\r\n : false\r\n\r\n if (selectedKeys.includes(node[nodeKey]) || hasSelectedChild) {\r\n const newNode = { ...node }\r\n if (hasSelectedChild && children.length > 0) {\r\n newNode[propsConfig.children!] = getSelectedPath(children, selectedKeys, nodeKey, propsConfig)\r\n }\r\n result.push(newNode)\r\n }\r\n }\r\n\r\n return result\r\n}\r\n\r\n/**\r\n * 查找节点的所有父节点路径\r\n */\r\nexport function findParents(nodes: TreeNodeData[], targetKey: any, nodeKey: string, propsConfig: any, parents: any[] = []): any[] {\r\n for (const node of nodes) {\r\n const currentPath = [...parents, node[nodeKey]]\r\n\r\n if (node[nodeKey] === targetKey) {\r\n return currentPath\r\n }\r\n\r\n const children = node[propsConfig.children!] || []\r\n if (children.length > 0) {\r\n const found = findParents(children, targetKey, nodeKey, propsConfig, currentPath)\r\n if (found.length > 0) {\r\n return found\r\n }\r\n }\r\n }\r\n /* istanbul ignore next -- @preserve */\r\n return []\r\n}\r\n\r\n/**\r\n * 过滤叶子节点\r\n */\r\nexport function filterLeafNodes(keys: any[], flatData: TreeNodeData[], nodeKey: string, propsConfig: any): any[] {\r\n return keys.filter((key) => {\r\n const node = flatData.find(n => n[nodeKey] === key)\r\n if (!node)\r\n return false\r\n const children = node[propsConfig.children!] || []\r\n return children.length === 0\r\n })\r\n}\r\n\r\n/**\r\n * 获取输出数据\r\n */\r\nexport function getOutputData(\r\n keys: any[],\r\n halfCheckedKeys: any[] = [],\r\n options: {\r\n flatData: TreeNodeData[]\r\n nodeKey: string\r\n propsConfig: any\r\n data: TreeNodeData[]\r\n valueType: string\r\n includeHalfChecked: boolean\r\n checkStrictly: boolean\r\n },\r\n) {\r\n const { flatData, nodeKey, propsConfig, data, valueType, includeHalfChecked, checkStrictly } = options\r\n\r\n const selectedNodes = flatData.filter(node =>\r\n keys.includes(node[nodeKey]),\r\n )\r\n\r\n let outputKeys = [...keys]\r\n let outputNodes = [...selectedNodes]\r\n\r\n if (checkStrictly) {\r\n return {\r\n value: outputKeys,\r\n nodes: outputNodes,\r\n }\r\n }\r\n\r\n switch (valueType) {\r\n case 'parent': {\r\n const allChildKeys: any[] = []\r\n for (const node of selectedNodes) {\r\n allChildKeys.push(...getChildrenKeys(node, nodeKey, propsConfig))\r\n }\r\n outputKeys = keys.filter(key => !allChildKeys.includes(key))\r\n outputNodes = selectedNodes.filter(node =>\r\n outputKeys.includes(node[nodeKey]),\r\n )\r\n break\r\n }\r\n\r\n case 'child': {\r\n for (const node of selectedNodes) {\r\n const childKeys = getChildrenKeys(node, nodeKey, propsConfig)\r\n const hasSelectedChild = childKeys.some(key => keys.includes(key))\r\n if (hasSelectedChild) {\r\n outputKeys = outputKeys.filter(key => key !== node[nodeKey])\r\n outputNodes = outputNodes.filter(n =>\r\n n[nodeKey] !== node[nodeKey],\r\n )\r\n }\r\n }\r\n break\r\n }\r\n\r\n case 'path': {\r\n const selectedPath = getSelectedPath(data, keys, nodeKey, propsConfig)\r\n return {\r\n value: selectedPath,\r\n nodes: selectedPath,\r\n }\r\n }\r\n\r\n default: { // 'all'\r\n if (includeHalfChecked && halfCheckedKeys.length > 0) {\r\n const halfCheckedNodes = flatData.filter(node =>\r\n halfCheckedKeys.includes(node[nodeKey]),\r\n )\r\n outputKeys = [...outputKeys, ...halfCheckedKeys]\r\n outputNodes = [...outputNodes, ...halfCheckedNodes]\r\n }\r\n break\r\n }\r\n }\r\n\r\n return {\r\n value: outputKeys,\r\n nodes: outputNodes,\r\n }\r\n}\r\n\r\n/**\r\n * 根据valueType将输入值转换为checkedKeys\r\n */\r\nexport function getInputKeys(\r\n inputValue: any,\r\n options: {\r\n optionAsValue: boolean\r\n nodeKey: string\r\n flatData: TreeNodeData[]\r\n propsConfig: any\r\n data: TreeNodeData[]\r\n valueType: string\r\n checkStrictly: boolean\r\n },\r\n): any[] {\r\n const { optionAsValue, nodeKey, flatData, propsConfig, data, valueType, checkStrictly } = options\r\n\r\n /* istanbul ignore if -- @preserve */\r\n if (!inputValue || !Array.isArray(inputValue))\r\n return []\r\n\r\n const valueArray = optionAsValue ? inputValue.map((item: any) => item[nodeKey]) : inputValue\r\n\r\n if (checkStrictly) {\r\n return valueArray\r\n }\r\n\r\n switch (valueType) {\r\n case 'parent': {\r\n const allKeys = [...valueArray]\r\n\r\n for (const key of valueArray) {\r\n const node = flatData.find(n => n[nodeKey] === key)\r\n if (node) {\r\n const childKeys = getChildrenKeys(node, nodeKey, propsConfig)\r\n allKeys.push(...childKeys)\r\n }\r\n }\r\n return filterLeafNodes(allKeys, flatData, nodeKey, propsConfig)\r\n }\r\n\r\n case 'child': {\r\n const allKeys = [...valueArray]\r\n for (const key of valueArray) {\r\n const parentPath = findParents(data, key, nodeKey, propsConfig)\r\n allKeys.push(...parentPath)\r\n }\r\n return filterLeafNodes(allKeys, flatData, nodeKey, propsConfig)\r\n }\r\n\r\n case 'path': {\r\n return extractKeysFromPath(valueArray, nodeKey, propsConfig)\r\n }\r\n\r\n default: { // 'all'\r\n return filterLeafNodes(valueArray, flatData, nodeKey, propsConfig)\r\n }\r\n }\r\n}\r\n"],"names":["flattenTree","nodes","result","childrenKey","node","addDisabledToNodes","disabled","propsConfig","newNode","traverseTree","callback","options","leafOnly","children","isLeaf","getChildrenKeys","nodeKey","keys","child","extractKeysFromPath","pathNodes","getSelectedPath","selectedKeys","hasSelectedChild","findParents","targetKey","parents","currentPath","found","filterLeafNodes","flatData","key","n","getOutputData","halfCheckedKeys","data","valueType","includeHalfChecked","checkStrictly","selectedNodes","outputKeys","outputNodes","allChildKeys","selectedPath","halfCheckedNodes","getInputKeys","inputValue","optionAsValue","valueArray","item","allKeys","childKeys","parentPath"],"mappings":"AAEO,SAASA,EAAYC,GAAuBC,IAAyB,CAAA,GAAIC,IAAc,YAA4B;AACxH,aAAWC,KAAQH;AACjB,IAAAC,EAAO,KAAKE,CAAI,GACZA,EAAKD,CAAW,KAAKC,EAAKD,CAAW,EAAE,SAAS,KAClDH,EAAYI,EAAKD,CAAW,GAAGD,GAAQC,CAAW;AAGtD,SAAOD;AACT;AAEO,SAASG,EAAmBJ,GAAuBK,GAAmBC,GAAkC;AAC7G,SAAKD,IAIEL,EAAM,IAAI,CAACG,MAAS;AACzB,UAAMI,IAAU,EAAE,GAAGJ,EAAA;AACrB,WAAAI,EAAQD,EAAY,QAAS,IAAI,IAE7BH,EAAKG,EAAY,QAAS,KAAKH,EAAKG,EAAY,QAAS,EAAE,SAAS,MACtEC,EAAQD,EAAY,QAAS,IAAIF,EAAmBD,EAAKG,EAAY,QAAS,GAAGD,GAAUC,CAAW,IAGjGC;AAAA,EACT,CAAC,IAZQP;AAaX;AAEO,SAASQ,EACdR,GACAS,GACAC,IAGI,CAAA,GACJ;AACA,QAAM,EAAE,UAAAC,IAAW,IAAO,aAAAT,IAAc,eAAeQ;AAEvD,aAAWP,KAAQH,GAAO;AACxB,UAAMY,IAAWT,EAAKD,CAAW,KAAK,CAAA,GAChCW,IAASD,EAAS,WAAW;AAEnC,KAAI,CAACD,KAAYE,MACfJ,EAASN,CAAI,GAEXS,EAAS,SAAS,KACpBJ,EAAaI,GAAUH,GAAUC,CAAO;AAAA,EAE5C;AACF;AAEO,SAASI,EAAgBX,GAAoBY,GAAiBT,GAAyB;AAC5F,QAAMM,IAAWT,EAAKG,EAAY,QAAS,KAAK,CAAA;AAChD,MAAIM,EAAS,WAAW;AACtB,WAAO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,EAAS,KAAK,OAAKE,EAAEhB,CAAO,MAAMe,CAAG;AAClD,YAAI3B,GAAM;AACR,gBAAM+C,IAAYpC,EAAgBX,GAAMY,GAAST,CAAW;AAC5D,UAAA2C,EAAQ,KAAK,GAAGC,CAAS;AAAA,QAC3B;AAAA,MACF;AACA,aAAOtB,EAAgBqB,GAASpB,GAAUd,GAAST,CAAW;AAAA,IAChE;AAAA,IAEA,KAAK,SAAS;AACZ,YAAM2C,IAAU,CAAC,GAAGF,CAAU;AAC9B,iBAAWjB,KAAOiB,GAAY;AAC5B,cAAMI,IAAa5B,EAAYW,GAAMJ,GAAKf,GAAST,CAAW;AAC9D,QAAA2C,EAAQ,KAAK,GAAGE,CAAU;AAAA,MAC5B;AACA,aAAOvB,EAAgBqB,GAASpB,GAAUd,GAAST,CAAW;AAAA,IAChE;AAAA,IAEA,KAAK;AACH,aAAOY,EAAoB6B,GAAYhC,GAAST,CAAW;AAAA,IAG7D;AACE,aAAOsB,EAAgBmB,GAAYlB,GAAUd,GAAST,CAAW;AAAA,EACnE;AAEJ;"}
@@ -1,6 +1,6 @@
1
1
  import { useField as c, connect as i, mapProps as f } from "@silver-formily/vue";
2
2
  import { PreviewText as p } from "../preview-text/index.mjs";
3
- import { defineComponent as m, useSlots as d, ref as u, createBlock as S, openBlock as _, unref as e, mergeProps as g, createSlots as P, renderList as R, withCtx as T, renderSlot as v, normalizeProps as y, guardReactiveProps as h } from "vue";
3
+ import { defineComponent as m, useSlots as d, ref as u, openBlock as S, createBlock as _, unref as e, mergeProps as g, createSlots as P, renderList as R, withCtx as T, renderSlot as v, normalizeProps as y, guardReactiveProps as h } from "vue";
4
4
  import { ElTreeSelect as k } from "element-plus";
5
5
  import { useCleanAttrs as x } from "../__builtins__/shared/utils.mjs";
6
6
  import { mapReadPretty as C } from "../__builtins__/shared/transform-component.mjs";
@@ -12,7 +12,7 @@ const w = /* @__PURE__ */ m({
12
12
  const n = d(), { props: l } = x(), r = u(), t = c();
13
13
  return t.value?.inject({
14
14
  getTreeSelectRef: () => r
15
- }), (s, B) => (_(), S(e(k), g({
15
+ }), (s, B) => (S(), _(e(k), g({
16
16
  ref_key: "treeSelectRef",
17
17
  ref: r,
18
18
  loading: e(t).value?.loading
@@ -61,8 +61,8 @@ export declare const Upload: {
61
61
  readonly data: import('element-plus/es/utils/typescript.mjs').Mutable<{}>;
62
62
  readonly name: string;
63
63
  readonly onProgress: import('element-plus').UploadHooks["onProgress"];
64
- readonly onChange: import('element-plus').UploadHooks["onChange"];
65
64
  readonly onError: import('element-plus').UploadHooks["onError"];
65
+ readonly onChange: import('element-plus').UploadHooks["onChange"];
66
66
  readonly method: string;
67
67
  readonly onRemove: import('element-plus').UploadHooks["onRemove"];
68
68
  readonly fileList: import('element-plus').UploadUserFile[];
@@ -85,7 +85,7 @@ export declare const Upload: {
85
85
  readonly withCredentials?: boolean;
86
86
  readonly limit?: number;
87
87
  readonly directory?: boolean;
88
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "data" | "name" | "disabled" | "onProgress" | "onChange" | "onError" | "method" | "onRemove" | "fileList" | "beforeUpload" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "autoUpload" | "listType" | "httpRequest">;
88
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "data" | "name" | "disabled" | "onProgress" | "onError" | "onChange" | "method" | "onRemove" | "fileList" | "beforeUpload" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "autoUpload" | "listType" | "httpRequest">;
89
89
  $attrs: {
90
90
  [x: string]: unknown;
91
91
  };
@@ -120,14 +120,14 @@ export declare const Upload: {
120
120
  type: import('vue').PropType<(evt: import('element-plus').UploadProgressEvent, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
121
121
  default: () => void;
122
122
  };
123
- onChange: {
124
- type: import('vue').PropType<(uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
125
- default: () => void;
126
- };
127
123
  onError: {
128
124
  type: import('vue').PropType<(error: Error, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
129
125
  default: () => void;
130
126
  };
127
+ onChange: {
128
+ type: import('vue').PropType<(uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
129
+ default: () => void;
130
+ };
131
131
  method: {
132
132
  type: import('vue').PropType<string>;
133
133
  default: "post";
@@ -287,14 +287,14 @@ export declare const Upload: {
287
287
  type: import('vue').PropType<(evt: import('element-plus').UploadProgressEvent, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
288
288
  default: () => void;
289
289
  };
290
- onChange: {
291
- type: import('vue').PropType<(uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
292
- default: () => void;
293
- };
294
290
  onError: {
295
291
  type: import('vue').PropType<(error: Error, uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
296
292
  default: () => void;
297
293
  };
294
+ onChange: {
295
+ type: import('vue').PropType<(uploadFile: import('element-plus').UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
296
+ default: () => void;
297
+ };
298
298
  method: {
299
299
  type: import('vue').PropType<string>;
300
300
  default: "post";
@@ -368,7 +368,7 @@ export declare const Upload: {
368
368
  directory: {
369
369
  type: import('vue').PropType<boolean>;
370
370
  };
371
- }>>, "data" | "name" | "submit" | "disabled" | "abort" | "onProgress" | "onChange" | "onError" | "method" | "onRemove" | "fileList" | "beforeUpload" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "autoUpload" | "listType" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & import('vue').ShallowUnwrapRef<{
371
+ }>>, "data" | "name" | "submit" | "disabled" | "abort" | "onProgress" | "onError" | "onChange" | "method" | "onRemove" | "fileList" | "beforeUpload" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "autoUpload" | "listType" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & import('vue').ShallowUnwrapRef<{
372
372
  abort: (file?: import('element-plus').UploadFile) => void;
373
373
  submit: () => void;
374
374
  clearFiles: (states?: import('element-plus').UploadStatus[]) => void;
@@ -442,7 +442,7 @@ export declare const Upload: {
442
442
  $root: import('vue').ComponentPublicInstance | null;
443
443
  $parent: import('vue').ComponentPublicInstance | null;
444
444
  $host: Element | null;
445
- $emit: ((event: "switch", index: number) => void) & ((event: "close") => void) & ((event: "error", evt: Event) => void) & ((event: "rotate", deg: number) => void);
445
+ $emit: ((event: "switch", index: number) => void) & ((event: "error", evt: Event) => void) & ((event: "close") => void) & ((event: "rotate", deg: number) => void);
446
446
  $el: any;
447
447
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
448
448
  zIndex: {
@@ -1,5 +1,5 @@
1
1
  import { useField as D, connect as N, mapProps as j } from "@silver-formily/vue";
2
- import { defineComponent as O, ref as f, useAttrs as z, computed as w, onBeforeUnmount as T, createElementBlock as v, openBlock as a, Fragment as y, createVNode as p, createBlock as h, createCommentVNode as q, unref as r, mergeProps as x, createSlots as G, withCtx as s, renderSlot as m, createElementVNode as P, toDisplayString as C } from "vue";
2
+ import { defineComponent as O, ref as f, useAttrs as z, computed as w, onBeforeUnmount as T, openBlock as a, createElementBlock as v, Fragment as y, createVNode as p, unref as r, mergeProps as x, createSlots as q, withCtx as s, renderSlot as m, createElementVNode as P, toDisplayString as C, createBlock as h, createCommentVNode as G } from "vue";
3
3
  import { UploadFilled as H, Plus as J, Upload as K } from "@element-plus/icons-vue";
4
4
  import { reaction as M } from "@formily/reactive";
5
5
  import { isFn as c } from "@formily/shared";
@@ -98,7 +98,7 @@ const oe = { class: "el-upload__text" }, re = { style: { "margin-left": "6px" }
98
98
  onExceed: L,
99
99
  onError: A,
100
100
  onPreview: B
101
- }), G({
101
+ }), q({
102
102
  default: s(() => [
103
103
  r(te)(e.$slots?.default) ? m(e.$slots, "default", { key: 0 }) : (a(), v(y, { key: 1 }, [
104
104
  r(o).drag ? (a(), v(y, { key: 0 }, [
@@ -159,7 +159,7 @@ const oe = { class: "el-upload__text" }, re = { style: { "margin-left": "6px" }
159
159
  "initial-index": k.value
160
160
  }, i.imageViewerProps, {
161
161
  onClose: t[0] || (t[0] = (n) => g.value = !1)
162
- }), null, 16, ["url-list", "initial-index"])) : q("", !0)
162
+ }), null, 16, ["url-list", "initial-index"])) : G("", !0)
163
163
  ], 64));
164
164
  }
165
165
  }), me = N(
@@ -39,8 +39,8 @@ declare function __VLS_template(): {
39
39
  readonly data: import('element-plus/es/utils/typescript.mjs').Mutable<{}>;
40
40
  readonly name: string;
41
41
  readonly onProgress: import('element-plus').UploadHooks["onProgress"];
42
- readonly onChange: import('element-plus').UploadHooks["onChange"];
43
42
  readonly onError: import('element-plus').UploadHooks["onError"];
43
+ readonly onChange: import('element-plus').UploadHooks["onChange"];
44
44
  readonly method: string;
45
45
  readonly onRemove: import('element-plus').UploadHooks["onRemove"];
46
46
  readonly fileList: import('element-plus').UploadUserFile[];
@@ -63,7 +63,7 @@ declare function __VLS_template(): {
63
63
  readonly withCredentials?: boolean;
64
64
  readonly limit?: number;
65
65
  readonly directory?: boolean;
66
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "data" | "name" | "disabled" | "onProgress" | "onChange" | "onError" | "method" | "onRemove" | "fileList" | "beforeUpload" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "autoUpload" | "listType" | "httpRequest">;
66
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "data" | "name" | "disabled" | "onProgress" | "onError" | "onChange" | "method" | "onRemove" | "fileList" | "beforeUpload" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "autoUpload" | "listType" | "httpRequest">;
67
67
  $attrs: {
68
68
  [x: string]: unknown;
69
69
  };
@@ -98,14 +98,14 @@ declare function __VLS_template(): {
98
98
  type: PropType<(evt: import('element-plus').UploadProgressEvent, uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
99
99
  default: () => void;
100
100
  };
101
- onChange: {
102
- type: PropType<(uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
103
- default: () => void;
104
- };
105
101
  onError: {
106
102
  type: PropType<(error: Error, uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
107
103
  default: () => void;
108
104
  };
105
+ onChange: {
106
+ type: PropType<(uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
107
+ default: () => void;
108
+ };
109
109
  method: {
110
110
  type: PropType<string>;
111
111
  default: "post";
@@ -265,14 +265,14 @@ declare function __VLS_template(): {
265
265
  type: PropType<(evt: import('element-plus').UploadProgressEvent, uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
266
266
  default: () => void;
267
267
  };
268
- onChange: {
269
- type: PropType<(uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
270
- default: () => void;
271
- };
272
268
  onError: {
273
269
  type: PropType<(error: Error, uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
274
270
  default: () => void;
275
271
  };
272
+ onChange: {
273
+ type: PropType<(uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
274
+ default: () => void;
275
+ };
276
276
  method: {
277
277
  type: PropType<string>;
278
278
  default: "post";
@@ -346,7 +346,7 @@ declare function __VLS_template(): {
346
346
  directory: {
347
347
  type: PropType<boolean>;
348
348
  };
349
- }>>, "data" | "name" | "submit" | "disabled" | "abort" | "onProgress" | "onChange" | "onError" | "method" | "onRemove" | "fileList" | "beforeUpload" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "autoUpload" | "listType" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & import('vue').ShallowUnwrapRef<{
349
+ }>>, "data" | "name" | "submit" | "disabled" | "abort" | "onProgress" | "onError" | "onChange" | "method" | "onRemove" | "fileList" | "beforeUpload" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "autoUpload" | "listType" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & import('vue').ShallowUnwrapRef<{
350
350
  abort: (file?: import('element-plus/es/components/upload/src/upload.mjs').UploadFile) => void;
351
351
  submit: () => void;
352
352
  clearFiles: (states?: import('element-plus').UploadStatus[]) => void;
@@ -420,7 +420,7 @@ declare function __VLS_template(): {
420
420
  $root: import('vue').ComponentPublicInstance | null;
421
421
  $parent: import('vue').ComponentPublicInstance | null;
422
422
  $host: Element | null;
423
- $emit: ((event: "switch", index: number) => void) & ((event: "close") => void) & ((event: "error", evt: Event) => void) & ((event: "rotate", deg: number) => void);
423
+ $emit: ((event: "switch", index: number) => void) & ((event: "error", evt: Event) => void) & ((event: "close") => void) & ((event: "rotate", deg: number) => void);
424
424
  $el: any;
425
425
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
426
426
  zIndex: {
@@ -689,8 +689,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
689
689
  readonly data: import('element-plus/es/utils/typescript.mjs').Mutable<{}>;
690
690
  readonly name: string;
691
691
  readonly onProgress: import('element-plus').UploadHooks["onProgress"];
692
- readonly onChange: import('element-plus').UploadHooks["onChange"];
693
692
  readonly onError: import('element-plus').UploadHooks["onError"];
693
+ readonly onChange: import('element-plus').UploadHooks["onChange"];
694
694
  readonly method: string;
695
695
  readonly onRemove: import('element-plus').UploadHooks["onRemove"];
696
696
  readonly fileList: import('element-plus').UploadUserFile[];
@@ -713,7 +713,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
713
713
  readonly withCredentials?: boolean;
714
714
  readonly limit?: number;
715
715
  readonly directory?: boolean;
716
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "data" | "name" | "disabled" | "onProgress" | "onChange" | "onError" | "method" | "onRemove" | "fileList" | "beforeUpload" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "autoUpload" | "listType" | "httpRequest">;
716
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "data" | "name" | "disabled" | "onProgress" | "onError" | "onChange" | "method" | "onRemove" | "fileList" | "beforeUpload" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "autoUpload" | "listType" | "httpRequest">;
717
717
  $attrs: {
718
718
  [x: string]: unknown;
719
719
  };
@@ -748,14 +748,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
748
748
  type: PropType<(evt: import('element-plus').UploadProgressEvent, uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
749
749
  default: () => void;
750
750
  };
751
- onChange: {
752
- type: PropType<(uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
753
- default: () => void;
754
- };
755
751
  onError: {
756
752
  type: PropType<(error: Error, uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
757
753
  default: () => void;
758
754
  };
755
+ onChange: {
756
+ type: PropType<(uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
757
+ default: () => void;
758
+ };
759
759
  method: {
760
760
  type: PropType<string>;
761
761
  default: "post";
@@ -915,14 +915,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
915
915
  type: PropType<(evt: import('element-plus').UploadProgressEvent, uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
916
916
  default: () => void;
917
917
  };
918
- onChange: {
919
- type: PropType<(uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
920
- default: () => void;
921
- };
922
918
  onError: {
923
919
  type: PropType<(error: Error, uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
924
920
  default: () => void;
925
921
  };
922
+ onChange: {
923
+ type: PropType<(uploadFile: UploadFile, uploadFiles: import('element-plus').UploadFiles) => void>;
924
+ default: () => void;
925
+ };
926
926
  method: {
927
927
  type: PropType<string>;
928
928
  default: "post";
@@ -996,7 +996,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
996
996
  directory: {
997
997
  type: PropType<boolean>;
998
998
  };
999
- }>>, "data" | "name" | "submit" | "disabled" | "abort" | "onProgress" | "onChange" | "onError" | "method" | "onRemove" | "fileList" | "beforeUpload" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "autoUpload" | "listType" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & import('vue').ShallowUnwrapRef<{
999
+ }>>, "data" | "name" | "submit" | "disabled" | "abort" | "onProgress" | "onError" | "onChange" | "method" | "onRemove" | "fileList" | "beforeUpload" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "autoUpload" | "listType" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & import('vue').ShallowUnwrapRef<{
1000
1000
  abort: (file?: import('element-plus/es/components/upload/src/upload.mjs').UploadFile) => void;
1001
1001
  submit: () => void;
1002
1002
  clearFiles: (states?: import('element-plus').UploadStatus[]) => void;
@@ -1070,7 +1070,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
1070
1070
  $root: import('vue').ComponentPublicInstance | null;
1071
1071
  $parent: import('vue').ComponentPublicInstance | null;
1072
1072
  $host: Element | null;
1073
- $emit: ((event: "switch", index: number) => void) & ((event: "close") => void) & ((event: "error", evt: Event) => void) & ((event: "rotate", deg: number) => void);
1073
+ $emit: ((event: "switch", index: number) => void) & ((event: "error", evt: Event) => void) & ((event: "close") => void) & ((event: "rotate", deg: number) => void);
1074
1074
  $el: any;
1075
1075
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
1076
1076
  zIndex: {
@@ -1 +1 @@
1
- {"version":3,"file":"icon.mjs","sources":["../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.22_typescript@5.9.3_/node_modules/element-plus/es/utils/vue/icon.mjs"],"sourcesContent":["import { InfoFilled, CircleCloseFilled, WarningFilled, SuccessFilled, Close, CircleClose, CircleCheck, Loading } from '@element-plus/icons-vue';\nimport { definePropType } from './props/runtime.mjs';\n\nconst iconPropType = definePropType([\n String,\n Object,\n Function\n]);\nconst CloseComponents = {\n Close\n};\nconst TypeComponents = {\n Close,\n SuccessFilled,\n InfoFilled,\n WarningFilled,\n CircleCloseFilled\n};\nconst TypeComponentsMap = {\n primary: InfoFilled,\n success: SuccessFilled,\n warning: WarningFilled,\n error: CircleCloseFilled,\n info: InfoFilled\n};\nconst ValidateComponentsMap = {\n validating: Loading,\n success: CircleCheck,\n error: CircleClose\n};\n\nexport { CloseComponents, TypeComponents, TypeComponentsMap, ValidateComponentsMap, iconPropType };\n//# sourceMappingURL=icon.mjs.map\n"],"names":["iconPropType","definePropType"],"mappings":";;AAGK,MAACA,IAAeC,EAAe;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AACF,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"icon.mjs","sources":["../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.28_typescript@5.9.2_/node_modules/element-plus/es/utils/vue/icon.mjs"],"sourcesContent":["import { InfoFilled, CircleCloseFilled, WarningFilled, SuccessFilled, Close, CircleClose, CircleCheck, Loading } from '@element-plus/icons-vue';\nimport { definePropType } from './props/runtime.mjs';\n\nconst iconPropType = definePropType([\n String,\n Object,\n Function\n]);\nconst CloseComponents = {\n Close\n};\nconst TypeComponents = {\n Close,\n SuccessFilled,\n InfoFilled,\n WarningFilled,\n CircleCloseFilled\n};\nconst TypeComponentsMap = {\n primary: InfoFilled,\n success: SuccessFilled,\n warning: WarningFilled,\n error: CircleCloseFilled,\n info: InfoFilled\n};\nconst ValidateComponentsMap = {\n validating: Loading,\n success: CircleCheck,\n error: CircleClose\n};\n\nexport { CloseComponents, TypeComponents, TypeComponentsMap, ValidateComponentsMap, iconPropType };\n//# sourceMappingURL=icon.mjs.map\n"],"names":["iconPropType","definePropType"],"mappings":";;AAGK,MAACA,IAAeC,EAAe;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AACF,CAAC;","x_google_ignoreList":[0]}