@cst-ui/nano-buttons 0.2.2 → 0.2.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/NanoTextAddButton.vue_vue_type_script_setup_true_lang-CYuxrToE.js +219 -0
- package/dist/NanoTextAddButton.vue_vue_type_script_setup_true_lang-DIaonSsx.cjs +1 -0
- package/dist/buttons/index.cjs +1 -1
- package/dist/buttons/index.mjs +32 -235
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +19 -2
- package/dist/index.mjs +36 -16
- package/package.json +1 -1
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { defineComponent as p, openBlock as s, createBlock as a, mergeProps as n, withCtx as r, renderSlot as u, createTextVNode as $, createElementVNode as f, normalizeProps as d, guardReactiveProps as m } from "vue";
|
|
2
|
+
import { buttonProps as l } from "element-plus";
|
|
3
|
+
import { _ as o } from "./NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js";
|
|
4
|
+
const y = /* @__PURE__ */ p({
|
|
5
|
+
name: "NanoAddButton",
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "NanoAddButton",
|
|
8
|
+
props: l,
|
|
9
|
+
setup(i) {
|
|
10
|
+
return (t, e) => (s(), a(o, n({ ...t.$props, ...t.$attrs }, {
|
|
11
|
+
type: "primary",
|
|
12
|
+
icon: "Plus"
|
|
13
|
+
}), {
|
|
14
|
+
default: r(() => [
|
|
15
|
+
u(t.$slots, "default", {}, () => [
|
|
16
|
+
e[0] || (e[0] = $("新增", -1))
|
|
17
|
+
])
|
|
18
|
+
]),
|
|
19
|
+
_: 3
|
|
20
|
+
}, 16));
|
|
21
|
+
}
|
|
22
|
+
}), k = /* @__PURE__ */ p({
|
|
23
|
+
name: "NanoBackTopButton",
|
|
24
|
+
inheritAttrs: !1,
|
|
25
|
+
__name: "NanoBackTopButton",
|
|
26
|
+
props: l,
|
|
27
|
+
setup(i) {
|
|
28
|
+
return (t, e) => t.$slots.default ? (s(), a(o, n({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
29
|
+
secondary: "",
|
|
30
|
+
class: "app-backtop-button"
|
|
31
|
+
}), {
|
|
32
|
+
default: r(() => [
|
|
33
|
+
u(t.$slots, "default")
|
|
34
|
+
]),
|
|
35
|
+
_: 3
|
|
36
|
+
}, 16)) : (s(), a(o, n({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
37
|
+
secondary: "",
|
|
38
|
+
class: "app-backtop-button"
|
|
39
|
+
}), {
|
|
40
|
+
default: r(() => [...e[0] || (e[0] = [
|
|
41
|
+
f("svg", {
|
|
42
|
+
class: "app-backtop-icon",
|
|
43
|
+
viewBox: "0 0 24 24",
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
focusable: "false"
|
|
46
|
+
}, [
|
|
47
|
+
f("path", { d: "M6 5h12" }),
|
|
48
|
+
f("path", { d: "M12 19V9" }),
|
|
49
|
+
f("path", { d: "m8 13 4-4 4 4" })
|
|
50
|
+
], -1)
|
|
51
|
+
])]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 16));
|
|
54
|
+
}
|
|
55
|
+
}), c = /* @__PURE__ */ p({
|
|
56
|
+
name: "NanoCancelButton",
|
|
57
|
+
inheritAttrs: !1,
|
|
58
|
+
__name: "NanoCancelButton",
|
|
59
|
+
props: l,
|
|
60
|
+
setup(i) {
|
|
61
|
+
return (t, e) => (s(), a(o, d(m({ ...t.$props, ...t.$attrs })), {
|
|
62
|
+
default: r(() => [
|
|
63
|
+
u(t.$slots, "default", {}, () => [
|
|
64
|
+
e[0] || (e[0] = $("取消", -1))
|
|
65
|
+
])
|
|
66
|
+
]),
|
|
67
|
+
_: 3
|
|
68
|
+
}, 16));
|
|
69
|
+
}
|
|
70
|
+
}), h = /* @__PURE__ */ p({
|
|
71
|
+
name: "NanoDeleteButton",
|
|
72
|
+
inheritAttrs: !1,
|
|
73
|
+
__name: "NanoDeleteButton",
|
|
74
|
+
props: l,
|
|
75
|
+
setup(i) {
|
|
76
|
+
return (t, e) => t.$slots.default ? (s(), a(o, n({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
77
|
+
type: "danger",
|
|
78
|
+
icon: "Delete"
|
|
79
|
+
}), {
|
|
80
|
+
default: r(() => [
|
|
81
|
+
u(t.$slots, "default")
|
|
82
|
+
]),
|
|
83
|
+
_: 3
|
|
84
|
+
}, 16)) : (s(), a(o, n({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
85
|
+
type: "danger",
|
|
86
|
+
icon: "Delete"
|
|
87
|
+
}), null, 16));
|
|
88
|
+
}
|
|
89
|
+
}), A = /* @__PURE__ */ p({
|
|
90
|
+
name: "NanoEditButton",
|
|
91
|
+
inheritAttrs: !1,
|
|
92
|
+
__name: "NanoEditButton",
|
|
93
|
+
props: l,
|
|
94
|
+
setup(i) {
|
|
95
|
+
return (t, e) => t.$slots.default ? (s(), a(o, n({ key: 0 }, { ...t.$props, ...t.$attrs }, { icon: "Edit" }), {
|
|
96
|
+
default: r(() => [
|
|
97
|
+
u(t.$slots, "default")
|
|
98
|
+
]),
|
|
99
|
+
_: 3
|
|
100
|
+
}, 16)) : (s(), a(o, n({ key: 1 }, { ...t.$props, ...t.$attrs }, { icon: "Edit" }), null, 16));
|
|
101
|
+
}
|
|
102
|
+
}), b = /* @__PURE__ */ p({
|
|
103
|
+
name: "NanoExportButton",
|
|
104
|
+
inheritAttrs: !1,
|
|
105
|
+
__name: "NanoExportButton",
|
|
106
|
+
props: l,
|
|
107
|
+
setup(i) {
|
|
108
|
+
return (t, e) => (s(), a(o, n({ ...t.$props, ...t.$attrs }, {
|
|
109
|
+
class: "app-button-export",
|
|
110
|
+
icon: "Download"
|
|
111
|
+
}), {
|
|
112
|
+
default: r(() => [
|
|
113
|
+
u(t.$slots, "default", {}, () => [
|
|
114
|
+
e[0] || (e[0] = $("导出", -1))
|
|
115
|
+
])
|
|
116
|
+
]),
|
|
117
|
+
_: 3
|
|
118
|
+
}, 16));
|
|
119
|
+
}
|
|
120
|
+
}), g = /* @__PURE__ */ p({
|
|
121
|
+
name: "NanoImportButton",
|
|
122
|
+
inheritAttrs: !1,
|
|
123
|
+
__name: "NanoImportButton",
|
|
124
|
+
props: l,
|
|
125
|
+
setup(i) {
|
|
126
|
+
return (t, e) => (s(), a(o, n({ ...t.$props, ...t.$attrs }, {
|
|
127
|
+
class: "app-button-import",
|
|
128
|
+
icon: "Upload"
|
|
129
|
+
}), {
|
|
130
|
+
default: r(() => [
|
|
131
|
+
u(t.$slots, "default", {}, () => [
|
|
132
|
+
e[0] || (e[0] = $("导入", -1))
|
|
133
|
+
])
|
|
134
|
+
]),
|
|
135
|
+
_: 3
|
|
136
|
+
}, 16));
|
|
137
|
+
}
|
|
138
|
+
}), E = /* @__PURE__ */ p({
|
|
139
|
+
name: "NanoManageButton",
|
|
140
|
+
inheritAttrs: !1,
|
|
141
|
+
__name: "NanoManageButton",
|
|
142
|
+
props: l,
|
|
143
|
+
setup(i) {
|
|
144
|
+
return (t, e) => t.$slots.default ? (s(), a(o, n({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
145
|
+
type: "primary",
|
|
146
|
+
icon: "Setting"
|
|
147
|
+
}), {
|
|
148
|
+
default: r(() => [
|
|
149
|
+
u(t.$slots, "default")
|
|
150
|
+
]),
|
|
151
|
+
_: 3
|
|
152
|
+
}, 16)) : (s(), a(o, n({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
153
|
+
type: "primary",
|
|
154
|
+
icon: "Setting"
|
|
155
|
+
}), null, 16));
|
|
156
|
+
}
|
|
157
|
+
}), P = /* @__PURE__ */ p({
|
|
158
|
+
name: "NanoMoveButton",
|
|
159
|
+
inheritAttrs: !1,
|
|
160
|
+
__name: "NanoMoveButton",
|
|
161
|
+
props: l,
|
|
162
|
+
setup(i) {
|
|
163
|
+
return (t, e) => (s(), a(o, n({ ...t.$props, ...t.$attrs }, { icon: "Rank" }), {
|
|
164
|
+
default: r(() => [
|
|
165
|
+
u(t.$slots, "default", {}, () => [
|
|
166
|
+
e[0] || (e[0] = $("移动", -1))
|
|
167
|
+
])
|
|
168
|
+
]),
|
|
169
|
+
_: 3
|
|
170
|
+
}, 16));
|
|
171
|
+
}
|
|
172
|
+
}), M = /* @__PURE__ */ p({
|
|
173
|
+
name: "NanoSubmitButton",
|
|
174
|
+
inheritAttrs: !1,
|
|
175
|
+
__name: "NanoSubmitButton",
|
|
176
|
+
props: l,
|
|
177
|
+
setup(i) {
|
|
178
|
+
return (t, e) => (s(), a(o, n({ ...t.$props, ...t.$attrs }, { type: "primary" }), {
|
|
179
|
+
default: r(() => [
|
|
180
|
+
u(t.$slots, "default", {}, () => [
|
|
181
|
+
e[0] || (e[0] = $("保存", -1))
|
|
182
|
+
])
|
|
183
|
+
]),
|
|
184
|
+
_: 3
|
|
185
|
+
}, 16));
|
|
186
|
+
}
|
|
187
|
+
}), v = /* @__PURE__ */ p({
|
|
188
|
+
name: "NanoTextAddButton",
|
|
189
|
+
inheritAttrs: !1,
|
|
190
|
+
__name: "NanoTextAddButton",
|
|
191
|
+
props: l,
|
|
192
|
+
setup(i) {
|
|
193
|
+
return (t, e) => t.$slots.default ? (s(), a(o, n({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
194
|
+
text: "",
|
|
195
|
+
icon: "Plus"
|
|
196
|
+
}), {
|
|
197
|
+
default: r(() => [
|
|
198
|
+
u(t.$slots, "default")
|
|
199
|
+
]),
|
|
200
|
+
_: 3
|
|
201
|
+
}, 16)) : (s(), a(o, n({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
202
|
+
text: "",
|
|
203
|
+
icon: "Plus"
|
|
204
|
+
}), null, 16));
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
export {
|
|
208
|
+
y as _,
|
|
209
|
+
v as a,
|
|
210
|
+
P as b,
|
|
211
|
+
g as c,
|
|
212
|
+
b as d,
|
|
213
|
+
A as e,
|
|
214
|
+
E as f,
|
|
215
|
+
h as g,
|
|
216
|
+
M as h,
|
|
217
|
+
c as i,
|
|
218
|
+
k as j
|
|
219
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),r=require("element-plus"),n=require("./NanoButton.vue_vue_type_script_setup_true_lang-D1yLWi2K.cjs"),a=e.defineComponent({name:"NanoAddButton",inheritAttrs:!1,__name:"NanoAddButton",props:r.buttonProps,setup(s){return(t,o)=>(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({...t.$props,...t.$attrs},{type:"primary",icon:"Plus"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[o[0]||(o[0]=e.createTextVNode("新增",-1))])]),_:3},16))}}),p=e.defineComponent({name:"NanoBackTopButton",inheritAttrs:!1,__name:"NanoBackTopButton",props:r.buttonProps,setup(s){return(t,o)=>t.$slots.default?(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:0},{...t.$props,...t.$attrs},{secondary:"",class:"app-backtop-button"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:1},{...t.$props,...t.$attrs},{secondary:"",class:"app-backtop-button"}),{default:e.withCtx(()=>[...o[0]||(o[0]=[e.createElementVNode("svg",{class:"app-backtop-icon",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},[e.createElementVNode("path",{d:"M6 5h12"}),e.createElementVNode("path",{d:"M12 19V9"}),e.createElementVNode("path",{d:"m8 13 4-4 4 4"})],-1)])]),_:1},16))}}),l=e.defineComponent({name:"NanoCancelButton",inheritAttrs:!1,__name:"NanoCancelButton",props:r.buttonProps,setup(s){return(t,o)=>(e.openBlock(),e.createBlock(n._sfc_main,e.normalizeProps(e.guardReactiveProps({...t.$props,...t.$attrs})),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[o[0]||(o[0]=e.createTextVNode("取消",-1))])]),_:3},16))}}),u=e.defineComponent({name:"NanoDeleteButton",inheritAttrs:!1,__name:"NanoDeleteButton",props:r.buttonProps,setup(s){return(t,o)=>t.$slots.default?(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:0},{...t.$props,...t.$attrs},{type:"danger",icon:"Delete"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:1},{...t.$props,...t.$attrs},{type:"danger",icon:"Delete"}),null,16))}}),i=e.defineComponent({name:"NanoEditButton",inheritAttrs:!1,__name:"NanoEditButton",props:r.buttonProps,setup(s){return(t,o)=>t.$slots.default?(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:0},{...t.$props,...t.$attrs},{icon:"Edit"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:1},{...t.$props,...t.$attrs},{icon:"Edit"}),null,16))}}),m=e.defineComponent({name:"NanoExportButton",inheritAttrs:!1,__name:"NanoExportButton",props:r.buttonProps,setup(s){return(t,o)=>(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({...t.$props,...t.$attrs},{class:"app-button-export",icon:"Download"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[o[0]||(o[0]=e.createTextVNode("导出",-1))])]),_:3},16))}}),_=e.defineComponent({name:"NanoImportButton",inheritAttrs:!1,__name:"NanoImportButton",props:r.buttonProps,setup(s){return(t,o)=>(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({...t.$props,...t.$attrs},{class:"app-button-import",icon:"Upload"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[o[0]||(o[0]=e.createTextVNode("导入",-1))])]),_:3},16))}}),c=e.defineComponent({name:"NanoManageButton",inheritAttrs:!1,__name:"NanoManageButton",props:r.buttonProps,setup(s){return(t,o)=>t.$slots.default?(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:0},{...t.$props,...t.$attrs},{type:"primary",icon:"Setting"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:1},{...t.$props,...t.$attrs},{type:"primary",icon:"Setting"}),null,16))}}),f=e.defineComponent({name:"NanoMoveButton",inheritAttrs:!1,__name:"NanoMoveButton",props:r.buttonProps,setup(s){return(t,o)=>(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({...t.$props,...t.$attrs},{icon:"Rank"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[o[0]||(o[0]=e.createTextVNode("移动",-1))])]),_:3},16))}}),d=e.defineComponent({name:"NanoSubmitButton",inheritAttrs:!1,__name:"NanoSubmitButton",props:r.buttonProps,setup(s){return(t,o)=>(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({...t.$props,...t.$attrs},{type:"primary"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[o[0]||(o[0]=e.createTextVNode("保存",-1))])]),_:3},16))}}),$=e.defineComponent({name:"NanoTextAddButton",inheritAttrs:!1,__name:"NanoTextAddButton",props:r.buttonProps,setup(s){return(t,o)=>t.$slots.default?(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:0},{...t.$props,...t.$attrs},{text:"",icon:"Plus"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:1},{...t.$props,...t.$attrs},{text:"",icon:"Plus"}),null,16))}});exports._sfc_main=a;exports._sfc_main$1=$;exports._sfc_main$10=p;exports._sfc_main$2=f;exports._sfc_main$3=_;exports._sfc_main$4=m;exports._sfc_main$5=i;exports._sfc_main$6=c;exports._sfc_main$7=u;exports._sfc_main$8=d;exports._sfc_main$9=l;
|
package/dist/buttons/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../NanoTextAddButton.vue_vue_type_script_setup_true_lang-DIaonSsx.cjs"),t=require("../NanoButton.vue_vue_type_script_setup_true_lang-D1yLWi2K.cjs"),s=[t._sfc_main,n._sfc_main,n._sfc_main$1,n._sfc_main$2,n._sfc_main$3,n._sfc_main$4,n._sfc_main$5,n._sfc_main$6,n._sfc_main$7,n._sfc_main$8,n._sfc_main$9,n._sfc_main$10],a=o=>{s.forEach(_=>{o.component(_.name||"AnonymousComponent",_)})},e={install:a};exports.NanoAddButton=n._sfc_main;exports.NanoBackTopButton=n._sfc_main$10;exports.NanoCancelButton=n._sfc_main$9;exports.NanoDeleteButton=n._sfc_main$7;exports.NanoEditButton=n._sfc_main$5;exports.NanoExportButton=n._sfc_main$4;exports.NanoImportButton=n._sfc_main$3;exports.NanoManageButton=n._sfc_main$6;exports.NanoMoveButton=n._sfc_main$2;exports.NanoSubmitButton=n._sfc_main$8;exports.NanoTextAddButton=n._sfc_main$1;exports.NanoButton=t._sfc_main;exports.default=e;exports.install=a;
|
package/dist/buttons/index.mjs
CHANGED
|
@@ -1,241 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const B = /* @__PURE__ */ u({
|
|
5
|
-
name: "NanoAddButton",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "NanoAddButton",
|
|
8
|
-
props: i,
|
|
9
|
-
setup(r) {
|
|
10
|
-
return (t, o) => (a(), e(n, s({ ...t.$props, ...t.$attrs }, {
|
|
11
|
-
type: "primary",
|
|
12
|
-
icon: "Plus"
|
|
13
|
-
}), {
|
|
14
|
-
default: p(() => [
|
|
15
|
-
l(t.$slots, "default", {}, () => [
|
|
16
|
-
o[0] || (o[0] = d("新增", -1))
|
|
17
|
-
])
|
|
18
|
-
]),
|
|
19
|
-
_: 3
|
|
20
|
-
}, 16));
|
|
21
|
-
}
|
|
22
|
-
}), _ = /* @__PURE__ */ u({
|
|
23
|
-
name: "NanoBackTopButton",
|
|
24
|
-
inheritAttrs: !1,
|
|
25
|
-
__name: "NanoBackTopButton",
|
|
26
|
-
props: i,
|
|
27
|
-
setup(r) {
|
|
28
|
-
return (t, o) => t.$slots.default ? (a(), e(n, s({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
29
|
-
secondary: "",
|
|
30
|
-
class: "app-backtop-button"
|
|
31
|
-
}), {
|
|
32
|
-
default: p(() => [
|
|
33
|
-
l(t.$slots, "default")
|
|
34
|
-
]),
|
|
35
|
-
_: 3
|
|
36
|
-
}, 16)) : (a(), e(n, s({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
37
|
-
secondary: "",
|
|
38
|
-
class: "app-backtop-button"
|
|
39
|
-
}), {
|
|
40
|
-
default: p(() => [...o[0] || (o[0] = [
|
|
41
|
-
m("svg", {
|
|
42
|
-
class: "app-backtop-icon",
|
|
43
|
-
viewBox: "0 0 24 24",
|
|
44
|
-
"aria-hidden": "true",
|
|
45
|
-
focusable: "false"
|
|
46
|
-
}, [
|
|
47
|
-
m("path", { d: "M6 5h12" }),
|
|
48
|
-
m("path", { d: "M12 19V9" }),
|
|
49
|
-
m("path", { d: "m8 13 4-4 4 4" })
|
|
50
|
-
], -1)
|
|
51
|
-
])]),
|
|
52
|
-
_: 1
|
|
53
|
-
}, 16));
|
|
54
|
-
}
|
|
55
|
-
}), N = /* @__PURE__ */ u({
|
|
56
|
-
name: "NanoCancelButton",
|
|
57
|
-
inheritAttrs: !1,
|
|
58
|
-
__name: "NanoCancelButton",
|
|
59
|
-
props: i,
|
|
60
|
-
setup(r) {
|
|
61
|
-
return (t, o) => (a(), e(n, f($({ ...t.$props, ...t.$attrs })), {
|
|
62
|
-
default: p(() => [
|
|
63
|
-
l(t.$slots, "default", {}, () => [
|
|
64
|
-
o[0] || (o[0] = d("取消", -1))
|
|
65
|
-
])
|
|
66
|
-
]),
|
|
67
|
-
_: 3
|
|
68
|
-
}, 16));
|
|
69
|
-
}
|
|
70
|
-
}), y = /* @__PURE__ */ u({
|
|
71
|
-
name: "NanoDeleteButton",
|
|
72
|
-
inheritAttrs: !1,
|
|
73
|
-
__name: "NanoDeleteButton",
|
|
74
|
-
props: i,
|
|
75
|
-
setup(r) {
|
|
76
|
-
return (t, o) => t.$slots.default ? (a(), e(n, s({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
77
|
-
type: "danger",
|
|
78
|
-
icon: "Delete"
|
|
79
|
-
}), {
|
|
80
|
-
default: p(() => [
|
|
81
|
-
l(t.$slots, "default")
|
|
82
|
-
]),
|
|
83
|
-
_: 3
|
|
84
|
-
}, 16)) : (a(), e(n, s({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
85
|
-
type: "danger",
|
|
86
|
-
icon: "Delete"
|
|
87
|
-
}), null, 16));
|
|
88
|
-
}
|
|
89
|
-
}), c = /* @__PURE__ */ u({
|
|
90
|
-
name: "NanoEditButton",
|
|
91
|
-
inheritAttrs: !1,
|
|
92
|
-
__name: "NanoEditButton",
|
|
93
|
-
props: i,
|
|
94
|
-
setup(r) {
|
|
95
|
-
return (t, o) => t.$slots.default ? (a(), e(n, s({ key: 0 }, { ...t.$props, ...t.$attrs }, { icon: "Edit" }), {
|
|
96
|
-
default: p(() => [
|
|
97
|
-
l(t.$slots, "default")
|
|
98
|
-
]),
|
|
99
|
-
_: 3
|
|
100
|
-
}, 16)) : (a(), e(n, s({ key: 1 }, { ...t.$props, ...t.$attrs }, { icon: "Edit" }), null, 16));
|
|
101
|
-
}
|
|
102
|
-
}), k = /* @__PURE__ */ u({
|
|
103
|
-
name: "NanoExportButton",
|
|
104
|
-
inheritAttrs: !1,
|
|
105
|
-
__name: "NanoExportButton",
|
|
106
|
-
props: i,
|
|
107
|
-
setup(r) {
|
|
108
|
-
return (t, o) => (a(), e(n, s({ ...t.$props, ...t.$attrs }, {
|
|
109
|
-
class: "app-button-export",
|
|
110
|
-
icon: "Download"
|
|
111
|
-
}), {
|
|
112
|
-
default: p(() => [
|
|
113
|
-
l(t.$slots, "default", {}, () => [
|
|
114
|
-
o[0] || (o[0] = d("导出", -1))
|
|
115
|
-
])
|
|
116
|
-
]),
|
|
117
|
-
_: 3
|
|
118
|
-
}, 16));
|
|
119
|
-
}
|
|
120
|
-
}), A = /* @__PURE__ */ u({
|
|
121
|
-
name: "NanoImportButton",
|
|
122
|
-
inheritAttrs: !1,
|
|
123
|
-
__name: "NanoImportButton",
|
|
124
|
-
props: i,
|
|
125
|
-
setup(r) {
|
|
126
|
-
return (t, o) => (a(), e(n, s({ ...t.$props, ...t.$attrs }, {
|
|
127
|
-
class: "app-button-import",
|
|
128
|
-
icon: "Upload"
|
|
129
|
-
}), {
|
|
130
|
-
default: p(() => [
|
|
131
|
-
l(t.$slots, "default", {}, () => [
|
|
132
|
-
o[0] || (o[0] = d("导入", -1))
|
|
133
|
-
])
|
|
134
|
-
]),
|
|
135
|
-
_: 3
|
|
136
|
-
}, 16));
|
|
137
|
-
}
|
|
138
|
-
}), h = /* @__PURE__ */ u({
|
|
139
|
-
name: "NanoManageButton",
|
|
140
|
-
inheritAttrs: !1,
|
|
141
|
-
__name: "NanoManageButton",
|
|
142
|
-
props: i,
|
|
143
|
-
setup(r) {
|
|
144
|
-
return (t, o) => t.$slots.default ? (a(), e(n, s({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
145
|
-
type: "primary",
|
|
146
|
-
icon: "Setting"
|
|
147
|
-
}), {
|
|
148
|
-
default: p(() => [
|
|
149
|
-
l(t.$slots, "default")
|
|
150
|
-
]),
|
|
151
|
-
_: 3
|
|
152
|
-
}, 16)) : (a(), e(n, s({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
153
|
-
type: "primary",
|
|
154
|
-
icon: "Setting"
|
|
155
|
-
}), null, 16));
|
|
156
|
-
}
|
|
157
|
-
}), b = /* @__PURE__ */ u({
|
|
158
|
-
name: "NanoMoveButton",
|
|
159
|
-
inheritAttrs: !1,
|
|
160
|
-
__name: "NanoMoveButton",
|
|
161
|
-
props: i,
|
|
162
|
-
setup(r) {
|
|
163
|
-
return (t, o) => (a(), e(n, s({ ...t.$props, ...t.$attrs }, { icon: "Rank" }), {
|
|
164
|
-
default: p(() => [
|
|
165
|
-
l(t.$slots, "default", {}, () => [
|
|
166
|
-
o[0] || (o[0] = d("移动", -1))
|
|
167
|
-
])
|
|
168
|
-
]),
|
|
169
|
-
_: 3
|
|
170
|
-
}, 16));
|
|
171
|
-
}
|
|
172
|
-
}), g = /* @__PURE__ */ u({
|
|
173
|
-
name: "NanoSubmitButton",
|
|
174
|
-
inheritAttrs: !1,
|
|
175
|
-
__name: "NanoSubmitButton",
|
|
176
|
-
props: i,
|
|
177
|
-
setup(r) {
|
|
178
|
-
return (t, o) => (a(), e(n, s({ ...t.$props, ...t.$attrs }, { type: "primary" }), {
|
|
179
|
-
default: p(() => [
|
|
180
|
-
l(t.$slots, "default", {}, () => [
|
|
181
|
-
o[0] || (o[0] = d("保存", -1))
|
|
182
|
-
])
|
|
183
|
-
]),
|
|
184
|
-
_: 3
|
|
185
|
-
}, 16));
|
|
186
|
-
}
|
|
187
|
-
}), E = /* @__PURE__ */ u({
|
|
188
|
-
name: "NanoTextAddButton",
|
|
189
|
-
inheritAttrs: !1,
|
|
190
|
-
__name: "NanoTextAddButton",
|
|
191
|
-
props: i,
|
|
192
|
-
setup(r) {
|
|
193
|
-
return (t, o) => t.$slots.default ? (a(), e(n, s({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
194
|
-
text: "",
|
|
195
|
-
icon: "Plus"
|
|
196
|
-
}), {
|
|
197
|
-
default: p(() => [
|
|
198
|
-
l(t.$slots, "default")
|
|
199
|
-
]),
|
|
200
|
-
_: 3
|
|
201
|
-
}, 16)) : (a(), e(n, s({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
202
|
-
text: "",
|
|
203
|
-
icon: "Plus"
|
|
204
|
-
}), null, 16));
|
|
205
|
-
}
|
|
206
|
-
}), M = [
|
|
207
|
-
n,
|
|
208
|
-
B,
|
|
209
|
-
E,
|
|
210
|
-
b,
|
|
211
|
-
A,
|
|
212
|
-
k,
|
|
213
|
-
c,
|
|
214
|
-
h,
|
|
215
|
-
y,
|
|
216
|
-
g,
|
|
1
|
+
import { _ as o, a as s, b as t, c as _, d as m, e as c, f as i, g as f, h as u, i as B, j as e } from "../NanoTextAddButton.vue_vue_type_script_setup_true_lang-CYuxrToE.js";
|
|
2
|
+
import { _ as N } from "../NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js";
|
|
3
|
+
const $ = [
|
|
217
4
|
N,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
5
|
+
o,
|
|
6
|
+
s,
|
|
7
|
+
t,
|
|
8
|
+
_,
|
|
9
|
+
m,
|
|
10
|
+
c,
|
|
11
|
+
i,
|
|
12
|
+
f,
|
|
13
|
+
u,
|
|
14
|
+
B,
|
|
15
|
+
e
|
|
16
|
+
], p = (n) => {
|
|
17
|
+
$.forEach((a) => {
|
|
18
|
+
n.component(a.name || "AnonymousComponent", a);
|
|
222
19
|
});
|
|
223
|
-
},
|
|
224
|
-
install:
|
|
20
|
+
}, l = {
|
|
21
|
+
install: p
|
|
225
22
|
};
|
|
226
23
|
export {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
24
|
+
o as NanoAddButton,
|
|
25
|
+
e as NanoBackTopButton,
|
|
26
|
+
N as NanoButton,
|
|
27
|
+
B as NanoCancelButton,
|
|
28
|
+
f as NanoDeleteButton,
|
|
232
29
|
c as NanoEditButton,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
30
|
+
m as NanoExportButton,
|
|
31
|
+
_ as NanoImportButton,
|
|
32
|
+
i as NanoManageButton,
|
|
33
|
+
t as NanoMoveButton,
|
|
34
|
+
u as NanoSubmitButton,
|
|
35
|
+
s as NanoTextAddButton,
|
|
36
|
+
l as default,
|
|
37
|
+
p as install
|
|
241
38
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./NanoTextAddButton.vue_vue_type_script_setup_true_lang-DIaonSsx.cjs"),t=require("./NanoButton.vue_vue_type_script_setup_true_lang-D1yLWi2K.cjs"),s=[t._sfc_main,n._sfc_main,n._sfc_main$1,n._sfc_main$2,n._sfc_main$3,n._sfc_main$4,n._sfc_main$5,n._sfc_main$6,n._sfc_main$7,n._sfc_main$8,n._sfc_main$9,n._sfc_main$10],a=o=>{s.forEach(_=>{o.component(_.name||"AnonymousComponent",_)})},e={install:a};exports.NanoAddButton=n._sfc_main;exports.NanoBackTopButton=n._sfc_main$10;exports.NanoCancelButton=n._sfc_main$9;exports.NanoDeleteButton=n._sfc_main$7;exports.NanoEditButton=n._sfc_main$5;exports.NanoExportButton=n._sfc_main$4;exports.NanoImportButton=n._sfc_main$3;exports.NanoManageButton=n._sfc_main$6;exports.NanoMoveButton=n._sfc_main$2;exports.NanoSubmitButton=n._sfc_main$8;exports.NanoTextAddButton=n._sfc_main$1;exports.NanoButton=t._sfc_main;exports.default=e;exports.install=a;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { App, Plugin } from 'vue';
|
|
2
|
+
import './buttons/styles/index.css';
|
|
3
|
+
import NanoAddButton from './buttons/components/NanoAddButton.vue';
|
|
4
|
+
import NanoBackTopButton from './buttons/components/NanoBackTopButton.vue';
|
|
5
|
+
import NanoButton from './buttons/components/NanoButton.vue';
|
|
6
|
+
import NanoCancelButton from './buttons/components/NanoCancelButton.vue';
|
|
7
|
+
import NanoDeleteButton from './buttons/components/NanoDeleteButton.vue';
|
|
8
|
+
import NanoEditButton from './buttons/components/NanoEditButton.vue';
|
|
9
|
+
import NanoExportButton from './buttons/components/NanoExportButton.vue';
|
|
10
|
+
import NanoImportButton from './buttons/components/NanoImportButton.vue';
|
|
11
|
+
import NanoManageButton from './buttons/components/NanoManageButton.vue';
|
|
12
|
+
import NanoMoveButton from './buttons/components/NanoMoveButton.vue';
|
|
13
|
+
import NanoSubmitButton from './buttons/components/NanoSubmitButton.vue';
|
|
14
|
+
import NanoTextAddButton from './buttons/components/NanoTextAddButton.vue';
|
|
15
|
+
declare const install: (app: App) => void;
|
|
16
|
+
declare const NanoButtons: Plugin;
|
|
17
|
+
export { NanoButton, NanoAddButton, NanoTextAddButton, NanoMoveButton, NanoImportButton, NanoExportButton, NanoEditButton, NanoManageButton, NanoDeleteButton, NanoSubmitButton, NanoCancelButton, NanoBackTopButton, install, };
|
|
18
|
+
export type { NanoButtonProps } from './buttons/components/props';
|
|
19
|
+
export default NanoButtons;
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
1
|
+
import { _ as o, a as s, b as t, c as _, d as m, e as c, f as i, g as f, h as u, i as B, j as e } from "./NanoTextAddButton.vue_vue_type_script_setup_true_lang-CYuxrToE.js";
|
|
2
|
+
import { _ as N } from "./NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js";
|
|
3
|
+
const $ = [
|
|
4
|
+
N,
|
|
5
|
+
o,
|
|
6
|
+
s,
|
|
7
|
+
t,
|
|
8
|
+
_,
|
|
9
|
+
m,
|
|
10
|
+
c,
|
|
11
|
+
i,
|
|
12
|
+
f,
|
|
13
|
+
u,
|
|
14
|
+
B,
|
|
15
|
+
e
|
|
16
|
+
], p = (n) => {
|
|
17
|
+
$.forEach((a) => {
|
|
18
|
+
n.component(a.name || "AnonymousComponent", a);
|
|
19
|
+
});
|
|
20
|
+
}, l = {
|
|
21
|
+
install: p
|
|
22
|
+
};
|
|
3
23
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
24
|
+
o as NanoAddButton,
|
|
25
|
+
e as NanoBackTopButton,
|
|
26
|
+
N as NanoButton,
|
|
27
|
+
B as NanoCancelButton,
|
|
28
|
+
f as NanoDeleteButton,
|
|
29
|
+
c as NanoEditButton,
|
|
30
|
+
m as NanoExportButton,
|
|
31
|
+
_ as NanoImportButton,
|
|
32
|
+
i as NanoManageButton,
|
|
33
|
+
t as NanoMoveButton,
|
|
34
|
+
u as NanoSubmitButton,
|
|
35
|
+
s as NanoTextAddButton,
|
|
36
|
+
l as default,
|
|
37
|
+
p as install
|
|
18
38
|
};
|