btt-ui 1.0.8 → 1.0.10
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/src/button/src/button.mjs +16 -14
- package/es/src/button/src/style/index.css +3 -2
- package/es/src/icon/src/icon.mjs +53 -51
- package/es/src/icon/src/icon2.mjs +63 -61
- package/es/src/icon/src/style/index.css +1 -1
- package/es/src/icon/src/svg/console.mjs +23 -0
- package/es/src/icon/src/svg/module.mjs +14 -0
- package/lib/src/button/src/button.js +1 -1
- package/lib/src/button/src/style/index.css +3 -2
- package/lib/src/icon/src/icon.js +1 -1
- package/lib/src/icon/src/icon2.js +1 -1
- package/lib/src/icon/src/style/index.css +1 -1
- package/lib/src/icon/src/svg/console.js +20 -0
- package/lib/src/icon/src/svg/module.js +11 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as a, computed as c, openBlock as n, createElementBlock as p, normalizeClass as
|
|
1
|
+
import { defineComponent as a, computed as c, openBlock as n, createElementBlock as p, normalizeClass as u, unref as o, normalizeStyle as r, createElementVNode as s, createBlock as m, createCommentVNode as y, renderSlot as b } from "vue";
|
|
2
2
|
import { Icon as f } from "../../icon/index.mjs";
|
|
3
3
|
import { createNamespace as k } from "../../../assets/ts/utils.mjs";
|
|
4
4
|
import "./style/index.css";
|
|
5
|
-
const B = ["disabled"], z = a({
|
|
5
|
+
const B = ["disabled"], h = { style: { height: "1em", overflow: "hidden" } }, z = a({
|
|
6
6
|
name: "k-button"
|
|
7
|
-
}),
|
|
7
|
+
}), w = a({
|
|
8
8
|
...z,
|
|
9
9
|
props: {
|
|
10
10
|
type: { default: "default" },
|
|
@@ -20,14 +20,14 @@ const B = ["disabled"], z = a({
|
|
|
20
20
|
textColor: {}
|
|
21
21
|
},
|
|
22
22
|
emits: [""],
|
|
23
|
-
setup(
|
|
24
|
-
const t =
|
|
23
|
+
setup(i) {
|
|
24
|
+
const t = i, { n: l } = k("button"), d = c(() => t.color ? {
|
|
25
25
|
"--k-button-bg-color": t.color,
|
|
26
26
|
"--k-button-text-color": "var(--k-color-white)",
|
|
27
27
|
"--k-button-border-color": t.color
|
|
28
28
|
} : {});
|
|
29
29
|
return (e, C) => (n(), p("button", {
|
|
30
|
-
class:
|
|
30
|
+
class: u([
|
|
31
31
|
o(l)(),
|
|
32
32
|
e.type && o(l)(`--${e.type}`),
|
|
33
33
|
e.size && o(l)(`--${e.size}`),
|
|
@@ -39,23 +39,25 @@ const B = ["disabled"], z = a({
|
|
|
39
39
|
]),
|
|
40
40
|
style: r({
|
|
41
41
|
color: e.color,
|
|
42
|
-
...
|
|
42
|
+
...d.value
|
|
43
43
|
}),
|
|
44
44
|
disabled: e.disabled,
|
|
45
45
|
type: "button"
|
|
46
46
|
}, [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
s("span", h, [
|
|
48
|
+
e.icon ? (n(), m(o(f), {
|
|
49
|
+
key: 0,
|
|
50
|
+
name: e.icon
|
|
51
|
+
}, null, 8, ["name"])) : y("", !0)
|
|
52
|
+
]),
|
|
53
|
+
s("span", {
|
|
52
54
|
style: r({ color: e.textColor })
|
|
53
55
|
}, [
|
|
54
|
-
|
|
56
|
+
b(e.$slots, "default")
|
|
55
57
|
], 4)
|
|
56
58
|
], 14, B));
|
|
57
59
|
}
|
|
58
60
|
});
|
|
59
61
|
export {
|
|
60
|
-
|
|
62
|
+
w as default
|
|
61
63
|
};
|
|
@@ -42,9 +42,9 @@ button, input, optgroup, select, textarea {
|
|
|
42
42
|
opacity: 0.9;
|
|
43
43
|
transition: all 0.3s;
|
|
44
44
|
border-radius: 5px;
|
|
45
|
-
}
|
|
46
|
-
.k-button + .k-button {
|
|
47
45
|
margin-left: 6px;
|
|
46
|
+
height: -moz-max-content;
|
|
47
|
+
height: max-content;
|
|
48
48
|
}
|
|
49
49
|
.k-button::before {
|
|
50
50
|
position: absolute;
|
|
@@ -188,6 +188,7 @@ button, input, optgroup, select, textarea {
|
|
|
188
188
|
color: var(--k-button-text-color);
|
|
189
189
|
border: 0 solid transparent;
|
|
190
190
|
background-color: transparent;
|
|
191
|
+
margin-left: unset;
|
|
191
192
|
}
|
|
192
193
|
.k-button.is-text:active::before {
|
|
193
194
|
opacity: 0;
|
package/es/src/icon/src/icon.mjs
CHANGED
|
@@ -13,58 +13,60 @@ import f from "./svg/change.mjs";
|
|
|
13
13
|
import a from "./svg/chongzhi.mjs";
|
|
14
14
|
import n from "./svg/circle-close.mjs";
|
|
15
15
|
import c from "./svg/close.mjs";
|
|
16
|
-
import h from "./svg/
|
|
17
|
-
import d from "./svg/
|
|
18
|
-
import u from "./svg/
|
|
19
|
-
import w from "./svg/
|
|
20
|
-
import y from "./svg/
|
|
21
|
-
import x from "./svg/
|
|
22
|
-
import k from "./svg/
|
|
23
|
-
import q from "./svg/
|
|
24
|
-
import j from "./svg/
|
|
25
|
-
import z from "./svg/
|
|
26
|
-
import O from "./svg/
|
|
27
|
-
import A from "./svg/
|
|
28
|
-
import E from "./svg/
|
|
29
|
-
import B from "./svg/
|
|
30
|
-
import C from "./svg/
|
|
31
|
-
import D from "./svg/
|
|
32
|
-
import F from "./svg/
|
|
33
|
-
import G from "./svg/
|
|
34
|
-
import H from "./svg/
|
|
35
|
-
import I from "./svg/
|
|
36
|
-
import J from "./svg/
|
|
37
|
-
import K from "./svg/
|
|
38
|
-
import L from "./svg/
|
|
39
|
-
import M from "./svg/
|
|
40
|
-
import N from "./svg/
|
|
41
|
-
import P from "./svg/
|
|
42
|
-
import Q from "./svg/
|
|
43
|
-
import R from "./svg/
|
|
44
|
-
import S from "./svg/
|
|
45
|
-
import T from "./svg/
|
|
46
|
-
import U from "./svg/
|
|
47
|
-
import V from "./svg/
|
|
48
|
-
import W from "./svg/
|
|
49
|
-
import X from "./svg/
|
|
50
|
-
import Y from "./svg/
|
|
51
|
-
import Z from "./svg/
|
|
52
|
-
import $ from "./svg/
|
|
53
|
-
import __ from "./svg/
|
|
54
|
-
import o_ from "./svg/
|
|
55
|
-
import g_ from "./svg/
|
|
56
|
-
import v_ from "./svg/
|
|
57
|
-
import r_ from "./svg/
|
|
58
|
-
import i_ from "./svg/
|
|
59
|
-
import s_ from "./svg/
|
|
60
|
-
import t_ from "./svg/
|
|
61
|
-
import m_ from "./svg/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
Object.
|
|
16
|
+
import h from "./svg/console.mjs";
|
|
17
|
+
import d from "./svg/delete.mjs";
|
|
18
|
+
import u from "./svg/detail.mjs";
|
|
19
|
+
import w from "./svg/dianhua.mjs";
|
|
20
|
+
import y from "./svg/disabled.mjs";
|
|
21
|
+
import x from "./svg/down.mjs";
|
|
22
|
+
import k from "./svg/download.mjs";
|
|
23
|
+
import q from "./svg/edit.mjs";
|
|
24
|
+
import j from "./svg/editor.mjs";
|
|
25
|
+
import z from "./svg/enable.mjs";
|
|
26
|
+
import O from "./svg/exit.mjs";
|
|
27
|
+
import A from "./svg/export.mjs";
|
|
28
|
+
import E from "./svg/file-open.mjs";
|
|
29
|
+
import B from "./svg/handle.mjs";
|
|
30
|
+
import C from "./svg/info.mjs";
|
|
31
|
+
import D from "./svg/lahei.mjs";
|
|
32
|
+
import F from "./svg/max.mjs";
|
|
33
|
+
import G from "./svg/measure.mjs";
|
|
34
|
+
import H from "./svg/min.mjs";
|
|
35
|
+
import I from "./svg/module.mjs";
|
|
36
|
+
import J from "./svg/msg.mjs";
|
|
37
|
+
import K from "./svg/nan.mjs";
|
|
38
|
+
import L from "./svg/no.mjs";
|
|
39
|
+
import M from "./svg/notice.mjs";
|
|
40
|
+
import N from "./svg/nv.mjs";
|
|
41
|
+
import P from "./svg/people.mjs";
|
|
42
|
+
import Q from "./svg/player.mjs";
|
|
43
|
+
import R from "./svg/plus.mjs";
|
|
44
|
+
import S from "./svg/preview.mjs";
|
|
45
|
+
import T from "./svg/print.mjs";
|
|
46
|
+
import U from "./svg/printmb.mjs";
|
|
47
|
+
import V from "./svg/publish.mjs";
|
|
48
|
+
import W from "./svg/qiye.mjs";
|
|
49
|
+
import X from "./svg/quxiao.mjs";
|
|
50
|
+
import Y from "./svg/record.mjs";
|
|
51
|
+
import Z from "./svg/refresh.mjs";
|
|
52
|
+
import $ from "./svg/reset.mjs";
|
|
53
|
+
import __ from "./svg/risk.mjs";
|
|
54
|
+
import o_ from "./svg/search.mjs";
|
|
55
|
+
import g_ from "./svg/set.mjs";
|
|
56
|
+
import v_ from "./svg/shenhe.mjs";
|
|
57
|
+
import r_ from "./svg/shenqing.mjs";
|
|
58
|
+
import i_ from "./svg/tongbu.mjs";
|
|
59
|
+
import s_ from "./svg/up.mjs";
|
|
60
|
+
import t_ from "./svg/upload.mjs";
|
|
61
|
+
import m_ from "./svg/urging.mjs";
|
|
62
|
+
import e_ from "./svg/yes.mjs";
|
|
63
|
+
import l_ from "./svg/yuyue.mjs";
|
|
64
|
+
const p_ = /* @__PURE__ */ Object.assign({ "./svg/alarm.svg": g, "./svg/approval.svg": v, "./svg/arrow-down.svg": r, "./svg/arrow-left.svg": i, "./svg/arrow-right.svg": s, "./svg/arrow-up.svg": t, "./svg/baocun.svg": m, "./svg/caogaoxiang.svg": e, "./svg/card.svg": l, "./svg/caret-right.svg": p, "./svg/chakan.svg": b, "./svg/change.svg": f, "./svg/chongzhi.svg": a, "./svg/circle-close.svg": n, "./svg/close.svg": c, "./svg/console.svg": h, "./svg/delete.svg": d, "./svg/detail.svg": u, "./svg/dianhua.svg": w, "./svg/disabled.svg": y, "./svg/down.svg": x, "./svg/download.svg": k, "./svg/edit.svg": q, "./svg/editor.svg": j, "./svg/enable.svg": z, "./svg/exit.svg": O, "./svg/export.svg": A, "./svg/file-open.svg": E, "./svg/handle.svg": B, "./svg/info.svg": C, "./svg/lahei.svg": D, "./svg/max.svg": F, "./svg/measure.svg": G, "./svg/min.svg": H, "./svg/module.svg": I, "./svg/msg.svg": J, "./svg/nan.svg": K, "./svg/no.svg": L, "./svg/notice.svg": M, "./svg/nv.svg": N, "./svg/people.svg": P, "./svg/player.svg": Q, "./svg/plus.svg": R, "./svg/preview.svg": S, "./svg/print.svg": T, "./svg/printmb.svg": U, "./svg/publish.svg": V, "./svg/qiye.svg": W, "./svg/quxiao.svg": X, "./svg/record.svg": Y, "./svg/refresh.svg": Z, "./svg/reset.svg": $, "./svg/risk.svg": __, "./svg/search.svg": o_, "./svg/set.svg": g_, "./svg/shenhe.svg": v_, "./svg/shenqing.svg": r_, "./svg/tongbu.svg": i_, "./svg/up.svg": s_, "./svg/upload.svg": t_, "./svg/urging.svg": m_, "./svg/yes.svg": e_, "./svg/yuyue.svg": l_ });
|
|
65
|
+
let b_ = new Array();
|
|
66
|
+
Object.keys(p_).forEach((_) => {
|
|
65
67
|
let o = _.split("/")[2].split(".")[0];
|
|
66
|
-
|
|
68
|
+
b_.push({ name: o, color: "#666666", size: 90 });
|
|
67
69
|
});
|
|
68
70
|
export {
|
|
69
|
-
|
|
71
|
+
p_ as svgs
|
|
70
72
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import l from "./svg/alarm.mjs";
|
|
2
2
|
import p from "./svg/approval.mjs";
|
|
3
3
|
import f from "./svg/arrow-down.mjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import b from "./svg/arrow-left.mjs";
|
|
5
|
+
import n from "./svg/arrow-right.mjs";
|
|
6
6
|
import a from "./svg/arrow-up.mjs";
|
|
7
7
|
import c from "./svg/baocun.mjs";
|
|
8
8
|
import u from "./svg/caogaoxiang.mjs";
|
|
@@ -13,59 +13,61 @@ import y from "./svg/change.mjs";
|
|
|
13
13
|
import z from "./svg/chongzhi.mjs";
|
|
14
14
|
import x from "./svg/circle-close.mjs";
|
|
15
15
|
import k from "./svg/close.mjs";
|
|
16
|
-
import q from "./svg/
|
|
17
|
-
import S from "./svg/
|
|
18
|
-
import B from "./svg/
|
|
19
|
-
import C from "./svg/
|
|
20
|
-
import E from "./svg/
|
|
21
|
-
import H from "./svg/
|
|
22
|
-
import L from "./svg/
|
|
23
|
-
import M from "./svg/
|
|
24
|
-
import N from "./svg/
|
|
25
|
-
import T from "./svg/
|
|
26
|
-
import U from "./svg/
|
|
27
|
-
import $ from "./svg/
|
|
28
|
-
import j from "./svg/
|
|
29
|
-
import I from "./svg/
|
|
30
|
-
import O from "./svg/
|
|
31
|
-
import V from "./svg/
|
|
32
|
-
import A from "./svg/
|
|
33
|
-
import D from "./svg/
|
|
34
|
-
import F from "./svg/
|
|
35
|
-
import G from "./svg/
|
|
36
|
-
import J from "./svg/
|
|
37
|
-
import K from "./svg/
|
|
38
|
-
import P from "./svg/
|
|
39
|
-
import Q from "./svg/
|
|
40
|
-
import R from "./svg/
|
|
41
|
-
import W from "./svg/
|
|
42
|
-
import X from "./svg/
|
|
43
|
-
import Y from "./svg/
|
|
44
|
-
import Z from "./svg/
|
|
45
|
-
import __ from "./svg/
|
|
46
|
-
import o_ from "./svg/
|
|
47
|
-
import g_ from "./svg/
|
|
48
|
-
import v_ from "./svg/
|
|
49
|
-
import r_ from "./svg/
|
|
50
|
-
import t_ from "./svg/
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import e_ from "./svg/
|
|
54
|
-
import m_ from "./svg/
|
|
55
|
-
import l_ from "./svg/
|
|
56
|
-
import p_ from "./svg/
|
|
57
|
-
import f_ from "./svg/
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import a_ from "./svg/
|
|
61
|
-
import c_ from "./svg/
|
|
62
|
-
import
|
|
16
|
+
import q from "./svg/console.mjs";
|
|
17
|
+
import S from "./svg/delete.mjs";
|
|
18
|
+
import B from "./svg/detail.mjs";
|
|
19
|
+
import C from "./svg/dianhua.mjs";
|
|
20
|
+
import E from "./svg/disabled.mjs";
|
|
21
|
+
import H from "./svg/down.mjs";
|
|
22
|
+
import L from "./svg/download.mjs";
|
|
23
|
+
import M from "./svg/edit.mjs";
|
|
24
|
+
import N from "./svg/editor.mjs";
|
|
25
|
+
import T from "./svg/enable.mjs";
|
|
26
|
+
import U from "./svg/exit.mjs";
|
|
27
|
+
import $ from "./svg/export.mjs";
|
|
28
|
+
import j from "./svg/file-open.mjs";
|
|
29
|
+
import I from "./svg/handle.mjs";
|
|
30
|
+
import O from "./svg/info.mjs";
|
|
31
|
+
import V from "./svg/lahei.mjs";
|
|
32
|
+
import A from "./svg/max.mjs";
|
|
33
|
+
import D from "./svg/measure.mjs";
|
|
34
|
+
import F from "./svg/min.mjs";
|
|
35
|
+
import G from "./svg/module.mjs";
|
|
36
|
+
import J from "./svg/msg.mjs";
|
|
37
|
+
import K from "./svg/nan.mjs";
|
|
38
|
+
import P from "./svg/no.mjs";
|
|
39
|
+
import Q from "./svg/notice.mjs";
|
|
40
|
+
import R from "./svg/nv.mjs";
|
|
41
|
+
import W from "./svg/people.mjs";
|
|
42
|
+
import X from "./svg/player.mjs";
|
|
43
|
+
import Y from "./svg/plus.mjs";
|
|
44
|
+
import Z from "./svg/preview.mjs";
|
|
45
|
+
import __ from "./svg/print.mjs";
|
|
46
|
+
import o_ from "./svg/printmb.mjs";
|
|
47
|
+
import g_ from "./svg/publish.mjs";
|
|
48
|
+
import v_ from "./svg/qiye.mjs";
|
|
49
|
+
import r_ from "./svg/quxiao.mjs";
|
|
50
|
+
import t_ from "./svg/record.mjs";
|
|
51
|
+
import s_ from "./svg/refresh.mjs";
|
|
52
|
+
import i_ from "./svg/reset.mjs";
|
|
53
|
+
import e_ from "./svg/risk.mjs";
|
|
54
|
+
import m_ from "./svg/search.mjs";
|
|
55
|
+
import l_ from "./svg/set.mjs";
|
|
56
|
+
import p_ from "./svg/shenhe.mjs";
|
|
57
|
+
import f_ from "./svg/shenqing.mjs";
|
|
58
|
+
import b_ from "./svg/tongbu.mjs";
|
|
59
|
+
import n_ from "./svg/up.mjs";
|
|
60
|
+
import a_ from "./svg/upload.mjs";
|
|
61
|
+
import c_ from "./svg/urging.mjs";
|
|
62
|
+
import u_ from "./svg/yes.mjs";
|
|
63
|
+
import d_ from "./svg/yuyue.mjs";
|
|
64
|
+
import { defineComponent as v, computed as g, openBlock as h_, createElementBlock as w_, normalizeClass as y_, unref as z_, normalizeStyle as x_, createElementVNode as k_, renderSlot as q_ } from "vue";
|
|
63
65
|
import "./style/index.css";
|
|
64
|
-
import { isUndefined as
|
|
65
|
-
const
|
|
66
|
+
import { isUndefined as S_, addUnit as B_, createNamespace as C_ } from "../../../assets/ts/utils.mjs";
|
|
67
|
+
const E_ = ["innerHTML"], H_ = v({
|
|
66
68
|
name: "k-icon"
|
|
67
|
-
}),
|
|
68
|
-
...
|
|
69
|
+
}), Jo = v({
|
|
70
|
+
...H_,
|
|
69
71
|
props: {
|
|
70
72
|
name: {},
|
|
71
73
|
color: {},
|
|
@@ -73,19 +75,19 @@ const B_ = ["innerHTML"], C_ = v({
|
|
|
73
75
|
},
|
|
74
76
|
emits: [""],
|
|
75
77
|
setup(r) {
|
|
76
|
-
const t = /* @__PURE__ */ Object.assign({ "./svg/alarm.svg": l, "./svg/approval.svg": p, "./svg/arrow-down.svg": f, "./svg/arrow-left.svg":
|
|
77
|
-
fontSize:
|
|
78
|
+
const t = /* @__PURE__ */ Object.assign({ "./svg/alarm.svg": l, "./svg/approval.svg": p, "./svg/arrow-down.svg": f, "./svg/arrow-left.svg": b, "./svg/arrow-right.svg": n, "./svg/arrow-up.svg": a, "./svg/baocun.svg": c, "./svg/caogaoxiang.svg": u, "./svg/card.svg": d, "./svg/caret-right.svg": h, "./svg/chakan.svg": w, "./svg/change.svg": y, "./svg/chongzhi.svg": z, "./svg/circle-close.svg": x, "./svg/close.svg": k, "./svg/console.svg": q, "./svg/delete.svg": S, "./svg/detail.svg": B, "./svg/dianhua.svg": C, "./svg/disabled.svg": E, "./svg/down.svg": H, "./svg/download.svg": L, "./svg/edit.svg": M, "./svg/editor.svg": N, "./svg/enable.svg": T, "./svg/exit.svg": U, "./svg/export.svg": $, "./svg/file-open.svg": j, "./svg/handle.svg": I, "./svg/info.svg": O, "./svg/lahei.svg": V, "./svg/max.svg": A, "./svg/measure.svg": D, "./svg/min.svg": F, "./svg/module.svg": G, "./svg/msg.svg": J, "./svg/nan.svg": K, "./svg/no.svg": P, "./svg/notice.svg": Q, "./svg/nv.svg": R, "./svg/people.svg": W, "./svg/player.svg": X, "./svg/plus.svg": Y, "./svg/preview.svg": Z, "./svg/print.svg": __, "./svg/printmb.svg": o_, "./svg/publish.svg": g_, "./svg/qiye.svg": v_, "./svg/quxiao.svg": r_, "./svg/record.svg": t_, "./svg/refresh.svg": s_, "./svg/reset.svg": i_, "./svg/risk.svg": e_, "./svg/search.svg": m_, "./svg/set.svg": l_, "./svg/shenhe.svg": p_, "./svg/shenqing.svg": f_, "./svg/tongbu.svg": b_, "./svg/up.svg": n_, "./svg/upload.svg": a_, "./svg/urging.svg": c_, "./svg/yes.svg": u_, "./svg/yuyue.svg": d_ }), { n: s } = C_("icon"), _ = r, i = (o) => o ? t[`./svg/${o}.svg`] : "", e = g(() => i(_.name)), m = g(() => !_.size && !_.color ? {} : {
|
|
79
|
+
fontSize: S_(_.size) ? void 0 : B_(_.size),
|
|
78
80
|
"--color": _.color
|
|
79
81
|
});
|
|
80
|
-
return (o,
|
|
81
|
-
class:
|
|
82
|
-
style:
|
|
82
|
+
return (o, L_) => (h_(), w_("i", {
|
|
83
|
+
class: y_([z_(s)()]),
|
|
84
|
+
style: x_(m.value)
|
|
83
85
|
}, [
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
k_("use", { innerHTML: e.value }, null, 8, E_),
|
|
87
|
+
q_(o.$slots, "default")
|
|
86
88
|
], 6));
|
|
87
89
|
}
|
|
88
90
|
});
|
|
89
91
|
export {
|
|
90
|
-
|
|
92
|
+
Jo as default
|
|
91
93
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const n = `<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Frame 11132" clip-path="url(#clip0_64_4271)">
|
|
3
|
+
<g id="Group 48097476">
|
|
4
|
+
<g id="Vector">
|
|
5
|
+
<path d="M20.2544 4C21.2185 4.00002 22 4.78145 22 5.74562V16.585C22 17.5491 21.2185 18.3315 20.2544 18.3315H3.57765C2.61347 18.3315 1.83203 17.5492 1.83203 16.585V5.74562C1.83203 4.78144 2.61347 4 3.57765 4H20.2544ZM3.57765 5.74562V16.585H20.2544V5.74562H3.57765Z"/>
|
|
6
|
+
<path d="M9.52863 14.7861H7.58884V12.548H9.52863V14.7861Z"/>
|
|
7
|
+
<path d="M12.8861 20.2062H10.9463V17.7048H12.8861V20.2062Z"/>
|
|
8
|
+
<path d="M12.886 14.7865H10.9462V9.19066H12.886V14.7865Z"/>
|
|
9
|
+
<path d="M16.2433 14.7864H14.3035V6.95244H16.2433V14.7864Z"/>
|
|
10
|
+
<path d="M16.919 21.264H6.91313V19.3242H16.919V21.264Z"/>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
<defs>
|
|
15
|
+
<clipPath id="clip0_64_4271">
|
|
16
|
+
<rect width="24" height="24"/>
|
|
17
|
+
</clipPath>
|
|
18
|
+
</defs>
|
|
19
|
+
</svg>
|
|
20
|
+
`;
|
|
21
|
+
export {
|
|
22
|
+
n as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const t = `<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Frame" clip-path="url(#clip0_64_4279)">
|
|
3
|
+
<path id="Vector" d="M19.3195 15.0875L19.5444 15.2114C19.8284 15.3648 20 15.648 20 15.9549C20 16.2558 19.8284 16.539 19.5444 16.6984L11.9822 20.8761C11.6864 21.0413 11.3136 21.0413 11.0178 20.8761L3.45562 16.6925C3.1716 16.539 3 16.2558 3 15.949C3 15.648 3.1716 15.3648 3.45562 15.2055L3.68047 15.0816L11.497 19.4127L19.3195 15.0875ZM19.3195 11.6355L19.5444 11.7595C19.8284 11.9129 20 12.1961 20 12.503C20 12.8039 19.8284 13.0871 19.5444 13.2464L11.9822 17.4242C11.6864 17.5894 11.3136 17.5894 11.0178 17.4242L3.45562 13.2346C3.1716 13.0812 3 12.798 3 12.4911C3 12.1902 3.1716 11.907 3.45562 11.7477L3.68047 11.6237L11.497 15.9549L19.3195 11.6355ZM11.9763 4.12392L19.5385 8.30163C19.8225 8.45505 19.9941 8.73829 19.9941 9.04512C19.9941 9.34606 19.8225 9.6293 19.5385 9.78862L11.9763 13.9663C11.6805 14.1316 11.3077 14.1316 11.0118 13.9663L3.45562 9.78271C3.1716 9.6293 3 9.34606 3 9.03922C3 8.73829 3.1716 8.45505 3.45562 8.29573L11.0118 4.12392C11.3136 3.95869 11.6805 3.95869 11.9763 4.12392Z"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="clip0_64_4279">
|
|
7
|
+
<rect width="24" height="24"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
</defs>
|
|
10
|
+
</svg>
|
|
11
|
+
`;
|
|
12
|
+
export {
|
|
13
|
+
t as default
|
|
14
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../icon/index.js"),i=require("../../../assets/ts/utils.js");require("./style/index.css");const a=["disabled"],u=e.defineComponent({name:"k-button"}),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../icon/index.js"),i=require("../../../assets/ts/utils.js");require("./style/index.css");const a=["disabled"],u={style:{height:"1em",overflow:"hidden"}},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}=i.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"},[e.createElementVNode("span",u,[o.icon?(e.openBlock(),e.createBlock(e.unref(r.Icon),{key:0,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,a))}});exports.default=d;
|
|
@@ -42,9 +42,9 @@ button, input, optgroup, select, textarea {
|
|
|
42
42
|
opacity: 0.9;
|
|
43
43
|
transition: all 0.3s;
|
|
44
44
|
border-radius: 5px;
|
|
45
|
-
}
|
|
46
|
-
.k-button + .k-button {
|
|
47
45
|
margin-left: 6px;
|
|
46
|
+
height: -moz-max-content;
|
|
47
|
+
height: max-content;
|
|
48
48
|
}
|
|
49
49
|
.k-button::before {
|
|
50
50
|
position: absolute;
|
|
@@ -188,6 +188,7 @@ button, input, optgroup, select, textarea {
|
|
|
188
188
|
color: var(--k-button-text-color);
|
|
189
189
|
border: 0 solid transparent;
|
|
190
190
|
background-color: transparent;
|
|
191
|
+
margin-left: unset;
|
|
191
192
|
}
|
|
192
193
|
.k-button.is-text:active::before {
|
|
193
194
|
opacity: 0;
|
package/lib/src/icon/src/icon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./svg/alarm.js"),v=require("./svg/approval.js"),t=require("./svg/arrow-down.js"),u=require("./svg/arrow-left.js"),a=require("./svg/arrow-right.js"),o=require("./svg/arrow-up.js"),n=require("./svg/baocun.js"),i=require("./svg/caogaoxiang.js"),l=require("./svg/card.js"),c=require("./svg/caret-right.js"),d=require("./svg/chakan.js"),f=require("./svg/change.js"),q=require("./svg/chongzhi.js"),j=require("./svg/circle-close.js"),p=require("./svg/close.js"),h=require("./svg/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./svg/alarm.js"),v=require("./svg/approval.js"),t=require("./svg/arrow-down.js"),u=require("./svg/arrow-left.js"),a=require("./svg/arrow-right.js"),o=require("./svg/arrow-up.js"),n=require("./svg/baocun.js"),i=require("./svg/caogaoxiang.js"),l=require("./svg/card.js"),c=require("./svg/caret-right.js"),d=require("./svg/chakan.js"),f=require("./svg/change.js"),q=require("./svg/chongzhi.js"),j=require("./svg/circle-close.js"),p=require("./svg/close.js"),h=require("./svg/console.js"),w=require("./svg/delete.js"),m=require("./svg/detail.js"),b=require("./svg/dianhua.js"),y=require("./svg/disabled.js"),x=require("./svg/down.js"),k=require("./svg/download.js"),z=require("./svg/edit.js"),O=require("./svg/editor.js"),_=require("./svg/enable.js"),M=require("./svg/exit.js"),R=require("./svg/export.js"),S=require("./svg/file-open.js"),A=require("./svg/handle.js"),C=require("./svg/info.js"),D=require("./svg/lahei.js"),E=require("./svg/max.js"),L=require("./svg/measure.js"),P=require("./svg/min.js"),T=require("./svg/module.js"),U=require("./svg/msg.js"),$=require("./svg/nan.js"),B=require("./svg/no.js"),F=require("./svg/notice.js"),G=require("./svg/nv.js"),H=require("./svg/people.js"),I=require("./svg/player.js"),J=require("./svg/plus.js"),K=require("./svg/preview.js"),N=require("./svg/print.js"),Q=require("./svg/printmb.js"),V=require("./svg/publish.js"),W=require("./svg/qiye.js"),X=require("./svg/quxiao.js"),Y=require("./svg/record.js"),Z=require("./svg/refresh.js"),ss=require("./svg/reset.js"),es=require("./svg/risk.js"),gs=require("./svg/search.js"),rs=require("./svg/set.js"),vs=require("./svg/shenhe.js"),ts=require("./svg/shenqing.js"),us=require("./svg/tongbu.js"),as=require("./svg/up.js"),os=require("./svg/upload.js"),ns=require("./svg/urging.js"),is=require("./svg/yes.js"),ls=require("./svg/yuyue.js"),s=Object.assign({"./svg/alarm.svg":r.default,"./svg/approval.svg":v.default,"./svg/arrow-down.svg":t.default,"./svg/arrow-left.svg":u.default,"./svg/arrow-right.svg":a.default,"./svg/arrow-up.svg":o.default,"./svg/baocun.svg":n.default,"./svg/caogaoxiang.svg":i.default,"./svg/card.svg":l.default,"./svg/caret-right.svg":c.default,"./svg/chakan.svg":d.default,"./svg/change.svg":f.default,"./svg/chongzhi.svg":q.default,"./svg/circle-close.svg":j.default,"./svg/close.svg":p.default,"./svg/console.svg":h.default,"./svg/delete.svg":w.default,"./svg/detail.svg":m.default,"./svg/dianhua.svg":b.default,"./svg/disabled.svg":y.default,"./svg/down.svg":x.default,"./svg/download.svg":k.default,"./svg/edit.svg":z.default,"./svg/editor.svg":O.default,"./svg/enable.svg":_.default,"./svg/exit.svg":M.default,"./svg/export.svg":R.default,"./svg/file-open.svg":S.default,"./svg/handle.svg":A.default,"./svg/info.svg":C.default,"./svg/lahei.svg":D.default,"./svg/max.svg":E.default,"./svg/measure.svg":L.default,"./svg/min.svg":P.default,"./svg/module.svg":T.default,"./svg/msg.svg":U.default,"./svg/nan.svg":$.default,"./svg/no.svg":B.default,"./svg/notice.svg":F.default,"./svg/nv.svg":G.default,"./svg/people.svg":H.default,"./svg/player.svg":I.default,"./svg/plus.svg":J.default,"./svg/preview.svg":K.default,"./svg/print.svg":N.default,"./svg/printmb.svg":Q.default,"./svg/publish.svg":V.default,"./svg/qiye.svg":W.default,"./svg/quxiao.svg":X.default,"./svg/record.svg":Y.default,"./svg/refresh.svg":Z.default,"./svg/reset.svg":ss.default,"./svg/risk.svg":es.default,"./svg/search.svg":gs.default,"./svg/set.svg":rs.default,"./svg/shenhe.svg":vs.default,"./svg/shenqing.svg":ts.default,"./svg/tongbu.svg":us.default,"./svg/up.svg":as.default,"./svg/upload.svg":os.default,"./svg/urging.svg":ns.default,"./svg/yes.svg":is.default,"./svg/yuyue.svg":ls.default});let cs=new Array;Object.keys(s).forEach(e=>{let g=e.split("/")[2].split(".")[0];cs.push({name:g,color:"#666666",size:90})});exports.svgs=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./svg/alarm.js"),l=require("./svg/approval.js"),c=require("./svg/arrow-down.js"),d=require("./svg/arrow-left.js"),f=require("./svg/arrow-right.js"),q=require("./svg/arrow-up.js"),j=require("./svg/baocun.js"),p=require("./svg/caogaoxiang.js"),h=require("./svg/card.js"),m=require("./svg/caret-right.js"),w=require("./svg/chakan.js"),b=require("./svg/change.js"),y=require("./svg/chongzhi.js"),x=require("./svg/circle-close.js"),_=require("./svg/close.js"),z=require("./svg/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./svg/alarm.js"),l=require("./svg/approval.js"),c=require("./svg/arrow-down.js"),d=require("./svg/arrow-left.js"),f=require("./svg/arrow-right.js"),q=require("./svg/arrow-up.js"),j=require("./svg/baocun.js"),p=require("./svg/caogaoxiang.js"),h=require("./svg/card.js"),m=require("./svg/caret-right.js"),w=require("./svg/chakan.js"),b=require("./svg/change.js"),y=require("./svg/chongzhi.js"),x=require("./svg/circle-close.js"),_=require("./svg/close.js"),z=require("./svg/console.js"),k=require("./svg/delete.js"),S=require("./svg/detail.js"),C=require("./svg/dianhua.js"),M=require("./svg/disabled.js"),L=require("./svg/down.js"),O=require("./svg/download.js"),T=require("./svg/edit.js"),U=require("./svg/editor.js"),$=require("./svg/enable.js"),B=require("./svg/exit.js"),E=require("./svg/export.js"),H=require("./svg/file-open.js"),N=require("./svg/handle.js"),R=require("./svg/info.js"),D=require("./svg/lahei.js"),I=require("./svg/max.js"),P=require("./svg/measure.js"),V=require("./svg/min.js"),A=require("./svg/module.js"),F=require("./svg/msg.js"),G=require("./svg/nan.js"),J=require("./svg/no.js"),K=require("./svg/notice.js"),Q=require("./svg/nv.js"),W=require("./svg/people.js"),X=require("./svg/player.js"),Y=require("./svg/plus.js"),Z=require("./svg/preview.js"),ss=require("./svg/print.js"),es=require("./svg/printmb.js"),rs=require("./svg/publish.js"),gs=require("./svg/qiye.js"),ts=require("./svg/quxiao.js"),vs=require("./svg/record.js"),us=require("./svg/refresh.js"),os=require("./svg/reset.js"),ns=require("./svg/risk.js"),as=require("./svg/search.js"),is=require("./svg/set.js"),ls=require("./svg/shenhe.js"),cs=require("./svg/shenqing.js"),ds=require("./svg/tongbu.js"),fs=require("./svg/up.js"),qs=require("./svg/upload.js"),js=require("./svg/urging.js"),ps=require("./svg/yes.js"),hs=require("./svg/yuyue.js"),s=require("vue");require("./style/index.css");const g=require("../../../assets/ts/utils.js"),ms=["innerHTML"],ws=s.defineComponent({name:"k-icon"}),bs=s.defineComponent({...ws,props:{name:{},color:{},size:{}},emits:[""],setup(t){const v=Object.assign({"./svg/alarm.svg":i.default,"./svg/approval.svg":l.default,"./svg/arrow-down.svg":c.default,"./svg/arrow-left.svg":d.default,"./svg/arrow-right.svg":f.default,"./svg/arrow-up.svg":q.default,"./svg/baocun.svg":j.default,"./svg/caogaoxiang.svg":p.default,"./svg/card.svg":h.default,"./svg/caret-right.svg":m.default,"./svg/chakan.svg":w.default,"./svg/change.svg":b.default,"./svg/chongzhi.svg":y.default,"./svg/circle-close.svg":x.default,"./svg/close.svg":_.default,"./svg/console.svg":z.default,"./svg/delete.svg":k.default,"./svg/detail.svg":S.default,"./svg/dianhua.svg":C.default,"./svg/disabled.svg":M.default,"./svg/down.svg":L.default,"./svg/download.svg":O.default,"./svg/edit.svg":T.default,"./svg/editor.svg":U.default,"./svg/enable.svg":$.default,"./svg/exit.svg":B.default,"./svg/export.svg":E.default,"./svg/file-open.svg":H.default,"./svg/handle.svg":N.default,"./svg/info.svg":R.default,"./svg/lahei.svg":D.default,"./svg/max.svg":I.default,"./svg/measure.svg":P.default,"./svg/min.svg":V.default,"./svg/module.svg":A.default,"./svg/msg.svg":F.default,"./svg/nan.svg":G.default,"./svg/no.svg":J.default,"./svg/notice.svg":K.default,"./svg/nv.svg":Q.default,"./svg/people.svg":W.default,"./svg/player.svg":X.default,"./svg/plus.svg":Y.default,"./svg/preview.svg":Z.default,"./svg/print.svg":ss.default,"./svg/printmb.svg":es.default,"./svg/publish.svg":rs.default,"./svg/qiye.svg":gs.default,"./svg/quxiao.svg":ts.default,"./svg/record.svg":vs.default,"./svg/refresh.svg":us.default,"./svg/reset.svg":os.default,"./svg/risk.svg":ns.default,"./svg/search.svg":as.default,"./svg/set.svg":is.default,"./svg/shenhe.svg":ls.default,"./svg/shenqing.svg":cs.default,"./svg/tongbu.svg":ds.default,"./svg/up.svg":fs.default,"./svg/upload.svg":qs.default,"./svg/urging.svg":js.default,"./svg/yes.svg":ps.default,"./svg/yuyue.svg":hs.default}),{n:u}=g.createNamespace("icon"),e=t,o=r=>r?v[`./svg/${r}.svg`]:"",n=s.computed(()=>o(e.name)),a=s.computed(()=>!e.size&&!e.color?{}:{fontSize:g.isUndefined(e.size)?void 0:g.addUnit(e.size),"--color":e.color});return(r,ys)=>(s.openBlock(),s.createElementBlock("i",{class:s.normalizeClass([s.unref(u)()]),style:s.normalizeStyle(a.value)},[s.createElementVNode("use",{innerHTML:n.value},null,8,ms),s.renderSlot(r.$slots,"default")],6))}});exports.default=bs;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=`<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Frame 11132" clip-path="url(#clip0_64_4271)">
|
|
3
|
+
<g id="Group 48097476">
|
|
4
|
+
<g id="Vector">
|
|
5
|
+
<path d="M20.2544 4C21.2185 4.00002 22 4.78145 22 5.74562V16.585C22 17.5491 21.2185 18.3315 20.2544 18.3315H3.57765C2.61347 18.3315 1.83203 17.5492 1.83203 16.585V5.74562C1.83203 4.78144 2.61347 4 3.57765 4H20.2544ZM3.57765 5.74562V16.585H20.2544V5.74562H3.57765Z"/>
|
|
6
|
+
<path d="M9.52863 14.7861H7.58884V12.548H9.52863V14.7861Z"/>
|
|
7
|
+
<path d="M12.8861 20.2062H10.9463V17.7048H12.8861V20.2062Z"/>
|
|
8
|
+
<path d="M12.886 14.7865H10.9462V9.19066H12.886V14.7865Z"/>
|
|
9
|
+
<path d="M16.2433 14.7864H14.3035V6.95244H16.2433V14.7864Z"/>
|
|
10
|
+
<path d="M16.919 21.264H6.91313V19.3242H16.919V21.264Z"/>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
<defs>
|
|
15
|
+
<clipPath id="clip0_64_4271">
|
|
16
|
+
<rect width="24" height="24"/>
|
|
17
|
+
</clipPath>
|
|
18
|
+
</defs>
|
|
19
|
+
</svg>
|
|
20
|
+
`;exports.default=t;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=`<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Frame" clip-path="url(#clip0_64_4279)">
|
|
3
|
+
<path id="Vector" d="M19.3195 15.0875L19.5444 15.2114C19.8284 15.3648 20 15.648 20 15.9549C20 16.2558 19.8284 16.539 19.5444 16.6984L11.9822 20.8761C11.6864 21.0413 11.3136 21.0413 11.0178 20.8761L3.45562 16.6925C3.1716 16.539 3 16.2558 3 15.949C3 15.648 3.1716 15.3648 3.45562 15.2055L3.68047 15.0816L11.497 19.4127L19.3195 15.0875ZM19.3195 11.6355L19.5444 11.7595C19.8284 11.9129 20 12.1961 20 12.503C20 12.8039 19.8284 13.0871 19.5444 13.2464L11.9822 17.4242C11.6864 17.5894 11.3136 17.5894 11.0178 17.4242L3.45562 13.2346C3.1716 13.0812 3 12.798 3 12.4911C3 12.1902 3.1716 11.907 3.45562 11.7477L3.68047 11.6237L11.497 15.9549L19.3195 11.6355ZM11.9763 4.12392L19.5385 8.30163C19.8225 8.45505 19.9941 8.73829 19.9941 9.04512C19.9941 9.34606 19.8225 9.6293 19.5385 9.78862L11.9763 13.9663C11.6805 14.1316 11.3077 14.1316 11.0118 13.9663L3.45562 9.78271C3.1716 9.6293 3 9.34606 3 9.03922C3 8.73829 3.1716 8.45505 3.45562 8.29573L11.0118 4.12392C11.3136 3.95869 11.6805 3.95869 11.9763 4.12392Z"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="clip0_64_4279">
|
|
7
|
+
<rect width="24" height="24"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
</defs>
|
|
10
|
+
</svg>
|
|
11
|
+
`;exports.default=e;
|