geekin-devtoys 0.3.8 → 0.3.9

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 (55) hide show
  1. package/lib/GBubble/index.js +1 -2
  2. package/lib/GBubble/index.mjs +3 -210
  3. package/lib/GBubble-C3cM9Put.mjs +216 -0
  4. package/lib/GBubble-Dph0YDkU.js +2 -0
  5. package/lib/GButton/index.js +1 -1
  6. package/lib/GButton/index.mjs +81 -5
  7. package/lib/GButton/style.css +1 -0
  8. package/lib/GCard/index.js +1 -1
  9. package/lib/GCard/index.mjs +1 -1
  10. package/lib/GDialog/index.js +1 -1
  11. package/lib/GDialog/index.mjs +33 -34
  12. package/lib/GInput/index.js +1 -0
  13. package/lib/GInput/index.mjs +145 -0
  14. package/lib/GInput/style.css +1 -0
  15. package/lib/GInput.d.ts +1 -0
  16. package/lib/GInputTreeTag/index.js +1 -1
  17. package/lib/GInputTreeTag/index.mjs +77 -75
  18. package/lib/GInputTreeTag/style.css +1 -1
  19. package/lib/GPie3D/index.js +1 -1
  20. package/lib/GPie3D/index.mjs +1 -1
  21. package/lib/GProgress/index.js +1 -1
  22. package/lib/GProgress/index.mjs +1 -1
  23. package/lib/GRing/index.js +1 -1
  24. package/lib/GRing/index.mjs +1 -1
  25. package/lib/GScroller/index.js +1 -1
  26. package/lib/GScroller/index.mjs +135 -152
  27. package/lib/GShinyText/index.js +1 -1
  28. package/lib/GShinyText/index.mjs +45 -119
  29. package/lib/GSteps/index.js +1 -1
  30. package/lib/GSteps/index.mjs +89 -43
  31. package/lib/GSteps/style.css +1 -1
  32. package/lib/GTable/index.js +1 -1
  33. package/lib/GTable/index.mjs +1 -1
  34. package/lib/GTag/index.js +1 -0
  35. package/lib/GTag/index.mjs +73 -0
  36. package/lib/GTag.d.ts +1 -0
  37. package/lib/GVideo/index.js +2 -2
  38. package/lib/GVideo/index.mjs +1 -1
  39. package/lib/assets/GTag.css +1 -0
  40. package/lib/components/GInput/index.d.ts +64 -0
  41. package/lib/components/GInputTreeTag/index.d.ts +15 -23
  42. package/lib/components/GTag/index.d.ts +38 -0
  43. package/lib/index/index.js +1 -1
  44. package/lib/index/index.mjs +38 -33
  45. package/lib/index/style.css +25 -1
  46. package/lib/index.d.ts +3 -1
  47. package/package.json +12 -20
  48. package/lib/AnimatePresence-26Wy0TGN.js +0 -9
  49. package/lib/AnimatePresence-nl0c23TZ.mjs +0 -136
  50. package/lib/_plugin-vue_export-helper-BHFhmbuH.js +0 -1
  51. package/lib/_plugin-vue_export-helper-CHgC5LLL.mjs +0 -9
  52. package/lib/index-B8Ap0044.js +0 -1
  53. package/lib/index-Bbr5fWvI.mjs +0 -5158
  54. package/lib/index-CWxEZ_zc.mjs +0 -74
  55. package/lib/index-Q0Ej8RIj.js +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../_plugin-vue_export-helper-BHFhmbuH.js"),_={class:"step-bar"},v=["onClick"],B={class:"step-icon"},f={key:0,class:"step-check"},h={key:1,class:"step-check"},S={class:"step-main"},y={class:"step-title"},E={key:0,class:"step-description"},g=e.defineComponent({name:"GSteps",__name:"index",props:{active:{},steps:{},errorAt:{},clickable:{type:Boolean},processStatus:{},finishStatus:{}},emits:["step-click"],setup(a,{emit:p}){const c=a,u=p,i=e.computed(()=>c.steps.map(t=>typeof t=="string"?{title:t}:t)),o=e.computed(()=>i.value.map((t,n)=>n===c.errorAt?"error":n<c.active?c.finishStatus??"success":n===c.active?c.processStatus??"process":"wait")),m=t=>t==="finish"||t==="success",k=t=>{c.clickable&&t!==c.active&&u("step-click",t)};return(t,n)=>(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(r,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r.title},[e.createElementVNode("div",{class:e.normalizeClass(["step-node",["is-"+o.value[s],{"is-clickable":t.clickable}]]),onClick:b=>k(s)},[e.createElementVNode("div",B,[e.renderSlot(t.$slots,"icon",{index:s,status:o.value[s]},()=>[o.value[s]==="success"||o.value[s]==="finish"?(e.openBlock(),e.createElementBlock("span",f,"✓")):o.value[s]==="error"?(e.openBlock(),e.createElementBlock("span",h,"✕")):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(s+1),1)],64))],!0)]),e.createElementVNode("div",S,[e.createElementVNode("div",y,e.toDisplayString(r.title),1),r.description?(e.openBlock(),e.createElementBlock("div",E,e.toDisplayString(r.description),1)):e.createCommentVNode("",!0)])],10,v),s<t.steps.length-1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["step-line",["is-"+o.value[s],{"is-filled":m(o.value[s])}]])},null,2)):e.createCommentVNode("",!0)],64))),128))]))}}),l=d._export_sfc(g,[["__scopeId","data-v-d946b7c9"]]);l.install=a=>{a.component(l.name,l)};exports.GSteps=l;exports.default=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("motion-v"),y=require("../GBubble-Dph0YDkU.js"),S={class:"step-bar"},C=["onClick"],V={class:"step-icon"},N={class:"step-main"},E={class:"step-title"},b={key:0,class:"step-description"},g=e.defineComponent({name:"GSteps",__name:"index",props:{active:{},steps:{},errorAt:{},clickable:{type:Boolean},processStatus:{},finishStatus:{}},emits:["step-click"],setup(r,{emit:f}){const o=r,v=f,k=e.computed(()=>o.steps.map(t=>typeof t=="string"?{title:t}:t)),i=e.computed(()=>k.value.map((t,n)=>n===o.errorAt?"error":n<o.active?o.finishStatus??"success":n===o.active?o.processStatus??"process":"wait")),_=t=>t==="finish"||t==="success",h=t=>{o.clickable&&t!==o.active&&v("step-click",t)},u={scale:.4,opacity:0},p={scale:1,opacity:1},m={scale:.4,opacity:0},d={duration:.15,ease:"easeOut"},B={duration:.3,ease:"easeInOut"};return(t,n)=>(e.openBlock(),e.createElementBlock("div",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(l,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.title},[e.createElementVNode("div",{class:e.normalizeClass(["step-node",["is-"+i.value[s],{"is-clickable":t.clickable}]]),onClick:T=>h(s)},[e.createElementVNode("div",V,[e.renderSlot(t.$slots,"icon",{index:s,status:i.value[s]},()=>[e.createVNode(e.unref(a.AnimatePresence),{initial:!1,mode:"popLayout"},{default:e.withCtx(()=>[i.value[s]==="success"||i.value[s]==="finish"?(e.openBlock(),e.createBlock(e.unref(a.motion).span,{key:"check",class:"step-check",initial:u,animate:p,exit:m,transition:d},{default:e.withCtx(()=>n[0]||(n[0]=[e.createTextVNode("✓")])),_:1,__:[0]})):i.value[s]==="error"?(e.openBlock(),e.createBlock(e.unref(a.motion).span,{key:"error",class:"step-check",initial:u,animate:p,exit:m,transition:d},{default:e.withCtx(()=>n[1]||(n[1]=[e.createTextVNode("✕")])),_:1,__:[1]})):(e.openBlock(),e.createBlock(e.unref(a.motion).span,{key:s,class:"step-num",initial:u,animate:p,exit:m,transition:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s+1),1)]),_:2},1024))]),_:2},1024)],!0)]),e.createElementVNode("div",N,[e.createElementVNode("div",E,e.toDisplayString(l.title),1),l.description?(e.openBlock(),e.createElementBlock("div",b,e.toDisplayString(l.description),1)):e.createCommentVNode("",!0)])],10,C),s<t.steps.length-1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["step-line",["is-"+i.value[s]]])},[e.createVNode(e.unref(a.motion).div,{class:"step-line-fill",initial:!1,animate:{scaleX:_(i.value[s])?1:0},transition:B},null,8,["animate"])],2)):e.createCommentVNode("",!0)],64))),128))]))}}),c=y._export_sfc(g,[["__scopeId","data-v-d59243d9"]]);c.install=r=>{r.component(c.name,c)};exports.GSteps=c;exports.default=c;
