@web-utils/form-ui 1.0.0-beta71 → 1.0.0-beta73

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 (270) hide show
  1. package/address-input/index.mjs +1 -1
  2. package/affix/index.d.ts +0 -2
  3. package/affix/index.mjs +2 -3
  4. package/capsule-tab/index.mjs +1 -1
  5. package/card/index.mjs +15 -14
  6. package/chunks/-fXBgN9b2.mjs +37 -0
  7. package/chunks/{B3d4fdGH.mjs → -yfgKY3g.mjs} +1 -1
  8. package/chunks/{BeWNlclr.mjs → -zgWD713.mjs} +44 -40
  9. package/chunks/{5itVLmv82.mjs → 8A7LSgb4.mjs} +26 -25
  10. package/chunks/{DoOkwYtO.mjs → Apjns0ZM.mjs} +72 -67
  11. package/chunks/B0BOjeph2.mjs +108 -0
  12. package/chunks/BD6_5FSI.mjs +178 -0
  13. package/chunks/BE4V5Vf5.mjs +133 -0
  14. package/chunks/{DfJJr053.mjs → BGJjAw5E.mjs} +1 -1
  15. package/chunks/{DhQF2ZlD.mjs → BH7VEktl.mjs} +19 -17
  16. package/chunks/{CjmfMN1X2.mjs → BI6kCG2j2.mjs} +2 -2
  17. package/chunks/{6kdakei5.mjs → BYtFzO-8.mjs} +138 -133
  18. package/chunks/{CaRunrOV2.mjs → B_AUZSOW.mjs} +589 -760
  19. package/chunks/BctSGDgW2.mjs +29 -0
  20. package/chunks/{B5voIv4_.mjs → Bes1uXng.mjs} +28 -24
  21. package/chunks/BhIWiH5R.mjs +661 -0
  22. package/chunks/BhzlH7Az.mjs +90 -0
  23. package/chunks/{D6vTCC1Z2.mjs → BrelfRGo2.mjs} +14 -13
  24. package/chunks/{Z0BPDZlb.mjs → BsqIRxSS.mjs} +6 -5
  25. package/chunks/{TtxSplBB.mjs → C--HDCqy.mjs} +13 -10
  26. package/chunks/{DTUh8o0p2.mjs → C6mb7Nru2.mjs} +4 -4
  27. package/chunks/{CIybFvu92.mjs → CFoSvMJ-2.mjs} +1 -1
  28. package/chunks/{Ch_zaHx9.mjs → CO3taG7t2.mjs} +1 -1
  29. package/chunks/{DNSPORak.mjs → CZUhA3sf.mjs} +298 -4
  30. package/chunks/Ccxbv7uz2.mjs +34 -0
  31. package/chunks/Ce4tNNzg2.mjs +63 -0
  32. package/chunks/{B1GA44yT2.mjs → CelJ2L8A2.mjs} +2 -2
  33. package/chunks/CjYOitzM2.mjs +31 -0
  34. package/chunks/Cknuquqx.mjs +32 -0
  35. package/chunks/ClVh1Lek.mjs +130 -0
  36. package/chunks/CwyebsNL2.mjs +39 -0
  37. package/chunks/{9rQitPz7.mjs → D6DYxngS.mjs} +132 -127
  38. package/chunks/D6YM84Pf2.mjs +29 -0
  39. package/chunks/{BkEMJ725.mjs → DTq5QLoT.mjs} +43 -39
  40. package/chunks/{BvcK4D8A2.mjs → DVMfVn-M.mjs} +14 -10
  41. package/chunks/DVdQHb_v.mjs +50 -0
  42. package/chunks/{BaLjN8Ow.mjs → Daa7nl7U.mjs} +19 -15
  43. package/chunks/{D9qn1x3X2.mjs → Dh_BQpvC2.mjs} +2 -2
  44. package/chunks/DizOY5i8.mjs +69 -0
  45. package/chunks/{BQNqBw8h2.mjs → DjaV6_cg2.mjs} +2 -2
  46. package/chunks/{CbbjpJFg2.mjs → Dm3gQGoV2.mjs} +2 -2
  47. package/chunks/DqW9QtF3.mjs +68 -0
  48. package/chunks/{DbtlO6wD.mjs → DqWJCka8.mjs} +9 -7
  49. package/chunks/{BI-ZFlSw2.mjs → DrWUdRj32.mjs} +2 -2
  50. package/chunks/Dv7YRB2U2.mjs +25 -0
  51. package/chunks/DyLQsqWJ.mjs +61 -0
  52. package/chunks/HsHwYW1a.mjs +99 -0
  53. package/chunks/KDVLIvaS.mjs +30 -0
  54. package/chunks/{DxL9oojv2.mjs → Lkg7bYLD2.mjs} +73 -74
  55. package/chunks/{T_jwNKBr.mjs → Opn85Hlx2.mjs} +1 -1
  56. package/chunks/{BoId6V9J.mjs → YdNYH25C.mjs} +1 -1
  57. package/chunks/{BvbjlaN02.mjs → gTgPZrgY2.mjs} +119 -120
  58. package/chunks/{3gUkQF12.mjs → jsgk7Yse2.mjs} +2 -2
  59. package/chunks/nL59ZuIk.mjs +58 -0
  60. package/chunks/{CDqVJ7U3.mjs → neuEq1De.mjs} +70 -67
  61. package/chunks/{B8wGY5Hs2.mjs → sWVkgzQt2.mjs} +2 -2
  62. package/chunks/{Wl17p0C82.mjs → tjwOOiNr2.mjs} +31 -30
  63. package/code-mirror-editor/index.mjs +1 -1
  64. package/confirm-button/index.mjs +1 -1
  65. package/confirmable/index.mjs +1 -1
  66. package/context-menu/index.mjs +1 -1
  67. package/count-up/index.mjs +1 -1
  68. package/custom-scrollbar/index.mjs +1 -1
  69. package/data-box/index.mjs +9 -8
  70. package/data-card/index.mjs +8 -7
  71. package/data-card-text/index.mjs +8 -7
  72. package/data-display/index.mjs +9 -8
  73. package/data-icons/index.mjs +9 -8
  74. package/data-imgtext/index.mjs +9 -8
  75. package/data-operatext/index.mjs +8 -7
  76. package/data-panel/index.mjs +9 -8
  77. package/data-pay/index.mjs +10 -9
  78. package/data-price/index.mjs +8 -7
  79. package/data-progress/index.mjs +10 -9
  80. package/data-rotate/index.mjs +9 -8
  81. package/data-table-picker/index.mjs +11 -10
  82. package/data-tabs/index.mjs +9 -8
  83. package/dict-render/index.mjs +1 -1
  84. package/e-charts/index.mjs +2 -2
  85. package/easy-popup/index.mjs +1 -1
  86. package/editable-progress/index.mjs +8 -7
  87. package/editable-tree/index.mjs +595 -2
  88. package/element-dialog/index.mjs +1 -1
  89. package/element-resize-observer/index.mjs +1 -1
  90. package/flex-box/index.mjs +1 -1
  91. package/flex-column/index.mjs +1 -1
  92. package/flex-item/index.mjs +1 -1
  93. package/flex-row/index.mjs +1 -1
  94. package/flex-scroller/index.mjs +1 -1
  95. package/flow-designer/index.mjs +1 -1
  96. package/flow-viewer/index.mjs +1 -1
  97. package/form-cascader/index.mjs +1 -1
  98. package/form-checkbox/index.mjs +1 -1
  99. package/form-checkbox-group/index.mjs +1 -1
  100. package/form-date-picker/index.mjs +1 -1
  101. package/form-holder/index.mjs +1 -1
  102. package/form-image/index.mjs +1 -1
  103. package/form-input/index.mjs +1 -1
  104. package/form-input-cron-expression/index.mjs +1 -1
  105. package/form-input-email/index.mjs +1 -1
  106. package/form-input-id-card/index.mjs +1 -1
  107. package/form-input-number/index.mjs +1 -1
  108. package/form-input-phone-number/index.mjs +1 -1
  109. package/form-input-tag/index.mjs +1 -1
  110. package/form-input-time/index.mjs +1 -1
  111. package/form-item-group/index.mjs +1 -1
  112. package/form-item-x/index.mjs +1 -1
  113. package/form-radio-group/index.mjs +1 -1
  114. package/form-rate/index.mjs +1 -1
  115. package/form-row/index.mjs +1 -1
  116. package/form-select/index.mjs +1 -1
  117. package/form-slider/index.mjs +1 -1
  118. package/form-switch/index.mjs +1 -1
  119. package/form-table/index.mjs +1 -1
  120. package/form-table-plus/index.mjs +1 -1
  121. package/form-text/index.mjs +1 -1
  122. package/form-textarea/index.mjs +1 -1
  123. package/form-time-select/index.mjs +1 -1
  124. package/form-tree-select/index.mjs +1 -1
  125. package/form-tree-select-multiple/index.mjs +1 -1
  126. package/form-view/index.mjs +3 -3
  127. package/guide-steps/index.mjs +77 -2
  128. package/helper/dictionary.mjs +1 -1
  129. package/helper/input.mjs +1 -1
  130. package/highlight-j-s/index.mjs +1 -1
  131. package/iframe-window/index.mjs +1 -1
  132. package/image-cropper/index.mjs +12 -11
  133. package/image-preview/index.d.ts +1 -153
  134. package/image-preview/index.mjs +201 -2
  135. package/image-viewer/index.mjs +1 -1
  136. package/index.css +1 -1
  137. package/index.mjs +101 -101
  138. package/input-number-range/index.mjs +7 -6
  139. package/keyboard/index.mjs +1 -1
  140. package/loading-view/index.mjs +1 -1
  141. package/name-avatar/index.mjs +1 -1
  142. package/nav-bar/index.mjs +3 -2
  143. package/package.json +5 -1
  144. package/page-index/index.mjs +14 -13
  145. package/page-index-top/index.mjs +12 -10
  146. package/pageable-table/index.mjs +1 -1
  147. package/photo-swipe/index.mjs +1 -1
  148. package/props/col.mjs +1 -1
  149. package/props/form-item.mjs +1 -1
  150. package/sign-panel/index.mjs +1 -1
  151. package/skeleton-panel/index.mjs +3 -2
  152. package/split-pane/index.mjs +1 -1
  153. package/sub-table/index.mjs +1 -1
  154. package/sub-table-plus/index.mjs +1 -1
  155. package/swiper/index.mjs +2 -2
  156. package/table-column/index.mjs +1 -1
  157. package/table-column-def/index.mjs +1 -1
  158. package/table-view/index.mjs +108 -106
  159. package/tag-render/index.mjs +21 -20
  160. package/text-ellipsis/index.d.ts +1 -1
  161. package/text-ellipsis/index.mjs +1 -1
  162. package/toolbar/index.mjs +1 -1
  163. package/toolbar-button/index.mjs +1 -1
  164. package/vue-cron/index.mjs +1 -1
  165. package/vue-tags-input/index.mjs +1 -1
  166. package/vue-tree-select/index.mjs +1 -1
  167. package/vue-video-player/index.d.ts +1 -1
  168. package/vue-video-player/index.mjs +1 -1
  169. package/watermark/index.mjs +1 -1
  170. package/web-types.json +1 -1
  171. package/x-input-tag/index.mjs +47 -46
  172. package/year-calendar/index.mjs +1 -1
  173. package/chunks/49634Q2N2.mjs +0 -936
  174. package/chunks/77cFhiAz.mjs +0 -13
  175. package/chunks/7JVbVOff2.mjs +0 -46
  176. package/chunks/B1ATN2my.mjs +0 -26
  177. package/chunks/B7O8aGqC2.mjs +0 -58
  178. package/chunks/BBPczt0U.mjs +0 -4
  179. package/chunks/BBqq6o072.mjs +0 -243
  180. package/chunks/BCVhSMZN.mjs +0 -1328
  181. package/chunks/BDVLN2ly.mjs +0 -105
  182. package/chunks/BEysX5TF2.mjs +0 -1038
  183. package/chunks/BIj6pa8Z.mjs +0 -15
  184. package/chunks/BJby9uHB2.mjs +0 -233
  185. package/chunks/BUAQybGW.mjs +0 -230
  186. package/chunks/BVIHqL6g.mjs +0 -17
  187. package/chunks/BVSQ6DfJ.mjs +0 -17
  188. package/chunks/B__5L22p2.mjs +0 -346
  189. package/chunks/Baam4z-g.mjs +0 -275
  190. package/chunks/Bdeug17L.mjs +0 -42
  191. package/chunks/BecO0t0_2.mjs +0 -2430
  192. package/chunks/BffxPn8a.mjs +0 -34
  193. package/chunks/Bgw_3soo.mjs +0 -35
  194. package/chunks/BjCfQFUL.mjs +0 -54
  195. package/chunks/BjWs-r2V.mjs +0 -25
  196. package/chunks/BlB1fEo92.mjs +0 -8
  197. package/chunks/BrYtAPbN2.mjs +0 -161
  198. package/chunks/BsKwchVA.mjs +0 -14
  199. package/chunks/BsM0L7CS.mjs +0 -132
  200. package/chunks/C5f3Xfsc2.mjs +0 -36
  201. package/chunks/C7l9aZGE.mjs +0 -577
  202. package/chunks/CFvkR9Ze2.mjs +0 -31
  203. package/chunks/CGM03LI5.mjs +0 -588
  204. package/chunks/CPejK_GQ2.mjs +0 -383
  205. package/chunks/CQSTyCVP.mjs +0 -6
  206. package/chunks/CQxz8uUc.mjs +0 -454
  207. package/chunks/CR29QUwT2.mjs +0 -28
  208. package/chunks/CWvo-ucD.mjs +0 -446
  209. package/chunks/C_eGir-J.mjs +0 -17
  210. package/chunks/Calzy0Az.mjs +0 -1275
  211. package/chunks/CbgD7y-5.mjs +0 -5
  212. package/chunks/CbsGuLZz2.mjs +0 -105
  213. package/chunks/CcT5SsZk.mjs +0 -48
  214. package/chunks/CdBytH8S.mjs +0 -266
  215. package/chunks/CiFlMt6Z.mjs +0 -41
  216. package/chunks/Cjkq49252.mjs +0 -60
  217. package/chunks/CnCSm3LY2.mjs +0 -4
  218. package/chunks/CsLrkldT2.mjs +0 -225
  219. package/chunks/Csiz_xCa2.mjs +0 -273
  220. package/chunks/Ctd3_wOH2.mjs +0 -6
  221. package/chunks/Cu2A_1vk2.mjs +0 -106
  222. package/chunks/CuoF9V8s.mjs +0 -3091
  223. package/chunks/CwBq1JZV.mjs +0 -250
  224. package/chunks/CwWfRmD3.mjs +0 -57
  225. package/chunks/CwqeV7002.mjs +0 -67
  226. package/chunks/Cy8jqgun2.mjs +0 -41
  227. package/chunks/D-hj62se2.mjs +0 -525
  228. package/chunks/D3Xixh5v.mjs +0 -5
  229. package/chunks/D4oNQiIK.mjs +0 -461
  230. package/chunks/D8r81QxD.mjs +0 -732
  231. package/chunks/DL0o_C092.mjs +0 -1093
  232. package/chunks/DLgn1tQG2.mjs +0 -60
  233. package/chunks/DStwh2ne.mjs +0 -281
  234. package/chunks/DXiLi19u2.mjs +0 -33
  235. package/chunks/DZ0frL1U.mjs +0 -69
  236. package/chunks/D_qwjNah.mjs +0 -1094
  237. package/chunks/Dg9Q-Tbi2.mjs +0 -299
  238. package/chunks/Dls3rTka2.mjs +0 -24
  239. package/chunks/DnBzQ-xh.mjs +0 -4
  240. package/chunks/DoNfjRR1.mjs +0 -68
  241. package/chunks/DrKq_frR.mjs +0 -98
  242. package/chunks/DsYXqJLZ.mjs +0 -641
  243. package/chunks/DsZznbt2.mjs +0 -208
  244. package/chunks/Dsd58O0g.mjs +0 -25
  245. package/chunks/Dtq1xYk8.mjs +0 -47
  246. package/chunks/EA6hte7s2.mjs +0 -49
  247. package/chunks/FeuisuNY2.mjs +0 -88
  248. package/chunks/GEtlriHC.mjs +0 -188
  249. package/chunks/GsvG1yFW.mjs +0 -1919
  250. package/chunks/KGmxNbpi.mjs +0 -21
  251. package/chunks/Q2Mal3Qn2.mjs +0 -439
  252. package/chunks/akEzJ4kG.mjs +0 -18
  253. package/chunks/cMuWbLPt.mjs +0 -196
  254. package/chunks/gh52LMTG.mjs +0 -12
  255. package/chunks/hgAOQY9a.mjs +0 -406
  256. package/chunks/lGc5ksPb.mjs +0 -279
  257. package/chunks/mD3gmiOy2.mjs +0 -96
  258. package/chunks/nLBvkerV2.mjs +0 -621
  259. package/chunks/pZQfJv282.mjs +0 -4
  260. package/chunks/qrHhuZXg.mjs +0 -465
  261. package/chunks/uqKZ4RIo.mjs +0 -222
  262. /package/chunks/{B31ub5xS.mjs → BBvIPqcc.mjs} +0 -0
  263. /package/chunks/{e70aZf3z.mjs → BoCxKwBf.mjs} +0 -0
  264. /package/chunks/{h-Uhst9y.mjs → CE67pCwD.mjs} +0 -0
  265. /package/chunks/{BMTtnkb7.mjs → CQeEP_Tl.mjs} +0 -0
  266. /package/chunks/{BwYEpK-u.mjs → CaczibeD.mjs} +0 -0
  267. /package/chunks/{BPpMbPS8.mjs → DZCryyFG.mjs} +0 -0
  268. /package/chunks/{BVuwiZGi.mjs → Dq63V0CC.mjs} +0 -0
  269. /package/chunks/{C1RsHtGI.mjs → OEBJ-trG.mjs} +0 -0
  270. /package/chunks/{7Cv9Cq-02.mjs → fjtZc9Rq2.mjs} +0 -0
