@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.
@@ -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;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=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:s.buttonProps,setup(r){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:s.buttonProps,setup(r){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:s.buttonProps,setup(r){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:s.buttonProps,setup(r){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:s.buttonProps,setup(r){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:s.buttonProps,setup(r){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))}}),c=e.defineComponent({name:"NanoImportButton",inheritAttrs:!1,__name:"NanoImportButton",props:s.buttonProps,setup(r){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))}}),d=e.defineComponent({name:"NanoManageButton",inheritAttrs:!1,__name:"NanoManageButton",props:s.buttonProps,setup(r){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:s.buttonProps,setup(r){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))}}),_=e.defineComponent({name:"NanoSubmitButton",inheritAttrs:!1,__name:"NanoSubmitButton",props:s.buttonProps,setup(r){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))}}),B=e.defineComponent({name:"NanoTextAddButton",inheritAttrs:!1,__name:"NanoTextAddButton",props:s.buttonProps,setup(r){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))}}),k=[n._sfc_main,a,B,f,c,m,i,d,u,_,l,p],$=r=>{k.forEach(t=>{r.component(t.name||"AnonymousComponent",t)})},N={install:$};exports.NanoButton=n._sfc_main;exports.NanoAddButton=a;exports.NanoBackTopButton=p;exports.NanoCancelButton=l;exports.NanoDeleteButton=u;exports.NanoEditButton=i;exports.NanoExportButton=m;exports.NanoImportButton=c;exports.NanoManageButton=d;exports.NanoMoveButton=f;exports.NanoSubmitButton=_;exports.NanoTextAddButton=B;exports.default=N;exports.install=$;
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;
@@ -1,241 +1,38 @@
1
- import { defineComponent as u, openBlock as a, createBlock as e, mergeProps as s, withCtx as p, renderSlot as l, createTextVNode as d, createElementVNode as m, normalizeProps as f, guardReactiveProps as $ } from "vue";
2
- import { buttonProps as i } from "element-plus";
3
- import { _ as n } from "../NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js";
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
- ], P = (r) => {
220
- M.forEach((t) => {
221
- r.component(t.name || "AnonymousComponent", t);
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
- }, D = {
224
- install: P
20
+ }, l = {
21
+ install: p
225
22
  };
226
23
  export {
227
- B as NanoAddButton,
228
- _ as NanoBackTopButton,
229
- n as NanoButton,
230
- N as NanoCancelButton,
231
- y as NanoDeleteButton,
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
- k as NanoExportButton,
234
- A as NanoImportButton,
235
- h as NanoManageButton,
236
- b as NanoMoveButton,
237
- g as NanoSubmitButton,
238
- E as NanoTextAddButton,
239
- D as default,
240
- P as install
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 t=require("./buttons/index.cjs"),o=require("./NanoButton.vue_vue_type_script_setup_true_lang-D1yLWi2K.cjs");exports.NanoAddButton=t.NanoAddButton;exports.NanoBackTopButton=t.NanoBackTopButton;exports.NanoCancelButton=t.NanoCancelButton;exports.NanoDeleteButton=t.NanoDeleteButton;exports.NanoEditButton=t.NanoEditButton;exports.NanoExportButton=t.NanoExportButton;exports.NanoImportButton=t.NanoImportButton;exports.NanoManageButton=t.NanoManageButton;exports.NanoMoveButton=t.NanoMoveButton;exports.NanoSubmitButton=t.NanoSubmitButton;exports.NanoTextAddButton=t.NanoTextAddButton;exports.default=t.default;exports.install=t.install;exports.NanoButton=o._sfc_main;
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
- export { default } from './buttons';
2
- export * from './buttons';
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 { NanoAddButton as n, NanoBackTopButton as a, NanoCancelButton as u, NanoDeleteButton as B, NanoEditButton as N, NanoExportButton as e, NanoImportButton as d, NanoManageButton as r, NanoMoveButton as l, NanoSubmitButton as p, NanoTextAddButton as m, default as x, install as f } from "./buttons/index.mjs";
2
- import { _ as c } from "./NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js";
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
- n as NanoAddButton,
5
- a as NanoBackTopButton,
6
- c as NanoButton,
7
- u as NanoCancelButton,
8
- B as NanoDeleteButton,
9
- N as NanoEditButton,
10
- e as NanoExportButton,
11
- d as NanoImportButton,
12
- r as NanoManageButton,
13
- l as NanoMoveButton,
14
- p as NanoSubmitButton,
15
- m as NanoTextAddButton,
16
- x as default,
17
- f as install
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cst-ui/nano-buttons",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Nano themed Vue 3 button components and dialog tab helpers based on Element Plus.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",