@@ -1,15 +1,10 @@
1
- import { defineComponent as b, computed as v, createElementBlock as c, openBlock as o, Fragment as p, renderList as C, createElementVNode as l, createCommentVNode as m, normalizeClass as k, renderSlot as g, createTextVNode as B, toDisplayString as u } from "vue";
2
- import { _ as N } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
3
- const V = { class: "step-bar" }, z = ["onClick"], A = { class: "step-icon" }, E = {
4
- key: 0,
5
- class: "step-check"
6
- }, F = {
7
- key: 1,
8
- class: "step-check"
9
- }, G = { class: "step-main" }, $ = { class: "step-title" }, w = {
1
+ import { defineComponent as z, computed as b, createElementBlock as o, openBlock as a, Fragment as g, renderList as F, createElementVNode as r, createCommentVNode as A, normalizeClass as B, renderSlot as G, createVNode as N, unref as c, withCtx as p, createBlock as v, createTextVNode as h, toDisplayString as y } from "vue";
2
+ import { AnimatePresence as L, motion as u } from "motion-v";
3
+ import { _ as O } from "../GBubble-C3cM9Put.mjs";
4
+ const $ = { class: "step-bar" }, D = ["onClick"], P = { class: "step-icon" }, X = { class: "step-main" }, j = { class: "step-title" }, q = {
10
5
  key: 0,
11
6
  class: "step-description"
12
- }, D = /* @__PURE__ */ b({
7
+ }, H = /* @__PURE__ */ z({
13
8
  name: "GSteps",
14
9
  __name: "index",
15
10
  props: {
@@ -21,49 +16,100 @@ const V = { class: "step-bar" }, z = ["onClick"], A = { class: "step-icon" }, E
21
16
  finishStatus: {}
22
17
  },
23
18
  emits: ["step-click"],
24
- setup(n, { emit: f }) {
25
- const t = n, h = f, d = v(
26
- () => t.steps.map((e) => typeof e == "string" ? { title: e } : e)
27
- ), i = v(
28
- () => d.value.map((e, r) => r === t.errorAt ? "error" : r < t.active ? t.finishStatus ?? "success" : r === t.active ? t.processStatus ?? "process" : "wait")
29
- ), S = (e) => e === "finish" || e === "success", y = (e) => {
30
- t.clickable && e !== t.active && h("step-click", e);
31
- };
32
- return (e, r) => (o(), c("div", V, [
33
- (o(!0), c(p, null, C(d.value, (a, s) => (o(), c(p, {
34
- key: a.title
19
+ setup(m, { emit: V }) {
20
+ const s = m, E = V, C = b(
21
+ () => s.steps.map((t) => typeof t == "string" ? { title: t } : t)
22
+ ), n = b(
23
+ () => C.value.map((t, i) => i === s.errorAt ? "error" : i < s.active ? s.finishStatus ?? "success" : i === s.active ? s.processStatus ?? "process" : "wait")
24
+ ), I = (t) => t === "finish" || t === "success", T = (t) => {
25
+ s.clickable && t !== s.active && E("step-click", t);
26
+ }, d = { scale: 0.4, opacity: 0 }, f = { scale: 1, opacity: 1 }, k = { scale: 0.4, opacity: 0 }, _ = { duration: 0.15, ease: "easeOut" }, w = { duration: 0.3, ease: "easeInOut" };
27
+ return (t, i) => (a(), o("div", $, [
28
+ (a(!0), o(g, null, F(C.value, (l, e) => (a(), o(g, {
29
+ key: l.title
35
30
  }, [
36
- l("div", {
37
- class: k(["step-node", ["is-" + i.value[s], { "is-clickable": e.clickable }]]),
38
- onClick: (I) => y(s)
31
+ r("div", {
32
+ class: B(["step-node", ["is-" + n.value[e], { "is-clickable": t.clickable }]]),
33
+ onClick: (J) => T(e)
39
34
  }, [
40
- l("div", A, [
41
- g(e.$slots, "icon", {
42
- index: s,
43
- status: i.value[s]
35
+ r("div", P, [
36
+ G(t.$slots, "icon", {
37
+ index: e,
38
+ status: n.value[e]
44
39
  }, () => [
45
- i.value[s] === "success" || i.value[s] === "finish" ? (o(), c("span", E, "✓")) : i.value[s] === "error" ? (o(), c("span", F, "✕")) : (o(), c(p, { key: 2 }, [
46
- B(u(s + 1), 1)
47
- ], 64))
40
+ N(c(L), {
41
+ initial: !1,
42
+ mode: "popLayout"
43
+ }, {
44
+ default: p(() => [
45
+ n.value[e] === "success" || n.value[e] === "finish" ? (a(), v(c(u).span, {
46
+ key: "check",
47
+ class: "step-check",
48
+ initial: d,
49
+ animate: f,
50
+ exit: k,
51
+ transition: _
52
+ }, {
53
+ default: p(() => i[0] || (i[0] = [
54
+ h("✓")
55
+ ])),
56
+ _: 1,
57
+ __: [0]
58
+ })) : n.value[e] === "error" ? (a(), v(c(u).span, {
59
+ key: "error",
60
+ class: "step-check",
61
+ initial: d,
62
+ animate: f,
63
+ exit: k,
64
+ transition: _
65
+ }, {
66
+ default: p(() => i[1] || (i[1] = [
67
+ h("✕")
68
+ ])),
69
+ _: 1,
70
+ __: [1]
71
+ })) : (a(), v(c(u).span, {
72
+ key: e,
73
+ class: "step-num",
74
+ initial: d,
75
+ animate: f,
76
+ exit: k,
77
+ transition: _
78
+ }, {
79
+ default: p(() => [
80
+ h(y(e + 1), 1)
81
+ ]),
82
+ _: 2
83
+ }, 1024))
84
+ ]),
85
+ _: 2
86
+ }, 1024)
48
87
  ], !0)
49
88
  ]),
50
- l("div", G, [
51
- l("div", $, u(a.title), 1),
52
- a.description ? (o(), c("div", w, u(a.description), 1)) : m("", !0)
89
+ r("div", X, [
90
+ r("div", j, y(l.title), 1),
91
+ l.description ? (a(), o("div", q, y(l.description), 1)) : A("", !0)
53
92
  ])
54
- ], 10, z),
55
- s < e.steps.length - 1 ? (o(), c("div", {
93
+ ], 10, D),
94
+ e < t.steps.length - 1 ? (a(), o("div", {
56
95
  key: 0,
57
- class: k(["step-line", ["is-" + i.value[s], { "is-filled": S(i.value[s]) }]])
58
- }, null, 2)) : m("", !0)
96
+ class: B(["step-line", ["is-" + n.value[e]]])
97
+ }, [
98
+ N(c(u).div, {
99
+ class: "step-line-fill",
100
+ initial: !1,
101
+ animate: { scaleX: I(n.value[e]) ? 1 : 0 },
102
+ transition: w
103
+ }, null, 8, ["animate"])
104
+ ], 2)) : A("", !0)
59
105
  ], 64))), 128))
60
106
  ]));
61
107
  }
62
- }), _ = /* @__PURE__ */ N(D, [["__scopeId", "data-v-d946b7c9"]]);
63
- _.install = (n) => {
64
- n.component(_.name, _);
108
+ }), S = /* @__PURE__ */ O(H, [["__scopeId", "data-v-d59243d9"]]);
109
+ S.install = (m) => {
110
+ m.component(S.name, S);
65
111
  };
66
112
  export {
67
- _ as GSteps,
68
- _ as default
113
+ S as GSteps,
114
+ S as default
69
115
  };
@@ -1 +1 @@
1
- .step-bar[data-v-d946b7c9]{display:flex;align-items:center;justify-content:center;width:100%}.step-node[data-v-d946b7c9]{display:flex;flex-shrink:0;align-items:center;gap:8px}.step-node .step-icon[data-v-d946b7c9]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:13px;color:var(--steps-wait-color, var(--el-color-info, #909399));background:var(--steps-bg-color, #fff);border:1px solid var(--steps-border-color, var(--el-border-color, #dcdfe6));border-radius:50%;transition:all .2s}.step-node .step-main[data-v-d946b7c9]{display:flex;flex-direction:column;gap:2px;text-align:left}.step-node .step-title[data-v-d946b7c9]{font-size:14px;color:var(--steps-wait-color, var(--el-color-info, #909399));transition:all .2s}.step-node .step-description[data-v-d946b7c9]{font-size:12px;line-height:1.5;color:var(--steps-description-color, var(--el-text-color-secondary, #909399));transition:all .2s}.step-node.is-clickable[data-v-d946b7c9]{cursor:pointer}.step-node.is-clickable:hover .step-title[data-v-d946b7c9]{color:var(--el-color-primary)}.step-node.is-process .step-icon[data-v-d946b7c9]{color:#fff;background:var(--steps-process-color, var(--el-color-primary));border-color:var(--steps-process-color, var(--el-color-primary))}.step-node.is-process .step-title[data-v-d946b7c9]{font-weight:600;color:var(--steps-process-color, var(--el-color-primary))}.step-node.is-finish .step-icon[data-v-d946b7c9]{color:#fff;background:var(--steps-finish-color, var(--el-color-primary));border-color:var(--steps-finish-color, var(--el-color-primary))}.step-node.is-finish .step-title[data-v-d946b7c9]{color:var(--steps-title-color, var(--el-text-color-primary, #303133))}.step-node.is-success .step-icon[data-v-d946b7c9]{color:#fff;background:var(--steps-success-color, var(--el-color-success));border-color:var(--steps-success-color, var(--el-color-success))}.step-node.is-success .step-title[data-v-d946b7c9]{color:var(--steps-title-color, var(--el-text-color-primary, #303133))}.step-node.is-error .step-icon[data-v-d946b7c9]{color:#fff;background:var(--steps-error-color, var(--el-color-error, #f56c6c));border-color:var(--steps-error-color, var(--el-color-error, #f56c6c))}.step-node.is-error .step-title[data-v-d946b7c9]{font-weight:600;color:var(--steps-error-color, var(--el-color-error, #f56c6c))}.step-node .step-check[data-v-d946b7c9]{font-size:12px;line-height:1}.step-line[data-v-d946b7c9]{flex:1;height:1px;margin:0 12px;background-color:var(--steps-line-color, var(--el-border-color, #dcdfe6));transition:background-color .2s}.step-line.is-filled[data-v-d946b7c9]{background-color:var(--steps-success-color, var(--el-color-success))}.step-line.is-finish.is-filled[data-v-d946b7c9]{background-color:var(--steps-finish-color, var(--el-color-primary))}
1
+ .step-bar[data-v-d59243d9]{display:flex;align-items:center;justify-content:center;width:100%}.step-node[data-v-d59243d9]{display:flex;flex-shrink:0;align-items:center;gap:8px}.step-node .step-icon[data-v-d59243d9]{display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:13px;color:var(--g-text-secondary-color, rgba(0, 0, 0, .45));background:var(--g-bg-color, #ffffff);border:1px solid var(--g-border-color, #dcdfe3);border-radius:50%;transition:all .2s}.step-node .step-main[data-v-d59243d9]{display:flex;flex-direction:column;gap:2px;text-align:left}.step-node .step-title[data-v-d59243d9]{font-size:14px;color:var(--g-text-secondary-color, rgba(0, 0, 0, .45));transition:all .2s}.step-node .step-description[data-v-d59243d9]{font-size:12px;line-height:1.5;color:var(--g-text-secondary-color, rgba(0, 0, 0, .45));transition:all .2s}.step-node.is-clickable[data-v-d59243d9]{cursor:pointer}.step-node.is-clickable:hover .step-title[data-v-d59243d9]{color:var(--g-primary-color, #039be5)}.step-node.is-process .step-icon[data-v-d59243d9]{color:#fff;background:var(--g-primary-color, #039be5);border-color:var(--g-primary-color, #039be5)}.step-node.is-process .step-title[data-v-d59243d9]{font-weight:600;color:var(--g-primary-color, #039be5)}.step-node.is-finish .step-icon[data-v-d59243d9]{color:#fff;background:var(--g-primary-color, #039be5);border-color:var(--g-primary-color, #039be5)}.step-node.is-finish .step-title[data-v-d59243d9]{color:var(--g-text-color, rgba(0, 0, 0, .88))}.step-node.is-success .step-icon[data-v-d59243d9]{color:#fff;background:var(--g-success-color, #50c189);border-color:var(--g-success-color, #50c189)}.step-node.is-success .step-title[data-v-d59243d9]{color:var(--g-text-color, rgba(0, 0, 0, .88))}.step-node.is-error .step-icon[data-v-d59243d9]{color:#fff;background:var(--g-danger-color, #e1594d);border-color:var(--g-danger-color, #e1594d)}.step-node.is-error .step-title[data-v-d59243d9]{font-weight:600;color:var(--g-danger-color, #e1594d)}.step-node .step-check[data-v-d59243d9]{font-size:12px;line-height:1}.step-node .step-num[data-v-d59243d9]{font-size:13px;line-height:1}.step-line[data-v-d59243d9]{position:relative;flex:1;height:1px;margin:0 12px;background-color:var(--g-border-color, #dcdfe3)}.step-line-fill[data-v-d59243d9]{position:absolute;inset:0;background:var(--g-success-color, #50c189);transform-origin:left}.step-line.is-finish .step-line-fill[data-v-d59243d9]{background:var(--g-primary-color, #039be5)}
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),A=require("sortablejs"),y=require("../_plugin-vue_export-helper-BHFhmbuH.js");var k=e.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(i){return(F,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),S=k,z=e.defineComponent({name:"Operation",__name:"operation",setup(i){return(F,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),x=z,T={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const N={class:"g-table"},P={key:0,class:"g-table-action"},V={key:1},L={class:"g-dropdown-link"},$=e.defineComponent({name:"GTable",inheritAttrs:!1,__name:"index",props:{data:{default:()=>[]},pagination:{type:Boolean,default:!1},operationLabel:{default:"操作"},operaWidth:{default:160},dragSort:{type:Boolean,default:!1},dragSortProps:{default:()=>[]},currentPage:{default:1},pageSize:{default:10},total:{default:0},pageSizes:{default:()=>[10,20,50,100]},layout:{default:"total, sizes, prev, pager, next"},size:{default:"default"}},emits:["update:currentPage","update:pageSize","sorted:data"],setup(i,{emit:F}){const n=i,d=F,B=u=>{d("update:pageSize",u)},w=u=>{d("update:currentPage",u)},b=e.useSlots(),C=u=>!!b[u],E=e.useAttrs(),v=u=>{const t=!!E["page-size"],r=!!E["current-page"];if(t&&r){const a=Number(E["page-size"]||10),o=Number(E["current-page"]||1);return u+1+a*(o-1)}return u},p=e.ref(null),m=e.shallowRef(null),_=(u=20)=>new Promise(t=>{let r=0;const a=()=>{if(!p.value){t(null);return}const o=p.value.$el.querySelectorAll("tbody");for(let s=0;s<o.length;s++)if(o[s].querySelectorAll("tr").length>0){t(o[s]);return}if(++r>=u){t(null);return}setTimeout(a,500)};a()}),h=async()=>{if(p.value)try{const u=await _();if(!u){console.error("未找到包含数据行的 tbody 元素");return}m.value?.destroy?.(),m.value=new A(u,{draggable:"tr",handle:".g-drag-icon",animation:200,ghostClass:"g-sortable-ghost",forceFallback:!0,onStart:function(t){t.item.classList.add("dragging")},onEnd:async function(t){t.item.classList.remove("dragging");const{oldIndex:r,newIndex:a}=t;if(r===void 0||a===void 0){console.error("无效的索引值");return}const o=[...n.data],[s]=o.splice(r,1);if(o.splice(a,0,s),n.dragSortProps.length===0){d("sorted:data",o);return}if(n.dragSortProps.length>0){const f=o.map(D=>{const g={};return n.dragSortProps.forEach(l=>{g[l]=D[l]}),g});d("sorted:data",f)}}})}catch(u){console.error("初始化拖拽排序失败:",u)}};return e.onMounted(()=>{n.dragSort&&h()}),e.watch(()=>n.data,()=>{n.dragSort&&h()}),e.onBeforeUnmount(()=>{m.value?.destroy?.(),m.value=null}),(u,t)=>{const r=e.resolveComponent("el-icon"),a=e.resolveComponent("el-table-column"),o=e.resolveComponent("el-dropdown-menu"),s=e.resolveComponent("el-dropdown"),f=e.resolveComponent("el-table"),D=e.resolveComponent("el-pagination"),g=e.resolveComponent("el-config-provider");return e.openBlock(),e.createElementBlock("div",N,[u.$slots.action?(e.openBlock(),e.createElementBlock("div",P,[e.renderSlot(u.$slots,"action",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(f,e.mergeProps({data:u.data||[]},u.$attrs,{size:u.size,stripe:"",ref_key:"tableRef",ref:p,class:["g-table-main",`g-table-main--${u.size}`]}),{empty:e.withCtx(()=>[u.$slots.empty?e.renderSlot(u.$slots,"empty",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock("span",V,"暂无数据"))]),default:e.withCtx(()=>[u.dragSort?(e.openBlock(),e.createBlock(a,{key:0,label:"序号",width:"65"},{default:e.withCtx(l=>[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(v(l.$index))+" ",1),e.createVNode(r,{class:"g-drag-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(x))]),_:1})])]),_:1})):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default",{},void 0,!0),C("operations")?(e.openBlock(),e.createBlock(a,{key:1,fixed:"right",label:u.operationLabel||"操作",width:u.operaWidth},{default:e.withCtx(l=>[e.renderSlot(u.$slots,"operations",{row:l.row,index:l.$index},void 0,!0),C("more")?(e.openBlock(),e.createBlock(s,{key:0,size:"small",style:{"vertical-align":"baseline"}},{dropdown:e.withCtx(()=>[e.createVNode(o,null,{default:e.withCtx(()=>[e.renderSlot(u.$slots,"more",{row:l.row,index:l.$index},void 0,!0)]),_:2},1024)]),default:e.withCtx(()=>[e.createElementVNode("span",L,[t[0]||(t[0]=e.createTextVNode(" 更多 ")),e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(e.unref(S))]),_:1})])]),_:2},1024)):e.createCommentVNode("",!0)]),_:3},8,["label","width"])):e.createCommentVNode("",!0)]),_:3},16,["data","size","class"]),u.pagination?(e.openBlock(),e.createBlock(g,{key:1,locale:e.unref(T)},{default:e.withCtx(()=>[e.createVNode(D,{class:"g-pagination-contianer",size:"small","current-page":u.currentPage,"page-size":u.pageSize,total:u.total,"page-sizes":u.pageSizes,layout:u.layout,onSizeChange:B,onCurrentChange:w},null,8,["current-page","page-size","total","page-sizes","layout"])]),_:1},8,["locale"])):e.createCommentVNode("",!0)])}}}),c=y._export_sfc($,[["__scopeId","data-v-90ad3ecc"]]);c.install=i=>{i.component(c.name,c)};exports.GTable=c;exports.default=c;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),A=require("sortablejs"),y=require("../GBubble-Dph0YDkU.js");var k=e.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(i){return(F,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),S=k,z=e.defineComponent({name:"Operation",__name:"operation",setup(i){return(F,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),x=z,T={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const N={class:"g-table"},P={key:0,class:"g-table-action"},L={key:1},V={class:"g-dropdown-link"},$=e.defineComponent({name:"GTable",inheritAttrs:!1,__name:"index",props:{data:{default:()=>[]},pagination:{type:Boolean,default:!1},operationLabel:{default:"操作"},operaWidth:{default:160},dragSort:{type:Boolean,default:!1},dragSortProps:{default:()=>[]},currentPage:{default:1},pageSize:{default:10},total:{default:0},pageSizes:{default:()=>[10,20,50,100]},layout:{default:"total, sizes, prev, pager, next"},size:{default:"default"}},emits:["update:currentPage","update:pageSize","sorted:data"],setup(i,{emit:F}){const n=i,d=F,B=u=>{d("update:pageSize",u)},w=u=>{d("update:currentPage",u)},b=e.useSlots(),C=u=>!!b[u],E=e.useAttrs(),v=u=>{const t=!!E["page-size"],r=!!E["current-page"];if(t&&r){const a=Number(E["page-size"]||10),o=Number(E["current-page"]||1);return u+1+a*(o-1)}return u},p=e.ref(null),m=e.shallowRef(null),_=(u=20)=>new Promise(t=>{let r=0;const a=()=>{if(!p.value){t(null);return}const o=p.value.$el.querySelectorAll("tbody");for(let s=0;s<o.length;s++)if(o[s].querySelectorAll("tr").length>0){t(o[s]);return}if(++r>=u){t(null);return}setTimeout(a,500)};a()}),h=async()=>{if(p.value)try{const u=await _();if(!u){console.error("未找到包含数据行的 tbody 元素");return}m.value?.destroy?.(),m.value=new A(u,{draggable:"tr",handle:".g-drag-icon",animation:200,ghostClass:"g-sortable-ghost",forceFallback:!0,onStart:function(t){t.item.classList.add("dragging")},onEnd:async function(t){t.item.classList.remove("dragging");const{oldIndex:r,newIndex:a}=t;if(r===void 0||a===void 0){console.error("无效的索引值");return}const o=[...n.data],[s]=o.splice(r,1);if(o.splice(a,0,s),n.dragSortProps.length===0){d("sorted:data",o);return}if(n.dragSortProps.length>0){const f=o.map(D=>{const g={};return n.dragSortProps.forEach(l=>{g[l]=D[l]}),g});d("sorted:data",f)}}})}catch(u){console.error("初始化拖拽排序失败:",u)}};return e.onMounted(()=>{n.dragSort&&h()}),e.watch(()=>n.data,()=>{n.dragSort&&h()}),e.onBeforeUnmount(()=>{m.value?.destroy?.(),m.value=null}),(u,t)=>{const r=e.resolveComponent("el-icon"),a=e.resolveComponent("el-table-column"),o=e.resolveComponent("el-dropdown-menu"),s=e.resolveComponent("el-dropdown"),f=e.resolveComponent("el-table"),D=e.resolveComponent("el-pagination"),g=e.resolveComponent("el-config-provider");return e.openBlock(),e.createElementBlock("div",N,[u.$slots.action?(e.openBlock(),e.createElementBlock("div",P,[e.renderSlot(u.$slots,"action",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(f,e.mergeProps({data:u.data||[]},u.$attrs,{size:u.size,stripe:"",ref_key:"tableRef",ref:p,class:["g-table-main",`g-table-main--${u.size}`]}),{empty:e.withCtx(()=>[u.$slots.empty?e.renderSlot(u.$slots,"empty",{key:0},void 0,!0):(e.openBlock(),e.createElementBlock("span",L,"暂无数据"))]),default:e.withCtx(()=>[u.dragSort?(e.openBlock(),e.createBlock(a,{key:0,label:"序号",width:"65"},{default:e.withCtx(l=>[e.createElementVNode("div",null,[e.createTextVNode(e.toDisplayString(v(l.$index))+" ",1),e.createVNode(r,{class:"g-drag-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(x))]),_:1})])]),_:1})):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default",{},void 0,!0),C("operations")?(e.openBlock(),e.createBlock(a,{key:1,fixed:"right",label:u.operationLabel||"操作",width:u.operaWidth},{default:e.withCtx(l=>[e.renderSlot(u.$slots,"operations",{row:l.row,index:l.$index},void 0,!0),C("more")?(e.openBlock(),e.createBlock(s,{key:0,size:"small",style:{"vertical-align":"baseline"}},{dropdown:e.withCtx(()=>[e.createVNode(o,null,{default:e.withCtx(()=>[e.renderSlot(u.$slots,"more",{row:l.row,index:l.$index},void 0,!0)]),_:2},1024)]),default:e.withCtx(()=>[e.createElementVNode("span",V,[t[0]||(t[0]=e.createTextVNode(" 更多 ")),e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(e.unref(S))]),_:1})])]),_:2},1024)):e.createCommentVNode("",!0)]),_:3},8,["label","width"])):e.createCommentVNode("",!0)]),_:3},16,["data","size","class"]),u.pagination?(e.openBlock(),e.createBlock(g,{key:1,locale:e.unref(T)},{default:e.withCtx(()=>[e.createVNode(D,{class:"g-pagination-contianer",size:"small","current-page":u.currentPage,"page-size":u.pageSize,total:u.total,"page-sizes":u.pageSizes,layout:u.layout,onSizeChange:B,onCurrentChange:w},null,8,["current-page","page-size","total","page-sizes","layout"])]),_:1},8,["locale"])):e.createCommentVNode("",!0)])}}}),c=y._export_sfc($,[["__scopeId","data-v-90ad3ecc"]]);c.install=i=>{i.component(c.name,c)};exports.GTable=c;exports.default=c;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as z, createElementBlock as m, openBlock as s, createElementVNode as b, useSlots as M, useAttrs as R, ref as N, shallowRef as I, onMounted as V, watch as W, onBeforeUnmount as j, resolveComponent as d, createCommentVNode as p, createVNode as E, createBlock as C, renderSlot as g, mergeProps as q, withCtx as o, createTextVNode as P, toDisplayString as G, unref as A } from "vue";
2
2
  import Y from "sortablejs";
3
- import { _ as O } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
3
+ import { _ as O } from "../GBubble-C3cM9Put.mjs";
4
4
  var U = /* @__PURE__ */ z({
5
5
  name: "ArrowDown",
6
6
  __name: "arrow-down",
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../GBubble-Dph0YDkU.js"),u=["draggable"],p={key:0,class:"g-tag__icon"},m={key:1,class:"g-tag__text"},b=e.defineComponent({name:"GTag",__name:"index",props:{type:{},variant:{},closable:{type:Boolean},draggable:{type:Boolean}},emits:["close","dragstart","dragend"],setup(a,{emit:l}){const r=a,n=l,d=t=>{n("close",t)},c=t=>{r.draggable&&n("dragstart",t)},g=t=>{r.draggable&&n("dragend",t)};return(t,s)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["g-tag",["g-tag--"+t.type,"g-tag--"+t.variant,{"is-closable":t.closable,"is-draggable":t.draggable}]]),draggable:t.draggable,onDragstart:c,onDragend:g},[t.$slots.icon?(e.openBlock(),e.createElementBlock("span",p,[e.renderSlot(t.$slots,"icon",{},void 0,!0)])):e.createCommentVNode("",!0),t.$slots.default?(e.openBlock(),e.createElementBlock("span",m,[e.renderSlot(t.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),t.closable?(e.openBlock(),e.createElementBlock("span",{key:2,class:"g-tag__close",onClick:e.withModifiers(d,["stop"])},s[0]||(s[0]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e.createElementVNode("path",{d:"M6 6l12 12M18 6L6 18",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round"})],-1)]))):e.createCommentVNode("",!0)],42,u))}}),o=i._export_sfc(b,[["__scopeId","data-v-b3c202e5"]]);o.install=a=>{a.component(o.name,o)};exports.GTag=o;exports.default=o;
@@ -0,0 +1,73 @@
1
+ import { defineComponent as b, createElementBlock as a, openBlock as o, normalizeClass as f, createCommentVNode as r, renderSlot as d, withModifiers as _, createElementVNode as i } from "vue";
2
+ import { _ as k } from "../GBubble-C3cM9Put.mjs";
3
+ const v = ["draggable"], y = {
4
+ key: 0,
5
+ class: "g-tag__icon"
6
+ }, h = {
7
+ key: 1,
8
+ class: "g-tag__text"
9
+ }, C = /* @__PURE__ */ b({
10
+ name: "GTag",
11
+ __name: "index",
12
+ props: {
13
+ type: {},
14
+ variant: {},
15
+ closable: { type: Boolean },
16
+ draggable: { type: Boolean }
17
+ },
18
+ emits: ["close", "dragstart", "dragend"],
19
+ setup(t, { emit: c }) {
20
+ const l = t, s = c, p = (e) => {
21
+ s("close", e);
22
+ }, m = (e) => {
23
+ l.draggable && s("dragstart", e);
24
+ }, u = (e) => {
25
+ l.draggable && s("dragend", e);
26
+ };
27
+ return (e, g) => (o(), a("span", {
28
+ class: f(["g-tag", [
29
+ "g-tag--" + e.type,
30
+ "g-tag--" + e.variant,
31
+ {
32
+ "is-closable": e.closable,
33
+ "is-draggable": e.draggable
34
+ }
35
+ ]]),
36
+ draggable: e.draggable,
37
+ onDragstart: m,
38
+ onDragend: u
39
+ }, [
40
+ e.$slots.icon ? (o(), a("span", y, [
41
+ d(e.$slots, "icon", {}, void 0, !0)
42
+ ])) : r("", !0),
43
+ e.$slots.default ? (o(), a("span", h, [
44
+ d(e.$slots, "default", {}, void 0, !0)
45
+ ])) : r("", !0),
46
+ e.closable ? (o(), a("span", {
47
+ key: 2,
48
+ class: "g-tag__close",
49
+ onClick: _(p, ["stop"])
50
+ }, g[0] || (g[0] = [
51
+ i("svg", {
52
+ viewBox: "0 0 24 24",
53
+ fill: "none",
54
+ "aria-hidden": "true"
55
+ }, [
56
+ i("path", {
57
+ d: "M6 6l12 12M18 6L6 18",
58
+ stroke: "currentColor",
59
+ "stroke-width": "2.5",
60
+ "stroke-linecap": "round"
61
+ })
62
+ ], -1)
63
+ ]))) : r("", !0)
64
+ ], 42, v));
65
+ }
66
+ }), n = /* @__PURE__ */ k(C, [["__scopeId", "data-v-b3c202e5"]]);
67
+ n.install = (t) => {
68
+ t.component(n.name, n);
69
+ };
70
+ export {
71
+ n as GTag,
72
+ n as default
73
+ };
package/lib/GTag.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),b=require("crypto-js"),A=require("axios"),B=require("../_plugin-vue_export-helper-BHFhmbuH.js");function D(c,d,m){const y=["POST","*/*","application/json",`x-ca-key:${d["X-Ca-Key"]}`,c].filter(Boolean).join(`
2
- `),r=b.HmacSHA256(y,m);return b.enc.Base64.stringify(r)}function V(c,d,m){const y=A.create();async function r(u){const a={Accept:"*/*","Content-Type":"application/json","X-Ca-Key":d,"X-Ca-Signature-Headers":"x-ca-key"};return a["X-Ca-Signature"]=D(u.url,a,m),y({baseURL:c,method:u.method||"POST",url:u.url,headers:a,data:u.data})}return{request:r}}const N=3,U=1e3,j=3,q=300,H={__name:"index",props:{videoName:{type:String,default:""},channelCode:{type:String,default:""},streamType:{type:Number,default:1},baseUrl:{type:String,default:""},appKey:{type:String,default:""},appSecret:{type:String,default:""},basePath:{type:String,default:""}},emits:["double-click"],setup(c,{expose:d,emit:m}){let y=0;const r=c,u=m,a=n.ref(null),i=n.ref(""),_=n.ref(!1),o=n.ref("");let p=null,S=null,l=0;const P=`g-video-window-${++y}`;let g="/";try{g="/"}catch{}const C=()=>{const e=r.basePath||g;return e.endsWith("/")?e:`${e}/`};let h=null;const x=()=>window.JSPlugin?Promise.resolve():(h||(h=new Promise((e,t)=>{const s=document.createElement("script");s.src=`${C()}h5player.min.js`,s.async=!0,s.onload=()=>e(),s.onerror=()=>{h=null,t(new Error("加载h5player.min.js失败"))},document.head.appendChild(s)})),h),E=()=>{a.value||!window.JSPlugin||(a.value=new window.JSPlugin({szId:P,szBasePath:C(),bSupporDoubleClickFull:!1,iMaxSplit:1,iCurrentSplit:1,openDebug:!1,oStyle:{borderSelect:"#000"}}),R(),_.value=!0)},f=(e,t)=>{if(console.error(`${e}:`,t),l>=N){o.value="视频加载失败";return}l++,o.value=`第${l}次重试`,clearTimeout(p),p=setTimeout(()=>{T(),w()},U)},w=()=>{new V(r.baseUrl,r.appKey,r.appSecret).request({url:"/artemis/api/video/v1/cameras/previewURLs",data:{cameraIndexCode:r.channelCode,streamType:r.streamType,protocol:"ws",transmode:1,expand:"transcode=0"}}).then(e=>{const t=e?.data?.data?.url;if(!t)throw new Error("未获取到取流地址");l=0,clearTimeout(p),E(),i.value=t}).catch(e=>{f("获取WebSocket地址失败",e)})},I=()=>{const e=a.value;e&&_.value&&i.value&&e.JS_Play(i.value,{playURL:i.value,mode:0,keepDecoder:0},e.currentWindowIndex).then(()=>{o.value="",l=0}).catch(t=>{f("播放失败",t)})};n.watch([_,i],([e,t])=>{!e||!t||(clearTimeout(S),S=setTimeout(I,q))}),n.watch([()=>r.channelCode,()=>r.streamType],()=>{r.channelCode&&(clearTimeout(p),clearTimeout(S),T(),i.value="",l=0,o.value="更换通道中",w())});const k=()=>{clearTimeout(p),clearTimeout(S),T(),i.value="",l=0,o.value="重新加载中",w()},T=()=>{const e=a.value;if(e)try{e.JS_Stop(e.currentWindowIndex??0).then(()=>{},t=>{console.error("JS_Stop 失败:",t)})}catch(t){console.error("JS_Stop 异常:",t)}},J=()=>{const e=a.value;e&&e.JS_SetInterruptTime(0,j).then(()=>{},t=>{console.error("JS_SetInterruptTime 失败:",t)})},R=()=>{a.value.JS_SetWindowControlCallback({pluginErrorHandler:(e,t,s)=>{f(`插件错误(${t})`,s)},InterruptStream:(e,t)=>{f(`断流(${e}, ${t}s)`,new Error("stream interrupted"))}})},$=()=>{u("double-click",{isPlayVideo:!0,channel_code:r.channelCode,channel_name:r.videoName})};return d({stopPlay:T,setInterruptTime:J,rePlay:k}),n.onMounted(()=>{x().then(()=>{w()}).catch(e=>{console.error(e),o.value="播放器加载失败"})}),n.onBeforeUnmount(()=>{clearTimeout(p),clearTimeout(S),l=0;const e=a.value;e&&e.JS_StopRealPlayAll().finally(()=>{a.value=null})}),(e,t)=>(n.openBlock(),n.createElementBlock("div",{class:"g-video-container",onDblclick:$},[n.createElementVNode("div",{id:P,class:"g-video-window"}),n.withDirectives(n.createElementVNode("p",{class:"g-video-window-tips"},n.toDisplayString(o.value),513),[[n.vShow,o.value]])],32))}},v=B._export_sfc(H,[["__scopeId","data-v-908e0405"]]);v.install=c=>{c.component(v.name,v)};exports.GVideo=v;exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),C=require("crypto-js"),$=require("axios"),A=require("../GBubble-Dph0YDkU.js");function D(c,p,m){const y=["POST","*/*","application/json",`x-ca-key:${p["X-Ca-Key"]}`,c].filter(Boolean).join(`
2
+ `),r=C.HmacSHA256(y,m);return C.enc.Base64.stringify(r)}function N(c,p,m){const y=$.create();async function r(u){const a={Accept:"*/*","Content-Type":"application/json","X-Ca-Key":p,"X-Ca-Signature-Headers":"x-ca-key"};return a["X-Ca-Signature"]=D(u.url,a,m),y({baseURL:c,method:u.method||"POST",url:u.url,headers:a,data:u.data})}return{request:r}}const U=3,V=1e3,j=3,q=300,M={__name:"index",props:{videoName:{type:String,default:""},channelCode:{type:String,default:""},streamType:{type:Number,default:1},baseUrl:{type:String,default:""},appKey:{type:String,default:""},appSecret:{type:String,default:""},basePath:{type:String,default:""}},emits:["double-click"],setup(c,{expose:p,emit:m}){let y=0;const r=c,u=m,a=n.ref(null),i=n.ref(""),_=n.ref(!1),o=n.ref("");let d=null,S=null,l=0;const P=`g-video-window-${++y}`;let b="/";try{b="/"}catch{}const g=()=>{const e=r.basePath||b;return e.endsWith("/")?e:`${e}/`};let h=null;const E=()=>window.JSPlugin?Promise.resolve():(h||(h=new Promise((e,t)=>{const s=document.createElement("script");s.src=`${g()}h5player.min.js`,s.async=!0,s.onload=()=>e(),s.onerror=()=>{h=null,t(new Error("加载h5player.min.js失败"))},document.head.appendChild(s)})),h),I=()=>{a.value||!window.JSPlugin||(a.value=new window.JSPlugin({szId:P,szBasePath:g(),bSupporDoubleClickFull:!1,iMaxSplit:1,iCurrentSplit:1,openDebug:!1,oStyle:{borderSelect:"#000"}}),R(),_.value=!0)},f=(e,t)=>{if(console.error(`${e}:`,t),l>=U){o.value="视频加载失败";return}l++,o.value=`第${l}次重试`,clearTimeout(d),d=setTimeout(()=>{T(),w()},V)},w=()=>{new N(r.baseUrl,r.appKey,r.appSecret).request({url:"/artemis/api/video/v1/cameras/previewURLs",data:{cameraIndexCode:r.channelCode,streamType:r.streamType,protocol:"ws",transmode:1,expand:"transcode=0"}}).then(e=>{const t=e?.data?.data?.url;if(!t)throw new Error("未获取到取流地址");l=0,clearTimeout(d),I(),i.value=t}).catch(e=>{f("获取WebSocket地址失败",e)})},x=()=>{const e=a.value;e&&_.value&&i.value&&e.JS_Play(i.value,{playURL:i.value,mode:0,keepDecoder:0},e.currentWindowIndex).then(()=>{o.value="",l=0}).catch(t=>{f("播放失败",t)})};n.watch([_,i],([e,t])=>{!e||!t||(clearTimeout(S),S=setTimeout(x,q))}),n.watch([()=>r.channelCode,()=>r.streamType],()=>{r.channelCode&&(clearTimeout(d),clearTimeout(S),T(),i.value="",l=0,o.value="更换通道中",w())});const k=()=>{clearTimeout(d),clearTimeout(S),T(),i.value="",l=0,o.value="重新加载中",w()},T=()=>{const e=a.value;if(e)try{e.JS_Stop(e.currentWindowIndex??0).then(()=>{},t=>{console.error("JS_Stop 失败:",t)})}catch(t){console.error("JS_Stop 异常:",t)}},J=()=>{const e=a.value;e&&e.JS_SetInterruptTime(0,j).then(()=>{},t=>{console.error("JS_SetInterruptTime 失败:",t)})},R=()=>{a.value.JS_SetWindowControlCallback({pluginErrorHandler:(e,t,s)=>{f(`插件错误(${t})`,s)},InterruptStream:(e,t)=>{f(`断流(${e}, ${t}s)`,new Error("stream interrupted"))}})},B=()=>{u("double-click",{isPlayVideo:!0,channel_code:r.channelCode,channel_name:r.videoName})};return p({stopPlay:T,setInterruptTime:J,rePlay:k}),n.onMounted(()=>{E().then(()=>{w()}).catch(e=>{console.error(e),o.value="播放器加载失败"})}),n.onBeforeUnmount(()=>{clearTimeout(d),clearTimeout(S),l=0;const e=a.value;e&&e.JS_StopRealPlayAll().finally(()=>{a.value=null})}),(e,t)=>(n.openBlock(),n.createElementBlock("div",{class:"g-video-container",onDblclick:B},[n.createElementVNode("div",{id:P,class:"g-video-window"}),n.withDirectives(n.createElementVNode("p",{class:"g-video-window-tips"},n.toDisplayString(o.value),513),[[n.vShow,o.value]])],32))}},v=A._export_sfc(M,[["__scopeId","data-v-908e0405"]]);v.install=c=>{c.component(v.name,v)};exports.GVideo=v;exports.default=v;
@@ -1,7 +1,7 @@
1
1
  import { ref as w, watch as b, onMounted as D, onBeforeUnmount as U, createElementBlock as N, openBlock as W, createElementVNode as x, withDirectives as j, toDisplayString as H, vShow as L } from "vue";
2
2
  import I from "crypto-js";
3
3
  import V from "axios";
4
- import { _ as X } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
4
+ import { _ as X } from "../GBubble-C3cM9Put.mjs";
5
5
  function K(l, p, d) {
6
6
  const m = [
7
7
  "POST",
@@ -0,0 +1 @@
1
+ @charset "UTF-8";.g-tag[data-v-b3c202e5]{--g-tag-type-color: var(--g-text-color, rgba(0, 0, 0, .88));display:inline-flex;align-items:center;gap:4px;max-width:100%;height:24px;padding:0 8px;font-size:var(--g-tag-font-size, 12px);line-height:1;white-space:nowrap;-webkit-user-select:none;user-select:none;border-radius:var(--g-tag-radius, 4px);transition:all .2s cubic-bezier(.645,.045,.355,1)}.g-tag[data-v-b3c202e5]:has(.g-tag__close){padding-right:4px}.g-tag.is-draggable[data-v-b3c202e5]{cursor:grab}.g-tag__text[data-v-b3c202e5]{overflow:hidden;text-overflow:ellipsis}.g-tag__icon[data-v-b3c202e5]{display:inline-flex;align-items:center}.g-tag__icon[data-v-b3c202e5] svg{width:1em;height:1em;display:block}.g-tag__close[data-v-b3c202e5]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:16px;cursor:pointer;border-radius:50%;transition:background-color .2s cubic-bezier(.645,.045,.355,1)}.g-tag__close svg[data-v-b3c202e5]{width:10px;height:10px;display:block}.g-tag__close[data-v-b3c202e5]:hover{background:color-mix(in srgb,currentcolor 20%,transparent)}.g-tag--solid[data-v-b3c202e5]{color:#fff;background:var(--g-tag-type-color)}.g-tag--solid .g-tag__close[data-v-b3c202e5]:hover{color:var(--g-tag-type-color)}.g-tag--filled[data-v-b3c202e5]{color:var(--g-tag-type-color);background:color-mix(in srgb,var(--g-tag-type-color) 12%,transparent)}.g-tag--primary[data-v-b3c202e5]{--g-tag-type-color: var(--g-primary-color, #039be5)}.g-tag--success[data-v-b3c202e5]{--g-tag-type-color: var(--g-success-color, #50c189)}.g-tag--warning[data-v-b3c202e5]{--g-tag-type-color: var(--g-warning-color, #f78716)}.g-tag--danger[data-v-b3c202e5]{--g-tag-type-color: var(--g-danger-color, #e1594d)}.g-tag--default[data-v-b3c202e5]{--g-tag-type-color: var(--g-text-color, rgba(0, 0, 0, .88));--g-tag-solid-bg: var(--g-tag-default-color, #e8e8eb)}.g-tag--default.g-tag--solid[data-v-b3c202e5]{color:var(--g-text-color, rgba(0, 0, 0, .88));background:var(--g-tag-solid-bg)}.g-tag--default.g-tag--filled[data-v-b3c202e5]{color:var(--g-text-color, rgba(0, 0, 0, .88));background:var(--g-tag-default-color, #e8e8eb)}
@@ -0,0 +1,64 @@
1
+ type InputSize = 'large' | 'middle' | 'small';
2
+ type __VLS_Props = {
3
+ /** 绑定值,支持 v-model */
4
+ modelValue?: string | number;
5
+ /** 原生 input 类型(text / password / number / search 等) @default 'text' */
6
+ type?: string;
7
+ /** 尺寸 @default 'middle' */
8
+ size?: InputSize;
9
+ /** 禁用状态 */
10
+ disabled?: boolean;
11
+ /** 只读状态 */
12
+ readonly?: boolean;
13
+ /** 有内容且悬停时显示一键清空按钮 */
14
+ clearable?: boolean;
15
+ /** 显示字数统计(建议配合 maxlength) */
16
+ showCount?: boolean;
17
+ /** 原生 maxlength,最大输入长度 */
18
+ maxlength?: string | number;
19
+ /** 宽度撑满父容器 */
20
+ block?: boolean;
21
+ };
22
+ declare function __VLS_template(): {
23
+ attrs: Partial<{}>;
24
+ slots: {
25
+ prefix?(_: {}): any;
26
+ suffix?(_: {}): any;
27
+ };
28
+ refs: {
29
+ inputRef: HTMLInputElement;
30
+ };
31
+ rootEl: any;
32
+ };
33
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
34
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
35
+ /** 手动聚焦内部 input */
36
+ focus: () => void | undefined;
37
+ /** 手动失焦内部 input */
38
+ blur: () => void | undefined;
39
+ /** 全选内部文本 */
40
+ select: () => void | undefined;
41
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
42
+ input: (value: string) => any;
43
+ clear: () => any;
44
+ blur: (event: FocusEvent) => any;
45
+ change: (value: string) => any;
46
+ focus: (event: FocusEvent) => any;
47
+ "update:modelValue": (value: string) => any;
48
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
49
+ onInput?: ((value: string) => any) | undefined;
50
+ onClear?: (() => any) | undefined;
51
+ onBlur?: ((event: FocusEvent) => any) | undefined;
52
+ onChange?: ((value: string) => any) | undefined;
53
+ onFocus?: ((event: FocusEvent) => any) | undefined;
54
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
55
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
56
+ inputRef: HTMLInputElement;
57
+ }, any>;
58
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
59
+ export default _default;
60
+ type __VLS_WithTemplateSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
@@ -44,9 +44,9 @@ interface Props {
44
44
  /** tag 是否可关闭 */
45
45
  closable?: boolean;
46
46
  /** tag 类型 */
47
- tagType?: 'primary' | 'success' | 'info' | 'warning' | 'danger';
48
- /** tag 风格 */
49
- tagEffect?: 'light' | 'dark' | 'plain';
47
+ tagType?: 'primary' | 'success' | 'warning' | 'danger' | 'default';
48
+ /** tag 风格:filled 浅底色字 / solid 实底白字 */
49
+ tagVariant?: 'filled' | 'solid';
50
50
  /** 选中后是否清空输入框 */
51
51
  clearInputAfterSelect?: boolean;
52
52
  /** 是否允许回车通过精确 label 匹配添加 */
@@ -528,12 +528,10 @@ declare function __VLS_template(): {
528
528
  collapse: () => void;
529
529
  shouldLoadData: () => boolean;
530
530
  updateLeafState: () => void;
531
- setChecked: (value? /** 输入框是否可清空 */: boolean | string, deep?: boolean, recursion? /** tag 是否可关闭 */: boolean, passValue?: boolean) => void;
531
+ setChecked: (value?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
532
532
  getChildren: (forceInit?: boolean) => import('element-plus').TreeNodeData | import('element-plus').TreeNodeData[] | null;
533
533
  updateChildren: () => void;
534
- loadData: (callback: (data?: import('element-plus').TreeNodeData[]) => void, defaultProps
535
- /** 是否允许回车通过精确 label 匹配添加 */
536
- ? /** 是否允许回车通过精确 label 匹配添加 */: import('element-plus').TreeNodeLoadedDefaultProps) => void;
534
+ loadData: (callback: (data?: import('element-plus').TreeNodeData[]) => void, defaultProps?: import('element-plus').TreeNodeLoadedDefaultProps) => void;
537
535
  eachNode: (callback: (node: import('element-plus/es/components/tree/src/model/node.mjs').default) => void) => void;
538
536
  reInitChecked: () => void;
539
537
  };
@@ -1043,12 +1041,10 @@ declare function __VLS_template(): {
1043
1041
  collapse: () => void;
1044
1042
  shouldLoadData: () => boolean;
1045
1043
  updateLeafState: () => void;
1046
- setChecked: (value? /** 输入框是否可清空 */: boolean | string, deep?: boolean, recursion? /** tag 是否可关闭 */: boolean, passValue?: boolean) => void;
1044
+ setChecked: (value?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
1047
1045
  getChildren: (forceInit?: boolean) => import('element-plus').TreeNodeData | import('element-plus').TreeNodeData[] | null;
1048
1046
  updateChildren: () => void;
1049
- loadData: (callback: (data?: import('element-plus').TreeNodeData[]) => void, defaultProps
1050
- /** 是否允许回车通过精确 label 匹配添加 */
1051
- ? /** 是否允许回车通过精确 label 匹配添加 */: import('element-plus').TreeNodeLoadedDefaultProps) => void;
1047
+ loadData: (callback: (data?: import('element-plus').TreeNodeData[]) => void, defaultProps?: import('element-plus').TreeNodeLoadedDefaultProps) => void;
1052
1048
  eachNode: (callback: (node: import('element-plus/es/components/tree/src/model/node.mjs').default) => void) => void;
1053
1049
  reInitChecked: () => void;
1054
1050
  };
@@ -1140,15 +1136,15 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
1140
1136
  disabled: boolean;
1141
1137
  placeholder: string;
1142
1138
  modelValue: any[];
1139
+ clearable: boolean;
1140
+ closable: boolean;
1143
1141
  nodeKey: string;
1144
1142
  popperMaxHeight: number;
1145
1143
  popperZIndex: number;
1146
1144
  popperOffset: number;
1147
1145
  defaultExpandAll: boolean;
1148
- clearable: boolean;
1149
- closable: boolean;
1150
- tagType: "primary" | "success" | "info" | "warning" | "danger";
1151
- tagEffect: "light" | "dark" | "plain";
1146
+ tagType: "primary" | "success" | "warning" | "danger" | "default";
1147
+ tagVariant: "filled" | "solid";
1152
1148
  clearInputAfterSelect: boolean;
1153
1149
  enterToAdd: boolean;
1154
1150
  valueFormat: "value" | "object";
@@ -1597,12 +1593,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
1597
1593
  collapse: () => void;
1598
1594
  shouldLoadData: () => boolean;
1599
1595
  updateLeafState: () => void;
1600
- setChecked: (value? /** 输入框是否可清空 */: boolean | string, deep?: boolean, recursion? /** tag 是否可关闭 */: boolean, passValue?: boolean) => void;
1596
+ setChecked: (value?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
1601
1597
  getChildren: (forceInit?: boolean) => import('element-plus').TreeNodeData | import('element-plus').TreeNodeData[] | null;
1602
1598
  updateChildren: () => void;
1603
- loadData: (callback: (data?: import('element-plus').TreeNodeData[]) => void, defaultProps
1604
- /** 是否允许回车通过精确 label 匹配添加 */
1605
- ? /** 是否允许回车通过精确 label 匹配添加 */: import('element-plus').TreeNodeLoadedDefaultProps) => void;
1599
+ loadData: (callback: (data?: import('element-plus').TreeNodeData[]) => void, defaultProps?: import('element-plus').TreeNodeLoadedDefaultProps) => void;
1606
1600
  eachNode: (callback: (node: import('element-plus/es/components/tree/src/model/node.mjs').default) => void) => void;
1607
1601
  reInitChecked: () => void;
1608
1602
  };
@@ -2112,12 +2106,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
2112
2106
  collapse: () => void;
2113
2107
  shouldLoadData: () => boolean;
2114
2108
  updateLeafState: () => void;
2115
- setChecked: (value? /** 输入框是否可清空 */: boolean | string, deep?: boolean, recursion? /** tag 是否可关闭 */: boolean, passValue?: boolean) => void;
2109
+ setChecked: (value?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
2116
2110
  getChildren: (forceInit?: boolean) => import('element-plus').TreeNodeData | import('element-plus').TreeNodeData[] | null;
2117
2111
  updateChildren: () => void;
2118
- loadData: (callback: (data?: import('element-plus').TreeNodeData[]) => void, defaultProps
2119
- /** 是否允许回车通过精确 label 匹配添加 */
2120
- ? /** 是否允许回车通过精确 label 匹配添加 */: import('element-plus').TreeNodeLoadedDefaultProps) => void;
2112
+ loadData: (callback: (data?: import('element-plus').TreeNodeData[]) => void, defaultProps?: import('element-plus').TreeNodeLoadedDefaultProps) => void;
2121
2113
  eachNode: (callback: (node: import('element-plus/es/components/tree/src/model/node.mjs').default) => void) => void;
2122
2114
  reInitChecked: () => void;
2123
2115
  };
@@ -0,0 +1,38 @@
1
+ type TagType = 'primary' | 'success' | 'warning' | 'danger' | 'default';
2
+ type TagVariant = 'filled' | 'solid';
3
+ type __VLS_Props = {
4
+ /** 标签类型 @default 'default' */
5
+ type?: TagType;
6
+ /** 视觉风格:filled 浅底色字 / solid 实底白字 @default 'solid' */
7
+ variant?: TagVariant;
8
+ /** 是否可删除(展示关闭按钮) */
9
+ closable?: boolean;
10
+ /** 是否可拖拽(HTML5 原生拖拽) */
11
+ draggable?: boolean;
12
+ };
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: {
16
+ icon?(_: {}): any;
17
+ default?(_: {}): any;
18
+ };
19
+ refs: {};
20
+ rootEl: HTMLSpanElement;
21
+ };
22
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
24
+ close: (event: MouseEvent) => any;
25
+ dragend: (event: DragEvent) => any;
26
+ dragstart: (event: DragEvent) => any;
27
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
28
+ onClose?: ((event: MouseEvent) => any) | undefined;
29
+ onDragend?: ((event: DragEvent) => any) | undefined;
30
+ onDragstart?: ((event: DragEvent) => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
33
+ export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../GCount/index.js"),l=require("../GDialog/index.js"),n=require("../GTable/index.js"),o=require("../GVideo/index.js"),a=require("../GBubble/index.js"),G=require("../GProgress/index.js"),d=require("../GScreen/index.js"),i=require("../GPluginVideo/index.js"),s=require("../GPie3D/index.js"),c=require("../GRing/index.js"),f=require("../GInputTreeTag/index.js"),q=require("../GFuzzyText/index.js"),e=require("../GCard/index.js"),g=require("../GScroller/index.js"),T=require("../GShinyText/index.js"),S=require("../GSteps/index.js");require("../GButton/index.js");const b=require("../index-Q0Ej8RIj.js"),u={GCount:r.default,GDialog:l.default,GTable:n.default,GVideo:o.default,GBubble:a.default,GProgress:G.default,GScreen:d.default,GPluginVideo:i.default,GPie3D:s.default,GRing:c.default,GInputTreeTag:f.default,GFuzzyText:q.default,GCard:e.default,GScroller:g.default,GShinyText:T.default,GSteps:S.default,GButton:b.GButton},x=P=>{Object.keys(u).forEach(p=>{const t=u[p];P.component(t.name,t)})},y={install:x};exports.GCount=r.default;exports.GDialog=l.default;exports.GTable=n.default;exports.GVideo=o.default;exports.GBubble=a.default;exports.GProgress=G.default;exports.GScreen=d.default;exports.GPluginVideo=i.default;exports.GPie3D=s.default;exports.GRing=c.default;exports.GInputTreeTag=f.default;exports.GFuzzyText=q.default;exports.GCard=e.default;exports.cardPresets=e.cardPresets;exports.GScroller=g.default;exports.GShinyText=T.default;exports.GSteps=S.default;exports.GButton=b.GButton;exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../GCount/index.js"),l=require("../GDialog/index.js"),a=require("../GTable/index.js"),G=require("../GVideo/index.js"),n=require("../GBubble-Dph0YDkU.js"),o=require("../GProgress/index.js"),d=require("../GScreen/index.js"),i=require("../GPluginVideo/index.js"),s=require("../GPie3D/index.js"),f=require("../GRing/index.js"),c=require("../GInputTreeTag/index.js"),g=require("../GFuzzyText/index.js"),e=require("../GCard/index.js"),q=require("../GScroller/index.js"),T=require("../GShinyText/index.js"),b=require("../GSteps/index.js"),S=require("../GButton/index.js"),p=require("../GInput/index.js"),P=require("../GTag/index.js"),u={GCount:r.default,GDialog:l.default,GTable:a.default,GVideo:G.default,GBubble:n.GBubble,GProgress:o.default,GScreen:d.default,GPluginVideo:i.default,GPie3D:s.default,GRing:f.default,GInputTreeTag:c.default,GFuzzyText:g.default,GCard:e.default,GScroller:q.default,GShinyText:T.default,GSteps:b.default,GButton:S.default,GInput:p.default,GTag:P.default},x=y=>{Object.keys(u).forEach(B=>{const t=u[B];y.component(t.name,t)})},z={install:x};exports.GCount=r.default;exports.GDialog=l.default;exports.GTable=a.default;exports.GVideo=G.default;exports.GBubble=n.GBubble;exports.GProgress=o.default;exports.GScreen=d.default;exports.GPluginVideo=i.default;exports.GPie3D=s.default;exports.GRing=f.default;exports.GInputTreeTag=c.default;exports.GFuzzyText=g.default;exports.GCard=e.default;exports.cardPresets=e.cardPresets;exports.GScroller=q.default;exports.GShinyText=T.default;exports.GSteps=b.default;exports.GButton=S.default;exports.GInput=p.default;exports.GTag=P.default;exports.default=z;