@@ -1,732 +0,0 @@
1
- import "./CjjJimnU.mjs";
2
- import { l as e, s as t, t as n } from "./DrKq_frR.mjs";
3
- import { t as r } from "./qrHhuZXg.mjs";
4
- import { C as i, F as a, t as o } from "./D4oNQiIK.mjs";
5
- import { n as s } from "./GEtlriHC.mjs";
6
- import { n as c, r as l, t as u } from "./GsvG1yFW.mjs";
7
- import { t as d } from "./C7l9aZGE.mjs";
8
- import { a as f } from "./B1ATN2my.mjs";
9
- import { m as p, t as m } from "./D-hj62se2.mjs";
10
- import { r as h, t as g } from "./49634Q2N2.mjs";
11
- import { t as _ } from "./D_qwjNah.mjs";
12
- import { t as v } from "./BwYEpK-u.mjs";
13
- import { t as y } from "./DhQF2ZlD.mjs";
14
- import { allProps as b, predicate as x } from "../props/tree.mjs";
15
- import { Fragment as S, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createTextVNode as O, createVNode as k, defineComponent as ee, mergeProps as A, normalizeClass as j, normalizeStyle as M, openBlock as N, ref as P, renderSlot as F, resolveDynamicComponent as I, toDisplayString as L, toHandlers as R, unref as z, vShow as B, withCtx as V, withDirectives as H, withModifiers as U } from "vue";
16
- import { computePosition as W, delay as te, fastClone as ne, findTreeChildren as re, isFunction as G, isNotEmpty as K, isPlainObject as q, isUndefined as J, isVerticalScrollbarVisible as Y, patch as X, scrollbarWidth as ie } from "@web-utils/core";
17
- import { cloneDeep as Z } from "@web-utils/integrations/lodash";
18
- import { addResizeListener as Q, removeResizeListener as $ } from "@web-utils/integrations/resize";
19
- //#endregion
20
- //#region node_modules/.pnpm/element-plus@2.13.7_typescr_0fa4751f8fa020301a8746973788e8b7/node_modules/element-plus/es/components/popconfirm/index.mjs
21
- var ae = n(/* @__PURE__ */ ee({
22
- name: "ElPopconfirm",
23
- __name: "popconfirm",
24
- props: e({
25
- title: String,
26
- confirmButtonText: String,
27
- cancelButtonText: String,
28
- confirmButtonType: {
29
- type: String,
30
- values: h,
31
- default: "primary"
32
- },
33
- cancelButtonType: {
34
- type: String,
35
- values: h,
36
- default: "text"
37
- },
38
- icon: {
39
- type: f,
40
- default: () => i
41
- },
42
- iconColor: {
43
- type: String,
44
- default: "#f90"
45
- },
46
- hideIcon: Boolean,
47
- hideAfter: {
48
- type: Number,
49
- default: 200
50
- },
51
- effect: {
52
- ...l.effect,
53
- default: "light"
54
- },
55
- teleported: l.teleported,
56
- persistent: l.persistent,
57
- width: {
58
- type: [String, Number],
59
- default: 150
60
- },
61
- virtualTriggering: c.virtualTriggering,
62
- virtualRef: c.virtualRef
63
- }),
64
- emits: {
65
- confirm: (e) => e instanceof MouseEvent,
66
- cancel: (e) => e instanceof MouseEvent
67
- },
68
- setup(e, { expose: n, emit: r }) {
69
- let i = e, c = r, { t: l } = s(), d = t("popconfirm"), f = P(), p = P(), m = C(() => {
70
- var e;
71
- return (e = z(f)) == null ? void 0 : e.popperRef;
72
- }), h = () => {
73
- var e, t;
74
- (e = p.value) == null || (t = e.focus) == null || t.call(e);
75
- }, _ = () => {
76
- var e, t;
77
- (e = f.value) == null || (t = e.onClose) == null || t.call(e);
78
- }, v = C(() => ({ width: a(i.width) })), y = (e) => {
79
- c("confirm", e), _();
80
- }, b = (e) => {
81
- c("cancel", e), _();
82
- }, x = C(() => i.confirmButtonText || l("el.popconfirm.confirmButtonText")), S = C(() => i.cancelButtonText || l("el.popconfirm.cancelButtonText"));
83
- return n({
84
- popperRef: m,
85
- hide: _
86
- }), (t, n) => (N(), w(z(u), A({
87
- ref_key: "tooltipRef",
88
- ref: f,
89
- trigger: "click",
90
- effect: e.effect
91
- }, t.$attrs, {
92
- "virtual-triggering": e.virtualTriggering,
93
- "virtual-ref": e.virtualRef,
94
- "popper-class": `${z(d).namespace.value}-popover`,
95
- "popper-style": v.value,
96
- teleported: e.teleported,
97
- "fallback-placements": [
98
- "bottom",
99
- "top",
100
- "right",
101
- "left"
102
- ],
103
- "hide-after": e.hideAfter,
104
- persistent: e.persistent,
105
- loop: "",
106
- onShow: h
107
- }), {
108
- content: V(() => [D("div", {
109
- ref_key: "rootRef",
110
- ref: p,
111
- tabindex: "-1",
112
- class: j(z(d).b())
113
- }, [D("div", { class: j(z(d).e("main")) }, [!e.hideIcon && e.icon ? (N(), w(z(o), {
114
- key: 0,
115
- class: j(z(d).e("icon")),
116
- style: M({ color: e.iconColor })
117
- }, {
118
- default: V(() => [(N(), w(I(e.icon)))]),
119
- _: 1
120
- }, 8, ["class", "style"])) : T("v-if", !0), O(" " + L(e.title), 1)], 2), D("div", { class: j(z(d).e("action")) }, [F(t.$slots, "actions", {
121
- confirm: y,
122
- cancel: b
123
- }, () => [k(z(g), {
124
- size: "small",
125
- type: e.cancelButtonType === "text" ? "" : e.cancelButtonType,
126
- text: e.cancelButtonType === "text",
127
- onClick: b
128
- }, {
129
- default: V(() => [O(L(S.value), 1)]),
130
- _: 1
131
- }, 8, ["type", "text"]), k(z(g), {
132
- size: "small",
133
- type: e.confirmButtonType === "text" ? "" : e.confirmButtonType,
134
- text: e.confirmButtonType === "text",
135
- onClick: y
136
- }, {
137
- default: V(() => [O(L(x.value), 1)]),
138
- _: 1
139
- }, 8, ["type", "text"])])], 2)], 2)]),
140
- default: V(() => [t.$slots.reference ? F(t.$slots, "reference", { key: 0 }) : T("v-if", !0)]),
141
- _: 3
142
- }, 16, [
143
- "effect",
144
- "virtual-triggering",
145
- "virtual-ref",
146
- "popper-class",
147
- "popper-style",
148
- "teleported",
149
- "hide-after",
150
- "persistent"
151
- ]));
152
- }
153
- })), oe = {
154
- name: "EditableTree",
155
- props: { ...b },
156
- emits: {
157
- "remove-new-node": null,
158
- "node-loaded": null,
159
- "root-node-loaded": null,
160
- "node-deleted": null,
161
- "node-updated": null,
162
- "node-added": null,
163
- "on-node-click": null,
164
- "add-root-node": null,
165
- "create-new-node": null
166
- },
167
- data() {
168
- return {
169
- loading: !1,
170
- showMenu: !1,
171
- empty: !0,
172
- expandedKeys: this.lazy ? [] : this.defaultExpandedKeys,
173
- treeData: [],
174
- curNode: {},
175
- curData: {},
176
- position: {},
177
- text: "",
178
- right: 4,
179
- treeKey: Date.now()
180
- };
181
- },
182
- computed: {
183
- defaultOptions() {
184
- return {
185
- confirmButtonText: "确定",
186
- cancelButtonText: "取消",
187
- closeOnClickModal: !1,
188
- modal: !0,
189
- inputErrorMessage: `${this.label}名不能为空!`,
190
- inputPlaceholder: `请输入${this.label}名...`,
191
- inputValidator: (e) => e != null && e.trim().length > 0
192
- };
193
- },
194
- innerTreeData() {
195
- var e;
196
- return (e = this.$attrs.data) != null && e.length ? this.$attrs.data : this.treeData;
197
- }
198
- },
199
- watch: { defaultExpandedKeys: {
200
- immediate: !0,
201
- handler(e) {
202
- this.expandedKeys = [...e];
203
- }
204
- } },
205
- setup(e) {
206
- let { autoBindProps: t, listeners: n } = p(e, {
207
- predicate: x,
208
- removeOn: !0
209
- });
210
- return {
211
- autoBindProps: t,
212
- listeners: n
213
- };
214
- },
215
- created() {
216
- this.tryFetch();
217
- },
218
- mounted() {
219
- Q(this.$refs.tree.$el, this.resize), Q(this.$refs.treeWrapper, this.resize);
220
- },
221
- beforeUnmount() {
222
- $(this.$refs.tree.$el, this.resize), $(this.$refs.treeWrapper, this.resize);
223
- },
224
- methods: {
225
- addExpandKey(e) {
226
- this.reserveExpandKey && this.expandedKeys.push(e[this.nodeKey]);
227
- },
228
- removeExpandKey(e) {
229
- this.reserveExpandKey && (this.expandedKeys = this.expandedKeys.filter((t) => t !== e[this.nodeKey]));
230
- },
231
- resize() {
232
- Y(this.$refs.treeWrapper) ? this.right = 4 + ie : this.right = 4;
233
- },
234
- async showContextMenu(e, t, n) {
235
- t.contextmenu === !1 || t.id === -1 || t.id === 0 || t.edit === !0 || this.readonly || this.contextMenu && (this.curNode = n, this.curData = t, this.showMenu = !0, this.$refs.tree.setCurrentKey(t.id), await this.$nextTick(), this.position = W(e, this.$refs.contextMenu), window.addEventListener("click", this.hideContextMenu));
236
- },
237
- hideContextMenu() {
238
- this.showMenu = !1, window.removeEventListener("click", this.hideContextMenu);
239
- },
240
- async tryFetch() {
241
- if (this.lazy === !1 && this.fetchApi) {
242
- var e;
243
- let r;
244
- try {
245
- var t;
246
- r = await this.fetchApi(((t = this.rootNode) == null ? void 0 : t.id) ?? -1, {});
247
- } catch {
248
- return;
249
- }
250
- let i = r.data.data;
251
- q(i) && (i = [i]), i = i || [];
252
- let a = [];
253
- if (this.empty = i.length === 0, q(this.customRootNode)) {
254
- let e = Z(this.customRootNode);
255
- e[this.treeProps.children || "children"] = i, a = [e];
256
- } else if (G(this.customRootNode)) {
257
- let e = this.customRootNode(i);
258
- e[this.treeProps.children || "children"] = i, a = q(e) ? [e] : e;
259
- } else a = i;
260
- if ((e = this.defaultExpandedKeys) != null && e.length) this.expandedKeys = [...this.defaultExpandedKeys];
261
- else if (this.expandFirstNode) {
262
- var n;
263
- this.expandedKeys = [(n = a[0]) == null ? void 0 : n.id];
264
- }
265
- this.treeData = a, await this.$nextTick(), this.$emit("node-loaded", a);
266
- }
267
- },
268
- async loadNode(e, t) {
269
- if (e.level === 0) {
270
- var n, r;
271
- let o = (await this.fetchApi(((n = this.rootNode) == null ? void 0 : n.id) ?? -1, e)).data.data;
272
- if (this.empty = o.length === 0, q(this.customRootNode)) {
273
- let e = Z(this.customRootNode);
274
- e[this.treeProps.children || "children"] = o, o = [e], t(o);
275
- } else if (G(this.customRootNode)) {
276
- let e = this.customRootNode(o);
277
- e[this.treeProps.children || "children"] = o, o = q(e) ? [e] : e;
278
- } else t(o);
279
- if (await this.$nextTick(), this.$emit("root-node-loaded", o), (r = this.defaultExpandedKeys) != null && r.length) {
280
- var i;
281
- this.expandedKeys = [(i = o[0]) == null ? void 0 : i.id, ...this.defaultExpandedKeys];
282
- } else if (this.expandFirstNode) {
283
- var a;
284
- this.expandedKeys = [(a = o[0]) == null ? void 0 : a.id];
285
- }
286
- } else {
287
- if (e.leaf || e.data.isTempNode) return t([]);
288
- let n = (await this.fetchApi(e.data.id, e)).data.data;
289
- t(n), await this.$nextTick(), this.$emit("node-loaded", n);
290
- }
291
- },
292
- clear() {
293
- this.cancelEdit(), this.removeNewNode();
294
- },
295
- clearChecked() {
296
- this.$refs.tree.setCheckedKeys([]);
297
- },
298
- removeNewNode() {
299
- this.newChild && this.newChild.id === -1 && (this.$refs.tree.remove(this.newChild), this.$emit("remove-new-node"));
300
- },
301
- cancelEdit() {
302
- this.editData && (J(this.editData.edit) ? this.editData.edit = !0 : this.editData.edit = !1);
303
- },
304
- async editNode(e, t) {
305
- !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.editData = t, this.text = t[this.treeProps.label], J(t.edit), t.edit = !0, await this.$nextTick(), this.$refs.labelTxt.focus()) : await r.prompt(`请输入新的${this.label}名:`, {
306
- ...this.defaultOptions,
307
- inputValue: t[this.treeProps.label],
308
- beforeClose: async (e, t, n) => {
309
- if (e === "confirm") {
310
- try {
311
- t.confirmButtonLoading = !0, t.confirmButtonText = "处理中...", this.text = t.inputValue, await this.onConfirm(this.curNode, this.curData), n();
312
- } catch {
313
- t.confirmButtonText = "确定";
314
- }
315
- t.confirmButtonLoading = !1;
316
- } else n();
317
- }
318
- }).catch((e) => e);
319
- },
320
- async appendRootNode() {
321
- this.text = "", !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.createNewChild(void 0), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), await this.scrollIntoView(!0)) : await r.prompt(`请输入${this.label}名:`, {
322
- ...this.defaultOptions,
323
- beforeClose: async (e, t, n) => {
324
- if (e === "confirm") {
325
- try {
326
- this.createNewChild(-1), t.confirmButtonLoading = !0, t.confirmButtonText = "处理中...";
327
- let e = await this.saveApi(this.newNodeBuilder(t.inputValue, { id: -1 }));
328
- this.newChild[this.treeProps.label] = t.inputValue, this.newChild.edit = !1, m(this.newChild, e.data), this.$refs.tree.root.insertChild({ data: this.newChild }, void 0, !0), await this.locateView(), n();
329
- } catch {
330
- t.confirmButtonText = "确定";
331
- }
332
- t.confirmButtonLoading = !1;
333
- } else n();
334
- }
335
- }).catch((e) => e);
336
- },
337
- appendChildNode(e) {
338
- this.text = "";
339
- let t = e.expanded;
340
- e.expand(async () => {
341
- !this.contextMenu || this.contextMenuIcon || this.contextMenuInline ? (this.clear(), this.createNewChild(e.data.id), this.$refs.tree.append(this.newChild, e), await this.scrollIntoView(t)) : await r.prompt(`请输入${this.label}名:`, {
342
- ...this.defaultOptions,
343
- beforeClose: async (t, n, r) => {
344
- if (t === "confirm") {
345
- try {
346
- this.createNewChild(e.data.id), n.confirmButtonLoading = !0, n.confirmButtonText = "处理中...";
347
- let t = await this.saveApi(this.newNodeBuilder(n.inputValue, e.data));
348
- this.newChild[this.treeProps.label] = n.inputValue, this.newChild.edit = !1, m(this.newChild, t.data), this.$refs.tree.append(this.newChild, e), await this.locateView(), r();
349
- } catch {
350
- n.confirmButtonText = "确定";
351
- }
352
- n.confirmButtonLoading = !1;
353
- } else r();
354
- }
355
- });
356
- });
357
- },
358
- appendChildNodeWithData(e, t, n) {
359
- this.text = "";
360
- let r = e.expanded;
361
- e.expand(async () => {
362
- this.clear(), this.newChild = {
363
- id: -1,
364
- parentId: t,
365
- [this.treeProps.label]: n,
366
- edit: !1,
367
- isTempNode: !0,
368
- hasChildren: !1
369
- }, this.$refs.tree.append(this.newChild, e), await this.scrollIntoView(r);
370
- });
371
- },
372
- appendPeerNode(e) {
373
- e.parent && e.parent.level !== 0 ? this.appendChildNode(e.parent) : this.appendRootNode();
374
- },
375
- async addRootNode(e) {
376
- this.$refs.tree.remove(e), await this.$nextTick(), this.$refs.tree.root.insertChild({ data: e }, void 0, !0);
377
- },
378
- async addChildNode(e) {
379
- this.curNode && this.curNode.level !== 0 ? this.curNode.expand(async () => {
380
- this.$refs.tree.remove(e), await this.$nextTick(), this.$refs.tree.append(e, this.curNode);
381
- }) : await this.addRootNode(e);
382
- },
383
- async addPeerNode(e) {
384
- this.curNode && this.curNode.parent && this.curNode.parent.level !== 0 ? this.curNode.parent.expand(async () => {
385
- this.$refs.tree.remove(e), await this.$nextTick(), this.$refs.tree.append(e, this.curNode.parent);
386
- }) : await this.addRootNode(e);
387
- },
388
- updateNode(e) {
389
- let t = this.$refs.tree.getNode(e);
390
- t && X(t.data, e, !0);
391
- },
392
- setCurrentKey(e) {
393
- var t;
394
- (t = this.$refs.tree) == null || t.setCurrentKey(e);
395
- },
396
- createNewChild(e) {
397
- this.newChild = {
398
- id: -1,
399
- parentId: e,
400
- [this.treeProps.label]: "",
401
- edit: !0,
402
- isTempNode: !0,
403
- hasChildren: !1
404
- }, this.$emit("create-new-node", this.newChild);
405
- },
406
- async removeNodeModal(e) {
407
- await this.$confirm(`你确定要删除${this.label}[<span class="break-word" style="color: orange">${e.data[this.treeProps.label]}</span>]吗?`, "系统提示", {
408
- type: "warning",
409
- modal: !0,
410
- dangerouslyUseHTMLString: !0,
411
- iconClass: "el-icon-question",
412
- closeOnClickModal: !1,
413
- confirmButtonClass: "el-button--danger",
414
- cancelButtonClass: "el-button--primary is-plain",
415
- beforeClose: async (t, n, r) => {
416
- if (t === "confirm") {
417
- try {
418
- n.confirmButtonLoading = !0, n.confirmButtonText = "删除...";
419
- let t = e.parent, i = await this.deleteApi(e.data.id);
420
- i.code === 0 ? (this.$message.success("删除成功!"), this.$refs.tree.remove(e), this.$emit("node-deleted", t, e.data), r()) : this.$message.error(i.message);
421
- } catch {}
422
- n.confirmButtonText = "确定", n.confirmButtonLoading = !1;
423
- } else r();
424
- }
425
- }).catch((e) => e);
426
- },
427
- async removeNode(e) {
428
- try {
429
- let t = e.parent;
430
- if (this.deleteApi) {
431
- let n = await this.deleteApi(e.data.id);
432
- n.code === 0 ? (this.$message.success("删除成功!"), this.$refs.tree.remove(e), this.$emit("node-deleted", t, e.data)) : this.$message.error(n.message);
433
- } else this.$refs.tree.remove(e);
434
- } catch {}
435
- },
436
- async onConfirm(e, t) {
437
- if (t[this.treeProps.label] === this.text || !K(this.text)) {
438
- this.clear();
439
- return;
440
- }
441
- J(t.loading), t.loading = !0;
442
- try {
443
- if (this.loading = !0, t.id === -1) {
444
- let n = await this.saveApi(this.newNodeBuilder(this.text, e.parent.data || { id: -1 })), r = ne(t);
445
- m(t, {
446
- ...n.data,
447
- isTempNode: !1
448
- }), this.$emit("node-added", t, r, e), this.registerNode(e);
449
- } else await this.updateApi({
450
- ...t,
451
- [this.treeProps.label]: this.text
452
- });
453
- t[this.treeProps.label] = this.text, t.edit = !1, this.$emit("node-updated", t, e), this.text = "";
454
- } catch {}
455
- t.loading = !1, this.loading = !1;
456
- },
457
- onCancel(e, t) {
458
- t.id === -1 ? this.$refs.tree.remove(e) : t.edit = !1, this.text = "";
459
- },
460
- nodeClick(e, t, n) {
461
- this.hideContextMenu(), (J(e.loading) || !e.loading) && (this.curNode = t, this.curData = e, this.$emit("on-node-click", e, t, n));
462
- },
463
- getCurrentNode() {
464
- return this.$refs.tree.getCurrentNode();
465
- },
466
- async locateView() {
467
- await this.$nextTick();
468
- let e = this.$el.querySelector(`[data-id="${this.newChild.id}"]`);
469
- e && e.scrollIntoView();
470
- },
471
- async scrollIntoView(e) {
472
- var t;
473
- await this.$nextTick(), e || await te(300), (t = this.$refs) == null || (t = t.labelTxt) == null || t.focus();
474
- },
475
- inputKeyup(e, t, n) {
476
- e.keyCode === 13 && this.onConfirm(t, n), e.keyCode === 27 && this.clear();
477
- },
478
- inputBlur(e, t, n) {
479
- this.confirmButton || this.onConfirm(t, n);
480
- },
481
- getCheckedKeys() {
482
- return this.$refs.tree.getCheckedKeys();
483
- },
484
- setCheckedKeys(e) {
485
- this.$refs.tree.setCheckedKeys(e);
486
- },
487
- getCheckedNodes() {
488
- return this.$refs.tree.getCheckedNodes();
489
- },
490
- setCheckedNodes(e) {
491
- this.$refs.tree.setCheckedNodes(e);
492
- },
493
- getNode(e) {
494
- return this.$refs.tree.getNode(e);
495
- },
496
- getRootNode() {
497
- return this.$refs.tree.root;
498
- },
499
- findTreeNode(e) {
500
- return re(this.$refs.tree.root.childNodes, (t) => t.data === e || t.data.id === e, "childNodes");
501
- },
502
- registerNode(e) {
503
- e.store.registerNode(e), delete e.store.nodesMap[-1];
504
- },
505
- async reloadTree() {
506
- this.lazy ? this.treeKey = Date.now() : await this.tryFetch();
507
- }
508
- }
509
- }, se = { class: "editable-tree" }, ce = {
510
- ref: "treeWrapper",
511
- class: "et-tree-wrapper"
512
- }, le = {
513
- key: 0,
514
- style: { "padding-left": "24px" }
515
- }, ue = ["data-id"], de = {
516
- class: "node-label flex-row flex-item ellipsis-1",
517
- style: { overflow: "hidden" }
518
- }, fe = {
519
- class: "flex-item-relative",
520
- style: { height: "21px" }
521
- }, pe = ["title"], me = {
522
- key: 0,
523
- class: "handle-actions"
524
- }, he = {
525
- key: 1,
526
- class: "handle-actions",
527
- style: { display: "inline-block" }
528
- }, ge = ["data-id"], _e = { class: "menu-list" };
529
- function ve(e, t, n, r, i, a) {
530
- let o = y, s = ae, c = d, l = _;
531
- return N(), E("div", se, [!e.readonly && e.addRootNodeButtonStyle === "top-right" ? (N(), w(o, {
532
- key: 0,
533
- type: "primary",
534
- style: M([{
535
- position: "absolute",
536
- top: "4px",
537
- "z-index": "1"
538
- }, { right: `${i.right}px` }]),
539
- icon: "el-icon-plus",
540
- circle: "",
541
- plain: "",
542
- onClick: t[0] || (t[0] = U((t) => e.$emit("add-root-node"), ["stop"]))
543
- }, null, 8, ["style"])) : T("v-if", !0), D("div", ce, [
544
- !e.readonly && e.addRootNodeButtonStyle === "top" ? (N(), E("div", le, [k(o, {
545
- disabled: i.loading,
546
- type: "text",
547
- onClick: a.appendRootNode
548
- }, {
549
- default: V(() => [t[8] || (t[8] = D("i", { class: "el-icon-lx-add" }, null, -1)), O(" " + L(e.addRootNodeLabel ? e.addRootNodeLabel : `添加${e.label}`), 1)]),
550
- _: 1
551
- }, 8, ["disabled", "onClick"])])) : T("v-if", !0),
552
- (N(), w(l, A(r.autoBindProps, {
553
- key: i.treeKey,
554
- ref: "tree",
555
- "default-expand-all": e.defaultExpandAll,
556
- class: "flex-item",
557
- "default-expanded-keys": i.expandedKeys,
558
- "expand-on-click-node": !1,
559
- "highlight-current": "",
560
- load: a.loadNode,
561
- data: a.innerTreeData,
562
- props: e.treeProps,
563
- lazy: e.lazy,
564
- "node-key": e.nodeKey
565
- }, R(r.listeners), {
566
- onNodeClick: a.nodeClick,
567
- onNodeContextmenu: a.showContextMenu,
568
- onNodeExpand: a.addExpandKey,
569
- onNodeCollapse: a.removeExpandKey
570
- }), {
571
- default: V(({ node: n, data: r }) => [F(e.$slots, "default", {
572
- node: n,
573
- data: r
574
- }, () => [T("非编辑模式"), r.edit ? (N(), E(S, { key: 1 }, [T("编辑模式"), D("span", {
575
- "data-id": r.id,
576
- class: "custom-tree-node flex-row flex-item",
577
- style: { overflow: "hidden" }
578
- }, [
579
- e.icon ? (N(), E("i", {
580
- key: 0,
581
- class: j([r.loading ? "el-icon-loading" : "el-icon-edit-outline", "node-icon flex-not-shrink"])
582
- }, null, 2)) : T("v-if", !0),
583
- k(c, {
584
- ref: "labelTxt",
585
- modelValue: i.text,
586
- "onUpdate:modelValue": t[2] || (t[2] = (e) => i.text = e),
587
- class: "node-input flex-item",
588
- placeholder: a.defaultOptions.inputPlaceholder,
589
- onKeyup: (e) => a.inputKeyup(e, n, r),
590
- onBlur: (e) => a.inputBlur(e, n, r),
591
- onClick: t[3] || (t[3] = U(() => {}, ["stop"]))
592
- }, null, 8, [
593
- "modelValue",
594
- "placeholder",
595
- "onKeyup",
596
- "onBlur"
597
- ]),
598
- e.confirmButton ? (N(), E(S, { key: 1 }, [H(k(o, {
599
- class: "flex-not-shrink",
600
- type: "text",
601
- onClick: U((e) => a.onConfirm(n, r), ["stop"])
602
- }, {
603
- default: V(() => [...t[13] || (t[13] = [O(" 确定 ", -1)])]),
604
- _: 1
605
- }, 8, ["onClick"]), [[B, !r.loading]]), H(k(o, {
606
- class: "flex-not-shrink",
607
- type: "text",
608
- onClick: U((e) => a.onCancel(n, r), ["stop"])
609
- }, {
610
- default: V(() => [...t[14] || (t[14] = [O(" 取消 ", -1)])]),
611
- _: 1
612
- }, 8, ["onClick"]), [[B, !r.loading]])], 64)) : T("v-if", !0)
613
- ], 8, ge)], 64)) : (N(), E("span", {
614
- key: 0,
615
- "data-id": r.id,
616
- class: "custom-tree-node"
617
- }, [
618
- D("span", de, [
619
- e.icon ? (N(), E("i", {
620
- key: 0,
621
- class: j([r.loading ? "el-icon-loading" : e.icon(r, n), "node-icon"])
622
- }, null, 2)) : T("v-if", !0),
623
- D("span", fe, [D("span", {
624
- class: "ellipsis-1 absolute-box et-tree-label",
625
- title: n.label
626
- }, [F(e.$slots, "label", {
627
- data: r,
628
- node: n
629
- }, () => [O(L(n.label), 1)])], 8, pe)]),
630
- F(e.$slots, "label-suffix", {
631
- node: n,
632
- data: r
633
- })
634
- ]),
635
- !e.contextMenu && !e.readonly ? H((N(), E("span", me, [
636
- k(o, {
637
- type: "text",
638
- onClick: U((e) => a.appendChildNode(n, r), ["stop"])
639
- }, {
640
- default: V(() => [...t[9] || (t[9] = [O("添加", -1)])]),
641
- _: 1
642
- }, 8, ["onClick"]),
643
- k(o, {
644
- type: "text",
645
- onClick: U((e) => a.editNode(n, r), ["stop"])
646
- }, {
647
- default: V(() => [...t[10] || (t[10] = [O("修改", -1)])]),
648
- _: 1
649
- }, 8, ["onClick"]),
650
- k(s, {
651
- class: "pop-confirm",
652
- "icon-color": "red",
653
- title: "你确定要删除吗?",
654
- onConfirm: (e) => a.removeNode(n, r)
655
- }, {
656
- reference: V(() => [H(k(o, {
657
- style: { "margin-left": "4px" },
658
- type: "text",
659
- onClick: t[1] || (t[1] = U(() => {}, ["stop"]))
660
- }, {
661
- default: V(() => [...t[11] || (t[11] = [O(" 删除 ", -1)])]),
662
- _: 1
663
- }, 512), [[B, n.isLeaf]])]),
664
- _: 2
665
- }, 1032, ["onConfirm"])
666
- ], 512)), [[B, !r.loading && !i.loading]]) : T("v-if", !0),
667
- e.contextMenuIcon && e.contextMenu && !e.readonly ? H((N(), E("span", he, [k(o, {
668
- style: { padding: "6px 10px 0" },
669
- type: "text",
670
- onClick: U((e) => a.showContextMenu(e, r, n), ["stop"])
671
- }, {
672
- default: V(() => [...t[12] || (t[12] = [O(" . . . ", -1)])]),
673
- _: 1
674
- }, 8, ["onClick"])], 512)), [[B, !r.loading && !i.loading]]) : T("v-if", !0)
675
- ], 8, ue))])]),
676
- _: 3
677
- }, 16, [
678
- "default-expand-all",
679
- "default-expanded-keys",
680
- "load",
681
- "data",
682
- "props",
683
- "lazy",
684
- "node-key",
685
- "onNodeClick",
686
- "onNodeContextmenu",
687
- "onNodeExpand",
688
- "onNodeCollapse"
689
- ])),
690
- e.contextMenu && !e.readonly ? H((N(), E("div", {
691
- key: 1,
692
- ref: "contextMenu",
693
- style: M(i.position),
694
- class: "menu"
695
- }, [D("ul", _e, [F(e.$slots, "context-menu", {
696
- curNode: i.curNode,
697
- curData: i.curData
698
- }, () => [
699
- H(D("li", {
700
- class: "menu-item",
701
- onClick: t[4] || (t[4] = (e) => a.appendPeerNode(i.curNode, i.curData))
702
- }, [t[15] || (t[15] = D("i", {
703
- class: "menu-item-icon el-icon-lx-add",
704
- style: { color: "#228b22" }
705
- }, null, -1)), O(" " + L(e.menuLabel.appendPeer), 1)], 512), [[B, i.curData.id > -1]]),
706
- D("li", {
707
- class: "menu-item",
708
- onClick: t[5] || (t[5] = (e) => a.appendChildNode(i.curNode, i.curData))
709
- }, [t[16] || (t[16] = D("i", {
710
- class: "menu-item-icon el-icon-lx-add",
711
- style: { color: "#228b22" }
712
- }, null, -1)), O(" " + L(e.menuLabel.appendChild), 1)]),
713
- H(D("li", {
714
- class: "menu-item",
715
- onClick: t[6] || (t[6] = (e) => a.editNode(i.curNode, i.curData))
716
- }, [t[17] || (t[17] = D("i", {
717
- class: "menu-item-icon el-icon-edit-outline",
718
- style: { color: "#ffa500" }
719
- }, null, -1)), O(" " + L(e.menuLabel.editNode), 1)], 512), [[B, i.curData.id > -1]]),
720
- H(D("li", {
721
- class: "menu-item",
722
- onClick: t[7] || (t[7] = (e) => a.removeNodeModal(i.curNode, i.curData))
723
- }, [t[18] || (t[18] = D("i", {
724
- class: "menu-item-icon el-icon-delete",
725
- style: { color: "#f00" }
726
- }, null, -1)), O(" " + L(e.menuLabel.removeNode), 1)], 512), [[B, i.curNode.isLeaf]])
727
- ])])], 4)), [[B, i.showMenu]]) : T("v-if", !0)
728
- ], 512)]);
729
- }
730
- var ye = /* @__PURE__ */ v(oe, [["render", ve]]);
731
- //#endregion
732
- export { ye as t };