fy-components-test 1.0.1 → 1.0.3
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/components/MText/Mtext.vue.d.ts +2 -0
- package/dist/{index.es.js → fy-components-test.js} +37 -27
- package/dist/fy-components-test.umd.cjs +1 -0
- package/dist/index.d.ts +10 -3
- package/dist/style.css +1 -0
- package/dist/typings/components.d.ts +10 -0
- package/dist/typings/test.d.ts +11 -0
- package/package.json +8 -3
- package/dist/index.umd.js +0 -1
- package/dist/src/index.d.ts +0 -9
- package/dist/src/main.d.ts +0 -1
- package/dist/vite.config.d.ts +0 -2
- package/index.html +0 -13
- package/src/App.vue +0 -27
- package/src/components/MButton.vue +0 -122
- package/src/index.ts +0 -22
- package/src/main.ts +0 -10
- package/vite.config.ts +0 -32
- /package/dist/{src/components → components/MButton}/MButton.vue.d.ts +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as d, resolveComponent as i, openBlock as c, createBlock as r, withCtx as f, renderSlot as p, createElementBlock as y, Fragment as m, createTextVNode as g, toDisplayString as b } from "vue";
|
|
2
|
+
const k = {
|
|
3
3
|
name: "MButton"
|
|
4
|
-
}, v = /* @__PURE__ */
|
|
5
|
-
...
|
|
4
|
+
}, v = /* @__PURE__ */ d({
|
|
5
|
+
...k,
|
|
6
6
|
props: {
|
|
7
7
|
// 按钮类型
|
|
8
8
|
type: {
|
|
@@ -77,12 +77,13 @@ const p = {
|
|
|
77
77
|
},
|
|
78
78
|
emits: ["click"],
|
|
79
79
|
setup(t, { emit: e }) {
|
|
80
|
-
const
|
|
81
|
-
|
|
80
|
+
const a = e, o = (n) => {
|
|
81
|
+
a("click", n);
|
|
82
82
|
};
|
|
83
|
-
return (
|
|
84
|
-
const
|
|
85
|
-
return
|
|
83
|
+
return (n, u) => {
|
|
84
|
+
const l = i("el-button");
|
|
85
|
+
return c(), r(l, {
|
|
86
|
+
class: "m-button",
|
|
86
87
|
type: t.type,
|
|
87
88
|
size: t.size,
|
|
88
89
|
plain: t.plain,
|
|
@@ -94,33 +95,42 @@ const p = {
|
|
|
94
95
|
autofocus: t.autofocus,
|
|
95
96
|
"native-type": t.nativeType,
|
|
96
97
|
tag: t.tag,
|
|
97
|
-
onClick:
|
|
98
|
+
onClick: o
|
|
98
99
|
}, {
|
|
99
|
-
default:
|
|
100
|
-
|
|
101
|
-
g(
|
|
100
|
+
default: f(() => [
|
|
101
|
+
n.$slots.default ? p(n.$slots, "default", { key: 0 }, void 0, !0) : (c(), y(m, { key: 1 }, [
|
|
102
|
+
g(b(t.text), 1)
|
|
102
103
|
], 64))
|
|
103
104
|
]),
|
|
104
105
|
_: 3
|
|
105
106
|
}, 8, ["type", "size", "plain", "round", "circle", "disabled", "loading", "icon", "autofocus", "native-type", "tag"]);
|
|
106
107
|
};
|
|
107
108
|
}
|
|
108
|
-
}),
|
|
109
|
-
const
|
|
110
|
-
for (const [
|
|
111
|
-
|
|
112
|
-
return
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
}), s = (t, e) => {
|
|
110
|
+
const a = t.__vccOpts || t;
|
|
111
|
+
for (const [o, n] of e)
|
|
112
|
+
a[o] = n;
|
|
113
|
+
return a;
|
|
114
|
+
}, B = /* @__PURE__ */ s(v, [["__scopeId", "data-v-80d70ab0"]]), x = {
|
|
115
|
+
name: "MText"
|
|
116
|
+
};
|
|
117
|
+
function S(t, e, a, o, n, u) {
|
|
118
|
+
const l = i("el-backtop");
|
|
119
|
+
return c(), r(l, { target: ".page-component__scroll .el-scrollbar__wrap" });
|
|
120
|
+
}
|
|
121
|
+
const _ = /* @__PURE__ */ s(x, [["render", S]]), $ = [
|
|
122
|
+
B,
|
|
123
|
+
_
|
|
124
|
+
], h = (t) => {
|
|
125
|
+
$.forEach((e) => {
|
|
117
126
|
e.name && t.component(e.name, e);
|
|
118
127
|
});
|
|
119
|
-
},
|
|
120
|
-
install:
|
|
128
|
+
}, T = {
|
|
129
|
+
install: h
|
|
121
130
|
};
|
|
122
131
|
export {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
132
|
+
B as MButton,
|
|
133
|
+
_ as MText,
|
|
134
|
+
T as default,
|
|
135
|
+
h as install
|
|
126
136
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n.MiaomaComponents={},n.Vue))})(this,function(n,t){"use strict";const f={name:"MButton"},p=t.defineComponent({...f,props:{type:{type:String,default:"primary",validator:e=>["primary","success","warning","danger","info","text"].includes(e)},size:{type:String,default:"default",validator:e=>["large","default","small","mini"].includes(e)},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:{type:String,default:""},text:{type:String,default:""},autofocus:{type:Boolean,default:!1},nativeType:{type:String,default:"button",validator:e=>["button","submit","reset"].includes(e)},tag:{type:String,default:"button"}},emits:["click"],setup(e,{emit:o}){const l=o,i=a=>{l("click",a)};return(a,k)=>{const c=t.resolveComponent("el-button");return t.openBlock(),t.createBlock(c,{class:"m-button",type:e.type,size:e.size,plain:e.plain,round:e.round,circle:e.circle,disabled:e.disabled,loading:e.loading,icon:e.icon,autofocus:e.autofocus,"native-type":e.nativeType,tag:e.tag,onClick:i},{default:t.withCtx(()=>[a.$slots.default?t.renderSlot(a.$slots,"default",{key:0},void 0,!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.text),1)],64))]),_:3},8,["type","size","plain","round","circle","disabled","loading","icon","autofocus","native-type","tag"])}}}),d=(e,o)=>{const l=e.__vccOpts||e;for(const[i,a]of o)l[i]=a;return l},s=d(p,[["__scopeId","data-v-80d70ab0"]]),y={name:"MText"};function m(e,o,l,i,a,k){const c=t.resolveComponent("el-backtop");return t.openBlock(),t.createBlock(c,{target:".page-component__scroll .el-scrollbar__wrap"})}const u=d(y,[["render",m]]),g=[s,u],r=e=>{g.forEach(o=>{o.name&&e.component(o.name,o)})},b={install:r};n.MButton=s,n.MText=u,n.default=b,n.install=r,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { default as MButton } from './components/MButton/MButton.vue';
|
|
3
|
+
import { default as MText } from './components/MText/Mtext.vue';
|
|
4
|
+
|
|
5
|
+
export declare const install: (app: App) => void;
|
|
6
|
+
export { MButton, MText };
|
|
7
|
+
declare const _default: {
|
|
8
|
+
install: (app: App) => void;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
package/dist/style.css
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.m-button[data-v-80d70ab0]{margin:0 5px}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as MButton } from '../components/MButton/MButton.vue';
|
|
2
|
+
import { default as MText } from '../components/MText/Mtext.vue';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
declare module 'vue' {
|
|
6
|
+
export interface GlobalComponents {
|
|
7
|
+
MButton: typeof MButton
|
|
8
|
+
MText: typeof MText
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @FileDescription:
|
|
3
|
+
* @Author: czh
|
|
4
|
+
* @Date: 2026-04-09 16:49:27
|
|
5
|
+
* @LastEditors: czh
|
|
6
|
+
* @LastEditTime: 2026-04-09 17:25:45
|
|
7
|
+
* @FilePath: \ai-ui\packages\components\typings\test.d.ts
|
|
8
|
+
*/
|
|
9
|
+
export namespace MButtonProps {
|
|
10
|
+
export const type: string;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fy-components-test",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "基于 Element Plus 的二次封装组件库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.umd.js",
|
|
7
7
|
"module": "./dist/index.es.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
9
13
|
"exports": {
|
|
10
14
|
".": {
|
|
11
15
|
"import": "./dist/index.es.js",
|
|
@@ -15,7 +19,7 @@
|
|
|
15
19
|
},
|
|
16
20
|
"scripts": {
|
|
17
21
|
"dev": "vite",
|
|
18
|
-
"build": "vite build",
|
|
22
|
+
"build": "rimraf dist && vite build",
|
|
19
23
|
"preview": "vite preview"
|
|
20
24
|
},
|
|
21
25
|
"dependencies": {
|
|
@@ -25,9 +29,10 @@
|
|
|
25
29
|
"devDependencies": {
|
|
26
30
|
"@types/node": "^25.5.2",
|
|
27
31
|
"@vitejs/plugin-vue": "^5.0.0",
|
|
32
|
+
"rimraf": "^6.1.3",
|
|
28
33
|
"typescript": "^5.3.0",
|
|
29
34
|
"vite": "^5.0.0",
|
|
30
|
-
"vite-plugin-dts": "^3.
|
|
35
|
+
"vite-plugin-dts": "^3.9.1"
|
|
31
36
|
},
|
|
32
37
|
"keywords": [
|
|
33
38
|
"vue3",
|
package/dist/index.umd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n.MiaomaComponents={},n.Vue))})(this,function(n,t){"use strict";const u={name:"MButton"},s=t.defineComponent({...u,props:{type:{type:String,default:"primary",validator:e=>["primary","success","warning","danger","info","text"].includes(e)},size:{type:String,default:"default",validator:e=>["large","default","small","mini"].includes(e)},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:{type:String,default:""},text:{type:String,default:""},autofocus:{type:Boolean,default:!1},nativeType:{type:String,default:"button",validator:e=>["button","submit","reset"].includes(e)},tag:{type:String,default:"button"}},emits:["click"],setup(e,{emit:a}){const l=a,i=o=>{l("click",o)};return(o,m)=>{const y=t.resolveComponent("el-button");return t.openBlock(),t.createBlock(y,{type:e.type,size:e.size,plain:e.plain,round:e.round,circle:e.circle,disabled:e.disabled,loading:e.loading,icon:e.icon,autofocus:e.autofocus,"native-type":e.nativeType,tag:e.tag,onClick:i},{default:t.withCtx(()=>[o.$slots.default?t.renderSlot(o.$slots,"default",{key:0},void 0,!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.text),1)],64))]),_:3},8,["type","size","plain","round","circle","disabled","loading","icon","autofocus","native-type","tag"])}}}),d=((e,a)=>{const l=e.__vccOpts||e;for(const[i,o]of a)l[i]=o;return l})(s,[["__scopeId","data-v-79154a89"]]),f=[d],c=e=>{f.forEach(a=>{a.name&&e.component(a.name,a)})},r={install:c};n.MButton=d,n.default=r,n.install=c,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/src/index.d.ts
DELETED
package/dist/src/main.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/vite.config.d.ts
DELETED
package/index.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>组件库测试</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="app"></div>
|
|
11
|
-
<script type="module" src="/src/main.ts"></script>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
package/src/App.vue
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="padding: 20px;">
|
|
3
|
-
<h1>组件库测试</h1>
|
|
4
|
-
<div style="display: flex; gap: 10px; margin: 20px 0;">
|
|
5
|
-
<m-button type="primary" text="主要按钮" />
|
|
6
|
-
<m-button type="success" text="成功按钮" />
|
|
7
|
-
<m-button type="warning" text="警告按钮" />
|
|
8
|
-
<m-button type="danger" text="危险按钮" />
|
|
9
|
-
<m-button type="info" text="信息按钮" />
|
|
10
|
-
</div>
|
|
11
|
-
<div style="display: flex; gap: 10px; margin: 20px 0;">
|
|
12
|
-
<m-button type="primary" size="large" text="大按钮" />
|
|
13
|
-
<m-button type="primary" size="default" text="默认按钮" />
|
|
14
|
-
<m-button type="primary" size="small" text="小按钮" />
|
|
15
|
-
<m-button type="primary" size="mini" text="迷你按钮" />
|
|
16
|
-
</div>
|
|
17
|
-
<div style="display: flex; gap: 10px; margin: 20px 0;">
|
|
18
|
-
<m-button type="primary" plain text="朴素按钮" />
|
|
19
|
-
<m-button type="primary" round text="圆角按钮" />
|
|
20
|
-
<m-button type="primary" circle icon="el-icon-search" />
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script setup lang="ts">
|
|
26
|
-
import { MButton } from './index'
|
|
27
|
-
</script>
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-button
|
|
3
|
-
:type="type"
|
|
4
|
-
:size="size"
|
|
5
|
-
:plain="plain"
|
|
6
|
-
:round="round"
|
|
7
|
-
:circle="circle"
|
|
8
|
-
:disabled="disabled"
|
|
9
|
-
:loading="loading"
|
|
10
|
-
:icon="icon"
|
|
11
|
-
:autofocus="autofocus"
|
|
12
|
-
:native-type="nativeType"
|
|
13
|
-
:tag="tag"
|
|
14
|
-
@click="handleClick"
|
|
15
|
-
>
|
|
16
|
-
<template v-if="$slots.default">
|
|
17
|
-
<slot></slot>
|
|
18
|
-
</template>
|
|
19
|
-
<template v-else>
|
|
20
|
-
{{ text }}
|
|
21
|
-
</template>
|
|
22
|
-
</el-button>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script lang="ts">
|
|
26
|
-
export default {
|
|
27
|
-
name: 'MButton',
|
|
28
|
-
};
|
|
29
|
-
</script>
|
|
30
|
-
|
|
31
|
-
<script setup lang="ts">
|
|
32
|
-
import { defineProps, defineEmits } from 'vue';
|
|
33
|
-
|
|
34
|
-
defineProps({
|
|
35
|
-
// 按钮类型
|
|
36
|
-
type: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: 'primary',
|
|
39
|
-
validator: (value: string) => {
|
|
40
|
-
return [
|
|
41
|
-
'primary',
|
|
42
|
-
'success',
|
|
43
|
-
'warning',
|
|
44
|
-
'danger',
|
|
45
|
-
'info',
|
|
46
|
-
'text',
|
|
47
|
-
].includes(value);
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
// 按钮尺寸
|
|
51
|
-
size: {
|
|
52
|
-
type: String,
|
|
53
|
-
default: 'default',
|
|
54
|
-
validator: (value: string) => {
|
|
55
|
-
return ['large', 'default', 'small', 'mini'].includes(value);
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
// 是否朴素按钮
|
|
59
|
-
plain: {
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: false,
|
|
62
|
-
},
|
|
63
|
-
// 是否圆角按钮
|
|
64
|
-
round: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: false,
|
|
67
|
-
},
|
|
68
|
-
// 是否圆形按钮
|
|
69
|
-
circle: {
|
|
70
|
-
type: Boolean,
|
|
71
|
-
default: false,
|
|
72
|
-
},
|
|
73
|
-
// 是否禁用
|
|
74
|
-
disabled: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default: false,
|
|
77
|
-
},
|
|
78
|
-
// 是否加载中
|
|
79
|
-
loading: {
|
|
80
|
-
type: Boolean,
|
|
81
|
-
default: false,
|
|
82
|
-
},
|
|
83
|
-
// 图标
|
|
84
|
-
icon: {
|
|
85
|
-
type: String,
|
|
86
|
-
default: '',
|
|
87
|
-
},
|
|
88
|
-
// 按钮文本
|
|
89
|
-
text: {
|
|
90
|
-
type: String,
|
|
91
|
-
default: '',
|
|
92
|
-
},
|
|
93
|
-
// 是否自动聚焦
|
|
94
|
-
autofocus: {
|
|
95
|
-
type: Boolean,
|
|
96
|
-
default: false,
|
|
97
|
-
},
|
|
98
|
-
// 原生 type 属性
|
|
99
|
-
nativeType: {
|
|
100
|
-
type: String,
|
|
101
|
-
default: 'button',
|
|
102
|
-
validator: (value: string) => {
|
|
103
|
-
return ['button', 'submit', 'reset'].includes(value);
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
// 自定义标签
|
|
107
|
-
tag: {
|
|
108
|
-
type: String,
|
|
109
|
-
default: 'button',
|
|
110
|
-
},
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
const emit = defineEmits(['click']);
|
|
114
|
-
|
|
115
|
-
const handleClick = (event: MouseEvent) => {
|
|
116
|
-
emit('click', event);
|
|
117
|
-
};
|
|
118
|
-
</script>
|
|
119
|
-
|
|
120
|
-
<style scoped>
|
|
121
|
-
/* 可以添加自定义样式 */
|
|
122
|
-
</style>
|
package/src/index.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { App } from 'vue'
|
|
2
|
-
import MButton from './components/MButton.vue'
|
|
3
|
-
|
|
4
|
-
const components = [
|
|
5
|
-
MButton
|
|
6
|
-
]
|
|
7
|
-
|
|
8
|
-
export const install = (app: App) => {
|
|
9
|
-
components.forEach(component => {
|
|
10
|
-
if (component.name) {
|
|
11
|
-
app.component(component.name, component)
|
|
12
|
-
}
|
|
13
|
-
})
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
MButton
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export default {
|
|
21
|
-
install
|
|
22
|
-
}
|
package/src/main.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createApp } from 'vue'
|
|
2
|
-
import App from './App.vue'
|
|
3
|
-
import ElementPlus from 'element-plus'
|
|
4
|
-
import 'element-plus/dist/index.css'
|
|
5
|
-
import MiaomaComponents from './index'
|
|
6
|
-
|
|
7
|
-
const app = createApp(App)
|
|
8
|
-
app.use(ElementPlus)
|
|
9
|
-
app.use(MiaomaComponents)
|
|
10
|
-
app.mount('#app')
|
package/vite.config.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import vue from '@vitejs/plugin-vue'
|
|
3
|
-
import dts from 'vite-plugin-dts'
|
|
4
|
-
import { resolve } from 'path'
|
|
5
|
-
import { fileURLToPath, URL } from 'url'
|
|
6
|
-
|
|
7
|
-
const __dirname = fileURLToPath(new URL('.', import.meta.url))
|
|
8
|
-
|
|
9
|
-
export default defineConfig({
|
|
10
|
-
plugins: [
|
|
11
|
-
vue(),
|
|
12
|
-
dts({
|
|
13
|
-
insertTypesEntry: true
|
|
14
|
-
})
|
|
15
|
-
],
|
|
16
|
-
build: {
|
|
17
|
-
lib: {
|
|
18
|
-
entry: resolve(__dirname, 'src/index.ts'),
|
|
19
|
-
name: 'MiaomaComponents',
|
|
20
|
-
fileName: (format) => `index.${format}.js`
|
|
21
|
-
},
|
|
22
|
-
rollupOptions: {
|
|
23
|
-
external: ['vue', 'element-plus'],
|
|
24
|
-
output: {
|
|
25
|
-
globals: {
|
|
26
|
-
vue: 'Vue',
|
|
27
|
-
'element-plus': 'ElementPlus'
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
})
|
|
File without changes
|