@cst-ui/nano-buttons 0.5.2 → 0.6.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.
- package/README.md +56 -2
- package/dist/NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-CYOJwieV.js +692 -0
- package/dist/NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-ClUhZWV4.cjs +1 -0
- package/dist/buttons/components/NanoCompleteButton.vue.d.ts +108 -0
- package/dist/buttons/components/NanoConfirmButton.vue.d.ts +108 -0
- package/dist/buttons/components/NanoConfirmedButton.vue.d.ts +93 -0
- package/dist/buttons/components/NanoInterruptButton.vue.d.ts +108 -0
- package/dist/buttons/components/NanoResetButton.vue.d.ts +93 -0
- package/dist/buttons/components/NanoSendButton.vue.d.ts +93 -0
- package/dist/buttons/index.cjs +1 -1
- package/dist/buttons/index.d.ts +7 -1
- package/dist/buttons/index.mjs +30 -18
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.mjs +30 -18
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-BADq5GB3.cjs +0 -1
- package/dist/NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-CeKsmoZi.js +0 -412
|
@@ -1,412 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as o, createBlock as r, mergeProps as a, withCtx as l, renderSlot as i, createTextVNode as y, createElementVNode as g, normalizeProps as C, guardReactiveProps as S, useAttrs as h, computed as v, resolveComponent as A, unref as _ } from "vue";
|
|
2
|
-
import { buttonProps as d } from "element-plus";
|
|
3
|
-
import { _ as s } from "./NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js";
|
|
4
|
-
const E = /* @__PURE__ */ m({
|
|
5
|
-
name: "NanoAddButton",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "NanoAddButton",
|
|
8
|
-
props: d,
|
|
9
|
-
setup(u) {
|
|
10
|
-
return (t, e) => (o(), r(s, a({ ...t.$props, ...t.$attrs }, {
|
|
11
|
-
type: "primary",
|
|
12
|
-
icon: "Plus"
|
|
13
|
-
}), {
|
|
14
|
-
default: l(() => [
|
|
15
|
-
i(t.$slots, "default", {}, () => [
|
|
16
|
-
e[0] || (e[0] = y("新增", -1))
|
|
17
|
-
])
|
|
18
|
-
]),
|
|
19
|
-
_: 3
|
|
20
|
-
}, 16));
|
|
21
|
-
}
|
|
22
|
-
}), V = /* @__PURE__ */ m({
|
|
23
|
-
name: "NanoBackTopButton",
|
|
24
|
-
inheritAttrs: !1,
|
|
25
|
-
__name: "NanoBackTopButton",
|
|
26
|
-
props: d,
|
|
27
|
-
setup(u) {
|
|
28
|
-
return (t, e) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
29
|
-
secondary: "",
|
|
30
|
-
class: "app-backtop-button"
|
|
31
|
-
}), {
|
|
32
|
-
default: l(() => [
|
|
33
|
-
i(t.$slots, "default")
|
|
34
|
-
]),
|
|
35
|
-
_: 3
|
|
36
|
-
}, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
37
|
-
secondary: "",
|
|
38
|
-
class: "app-backtop-button"
|
|
39
|
-
}), {
|
|
40
|
-
default: l(() => [...e[0] || (e[0] = [
|
|
41
|
-
g("svg", {
|
|
42
|
-
class: "app-backtop-icon",
|
|
43
|
-
viewBox: "0 0 24 24",
|
|
44
|
-
"aria-hidden": "true",
|
|
45
|
-
focusable: "false"
|
|
46
|
-
}, [
|
|
47
|
-
g("path", { d: "M6 5h12" }),
|
|
48
|
-
g("path", { d: "M12 19V9" }),
|
|
49
|
-
g("path", { d: "m8 13 4-4 4 4" })
|
|
50
|
-
], -1)
|
|
51
|
-
])]),
|
|
52
|
-
_: 1
|
|
53
|
-
}, 16));
|
|
54
|
-
}
|
|
55
|
-
}), x = /* @__PURE__ */ m({
|
|
56
|
-
name: "NanoCancelButton",
|
|
57
|
-
inheritAttrs: !1,
|
|
58
|
-
__name: "NanoCancelButton",
|
|
59
|
-
props: d,
|
|
60
|
-
setup(u) {
|
|
61
|
-
return (t, e) => (o(), r(s, C(S({ ...t.$props, ...t.$attrs })), {
|
|
62
|
-
default: l(() => [
|
|
63
|
-
i(t.$slots, "default", {}, () => [
|
|
64
|
-
e[0] || (e[0] = y("取消", -1))
|
|
65
|
-
])
|
|
66
|
-
]),
|
|
67
|
-
_: 3
|
|
68
|
-
}, 16));
|
|
69
|
-
}
|
|
70
|
-
}), M = /* @__PURE__ */ m({
|
|
71
|
-
name: "NanoDeleteButton",
|
|
72
|
-
inheritAttrs: !1,
|
|
73
|
-
__name: "NanoDeleteButton",
|
|
74
|
-
props: {
|
|
75
|
-
...d,
|
|
76
|
-
confirmTitle: String,
|
|
77
|
-
confirmButtonText: String,
|
|
78
|
-
cancelButtonText: String
|
|
79
|
-
},
|
|
80
|
-
emits: ["click", "confirm", "cancel"],
|
|
81
|
-
setup(u, { emit: t }) {
|
|
82
|
-
const e = u, $ = t, c = h(), p = v(() => {
|
|
83
|
-
const {
|
|
84
|
-
confirmTitle: n,
|
|
85
|
-
confirmButtonText: N,
|
|
86
|
-
cancelButtonText: B,
|
|
87
|
-
...b
|
|
88
|
-
} = e;
|
|
89
|
-
return b;
|
|
90
|
-
}), f = (n) => {
|
|
91
|
-
$("click", n);
|
|
92
|
-
}, T = (n) => {
|
|
93
|
-
$("confirm", n);
|
|
94
|
-
}, k = (n) => {
|
|
95
|
-
$("cancel", n);
|
|
96
|
-
};
|
|
97
|
-
return (n, N) => {
|
|
98
|
-
const B = A("el-popconfirm");
|
|
99
|
-
return e.confirmTitle ? (o(), r(B, {
|
|
100
|
-
key: 0,
|
|
101
|
-
title: e.confirmTitle,
|
|
102
|
-
"confirm-button-text": e.confirmButtonText,
|
|
103
|
-
"cancel-button-text": e.cancelButtonText,
|
|
104
|
-
onConfirm: T,
|
|
105
|
-
onCancel: k
|
|
106
|
-
}, {
|
|
107
|
-
reference: l(() => [
|
|
108
|
-
n.$slots.default ? (o(), r(s, a({ key: 0 }, { ...p.value, ..._(c) }, {
|
|
109
|
-
type: "danger",
|
|
110
|
-
icon: "Delete",
|
|
111
|
-
onClick: f
|
|
112
|
-
}), {
|
|
113
|
-
default: l(() => [
|
|
114
|
-
i(n.$slots, "default")
|
|
115
|
-
]),
|
|
116
|
-
_: 3
|
|
117
|
-
}, 16)) : (o(), r(s, a({ key: 1 }, { ...p.value, ..._(c) }, {
|
|
118
|
-
type: "danger",
|
|
119
|
-
icon: "Delete",
|
|
120
|
-
onClick: f
|
|
121
|
-
}), null, 16))
|
|
122
|
-
]),
|
|
123
|
-
_: 3
|
|
124
|
-
}, 8, ["title", "confirm-button-text", "cancel-button-text"])) : n.$slots.default ? (o(), r(s, a({ key: 1 }, { ...p.value, ..._(c) }, {
|
|
125
|
-
type: "danger",
|
|
126
|
-
icon: "Delete",
|
|
127
|
-
onClick: f
|
|
128
|
-
}), {
|
|
129
|
-
default: l(() => [
|
|
130
|
-
i(n.$slots, "default")
|
|
131
|
-
]),
|
|
132
|
-
_: 3
|
|
133
|
-
}, 16)) : (o(), r(s, a({ key: 2 }, { ...p.value, ..._(c) }, {
|
|
134
|
-
type: "danger",
|
|
135
|
-
icon: "Delete",
|
|
136
|
-
onClick: f
|
|
137
|
-
}), null, 16));
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
}), z = /* @__PURE__ */ m({
|
|
141
|
-
name: "NanoEditButton",
|
|
142
|
-
inheritAttrs: !1,
|
|
143
|
-
__name: "NanoEditButton",
|
|
144
|
-
props: d,
|
|
145
|
-
setup(u) {
|
|
146
|
-
return (t, e) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, { icon: "Edit" }), {
|
|
147
|
-
default: l(() => [
|
|
148
|
-
i(t.$slots, "default")
|
|
149
|
-
]),
|
|
150
|
-
_: 3
|
|
151
|
-
}, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, { icon: "Edit" }), null, 16));
|
|
152
|
-
}
|
|
153
|
-
}), H = /* @__PURE__ */ m({
|
|
154
|
-
name: "NanoExportButton",
|
|
155
|
-
inheritAttrs: !1,
|
|
156
|
-
__name: "NanoExportButton",
|
|
157
|
-
props: d,
|
|
158
|
-
setup(u) {
|
|
159
|
-
return (t, e) => (o(), r(s, a({ ...t.$props, ...t.$attrs }, {
|
|
160
|
-
class: "app-button-export",
|
|
161
|
-
icon: "Download"
|
|
162
|
-
}), {
|
|
163
|
-
default: l(() => [
|
|
164
|
-
i(t.$slots, "default", {}, () => [
|
|
165
|
-
e[0] || (e[0] = y("导出", -1))
|
|
166
|
-
])
|
|
167
|
-
]),
|
|
168
|
-
_: 3
|
|
169
|
-
}, 16));
|
|
170
|
-
}
|
|
171
|
-
}), U = /* @__PURE__ */ m({
|
|
172
|
-
name: "NanoFreezeButton",
|
|
173
|
-
inheritAttrs: !1,
|
|
174
|
-
__name: "NanoFreezeButton",
|
|
175
|
-
props: {
|
|
176
|
-
...d,
|
|
177
|
-
confirmTitle: String,
|
|
178
|
-
confirmButtonText: String,
|
|
179
|
-
cancelButtonText: String
|
|
180
|
-
},
|
|
181
|
-
emits: ["click", "confirm", "cancel"],
|
|
182
|
-
setup(u, { emit: t }) {
|
|
183
|
-
const e = u, $ = t, c = h(), p = v(() => {
|
|
184
|
-
const {
|
|
185
|
-
confirmTitle: n,
|
|
186
|
-
confirmButtonText: N,
|
|
187
|
-
cancelButtonText: B,
|
|
188
|
-
...b
|
|
189
|
-
} = e;
|
|
190
|
-
return b;
|
|
191
|
-
}), f = (n) => {
|
|
192
|
-
$("click", n);
|
|
193
|
-
}, T = (n) => {
|
|
194
|
-
$("confirm", n);
|
|
195
|
-
}, k = (n) => {
|
|
196
|
-
$("cancel", n);
|
|
197
|
-
};
|
|
198
|
-
return (n, N) => {
|
|
199
|
-
const B = A("el-popconfirm");
|
|
200
|
-
return e.confirmTitle ? (o(), r(B, {
|
|
201
|
-
key: 0,
|
|
202
|
-
title: e.confirmTitle,
|
|
203
|
-
"confirm-button-text": e.confirmButtonText,
|
|
204
|
-
"cancel-button-text": e.cancelButtonText,
|
|
205
|
-
onConfirm: T,
|
|
206
|
-
onCancel: k
|
|
207
|
-
}, {
|
|
208
|
-
reference: l(() => [
|
|
209
|
-
n.$slots.default ? (o(), r(s, a({ key: 0 }, { ...p.value, ..._(c) }, {
|
|
210
|
-
type: "danger",
|
|
211
|
-
icon: "Hide",
|
|
212
|
-
onClick: f
|
|
213
|
-
}), {
|
|
214
|
-
default: l(() => [
|
|
215
|
-
i(n.$slots, "default")
|
|
216
|
-
]),
|
|
217
|
-
_: 3
|
|
218
|
-
}, 16)) : (o(), r(s, a({ key: 1 }, { ...p.value, ..._(c) }, {
|
|
219
|
-
type: "danger",
|
|
220
|
-
icon: "Hide",
|
|
221
|
-
onClick: f
|
|
222
|
-
}), null, 16))
|
|
223
|
-
]),
|
|
224
|
-
_: 3
|
|
225
|
-
}, 8, ["title", "confirm-button-text", "cancel-button-text"])) : n.$slots.default ? (o(), r(s, a({ key: 1 }, { ...p.value, ..._(c) }, {
|
|
226
|
-
type: "danger",
|
|
227
|
-
icon: "Hide",
|
|
228
|
-
onClick: f
|
|
229
|
-
}), {
|
|
230
|
-
default: l(() => [
|
|
231
|
-
i(n.$slots, "default")
|
|
232
|
-
]),
|
|
233
|
-
_: 3
|
|
234
|
-
}, 16)) : (o(), r(s, a({ key: 2 }, { ...p.value, ..._(c) }, {
|
|
235
|
-
type: "danger",
|
|
236
|
-
icon: "Hide",
|
|
237
|
-
onClick: f
|
|
238
|
-
}), null, 16));
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
}), F = /* @__PURE__ */ m({
|
|
242
|
-
name: "NanoImportButton",
|
|
243
|
-
inheritAttrs: !1,
|
|
244
|
-
__name: "NanoImportButton",
|
|
245
|
-
props: d,
|
|
246
|
-
setup(u) {
|
|
247
|
-
return (t, e) => (o(), r(s, a({ ...t.$props, ...t.$attrs }, {
|
|
248
|
-
class: "app-button-import",
|
|
249
|
-
icon: "Upload"
|
|
250
|
-
}), {
|
|
251
|
-
default: l(() => [
|
|
252
|
-
i(t.$slots, "default", {}, () => [
|
|
253
|
-
e[0] || (e[0] = y("导入", -1))
|
|
254
|
-
])
|
|
255
|
-
]),
|
|
256
|
-
_: 3
|
|
257
|
-
}, 16));
|
|
258
|
-
}
|
|
259
|
-
}), I = /* @__PURE__ */ m({
|
|
260
|
-
name: "NanoManageButton",
|
|
261
|
-
inheritAttrs: !1,
|
|
262
|
-
__name: "NanoManageButton",
|
|
263
|
-
props: d,
|
|
264
|
-
setup(u) {
|
|
265
|
-
return (t, e) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
266
|
-
type: "primary",
|
|
267
|
-
icon: "Setting"
|
|
268
|
-
}), {
|
|
269
|
-
default: l(() => [
|
|
270
|
-
i(t.$slots, "default")
|
|
271
|
-
]),
|
|
272
|
-
_: 3
|
|
273
|
-
}, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
274
|
-
type: "primary",
|
|
275
|
-
icon: "Setting"
|
|
276
|
-
}), null, 16));
|
|
277
|
-
}
|
|
278
|
-
}), R = /* @__PURE__ */ m({
|
|
279
|
-
name: "NanoMoveButton",
|
|
280
|
-
inheritAttrs: !1,
|
|
281
|
-
__name: "NanoMoveButton",
|
|
282
|
-
props: d,
|
|
283
|
-
setup(u) {
|
|
284
|
-
return (t, e) => (o(), r(s, a({ ...t.$props, ...t.$attrs }, { icon: "Rank" }), {
|
|
285
|
-
default: l(() => [
|
|
286
|
-
i(t.$slots, "default", {}, () => [
|
|
287
|
-
e[0] || (e[0] = y("移动", -1))
|
|
288
|
-
])
|
|
289
|
-
]),
|
|
290
|
-
_: 3
|
|
291
|
-
}, 16));
|
|
292
|
-
}
|
|
293
|
-
}), j = /* @__PURE__ */ m({
|
|
294
|
-
name: "NanoSubmitButton",
|
|
295
|
-
inheritAttrs: !1,
|
|
296
|
-
__name: "NanoSubmitButton",
|
|
297
|
-
props: d,
|
|
298
|
-
setup(u) {
|
|
299
|
-
return (t, e) => (o(), r(s, a({ ...t.$props, ...t.$attrs }, { type: "primary" }), {
|
|
300
|
-
default: l(() => [
|
|
301
|
-
i(t.$slots, "default", {}, () => [
|
|
302
|
-
e[0] || (e[0] = y("保存", -1))
|
|
303
|
-
])
|
|
304
|
-
]),
|
|
305
|
-
_: 3
|
|
306
|
-
}, 16));
|
|
307
|
-
}
|
|
308
|
-
}), q = /* @__PURE__ */ m({
|
|
309
|
-
name: "NanoTextAddButton",
|
|
310
|
-
inheritAttrs: !1,
|
|
311
|
-
__name: "NanoTextAddButton",
|
|
312
|
-
props: d,
|
|
313
|
-
setup(u) {
|
|
314
|
-
return (t, e) => t.$slots.default ? (o(), r(s, a({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
315
|
-
text: "",
|
|
316
|
-
icon: "Plus"
|
|
317
|
-
}), {
|
|
318
|
-
default: l(() => [
|
|
319
|
-
i(t.$slots, "default")
|
|
320
|
-
]),
|
|
321
|
-
_: 3
|
|
322
|
-
}, 16)) : (o(), r(s, a({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
323
|
-
text: "",
|
|
324
|
-
icon: "Plus"
|
|
325
|
-
}), null, 16));
|
|
326
|
-
}
|
|
327
|
-
}), G = /* @__PURE__ */ m({
|
|
328
|
-
name: "NanoUnfreezeButton",
|
|
329
|
-
inheritAttrs: !1,
|
|
330
|
-
__name: "NanoUnfreezeButton",
|
|
331
|
-
props: {
|
|
332
|
-
...d,
|
|
333
|
-
confirmTitle: String,
|
|
334
|
-
confirmButtonText: String,
|
|
335
|
-
cancelButtonText: String
|
|
336
|
-
},
|
|
337
|
-
emits: ["click", "confirm", "cancel"],
|
|
338
|
-
setup(u, { emit: t }) {
|
|
339
|
-
const e = u, $ = t, c = h(), p = v(() => {
|
|
340
|
-
const {
|
|
341
|
-
confirmTitle: n,
|
|
342
|
-
confirmButtonText: N,
|
|
343
|
-
cancelButtonText: B,
|
|
344
|
-
...b
|
|
345
|
-
} = e;
|
|
346
|
-
return b;
|
|
347
|
-
}), f = (n) => {
|
|
348
|
-
$("click", n);
|
|
349
|
-
}, T = (n) => {
|
|
350
|
-
$("confirm", n);
|
|
351
|
-
}, k = (n) => {
|
|
352
|
-
$("cancel", n);
|
|
353
|
-
};
|
|
354
|
-
return (n, N) => {
|
|
355
|
-
const B = A("el-popconfirm");
|
|
356
|
-
return e.confirmTitle ? (o(), r(B, {
|
|
357
|
-
key: 0,
|
|
358
|
-
title: e.confirmTitle,
|
|
359
|
-
"confirm-button-text": e.confirmButtonText,
|
|
360
|
-
"cancel-button-text": e.cancelButtonText,
|
|
361
|
-
onConfirm: T,
|
|
362
|
-
onCancel: k
|
|
363
|
-
}, {
|
|
364
|
-
reference: l(() => [
|
|
365
|
-
n.$slots.default ? (o(), r(s, a({ key: 0 }, { ...p.value, ..._(c) }, {
|
|
366
|
-
type: "success",
|
|
367
|
-
icon: "View",
|
|
368
|
-
onClick: f
|
|
369
|
-
}), {
|
|
370
|
-
default: l(() => [
|
|
371
|
-
i(n.$slots, "default")
|
|
372
|
-
]),
|
|
373
|
-
_: 3
|
|
374
|
-
}, 16)) : (o(), r(s, a({ key: 1 }, { ...p.value, ..._(c) }, {
|
|
375
|
-
type: "success",
|
|
376
|
-
icon: "View",
|
|
377
|
-
onClick: f
|
|
378
|
-
}), null, 16))
|
|
379
|
-
]),
|
|
380
|
-
_: 3
|
|
381
|
-
}, 8, ["title", "confirm-button-text", "cancel-button-text"])) : n.$slots.default ? (o(), r(s, a({ key: 1 }, { ...p.value, ..._(c) }, {
|
|
382
|
-
type: "success",
|
|
383
|
-
icon: "View",
|
|
384
|
-
onClick: f
|
|
385
|
-
}), {
|
|
386
|
-
default: l(() => [
|
|
387
|
-
i(n.$slots, "default")
|
|
388
|
-
]),
|
|
389
|
-
_: 3
|
|
390
|
-
}, 16)) : (o(), r(s, a({ key: 2 }, { ...p.value, ..._(c) }, {
|
|
391
|
-
type: "success",
|
|
392
|
-
icon: "View",
|
|
393
|
-
onClick: f
|
|
394
|
-
}), null, 16));
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
});
|
|
398
|
-
export {
|
|
399
|
-
E as _,
|
|
400
|
-
q as a,
|
|
401
|
-
R as b,
|
|
402
|
-
F as c,
|
|
403
|
-
H as d,
|
|
404
|
-
z as e,
|
|
405
|
-
I as f,
|
|
406
|
-
M as g,
|
|
407
|
-
U as h,
|
|
408
|
-
G as i,
|
|
409
|
-
j,
|
|
410
|
-
x as k,
|
|
411
|
-
V as l
|
|
412
|
-
};
|