vue-pancake-icons 2.2.8 → 2.3.0
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/dist/vue-pancake-icons.es.js +27 -11
- package/dist/vue-pancake-icons.umd.js +1 -1
- package/package.json +1 -1
- package/src/install.js +8 -5
@@ -1,20 +1,36 @@
|
|
1
|
-
const
|
2
|
-
const
|
3
|
-
for (const [t, c] of
|
4
|
-
|
5
|
-
return
|
6
|
-
},
|
1
|
+
const l = (o, e) => {
|
2
|
+
const n = o.__vccOpts || o;
|
3
|
+
for (const [t, c] of e)
|
4
|
+
n[t] = c;
|
5
|
+
return n;
|
6
|
+
}, p = {
|
7
7
|
name: "hello-world"
|
8
8
|
};
|
9
|
-
function
|
9
|
+
function _(o, e, n, t, c, d) {
|
10
10
|
return " Hello world ";
|
11
11
|
}
|
12
|
-
const
|
12
|
+
const a = /* @__PURE__ */ l(p, [["render", _]]), i = {
|
13
|
+
name: "icon-test"
|
14
|
+
};
|
15
|
+
function f(o, e, n, t, c, d) {
|
16
|
+
return " Icon test ";
|
17
|
+
}
|
18
|
+
const s = /* @__PURE__ */ l(i, [["render", f]]), u = {
|
19
|
+
IconTest: s,
|
20
|
+
HelloWorld: a
|
21
|
+
}, r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
22
|
+
__proto__: null,
|
23
|
+
default: u
|
24
|
+
}, Symbol.toStringTag, { value: "Module" })), m = {
|
13
25
|
install(o) {
|
14
|
-
|
26
|
+
for (let e in r) {
|
27
|
+
const n = r[e];
|
28
|
+
console.log(n, "dmmm"), o.component(n.name, n);
|
29
|
+
}
|
30
|
+
console.log(s, "IconTest"), o.component("icon-test", s), o.component("hello-world", a);
|
15
31
|
}
|
16
32
|
};
|
17
|
-
typeof window < "u" && window.Vue && window.Vue.use(
|
33
|
+
typeof window < "u" && window.Vue && window.Vue.use(m);
|
18
34
|
export {
|
19
|
-
|
35
|
+
m as default
|
20
36
|
};
|
@@ -1 +1 @@
|
|
1
|
-
(function(
|
1
|
+
(function(o,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(o=typeof globalThis<"u"?globalThis:o||self,o.VuePancakeIcons=t())})(this,function(){"use strict";const o=(e,c)=>{const n=e.__vccOpts||e;for(const[r,d]of c)n[r]=d;return n},t={name:"hello-world"};function p(e,c,n,r,d,_){return" Hello world "}const i=o(t,[["render",p]]),u={name:"icon-test"};function a(e,c,n,r,d,_){return" Icon test "}const s=o(u,[["render",a]]),l=Object.freeze(Object.defineProperty({__proto__:null,default:{IconTest:s,HelloWorld:i}},Symbol.toStringTag,{value:"Module"})),f={install(e){for(let c in l){const n=l[c];console.log(n,"dmmm"),e.component(n.name,n)}console.log(s,"IconTest"),e.component("icon-test",s),e.component("hello-world",i)}};return typeof window<"u"&&window.Vue&&window.Vue.use(f),f});
|
package/package.json
CHANGED
package/src/install.js
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
import * as components from "./components"
|
2
2
|
import HelloWorld from "./components/HelloWorld.vue"
|
3
|
+
import IconTest from "./components/IconTest.vue"
|
3
4
|
const VuePancakeIcons = {
|
4
5
|
install(Vue) {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
for (let props in components) {
|
7
|
+
const component = components[props]
|
8
|
+
console.log(component, "dmmm")
|
9
|
+
Vue.component(component.name, component)
|
10
|
+
}
|
11
|
+
console.log(IconTest, "IconTest")
|
12
|
+
Vue.component('icon-test', IconTest)
|
10
13
|
Vue.component('hello-world', HelloWorld)
|
11
14
|
}
|
12
15
|
}
|