btt-ui 1.0.6 → 1.0.7
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { createNamespace as
|
|
1
|
+
import { defineComponent as a, openBlock as t, createElementBlock as s, normalizeClass as r, unref as o, normalizeStyle as n, createBlock as c, createCommentVNode as m, createElementVNode as i, renderSlot as d } from "vue";
|
|
2
|
+
import { createNamespace as u } from "../../../assets/ts/utils.mjs";
|
|
3
3
|
import "./style/index.css";
|
|
4
|
-
import { Icon as
|
|
5
|
-
const f =
|
|
4
|
+
import { Icon as p } from "../../icon/index.mjs";
|
|
5
|
+
const f = a({
|
|
6
6
|
name: "k-text-button"
|
|
7
|
-
}), g =
|
|
7
|
+
}), g = a({
|
|
8
8
|
...f,
|
|
9
9
|
props: {
|
|
10
10
|
size: { default: "small" },
|
|
@@ -12,25 +12,27 @@ const f = n({
|
|
|
12
12
|
color: { default: "#000000" },
|
|
13
13
|
bgColor: { default: "none" },
|
|
14
14
|
iconUrl: {},
|
|
15
|
-
disabled: { type: Boolean }
|
|
15
|
+
disabled: { type: Boolean },
|
|
16
|
+
textColor: { default: "#000000" }
|
|
16
17
|
},
|
|
17
18
|
emits: [""],
|
|
18
19
|
setup(b) {
|
|
19
|
-
const { n: l } =
|
|
20
|
-
return (e,
|
|
20
|
+
const { n: l } = u("text-button");
|
|
21
|
+
return (e, C) => (t(), s("div", {
|
|
21
22
|
class: r([o(l)(), e.size, e.disabled ? "disable" : ""]),
|
|
22
|
-
style:
|
|
23
|
+
style: n({ color: e.color, background: e.bgColor })
|
|
23
24
|
}, [
|
|
24
|
-
e.icon ? (t(), c(o(
|
|
25
|
+
e.icon ? (t(), c(o(p), {
|
|
25
26
|
key: 0,
|
|
26
27
|
name: e.icon,
|
|
27
28
|
color: e.color
|
|
28
29
|
}, null, 8, ["name", "color"])) : m("", !0),
|
|
29
30
|
i("span", {
|
|
30
|
-
class: r([o(l)("text")])
|
|
31
|
+
class: r([o(l)("text")]),
|
|
32
|
+
style: n({ color: e.textColor })
|
|
31
33
|
}, [
|
|
32
34
|
d(e.$slots, "default")
|
|
33
|
-
],
|
|
35
|
+
], 6)
|
|
34
36
|
], 6));
|
|
35
37
|
}
|
|
36
38
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../../assets/ts/utils.js");require("./style/index.css");const n=require("../../icon/index.js"),r=e.defineComponent({name:"k-text-button"}),s=e.defineComponent({...r,props:{size:{default:"small"},icon:{},color:{default:"#000000"},bgColor:{default:"none"},iconUrl:{},disabled:{type:Boolean},textColor:{default:"#000000"}},emits:[""],setup(a){const{n:l}=t.createNamespace("text-button");return(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(l)(),o.size,o.disabled?"disable":""]),style:e.normalizeStyle({color:o.color,background:o.bgColor})},[o.icon?(e.openBlock(),e.createBlock(e.unref(n.Icon),{key:0,name:o.icon,color:o.color},null,8,["name","color"])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass([e.unref(l)("text")]),style:e.normalizeStyle({color:o.textColor})},[e.renderSlot(o.$slots,"default")],6)],6))}});exports.default=s;
|