ling-yun-custom-components 0.0.22 → 0.0.29
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.
- package/es/IconRenderer.mjs +18 -21
- package/lib/IconRenderer.js +1 -1
- package/package.json +4 -4
package/es/IconRenderer.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import {
|
|
3
|
-
import { ElIcon as
|
|
4
|
-
import { c as
|
|
5
|
-
const
|
|
1
|
+
import { w as c } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
+
import { createBlock as o, createCommentVNode as a, openBlock as t, unref as r, mergeProps as m, withCtx as i, resolveDynamicComponent as s } from "vue";
|
|
3
|
+
import { ElIcon as l } from "element-plus";
|
|
4
|
+
import { c as u } from "./chunks/global.DVwnOczb.js";
|
|
5
|
+
const f = /* @__PURE__ */ Object.assign({
|
|
6
6
|
name: "IconRenderer"
|
|
7
7
|
}, {
|
|
8
8
|
__name: "layout",
|
|
@@ -24,22 +24,19 @@ const N = /* @__PURE__ */ Object.assign({
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
setup(e) {
|
|
27
|
-
return (
|
|
28
|
-
|
|
29
|
-
e.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
_: 1
|
|
38
|
-
}, 16, ["size", "color"])) : s("", !0)
|
|
39
|
-
], 64));
|
|
27
|
+
return (n, p) => e.iconName ? (t(), o(r(l), m({
|
|
28
|
+
key: 0,
|
|
29
|
+
size: e.size,
|
|
30
|
+
color: e.color
|
|
31
|
+
}, n.$attrs), {
|
|
32
|
+
default: i(() => [
|
|
33
|
+
(t(), o(s(r(u)[e.iconName])))
|
|
34
|
+
]),
|
|
35
|
+
_: 1
|
|
36
|
+
}, 16, ["size", "color"])) : a("", !0);
|
|
40
37
|
}
|
|
41
|
-
}),
|
|
38
|
+
}), z = c(f);
|
|
42
39
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
z as IconRenderer,
|
|
41
|
+
z as default
|
|
45
42
|
};
|
package/lib/IconRenderer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./chunks/index.CkihWzK6.js"),e=require("vue"),c=require("element-plus"),l=require("./chunks/global.Cv8u--Cy.js"),u=Object.assign({name:"IconRenderer"},{__name:"layout",props:{iconName:{type:String,default:""},size:{type:Number,default:16},color:{type:String,default:""}},setup(t){return(n,a)=>t.iconName?(e.openBlock(),e.createBlock(e.unref(c.ElIcon),e.mergeProps({key:0,size:t.size,color:t.color},n.$attrs),{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l.components_exports)[t.iconName])))]),_:1},16,["size","color"])):e.createCommentVNode("",!0)}}),o=r.withInstall(u);exports.IconRenderer=o;exports.default=o;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ling-yun-custom-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"component library",
|
|
6
6
|
"ui framework",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"exports": {
|
|
32
32
|
".": {
|
|
33
|
-
"import": "./index.
|
|
33
|
+
"import": "./es/index.mjs",
|
|
34
34
|
"require": "./lib/index.js"
|
|
35
35
|
},
|
|
36
36
|
"./es": {
|
|
@@ -140,6 +140,7 @@
|
|
|
140
140
|
"element-plus": "^2.11.5",
|
|
141
141
|
"element-tree-line": "^0.2.1",
|
|
142
142
|
"js-cookie": "^3.0.5",
|
|
143
|
+
"ling-yun-methods": "^0.0.21",
|
|
143
144
|
"lodash.debounce": "^4.0.8",
|
|
144
145
|
"lottie-web": "^5.13.0",
|
|
145
146
|
"moment": "^2.30.1",
|
|
@@ -179,8 +180,7 @@
|
|
|
179
180
|
"typescript": "~5.9.3",
|
|
180
181
|
"vite": "^7.1.11",
|
|
181
182
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
182
|
-
"vue": "^3.5.22"
|
|
183
|
-
"ling-yun-methods": "0.0.18"
|
|
183
|
+
"vue": "^3.5.22"
|
|
184
184
|
},
|
|
185
185
|
"peerDependencies": {
|
|
186
186
|
"axios": "^1.8.2",
|