my-element-plus-ext 1.0.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.
@@ -0,0 +1,37 @@
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
+ };
@@ -0,0 +1 @@
1
+ (function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.MyElementLib={},n.Vue))})(this,(function(n,e){"use strict";const u=Object.values(Object.assign({"./components/MyButton.vue":Object.freeze(Object.defineProperty({__proto__:null,default:((o,s)=>{const t=o.__vccOpts||o;for(const[_,c]of s)t[_]=c;return t})(Object.assign({name:"MyButton"},{__name:"MyButton",setup(o){return(s,t)=>{const _=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(_,null,{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default",{},()=>[t[0]||(t[0]=e.createTextVNode("默认按钮",-1))],!0)]),_:3})}}}),[["__scopeId","data-v-519aae11"]])},Symbol.toStringTag,{value:"Module"}))})).map(o=>o.default),l={install:o=>{u.forEach(s=>{const t=s.__name||s.name;t&&o.component(t,s)})}};n.default=l,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
File without changes
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "my-element-plus-ext",
3
+ "version": "1.0.0",
4
+ "description": "基于 Element Plus 的扩展组件库",
5
+ "main": "dist/my-element-lib.umd.js",
6
+ "module": "dist/my-element-lib.es.js",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "build": "vite build",
12
+ "prepublishOnly": "npm run build"
13
+ },
14
+ "peerDependencies": {
15
+ "element-plus": "^2.4.0",
16
+ "vue": "^3.3.0"
17
+ },
18
+ "keywords": [
19
+ "vue3",
20
+ "element-plus",
21
+ "components"
22
+ ],
23
+ "author": "你的名字",
24
+ "license": "MIT",
25
+ "devDependencies": {
26
+ "@vitejs/plugin-vue": "^6.0.3",
27
+ "vite": "^7.3.0"
28
+ }
29
+ }