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 n, openBlock as t, createElementBlock as a, normalizeClass as r, unref as o, normalizeStyle as s, createBlock as c, createCommentVNode as m, createElementVNode as i, renderSlot as d } from "vue";
2
- import { createNamespace as p } from "../../../assets/ts/utils.mjs";
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 u } from "../../icon/index.mjs";
5
- const f = n({
4
+ import { Icon as p } from "../../icon/index.mjs";
5
+ const f = a({
6
6
  name: "k-text-button"
7
- }), g = n({
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 } = p("text-button");
20
- return (e, k) => (t(), a("div", {
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: s({ color: e.color, background: e.bgColor })
23
+ style: n({ color: e.color, background: e.bgColor })
23
24
  }, [
24
- e.icon ? (t(), c(o(u), {
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
- ], 2)
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"),l=require("../../../assets/ts/utils.js");require("./style/index.css");const t=require("../../icon/index.js"),s=e.defineComponent({name:"k-text-button"}),r=e.defineComponent({...s,props:{size:{default:"small"},icon:{},color:{default:"#000000"},bgColor:{default:"none"},iconUrl:{},disabled:{type:Boolean}},emits:[""],setup(a){const{n}=l.createNamespace("text-button");return(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(n)(),o.size,o.disabled?"disable":""]),style:e.normalizeStyle({color:o.color,background:o.bgColor})},[o.icon?(e.openBlock(),e.createBlock(e.unref(t.Icon),{key:0,name:o.icon,color:o.color},null,8,["name","color"])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass([e.unref(n)("text")])},[e.renderSlot(o.$slots,"default")],2)],6))}});exports.default=r;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "btt-ui",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "files": [