morghulis 2.0.22 → 2.0.24
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/morghulis.es.js +14 -14
- package/dist/morghulis.umd.js +1 -1
- package/dist/types/index.d.ts +4 -5
- package/package.json +1 -1
package/dist/morghulis.es.js
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
const
|
1
|
+
import { defineComponent as l, ref as c, createElementBlock as r, openBlock as a, Fragment as i, createElementVNode as o, toDisplayString as s } from "vue";
|
2
|
+
const m = { class: "my" }, p = { class: "card" }, u = /* @__PURE__ */ l({
|
3
3
|
__name: "MyComp",
|
4
4
|
props: {
|
5
5
|
msg: { type: String }
|
6
6
|
},
|
7
7
|
setup(t) {
|
8
|
-
const e =
|
9
|
-
return (
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
const e = c(0);
|
9
|
+
return (d, n) => (a(), r(i, null, [
|
10
|
+
o("h1", m, s(t.msg), 1),
|
11
|
+
o("div", p, [
|
12
|
+
o("button", {
|
13
13
|
type: "button",
|
14
|
-
onClick:
|
14
|
+
onClick: n[0] || (n[0] = (g) => e.value++)
|
15
15
|
}, "count is " + s(e.value), 1)
|
16
16
|
])
|
17
17
|
], 64));
|
18
18
|
}
|
19
|
-
})
|
20
|
-
|
21
|
-
|
22
|
-
}
|
23
|
-
|
19
|
+
}), y = {
|
20
|
+
install(t) {
|
21
|
+
console.log("[Morghulis] install called"), t.component("MyComp", u);
|
22
|
+
}
|
23
|
+
};
|
24
24
|
export {
|
25
25
|
u as MyComp,
|
26
|
-
|
26
|
+
y as default
|
27
27
|
};
|
package/dist/morghulis.umd.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.Morghulis={},t.Vue))})(this,function(t,e){"use strict";const l={class:"my"},c={class:"card"},o=e.defineComponent({__name:"MyComp",props:{msg:{type:String}},setup(n){const
|
1
|
+
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.Morghulis={},t.Vue))})(this,function(t,e){"use strict";const l={class:"my"},c={class:"card"},o=e.defineComponent({__name:"MyComp",props:{msg:{type:String}},setup(n){const s=e.ref(0);return(d,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h1",l,e.toDisplayString(n.msg),1),e.createElementVNode("div",c,[e.createElementVNode("button",{type:"button",onClick:i[0]||(i[0]=u=>s.value++)},"count is "+e.toDisplayString(s.value),1)])],64))}}),r={install(n){console.log("[Morghulis] install called"),n.component("MyComp",o)}};t.MyComp=o,t.default=r,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/types/index.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
import MyComp from './MyComp.vue';
|
2
2
|
import { App } from "vue";
|
3
|
-
declare
|
4
|
-
|
5
|
-
declare const _default: {
|
6
|
-
install: typeof install;
|
3
|
+
declare const Morghulis: {
|
4
|
+
install(app: App): void;
|
7
5
|
};
|
8
|
-
export
|
6
|
+
export { MyComp };
|
7
|
+
export default Morghulis;
|