my-element-plus-ext 1.0.0 → 1.0.1
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,37 @@
|
|
|
1
|
+
import { resolveComponent as a, createBlock as r, openBlock as c, withCtx as _, renderSlot as l, createTextVNode as u } from "vue";
|
|
2
|
+
const p = (e, o) => {
|
|
3
|
+
const t = e.__vccOpts || e;
|
|
4
|
+
for (const [n, s] of o)
|
|
5
|
+
t[n] = s;
|
|
6
|
+
return t;
|
|
7
|
+
}, m = /* @__PURE__ */ Object.assign({
|
|
8
|
+
name: "MyButton"
|
|
9
|
+
}, {
|
|
10
|
+
__name: "MyButton",
|
|
11
|
+
setup(e) {
|
|
12
|
+
return (o, t) => {
|
|
13
|
+
const n = a("el-button");
|
|
14
|
+
return c(), r(n, null, {
|
|
15
|
+
default: _(() => [
|
|
16
|
+
l(o.$slots, "default", {}, () => [
|
|
17
|
+
t[0] || (t[0] = u("默认按钮", -1))
|
|
18
|
+
], !0)
|
|
19
|
+
]),
|
|
20
|
+
_: 3
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}), f = /* @__PURE__ */ p(m, [["__scopeId", "data-v-519aae11"]]), d = [
|
|
25
|
+
f
|
|
26
|
+
], x = {
|
|
27
|
+
install(e) {
|
|
28
|
+
d.forEach((o) => {
|
|
29
|
+
const t = o.__name || o.name;
|
|
30
|
+
t && e.component(t, o);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
f as MyButton,
|
|
36
|
+
x as default
|
|
37
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
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.MyElementLib={},t.Vue))})(this,(function(t,e){"use strict";var _=document.createElement("style");_.textContent="/*$vite$:1*/",document.head.appendChild(_);const c=((s,o)=>{const n=s.__vccOpts||s;for(const[u,a]of o)n[u]=a;return n})(Object.assign({name:"MyButton"},{__name:"MyButton",setup(s){return(o,n)=>{const u=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(u,null,{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},()=>[n[0]||(n[0]=e.createTextVNode("默认按钮",-1))],!0)]),_:3})}}}),[["__scopeId","data-v-519aae11"]]),i=[c],r={install(s){i.forEach(o=>{const n=o.__name||o.name;n&&s.component(n,o)})}};t.MyButton=c,t.default=r,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "my-element-plus-ext",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "基于 Element Plus 的扩展组件库",
|
|
5
5
|
"main": "dist/my-element-lib.umd.js",
|
|
6
6
|
"module": "dist/my-element-lib.es.js",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
|
-
|
|
10
|
+
"scripts": {
|
|
11
11
|
"build": "vite build",
|
|
12
|
-
"
|
|
12
|
+
"build:entry": "node scripts/build-entry.js",
|
|
13
|
+
"prebuild": "npm run build:entry"
|
|
13
14
|
},
|
|
14
15
|
"peerDependencies": {
|
|
15
16
|
"element-plus": "^2.4.0",
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as a, createBlock as c, openBlock as _, withCtx as l, renderSlot as r, createTextVNode as u } from "vue";
|
|
2
|
-
const p = (e, o) => {
|
|
3
|
-
const t = e.__vccOpts || e;
|
|
4
|
-
for (const [n, s] of o)
|
|
5
|
-
t[n] = s;
|
|
6
|
-
return t;
|
|
7
|
-
}, m = /* @__PURE__ */ Object.assign({
|
|
8
|
-
name: "MyButton"
|
|
9
|
-
}, {
|
|
10
|
-
__name: "MyButton",
|
|
11
|
-
setup(e) {
|
|
12
|
-
return (o, t) => {
|
|
13
|
-
const n = a("el-button");
|
|
14
|
-
return _(), c(n, null, {
|
|
15
|
-
default: l(() => [
|
|
16
|
-
r(o.$slots, "default", {}, () => [
|
|
17
|
-
t[0] || (t[0] = u("默认按钮", -1))
|
|
18
|
-
], !0)
|
|
19
|
-
]),
|
|
20
|
-
_: 3
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}), d = /* @__PURE__ */ p(m, [["__scopeId", "data-v-519aae11"]]), f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
|
-
__proto__: null,
|
|
26
|
-
default: d
|
|
27
|
-
}, Symbol.toStringTag, { value: "Module" })), i = /* @__PURE__ */ Object.assign({ "./components/MyButton.vue": f }), b = Object.values(i).map((e) => e.default), v = (e) => {
|
|
28
|
-
b.forEach((o) => {
|
|
29
|
-
const t = o.__name || o.name;
|
|
30
|
-
t && e.component(t, o);
|
|
31
|
-
});
|
|
32
|
-
}, g = {
|
|
33
|
-
install: v
|
|
34
|
-
};
|
|
35
|
-
export {
|
|
36
|
-
g as default
|
|
37
|
-
};
|
|
File without changes
|