hs-admin-ui 16.0.7 → 16.0.8

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.
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./bcIcon.vue_vue_type_script_setup_true_name_bcIcon_lang-BwEGGUoG.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bcIcon.vue_vue_type_script_setup_true_name_bcIcon_lang-B4FHqtSa.js");exports.default=e._sfc_main;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),d=["src"],y=e.defineComponent({__name:"bcIcon",props:{name:{type:String},size:{type:[Number,String],default:()=>14},color:{type:String}},setup(s){const t=s,i=["https","http","/src","/assets","data:image"],l=e.computed(()=>t==null?void 0:t.name),r=e.computed(()=>{var o;return(o=t==null?void 0:t.name)==null?void 0:o.startsWith("ele-")}),a=e.computed(()=>i.find(o=>{var n;return(n=t.name)==null?void 0:n.startsWith(o)})),c=e.computed(()=>`font-size: ${t.size}px;color: ${t.color};`),m=e.computed(()=>`width: ${t.size}px;height: ${t.size}px;display: inline-block;overflow: hidden;`),u=e.computed(()=>{const o=[];return["-webkit","-ms","-o","-moz"].forEach(p=>o.push(`${p}-filter: drop-shadow(${t.color} 30px 0);`)),`width: ${t.size}px;height: ${t.size}px;position: relative;left: -${t.size}px;${o.join("")}`});return(o,n)=>r.value?(e.openBlock(),e.createElementBlock("i",{key:0,class:"el-icon",style:e.normalizeStyle(c.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value)))],4)):a.value?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(m.value)},[e.createElementVNode("img",{src:l.value,style:e.normalizeStyle(u.value)},null,12,d)],4)):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(l.value),style:e.normalizeStyle(c.value)},null,6))}});exports._sfc_main=y;
@@ -0,0 +1,53 @@
1
+ import { defineComponent as d, computed as n, createElementBlock as c, openBlock as s, normalizeStyle as l, createBlock as g, resolveDynamicComponent as S, createElementVNode as f, normalizeClass as z } from "vue";
2
+ const I = ["src"], x = /* @__PURE__ */ d({
3
+ __name: "bcIcon",
4
+ props: {
5
+ // svg 图标组件名字
6
+ name: {
7
+ type: String
8
+ },
9
+ // svg 大小
10
+ size: {
11
+ type: [Number, String],
12
+ default: () => 14
13
+ },
14
+ // svg 颜色
15
+ color: {
16
+ type: String
17
+ }
18
+ },
19
+ setup(a) {
20
+ const e = a, m = ["https", "http", "/src", "/assets", "data:image"], i = n(() => e == null ? void 0 : e.name), u = n(() => {
21
+ var t;
22
+ return (t = e == null ? void 0 : e.name) == null ? void 0 : t.startsWith("ele-");
23
+ }), p = n(() => m.find((t) => {
24
+ var o;
25
+ return (o = e.name) == null ? void 0 : o.startsWith(t);
26
+ })), r = n(() => `font-size: ${e.size}px;color: ${e.color};`), h = n(() => `width: ${e.size}px;height: ${e.size}px;display: inline-block;overflow: hidden;`), y = n(() => {
27
+ const t = [];
28
+ return ["-webkit", "-ms", "-o", "-moz"].forEach((v) => t.push(`${v}-filter: drop-shadow(${e.color} 30px 0);`)), `width: ${e.size}px;height: ${e.size}px;position: relative;left: -${e.size}px;${t.join("")}`;
29
+ });
30
+ return (t, o) => u.value ? (s(), c("i", {
31
+ key: 0,
32
+ class: "el-icon",
33
+ style: l(r.value)
34
+ }, [
35
+ (s(), g(S(i.value)))
36
+ ], 4)) : p.value ? (s(), c("div", {
37
+ key: 1,
38
+ style: l(h.value)
39
+ }, [
40
+ f("img", {
41
+ src: i.value,
42
+ style: l(y.value)
43
+ }, null, 12, I)
44
+ ], 4)) : (s(), c("i", {
45
+ key: 2,
46
+ class: z(i.value),
47
+ style: l(r.value)
48
+ }, null, 6));
49
+ }
50
+ });
51
+ export {
52
+ x as _
53
+ };