morghulis 3.0.0 → 3.0.2
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 +22 -14
- package/dist/morghulis.es.js.map +1 -1
- package/dist/morghulis.umd.js +1 -1
- package/dist/morghulis.umd.js.map +1 -1
- package/dist/{index.d.ts → types/index.d.ts} +1 -1
- package/package.json +5 -3
- /package/dist/{MButton.vue.d.ts → types/components/button/MButton.vue.d.ts} +0 -0
- /package/dist/{types.d.ts → types/types.d.ts} +0 -0
package/dist/morghulis.es.js
CHANGED
@@ -1,24 +1,32 @@
|
|
1
|
-
import { defineComponent as s,
|
2
|
-
const
|
1
|
+
import { defineComponent as s, resolveComponent as o, createBlock as p, openBlock as a, withCtx as n, createVNode as _, createTextVNode as l, toDisplayString as i } from "vue";
|
2
|
+
const u = /* @__PURE__ */ s({
|
3
3
|
__name: "MButton",
|
4
4
|
props: {
|
5
5
|
text: { default: "text" }
|
6
6
|
},
|
7
|
-
setup(
|
8
|
-
return (
|
9
|
-
|
10
|
-
|
11
|
-
n(
|
12
|
-
|
13
|
-
|
7
|
+
setup(t) {
|
8
|
+
return (e, m) => {
|
9
|
+
const r = o("el-text"), c = o("el-button");
|
10
|
+
return a(), p(c, { type: "success" }, {
|
11
|
+
default: n(() => [
|
12
|
+
_(r, { type: "primary" }, {
|
13
|
+
default: n(() => [
|
14
|
+
l(i(e.text), 1)
|
15
|
+
]),
|
16
|
+
_: 1
|
17
|
+
})
|
18
|
+
]),
|
19
|
+
_: 1
|
20
|
+
});
|
21
|
+
};
|
14
22
|
}
|
15
|
-
}),
|
16
|
-
install(
|
17
|
-
|
23
|
+
}), x = (t) => (t = Object.assign({ baseURL: "/api/", minioURL: "/dfs/" }, t || {}), {
|
24
|
+
install(e) {
|
25
|
+
e.provide("options", t), e.component("MButton", u);
|
18
26
|
}
|
19
27
|
});
|
20
28
|
export {
|
21
|
-
|
22
|
-
|
29
|
+
u as MButton,
|
30
|
+
x as createMorghulis
|
23
31
|
};
|
24
32
|
//# sourceMappingURL=morghulis.es.js.map
|
package/dist/morghulis.es.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"morghulis.es.js","sources":["../packages/index.ts"],"sourcesContent":["import {App} from \"vue\";\nimport MButton from \"./MButton.vue\";\nimport './style.css'\nimport type {MorghulisOptions} from \"./types\";\n\ndeclare module \"vue\" {\n interface GlobalComponents {\n MButton: typeof MButton;\n }\n}\n\
|
1
|
+
{"version":3,"file":"morghulis.es.js","sources":["../packages/index.ts"],"sourcesContent":["import {App} from \"vue\";\nimport MButton from \"./components/button/MButton.vue\";\nimport './style.css'\nimport type {MorghulisOptions} from \"./types\";\n\ndeclare module \"vue\" {\n interface GlobalComponents {\n MButton: typeof MButton;\n }\n}\n\nexport const createMorghulis = (options?: MorghulisOptions) => {\n options = Object.assign({baseURL: '/api/', minioURL: '/dfs/'}, options || {})\n return {\n install(Vue: App) {\n Vue.provide('options', options)\n Vue.component('MButton', MButton)\n }\n }\n}\n\nexport {MButton}"],"names":["createMorghulis","options","Vue","MButton"],"mappings":";;;;;;;;;;;;;;;;;;;;;;IAWaA,IAAkB,CAACC,OAClBA,IAAA,OAAO,OAAO,EAAC,SAAS,SAAS,UAAU,QAAO,GAAGA,KAAW,EAAE,GACrE;AAAA,EACH,QAAQC,GAAU;AACV,IAAAA,EAAA,QAAQ,WAAWD,CAAO,GAC1BC,EAAA,UAAU,WAAWC,CAAO;AAAA,EAAA;AAExC;"}
|
package/dist/morghulis.umd.js
CHANGED
@@ -1,3 +1,3 @@
|
|
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";var i=document.createElement("style");i.textContent=`.m-button{color:red}
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(i);const r=
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(i);const r=e.defineComponent({__name:"MButton",props:{text:{default:"text"}},setup(n){return(o,l)=>{const c=e.resolveComponent("el-text"),d=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(d,{type:"success"},{default:e.withCtx(()=>[e.createVNode(c,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.text),1)]),_:1})]),_:1})}}}),s=n=>(n=Object.assign({baseURL:"/api/",minioURL:"/dfs/"},n||{}),{install(o){o.provide("options",n),o.component("MButton",r)}});t.MButton=r,t.createMorghulis=s,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
3
3
|
//# sourceMappingURL=morghulis.umd.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"morghulis.umd.js","sources":["../packages/index.ts"],"sourcesContent":["import {App} from \"vue\";\nimport MButton from \"./MButton.vue\";\nimport './style.css'\nimport type {MorghulisOptions} from \"./types\";\n\ndeclare module \"vue\" {\n interface GlobalComponents {\n MButton: typeof MButton;\n }\n}\n\
|
1
|
+
{"version":3,"file":"morghulis.umd.js","sources":["../packages/index.ts"],"sourcesContent":["import {App} from \"vue\";\nimport MButton from \"./components/button/MButton.vue\";\nimport './style.css'\nimport type {MorghulisOptions} from \"./types\";\n\ndeclare module \"vue\" {\n interface GlobalComponents {\n MButton: typeof MButton;\n }\n}\n\nexport const createMorghulis = (options?: MorghulisOptions) => {\n options = Object.assign({baseURL: '/api/', minioURL: '/dfs/'}, options || {})\n return {\n install(Vue: App) {\n Vue.provide('options', options)\n Vue.component('MButton', MButton)\n }\n }\n}\n\nexport {MButton}"],"names":["createMorghulis","options","Vue","MButton"],"mappings":";8ZAWaA,EAAmBC,IAClBA,EAAA,OAAO,OAAO,CAAC,QAAS,QAAS,SAAU,OAAO,EAAGA,GAAW,EAAE,EACrE,CACH,QAAQC,EAAU,CACVA,EAAA,QAAQ,UAAWD,CAAO,EAC1BC,EAAA,UAAU,UAAWC,CAAO,CAAA,CAExC"}
|
package/package.json
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"name": "morghulis",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.2",
|
4
4
|
"type": "module",
|
5
5
|
"files": [
|
6
6
|
"dist"
|
7
7
|
],
|
8
8
|
"main": "./dist/morghulis.umd.js",
|
9
9
|
"module": "./dist/morghulis.es.js",
|
10
|
-
"types": "./dist/index.d.ts",
|
10
|
+
"types": "./dist/types/index.d.ts",
|
11
11
|
"exports": {
|
12
12
|
".": {
|
13
|
-
"types": "./dist/index.d.ts",
|
13
|
+
"types": "./dist/types/index.d.ts",
|
14
14
|
"import": "./dist/morghulis.es.js",
|
15
15
|
"require": "./dist/morghulis.umd.js"
|
16
16
|
},
|
@@ -22,6 +22,7 @@
|
|
22
22
|
"preview": "vite preview"
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
+
"element-plus": "^2.9.8",
|
25
26
|
"vue": "^3.5.13"
|
26
27
|
},
|
27
28
|
"devDependencies": {
|
@@ -29,6 +30,7 @@
|
|
29
30
|
"@vitejs/plugin-vue": "^5.2.3",
|
30
31
|
"typescript": "~5.8.0",
|
31
32
|
"vite": "^6.2.4",
|
33
|
+
"vite-plugin-vue-devtools": "^7.7.2",
|
32
34
|
"vue-tsc": "^2.2.8"
|
33
35
|
}
|
34
36
|
}
|
File without changes
|
File without changes
|