|
|
@@ -1,6 +1,6 @@
|
|
|
-import { openBlock as o, createBlock as t, resolveDynamicComponent as a, normalizeClass as n, normalizeStyle as r } from "vue";
|
|
|
-import { l } from "./index2.js";
|
|
|
-const c = {
|
|
|
+import { ref as c, watch as n, openBlock as l, createBlock as s, resolveDynamicComponent as m, normalizeClass as i, normalizeStyle as u } from "vue";
|
|
|
+import { l as f } from "./index2.js";
|
|
|
+const p = {
|
|
|
__name: "SIcon",
|
|
|
props: {
|
|
|
name: {
|
|
|
@@ -13,16 +13,24 @@ const c = {
|
|
|
},
|
|
|
color: {
|
|
|
type: String,
|
|
|
- default: window.$theme.color
|
|
|
+ default: ""
|
|
|
}
|
|
|
},
|
|
|
setup(e) {
|
|
|
- return (s, m) => (o(), t(a(e.name), {
|
|
|
- class: n(e.name),
|
|
|
- style: r({ fontSize: e.size + "px", color: e.color })
|
|
|
+ var o;
|
|
|
+ const a = e, t = c(((o = window.$theme) == null ? void 0 : o.color) || "");
|
|
|
+ return n(
|
|
|
+ () => a.color,
|
|
|
+ (r) => {
|
|
|
+ t.value = r;
|
|
|
+ },
|
|
|
+ { immediate: !0 }
|
|
|
+ ), (r, d) => (l(), s(m(e.name), {
|
|
|
+ class: i(e.name),
|
|
|
+ style: u({ fontSize: e.size + "px", color: t.value })
|
|
|
}, null, 8, ["class", "style"]));
|
|
|
}
|
|
|
-}, f = /* @__PURE__ */ l(c, [["__scopeId", "data-v-a031aafb"]]);
|
|
|
+}, z = /* @__PURE__ */ f(p, [["__scopeId", "data-v-4888dff0"]]);
|
|
|
export {
|
|
|
- f as default
|
|
|
+ z as default
|
|
|
};
|