@bcc-code/component-library-vue 0.9.11 → 0.9.12
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.
|
@@ -9640,12 +9640,13 @@ const SC = {
|
|
|
9640
9640
|
iconRight: { type: [String, Function, Object, Boolean] },
|
|
9641
9641
|
rounded: { type: Boolean },
|
|
9642
9642
|
clickable: { type: Boolean },
|
|
9643
|
-
text: {}
|
|
9643
|
+
text: {},
|
|
9644
|
+
truncate: { type: Boolean }
|
|
9644
9645
|
},
|
|
9645
9646
|
setup(t) {
|
|
9646
9647
|
const e = t, n = ye(() => {
|
|
9647
|
-
const { text: r, icon: i, iconRight: o, rounded: a,
|
|
9648
|
-
return
|
|
9648
|
+
const { text: r, icon: i, iconRight: o, rounded: a, truncate: s, ...l } = e;
|
|
9649
|
+
return l;
|
|
9649
9650
|
});
|
|
9650
9651
|
return (r, i) => (d(), y(Qa, c({
|
|
9651
9652
|
class: ["bcc-tag", { clickable: t.clickable }]
|
|
@@ -9657,9 +9658,13 @@ const SC = {
|
|
|
9657
9658
|
key: 0,
|
|
9658
9659
|
class: S(["bcc-badge-icon", { "order-1": t.iconRight === !0 }])
|
|
9659
9660
|
}, null, 8, ["class"])) : g("", !0),
|
|
9660
|
-
|
|
9661
|
-
|
|
9662
|
-
|
|
9661
|
+
k("span", {
|
|
9662
|
+
class: S({ truncate: t.truncate })
|
|
9663
|
+
}, [
|
|
9664
|
+
b(r.$slots, "default", {}, () => [
|
|
9665
|
+
le(D(t.text), 1)
|
|
9666
|
+
])
|
|
9667
|
+
], 2),
|
|
9663
9668
|
t.iconRight && typeof t.iconRight != "boolean" ? (d(), y(C(t.iconRight), {
|
|
9664
9669
|
key: 1,
|
|
9665
9670
|
class: "bcc-badge-icon"
|