@cst-ui/nano-buttons 0.5.1 → 0.5.2
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 +11 -5
- package/dist/NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-BADq5GB3.cjs +1 -0
- package/dist/NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-CeKsmoZi.js +412 -0
- package/dist/buttons/components/NanoFreezeButton.vue.d.ts +71 -56
- package/dist/buttons/components/NanoUnfreezeButton.vue.d.ts +71 -56
- package/dist/buttons/index.cjs +1 -1
- package/dist/buttons/index.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-Cs8PMAfP.cjs +0 -1
- package/dist/NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-ZdkOEKHg.js +0 -310
package/README.md
CHANGED
|
@@ -116,16 +116,22 @@ import { CstPagination, CstTable } from '@cst-ui/nano-buttons/table'
|
|
|
116
116
|
/>
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
-
`confirm-title`、`confirm-button-text` 和 `cancel-button-text` 接收最终显示文案,国际化由业务项目调用 `$t()`
|
|
119
|
+
`confirm-title`、`confirm-button-text` 和 `cancel-button-text` 接收最终显示文案,国际化由业务项目调用 `$t()` 后传入。启用确认时,业务操作应绑定 `confirm`,不要绑定 `click`。
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
冻结按钮使用 EMS 现有的红色 `Hide` 图标样式,解冻按钮使用配套的绿色 `View` 图标样式。默认直接触发 `click`;传入 `confirm-title` 后启用确认框,并在确认时触发 `confirm`:
|
|
122
122
|
|
|
123
123
|
```vue
|
|
124
|
-
<nano-freeze-button
|
|
125
|
-
|
|
124
|
+
<nano-freeze-button
|
|
125
|
+
:confirm-title="$t('common.sureFreeze')"
|
|
126
|
+
@confirm="onFreeze(row)"
|
|
127
|
+
/>
|
|
128
|
+
<nano-unfreeze-button
|
|
129
|
+
:confirm-title="$t('common.sureUnfreeze')"
|
|
130
|
+
@confirm="onUnfreeze(row)"
|
|
131
|
+
/>
|
|
126
132
|
```
|
|
127
133
|
|
|
128
|
-
两个组件都继承 Element Plus Button 的 `loading`、`disabled`
|
|
134
|
+
两个组件都继承 Element Plus Button 的 `loading`、`disabled` 等属性,并支持与删除按钮相同的确认/取消文案和事件;传入默认插槽时可以显示业务文案,不传时保持表格操作列的图标按钮样式。
|
|
129
135
|
|
|
130
136
|
不在固定语义里的普通按钮,统一使用 `<nano-button>`:
|
|
131
137
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),i=require("element-plus"),r=require("./NanoButton.vue_vue_type_script_setup_true_lang-D1yLWi2K.cjs"),B=e.defineComponent({name:"NanoAddButton",inheritAttrs:!1,__name:"NanoAddButton",props:i.buttonProps,setup(s){return(t,n)=>(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({...t.$props,...t.$attrs},{type:"primary",icon:"Plus"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[n[0]||(n[0]=e.createTextVNode("新增",-1))])]),_:3},16))}}),k=e.defineComponent({name:"NanoBackTopButton",inheritAttrs:!1,__name:"NanoBackTopButton",props:i.buttonProps,setup(s){return(t,n)=>t.$slots.default?(e.openBlock(),e.createBlock(r._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(r._sfc_main,e.mergeProps({key:1},{...t.$props,...t.$attrs},{secondary:"",class:"app-backtop-button"}),{default:e.withCtx(()=>[...n[0]||(n[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))}}),$=e.defineComponent({name:"NanoCancelButton",inheritAttrs:!1,__name:"NanoCancelButton",props:i.buttonProps,setup(s){return(t,n)=>(e.openBlock(),e.createBlock(r._sfc_main,e.normalizeProps(e.guardReactiveProps({...t.$props,...t.$attrs})),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[n[0]||(n[0]=e.createTextVNode("取消",-1))])]),_:3},16))}}),P=e.defineComponent({name:"NanoDeleteButton",inheritAttrs:!1,__name:"NanoDeleteButton",props:{...i.buttonProps,confirmTitle:String,confirmButtonText:String,cancelButtonText:String},emits:["click","confirm","cancel"],setup(s,{emit:t}){const n=s,p=t,c=e.useAttrs(),a=e.computed(()=>{const{confirmTitle:o,confirmButtonText:_,cancelButtonText:u,...d}=n;return d}),l=o=>{p("click",o)},m=o=>{p("confirm",o)},f=o=>{p("cancel",o)};return(o,_)=>{const u=e.resolveComponent("el-popconfirm");return n.confirmTitle?(e.openBlock(),e.createBlock(u,{key:0,title:n.confirmTitle,"confirm-button-text":n.confirmButtonText,"cancel-button-text":n.cancelButtonText,onConfirm:m,onCancel:f},{reference:e.withCtx(()=>[o.$slots.default?(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({key:0},{...a.value,...e.unref(c)},{type:"danger",icon:"Delete",onClick:l}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({key:1},{...a.value,...e.unref(c)},{type:"danger",icon:"Delete",onClick:l}),null,16))]),_:3},8,["title","confirm-button-text","cancel-button-text"])):o.$slots.default?(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({key:1},{...a.value,...e.unref(c)},{type:"danger",icon:"Delete",onClick:l}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({key:2},{...a.value,...e.unref(c)},{type:"danger",icon:"Delete",onClick:l}),null,16))}}}),g=e.defineComponent({name:"NanoEditButton",inheritAttrs:!1,__name:"NanoEditButton",props:i.buttonProps,setup(s){return(t,n)=>t.$slots.default?(e.openBlock(),e.createBlock(r._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(r._sfc_main,e.mergeProps({key:1},{...t.$props,...t.$attrs},{icon:"Edit"}),null,16))}}),T=e.defineComponent({name:"NanoExportButton",inheritAttrs:!1,__name:"NanoExportButton",props:i.buttonProps,setup(s){return(t,n)=>(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({...t.$props,...t.$attrs},{class:"app-button-export",icon:"Download"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[n[0]||(n[0]=e.createTextVNode("导出",-1))])]),_:3},16))}}),C=e.defineComponent({name:"NanoFreezeButton",inheritAttrs:!1,__name:"NanoFreezeButton",props:{...i.buttonProps,confirmTitle:String,confirmButtonText:String,cancelButtonText:String},emits:["click","confirm","cancel"],setup(s,{emit:t}){const n=s,p=t,c=e.useAttrs(),a=e.computed(()=>{const{confirmTitle:o,confirmButtonText:_,cancelButtonText:u,...d}=n;return d}),l=o=>{p("click",o)},m=o=>{p("confirm",o)},f=o=>{p("cancel",o)};return(o,_)=>{const u=e.resolveComponent("el-popconfirm");return n.confirmTitle?(e.openBlock(),e.createBlock(u,{key:0,title:n.confirmTitle,"confirm-button-text":n.confirmButtonText,"cancel-button-text":n.cancelButtonText,onConfirm:m,onCancel:f},{reference:e.withCtx(()=>[o.$slots.default?(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({key:0},{...a.value,...e.unref(c)},{type:"danger",icon:"Hide",onClick:l}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({key:1},{...a.value,...e.unref(c)},{type:"danger",icon:"Hide",onClick:l}),null,16))]),_:3},8,["title","confirm-button-text","cancel-button-text"])):o.$slots.default?(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({key:1},{...a.value,...e.unref(c)},{type:"danger",icon:"Hide",onClick:l}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({key:2},{...a.value,...e.unref(c)},{type:"danger",icon:"Hide",onClick:l}),null,16))}}}),y=e.defineComponent({name:"NanoImportButton",inheritAttrs:!1,__name:"NanoImportButton",props:i.buttonProps,setup(s){return(t,n)=>(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({...t.$props,...t.$attrs},{class:"app-button-import",icon:"Upload"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[n[0]||(n[0]=e.createTextVNode("导入",-1))])]),_:3},16))}}),h=e.defineComponent({name:"NanoManageButton",inheritAttrs:!1,__name:"NanoManageButton",props:i.buttonProps,setup(s){return(t,n)=>t.$slots.default?(e.openBlock(),e.createBlock(r._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(r._sfc_main,e.mergeProps({key:1},{...t.$props,...t.$attrs},{type:"primary",icon:"Setting"}),null,16))}}),N=e.defineComponent({name:"NanoMoveButton",inheritAttrs:!1,__name:"NanoMoveButton",props:i.buttonProps,setup(s){return(t,n)=>(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({...t.$props,...t.$attrs},{icon:"Rank"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[n[0]||(n[0]=e.createTextVNode("移动",-1))])]),_:3},16))}}),b=e.defineComponent({name:"NanoSubmitButton",inheritAttrs:!1,__name:"NanoSubmitButton",props:i.buttonProps,setup(s){return(t,n)=>(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({...t.$props,...t.$attrs},{type:"primary"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[n[0]||(n[0]=e.createTextVNode("保存",-1))])]),_:3},16))}}),w=e.defineComponent({name:"NanoTextAddButton",inheritAttrs:!1,__name:"NanoTextAddButton",props:i.buttonProps,setup(s){return(t,n)=>t.$slots.default?(e.openBlock(),e.createBlock(r._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(r._sfc_main,e.mergeProps({key:1},{...t.$props,...t.$attrs},{text:"",icon:"Plus"}),null,16))}}),x=e.defineComponent({name:"NanoUnfreezeButton",inheritAttrs:!1,__name:"NanoUnfreezeButton",props:{...i.buttonProps,confirmTitle:String,confirmButtonText:String,cancelButtonText:String},emits:["click","confirm","cancel"],setup(s,{emit:t}){const n=s,p=t,c=e.useAttrs(),a=e.computed(()=>{const{confirmTitle:o,confirmButtonText:_,cancelButtonText:u,...d}=n;return d}),l=o=>{p("click",o)},m=o=>{p("confirm",o)},f=o=>{p("cancel",o)};return(o,_)=>{const u=e.resolveComponent("el-popconfirm");return n.confirmTitle?(e.openBlock(),e.createBlock(u,{key:0,title:n.confirmTitle,"confirm-button-text":n.confirmButtonText,"cancel-button-text":n.cancelButtonText,onConfirm:m,onCancel:f},{reference:e.withCtx(()=>[o.$slots.default?(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({key:0},{...a.value,...e.unref(c)},{type:"success",icon:"View",onClick:l}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({key:1},{...a.value,...e.unref(c)},{type:"success",icon:"View",onClick:l}),null,16))]),_:3},8,["title","confirm-button-text","cancel-button-text"])):o.$slots.default?(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({key:1},{...a.value,...e.unref(c)},{type:"success",icon:"View",onClick:l}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(r._sfc_main,e.mergeProps({key:2},{...a.value,...e.unref(c)},{type:"success",icon:"View",onClick:l}),null,16))}}});exports._sfc_main=B;exports._sfc_main$1=w;exports._sfc_main$10=b;exports._sfc_main$11=$;exports._sfc_main$12=k;exports._sfc_main$2=N;exports._sfc_main$3=y;exports._sfc_main$4=T;exports._sfc_main$5=g;exports._sfc_main$6=h;exports._sfc_main$7=P;exports._sfc_main$8=C;exports._sfc_main$9=x;
|
|
@@ -0,0 +1,412 @@
|
|
|
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
|
+
};
|
|
@@ -1,88 +1,103 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
2
|
slots: {
|
|
3
3
|
default?(_: {}): any;
|
|
4
|
+
default?(_: {}): any;
|
|
4
5
|
};
|
|
5
6
|
refs: {};
|
|
6
7
|
attrs: Partial<{}>;
|
|
7
8
|
};
|
|
8
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
10
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
-
|
|
11
|
+
confirmTitle: StringConstructor;
|
|
12
|
+
confirmButtonText: StringConstructor;
|
|
13
|
+
cancelButtonText: StringConstructor;
|
|
14
|
+
size: {
|
|
11
15
|
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
12
16
|
readonly required: false;
|
|
13
17
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14
18
|
__epPropKey: true;
|
|
15
19
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
disabled: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
21
|
+
type: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<StringConstructor, "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger", unknown, "", boolean>;
|
|
22
|
+
icon: {
|
|
19
23
|
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>>;
|
|
20
24
|
readonly required: false;
|
|
21
25
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
26
|
__epPropKey: true;
|
|
23
27
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
|
-
|
|
28
|
+
nativeType: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
29
|
+
loading: BooleanConstructor;
|
|
30
|
+
loadingIcon: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, () => import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
31
|
+
plain: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
32
|
+
text: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
33
|
+
link: BooleanConstructor;
|
|
34
|
+
bg: BooleanConstructor;
|
|
35
|
+
autofocus: BooleanConstructor;
|
|
36
|
+
round: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
37
|
+
circle: BooleanConstructor;
|
|
38
|
+
dashed: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
39
|
+
color: StringConstructor;
|
|
40
|
+
dark: BooleanConstructor;
|
|
41
|
+
autoInsertSpace: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
42
|
+
tag: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, "button", boolean>;
|
|
43
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
+
cancel: (event: MouseEvent) => any;
|
|
45
|
+
click: (event: MouseEvent) => any;
|
|
46
|
+
confirm: (event: MouseEvent) => any;
|
|
47
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
confirmTitle: StringConstructor;
|
|
49
|
+
confirmButtonText: StringConstructor;
|
|
50
|
+
cancelButtonText: StringConstructor;
|
|
51
|
+
size: {
|
|
41
52
|
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
42
53
|
readonly required: false;
|
|
43
54
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
44
55
|
__epPropKey: true;
|
|
45
56
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
disabled: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
58
|
+
type: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<StringConstructor, "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger", unknown, "", boolean>;
|
|
59
|
+
icon: {
|
|
49
60
|
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>>;
|
|
50
61
|
readonly required: false;
|
|
51
62
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
52
63
|
__epPropKey: true;
|
|
53
64
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}>> & Readonly<{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
65
|
+
nativeType: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
66
|
+
loading: BooleanConstructor;
|
|
67
|
+
loadingIcon: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, () => import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
68
|
+
plain: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
69
|
+
text: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
70
|
+
link: BooleanConstructor;
|
|
71
|
+
bg: BooleanConstructor;
|
|
72
|
+
autofocus: BooleanConstructor;
|
|
73
|
+
round: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
74
|
+
circle: BooleanConstructor;
|
|
75
|
+
dashed: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
76
|
+
color: StringConstructor;
|
|
77
|
+
dark: BooleanConstructor;
|
|
78
|
+
autoInsertSpace: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
79
|
+
tag: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, "button", boolean>;
|
|
80
|
+
}>> & Readonly<{
|
|
81
|
+
onCancel?: ((event: MouseEvent) => any) | undefined;
|
|
82
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
83
|
+
onConfirm?: ((event: MouseEvent) => any) | undefined;
|
|
84
|
+
}>, {
|
|
85
|
+
type: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<StringConstructor, "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger", unknown>;
|
|
86
|
+
text: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
87
|
+
disabled: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
88
|
+
nativeType: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
|
|
89
|
+
loading: boolean;
|
|
90
|
+
loadingIcon: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | null)[], unknown, unknown>;
|
|
91
|
+
plain: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
92
|
+
link: boolean;
|
|
93
|
+
bg: boolean;
|
|
94
|
+
autofocus: boolean;
|
|
95
|
+
round: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
96
|
+
circle: boolean;
|
|
97
|
+
dashed: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
98
|
+
dark: boolean;
|
|
99
|
+
autoInsertSpace: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
100
|
+
tag: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | null)[], unknown, unknown>;
|
|
86
101
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
87
102
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
88
103
|
export default _default;
|
|
@@ -1,88 +1,103 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
2
|
slots: {
|
|
3
3
|
default?(_: {}): any;
|
|
4
|
+
default?(_: {}): any;
|
|
4
5
|
};
|
|
5
6
|
refs: {};
|
|
6
7
|
attrs: Partial<{}>;
|
|
7
8
|
};
|
|
8
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
10
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
-
|
|
11
|
+
confirmTitle: StringConstructor;
|
|
12
|
+
confirmButtonText: StringConstructor;
|
|
13
|
+
cancelButtonText: StringConstructor;
|
|
14
|
+
size: {
|
|
11
15
|
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
12
16
|
readonly required: false;
|
|
13
17
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14
18
|
__epPropKey: true;
|
|
15
19
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
disabled: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
21
|
+
type: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<StringConstructor, "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger", unknown, "", boolean>;
|
|
22
|
+
icon: {
|
|
19
23
|
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>>;
|
|
20
24
|
readonly required: false;
|
|
21
25
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
26
|
__epPropKey: true;
|
|
23
27
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
|
-
|
|
28
|
+
nativeType: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
29
|
+
loading: BooleanConstructor;
|
|
30
|
+
loadingIcon: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, () => import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
31
|
+
plain: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
32
|
+
text: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
33
|
+
link: BooleanConstructor;
|
|
34
|
+
bg: BooleanConstructor;
|
|
35
|
+
autofocus: BooleanConstructor;
|
|
36
|
+
round: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
37
|
+
circle: BooleanConstructor;
|
|
38
|
+
dashed: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
39
|
+
color: StringConstructor;
|
|
40
|
+
dark: BooleanConstructor;
|
|
41
|
+
autoInsertSpace: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
42
|
+
tag: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, "button", boolean>;
|
|
43
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
+
cancel: (event: MouseEvent) => any;
|
|
45
|
+
click: (event: MouseEvent) => any;
|
|
46
|
+
confirm: (event: MouseEvent) => any;
|
|
47
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
confirmTitle: StringConstructor;
|
|
49
|
+
confirmButtonText: StringConstructor;
|
|
50
|
+
cancelButtonText: StringConstructor;
|
|
51
|
+
size: {
|
|
41
52
|
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
42
53
|
readonly required: false;
|
|
43
54
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
44
55
|
__epPropKey: true;
|
|
45
56
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
disabled: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
58
|
+
type: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<StringConstructor, "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger", unknown, "", boolean>;
|
|
59
|
+
icon: {
|
|
49
60
|
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>>;
|
|
50
61
|
readonly required: false;
|
|
51
62
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
52
63
|
__epPropKey: true;
|
|
53
64
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}>> & Readonly<{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
65
|
+
nativeType: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<StringConstructor, "button" | "reset" | "submit", unknown, "button", boolean>;
|
|
66
|
+
loading: BooleanConstructor;
|
|
67
|
+
loadingIcon: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, () => import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, boolean>;
|
|
68
|
+
plain: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
69
|
+
text: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
70
|
+
link: BooleanConstructor;
|
|
71
|
+
bg: BooleanConstructor;
|
|
72
|
+
autofocus: BooleanConstructor;
|
|
73
|
+
round: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
74
|
+
circle: BooleanConstructor;
|
|
75
|
+
dashed: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
76
|
+
color: StringConstructor;
|
|
77
|
+
dark: BooleanConstructor;
|
|
78
|
+
autoInsertSpace: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
79
|
+
tag: import("element-plus/es/utils/vue/props/types.js").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown, "button", boolean>;
|
|
80
|
+
}>> & Readonly<{
|
|
81
|
+
onCancel?: ((event: MouseEvent) => any) | undefined;
|
|
82
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
83
|
+
onConfirm?: ((event: MouseEvent) => any) | undefined;
|
|
84
|
+
}>, {
|
|
85
|
+
type: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<StringConstructor, "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger", unknown>;
|
|
86
|
+
text: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
87
|
+
disabled: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
88
|
+
nativeType: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<StringConstructor, "button" | "reset" | "submit", unknown>;
|
|
89
|
+
loading: boolean;
|
|
90
|
+
loadingIcon: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | null)[], unknown, unknown>;
|
|
91
|
+
plain: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
92
|
+
link: boolean;
|
|
93
|
+
bg: boolean;
|
|
94
|
+
autofocus: boolean;
|
|
95
|
+
round: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
96
|
+
circle: boolean;
|
|
97
|
+
dashed: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
98
|
+
dark: boolean;
|
|
99
|
+
autoInsertSpace: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
100
|
+
tag: import("element-plus/es/utils/vue/props/types.js").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | null)[], unknown, unknown>;
|
|
86
101
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
87
102
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
88
103
|
export default _default;
|
package/dist/buttons/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-BADq5GB3.cjs"),t=require("../NanoButton.vue_vue_type_script_setup_true_lang-D1yLWi2K.cjs"),e=[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,n._sfc_main$11,n._sfc_main$12],a=o=>{e.forEach(_=>{o.component(_.name||"AnonymousComponent",_)})},s={install:a};exports.NanoAddButton=n._sfc_main;exports.NanoBackTopButton=n._sfc_main$12;exports.NanoCancelButton=n._sfc_main$11;exports.NanoDeleteButton=n._sfc_main$7;exports.NanoEditButton=n._sfc_main$5;exports.NanoExportButton=n._sfc_main$4;exports.NanoFreezeButton=n._sfc_main$8;exports.NanoImportButton=n._sfc_main$3;exports.NanoManageButton=n._sfc_main$6;exports.NanoMoveButton=n._sfc_main$2;exports.NanoSubmitButton=n._sfc_main$10;exports.NanoTextAddButton=n._sfc_main$1;exports.NanoUnfreezeButton=n._sfc_main$9;exports.NanoButton=t._sfc_main;exports.default=s;exports.install=a;
|
package/dist/buttons/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as s, a as o, b as t, c as _, d as m, e as c, f, g as i, h as e, i as u, j as B, k as N, l as $ } from "../NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as s, a as o, b as t, c as _, d as m, e as c, f, g as i, h as e, i as u, j as B, k as N, l as $ } from "../NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-CeKsmoZi.js";
|
|
2
2
|
import { _ as r } from "../NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js";
|
|
3
3
|
const d = [
|
|
4
4
|
r,
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-BADq5GB3.cjs"),t=require("./NanoButton.vue_vue_type_script_setup_true_lang-D1yLWi2K.cjs"),e=[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,n._sfc_main$11,n._sfc_main$12],a=o=>{e.forEach(_=>{o.component(_.name||"AnonymousComponent",_)})},s={install:a};exports.NanoAddButton=n._sfc_main;exports.NanoBackTopButton=n._sfc_main$12;exports.NanoCancelButton=n._sfc_main$11;exports.NanoDeleteButton=n._sfc_main$7;exports.NanoEditButton=n._sfc_main$5;exports.NanoExportButton=n._sfc_main$4;exports.NanoFreezeButton=n._sfc_main$8;exports.NanoImportButton=n._sfc_main$3;exports.NanoManageButton=n._sfc_main$6;exports.NanoMoveButton=n._sfc_main$2;exports.NanoSubmitButton=n._sfc_main$10;exports.NanoTextAddButton=n._sfc_main$1;exports.NanoUnfreezeButton=n._sfc_main$9;exports.NanoButton=t._sfc_main;exports.default=s;exports.install=a;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as s, a as o, b as t, c as _, d as m, e as c, f, g as i, h as e, i as u, j as B, k as N, l as $ } from "./NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as s, a as o, b as t, c as _, d as m, e as c, f, g as i, h as e, i as u, j as B, k as N, l as $ } from "./NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-CeKsmoZi.js";
|
|
2
2
|
import { _ as r } from "./NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js";
|
|
3
3
|
const d = [
|
|
4
4
|
r,
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),s=require("element-plus"),n=require("./NanoButton.vue_vue_type_script_setup_true_lang-D1yLWi2K.cjs"),B=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))}}),$=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))}}),k=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))}}),P=e.defineComponent({name:"NanoDeleteButton",inheritAttrs:!1,__name:"NanoDeleteButton",props:{...s.buttonProps,confirmTitle:String,confirmButtonText:String,cancelButtonText:String},emits:["click","confirm","cancel"],setup(r,{emit:t}){const o=r,i=t,p=e.useAttrs(),l=e.computed(()=>{const{confirmTitle:a,confirmButtonText:_,cancelButtonText:u,...d}=o;return d}),c=a=>{i("click",a)},m=a=>{i("confirm",a)},f=a=>{i("cancel",a)};return(a,_)=>{const u=e.resolveComponent("el-popconfirm");return o.confirmTitle?(e.openBlock(),e.createBlock(u,{key:0,title:o.confirmTitle,"confirm-button-text":o.confirmButtonText,"cancel-button-text":o.cancelButtonText,onConfirm:m,onCancel:f},{reference:e.withCtx(()=>[a.$slots.default?(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:0},{...l.value,...e.unref(p)},{type:"danger",icon:"Delete",onClick:c}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:1},{...l.value,...e.unref(p)},{type:"danger",icon:"Delete",onClick:c}),null,16))]),_:3},8,["title","confirm-button-text","cancel-button-text"])):a.$slots.default?(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:1},{...l.value,...e.unref(p)},{type:"danger",icon:"Delete",onClick:c}),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16)):(e.openBlock(),e.createBlock(n._sfc_main,e.mergeProps({key:2},{...l.value,...e.unref(p)},{type:"danger",icon:"Delete",onClick:c}),null,16))}}}),g=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))}}),N=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))}}),y=e.defineComponent({name:"NanoFreezeButton",inheritAttrs:!1,__name:"NanoFreezeButton",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:"Hide"}),{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:"Hide"}),null,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))}}),h=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))}}),b=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))}}),T=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))}}),w=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))}}),S=e.defineComponent({name:"NanoUnfreezeButton",inheritAttrs:!1,__name:"NanoUnfreezeButton",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:"success",icon:"View"}),{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:"success",icon:"View"}),null,16))}});exports._sfc_main=B;exports._sfc_main$1=w;exports._sfc_main$10=T;exports._sfc_main$11=k;exports._sfc_main$12=$;exports._sfc_main$2=b;exports._sfc_main$3=C;exports._sfc_main$4=N;exports._sfc_main$5=g;exports._sfc_main$6=h;exports._sfc_main$7=P;exports._sfc_main$8=y;exports._sfc_main$9=S;
|
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, openBlock as n, createBlock as o, mergeProps as r, withCtx as a, renderSlot as p, createTextVNode as m, createElementVNode as _, normalizeProps as b, guardReactiveProps as g, useAttrs as v, computed as P, resolveComponent as C, unref as B } from "vue";
|
|
2
|
-
import { buttonProps as i } from "element-plus";
|
|
3
|
-
import { _ as s } from "./NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js";
|
|
4
|
-
const E = /* @__PURE__ */ l({
|
|
5
|
-
name: "NanoAddButton",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "NanoAddButton",
|
|
8
|
-
props: i,
|
|
9
|
-
setup(u) {
|
|
10
|
-
return (t, e) => (n(), o(s, r({ ...t.$props, ...t.$attrs }, {
|
|
11
|
-
type: "primary",
|
|
12
|
-
icon: "Plus"
|
|
13
|
-
}), {
|
|
14
|
-
default: a(() => [
|
|
15
|
-
p(t.$slots, "default", {}, () => [
|
|
16
|
-
e[0] || (e[0] = m("新增", -1))
|
|
17
|
-
])
|
|
18
|
-
]),
|
|
19
|
-
_: 3
|
|
20
|
-
}, 16));
|
|
21
|
-
}
|
|
22
|
-
}), M = /* @__PURE__ */ l({
|
|
23
|
-
name: "NanoBackTopButton",
|
|
24
|
-
inheritAttrs: !1,
|
|
25
|
-
__name: "NanoBackTopButton",
|
|
26
|
-
props: i,
|
|
27
|
-
setup(u) {
|
|
28
|
-
return (t, e) => t.$slots.default ? (n(), o(s, r({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
29
|
-
secondary: "",
|
|
30
|
-
class: "app-backtop-button"
|
|
31
|
-
}), {
|
|
32
|
-
default: a(() => [
|
|
33
|
-
p(t.$slots, "default")
|
|
34
|
-
]),
|
|
35
|
-
_: 3
|
|
36
|
-
}, 16)) : (n(), o(s, r({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
37
|
-
secondary: "",
|
|
38
|
-
class: "app-backtop-button"
|
|
39
|
-
}), {
|
|
40
|
-
default: a(() => [...e[0] || (e[0] = [
|
|
41
|
-
_("svg", {
|
|
42
|
-
class: "app-backtop-icon",
|
|
43
|
-
viewBox: "0 0 24 24",
|
|
44
|
-
"aria-hidden": "true",
|
|
45
|
-
focusable: "false"
|
|
46
|
-
}, [
|
|
47
|
-
_("path", { d: "M6 5h12" }),
|
|
48
|
-
_("path", { d: "M12 19V9" }),
|
|
49
|
-
_("path", { d: "m8 13 4-4 4 4" })
|
|
50
|
-
], -1)
|
|
51
|
-
])]),
|
|
52
|
-
_: 1
|
|
53
|
-
}, 16));
|
|
54
|
-
}
|
|
55
|
-
}), z = /* @__PURE__ */ l({
|
|
56
|
-
name: "NanoCancelButton",
|
|
57
|
-
inheritAttrs: !1,
|
|
58
|
-
__name: "NanoCancelButton",
|
|
59
|
-
props: i,
|
|
60
|
-
setup(u) {
|
|
61
|
-
return (t, e) => (n(), o(s, b(g({ ...t.$props, ...t.$attrs })), {
|
|
62
|
-
default: a(() => [
|
|
63
|
-
p(t.$slots, "default", {}, () => [
|
|
64
|
-
e[0] || (e[0] = m("取消", -1))
|
|
65
|
-
])
|
|
66
|
-
]),
|
|
67
|
-
_: 3
|
|
68
|
-
}, 16));
|
|
69
|
-
}
|
|
70
|
-
}), V = /* @__PURE__ */ l({
|
|
71
|
-
name: "NanoDeleteButton",
|
|
72
|
-
inheritAttrs: !1,
|
|
73
|
-
__name: "NanoDeleteButton",
|
|
74
|
-
props: {
|
|
75
|
-
...i,
|
|
76
|
-
confirmTitle: String,
|
|
77
|
-
confirmButtonText: String,
|
|
78
|
-
cancelButtonText: String
|
|
79
|
-
},
|
|
80
|
-
emits: ["click", "confirm", "cancel"],
|
|
81
|
-
setup(u, { emit: t }) {
|
|
82
|
-
const e = u, y = t, d = v(), c = P(() => {
|
|
83
|
-
const {
|
|
84
|
-
confirmTitle: f,
|
|
85
|
-
confirmButtonText: A,
|
|
86
|
-
cancelButtonText: k,
|
|
87
|
-
...T
|
|
88
|
-
} = e;
|
|
89
|
-
return T;
|
|
90
|
-
}), $ = (f) => {
|
|
91
|
-
y("click", f);
|
|
92
|
-
}, N = (f) => {
|
|
93
|
-
y("confirm", f);
|
|
94
|
-
}, h = (f) => {
|
|
95
|
-
y("cancel", f);
|
|
96
|
-
};
|
|
97
|
-
return (f, A) => {
|
|
98
|
-
const k = C("el-popconfirm");
|
|
99
|
-
return e.confirmTitle ? (n(), o(k, {
|
|
100
|
-
key: 0,
|
|
101
|
-
title: e.confirmTitle,
|
|
102
|
-
"confirm-button-text": e.confirmButtonText,
|
|
103
|
-
"cancel-button-text": e.cancelButtonText,
|
|
104
|
-
onConfirm: N,
|
|
105
|
-
onCancel: h
|
|
106
|
-
}, {
|
|
107
|
-
reference: a(() => [
|
|
108
|
-
f.$slots.default ? (n(), o(s, r({ key: 0 }, { ...c.value, ...B(d) }, {
|
|
109
|
-
type: "danger",
|
|
110
|
-
icon: "Delete",
|
|
111
|
-
onClick: $
|
|
112
|
-
}), {
|
|
113
|
-
default: a(() => [
|
|
114
|
-
p(f.$slots, "default")
|
|
115
|
-
]),
|
|
116
|
-
_: 3
|
|
117
|
-
}, 16)) : (n(), o(s, r({ key: 1 }, { ...c.value, ...B(d) }, {
|
|
118
|
-
type: "danger",
|
|
119
|
-
icon: "Delete",
|
|
120
|
-
onClick: $
|
|
121
|
-
}), null, 16))
|
|
122
|
-
]),
|
|
123
|
-
_: 3
|
|
124
|
-
}, 8, ["title", "confirm-button-text", "cancel-button-text"])) : f.$slots.default ? (n(), o(s, r({ key: 1 }, { ...c.value, ...B(d) }, {
|
|
125
|
-
type: "danger",
|
|
126
|
-
icon: "Delete",
|
|
127
|
-
onClick: $
|
|
128
|
-
}), {
|
|
129
|
-
default: a(() => [
|
|
130
|
-
p(f.$slots, "default")
|
|
131
|
-
]),
|
|
132
|
-
_: 3
|
|
133
|
-
}, 16)) : (n(), o(s, r({ key: 2 }, { ...c.value, ...B(d) }, {
|
|
134
|
-
type: "danger",
|
|
135
|
-
icon: "Delete",
|
|
136
|
-
onClick: $
|
|
137
|
-
}), null, 16));
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
}), U = /* @__PURE__ */ l({
|
|
141
|
-
name: "NanoEditButton",
|
|
142
|
-
inheritAttrs: !1,
|
|
143
|
-
__name: "NanoEditButton",
|
|
144
|
-
props: i,
|
|
145
|
-
setup(u) {
|
|
146
|
-
return (t, e) => t.$slots.default ? (n(), o(s, r({ key: 0 }, { ...t.$props, ...t.$attrs }, { icon: "Edit" }), {
|
|
147
|
-
default: a(() => [
|
|
148
|
-
p(t.$slots, "default")
|
|
149
|
-
]),
|
|
150
|
-
_: 3
|
|
151
|
-
}, 16)) : (n(), o(s, r({ key: 1 }, { ...t.$props, ...t.$attrs }, { icon: "Edit" }), null, 16));
|
|
152
|
-
}
|
|
153
|
-
}), F = /* @__PURE__ */ l({
|
|
154
|
-
name: "NanoExportButton",
|
|
155
|
-
inheritAttrs: !1,
|
|
156
|
-
__name: "NanoExportButton",
|
|
157
|
-
props: i,
|
|
158
|
-
setup(u) {
|
|
159
|
-
return (t, e) => (n(), o(s, r({ ...t.$props, ...t.$attrs }, {
|
|
160
|
-
class: "app-button-export",
|
|
161
|
-
icon: "Download"
|
|
162
|
-
}), {
|
|
163
|
-
default: a(() => [
|
|
164
|
-
p(t.$slots, "default", {}, () => [
|
|
165
|
-
e[0] || (e[0] = m("导出", -1))
|
|
166
|
-
])
|
|
167
|
-
]),
|
|
168
|
-
_: 3
|
|
169
|
-
}, 16));
|
|
170
|
-
}
|
|
171
|
-
}), H = /* @__PURE__ */ l({
|
|
172
|
-
name: "NanoFreezeButton",
|
|
173
|
-
inheritAttrs: !1,
|
|
174
|
-
__name: "NanoFreezeButton",
|
|
175
|
-
props: i,
|
|
176
|
-
setup(u) {
|
|
177
|
-
return (t, e) => t.$slots.default ? (n(), o(s, r({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
178
|
-
type: "danger",
|
|
179
|
-
icon: "Hide"
|
|
180
|
-
}), {
|
|
181
|
-
default: a(() => [
|
|
182
|
-
p(t.$slots, "default")
|
|
183
|
-
]),
|
|
184
|
-
_: 3
|
|
185
|
-
}, 16)) : (n(), o(s, r({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
186
|
-
type: "danger",
|
|
187
|
-
icon: "Hide"
|
|
188
|
-
}), null, 16));
|
|
189
|
-
}
|
|
190
|
-
}), I = /* @__PURE__ */ l({
|
|
191
|
-
name: "NanoImportButton",
|
|
192
|
-
inheritAttrs: !1,
|
|
193
|
-
__name: "NanoImportButton",
|
|
194
|
-
props: i,
|
|
195
|
-
setup(u) {
|
|
196
|
-
return (t, e) => (n(), o(s, r({ ...t.$props, ...t.$attrs }, {
|
|
197
|
-
class: "app-button-import",
|
|
198
|
-
icon: "Upload"
|
|
199
|
-
}), {
|
|
200
|
-
default: a(() => [
|
|
201
|
-
p(t.$slots, "default", {}, () => [
|
|
202
|
-
e[0] || (e[0] = m("导入", -1))
|
|
203
|
-
])
|
|
204
|
-
]),
|
|
205
|
-
_: 3
|
|
206
|
-
}, 16));
|
|
207
|
-
}
|
|
208
|
-
}), R = /* @__PURE__ */ l({
|
|
209
|
-
name: "NanoManageButton",
|
|
210
|
-
inheritAttrs: !1,
|
|
211
|
-
__name: "NanoManageButton",
|
|
212
|
-
props: i,
|
|
213
|
-
setup(u) {
|
|
214
|
-
return (t, e) => t.$slots.default ? (n(), o(s, r({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
215
|
-
type: "primary",
|
|
216
|
-
icon: "Setting"
|
|
217
|
-
}), {
|
|
218
|
-
default: a(() => [
|
|
219
|
-
p(t.$slots, "default")
|
|
220
|
-
]),
|
|
221
|
-
_: 3
|
|
222
|
-
}, 16)) : (n(), o(s, r({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
223
|
-
type: "primary",
|
|
224
|
-
icon: "Setting"
|
|
225
|
-
}), null, 16));
|
|
226
|
-
}
|
|
227
|
-
}), j = /* @__PURE__ */ l({
|
|
228
|
-
name: "NanoMoveButton",
|
|
229
|
-
inheritAttrs: !1,
|
|
230
|
-
__name: "NanoMoveButton",
|
|
231
|
-
props: i,
|
|
232
|
-
setup(u) {
|
|
233
|
-
return (t, e) => (n(), o(s, r({ ...t.$props, ...t.$attrs }, { icon: "Rank" }), {
|
|
234
|
-
default: a(() => [
|
|
235
|
-
p(t.$slots, "default", {}, () => [
|
|
236
|
-
e[0] || (e[0] = m("移动", -1))
|
|
237
|
-
])
|
|
238
|
-
]),
|
|
239
|
-
_: 3
|
|
240
|
-
}, 16));
|
|
241
|
-
}
|
|
242
|
-
}), q = /* @__PURE__ */ l({
|
|
243
|
-
name: "NanoSubmitButton",
|
|
244
|
-
inheritAttrs: !1,
|
|
245
|
-
__name: "NanoSubmitButton",
|
|
246
|
-
props: i,
|
|
247
|
-
setup(u) {
|
|
248
|
-
return (t, e) => (n(), o(s, r({ ...t.$props, ...t.$attrs }, { type: "primary" }), {
|
|
249
|
-
default: a(() => [
|
|
250
|
-
p(t.$slots, "default", {}, () => [
|
|
251
|
-
e[0] || (e[0] = m("保存", -1))
|
|
252
|
-
])
|
|
253
|
-
]),
|
|
254
|
-
_: 3
|
|
255
|
-
}, 16));
|
|
256
|
-
}
|
|
257
|
-
}), G = /* @__PURE__ */ l({
|
|
258
|
-
name: "NanoTextAddButton",
|
|
259
|
-
inheritAttrs: !1,
|
|
260
|
-
__name: "NanoTextAddButton",
|
|
261
|
-
props: i,
|
|
262
|
-
setup(u) {
|
|
263
|
-
return (t, e) => t.$slots.default ? (n(), o(s, r({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
264
|
-
text: "",
|
|
265
|
-
icon: "Plus"
|
|
266
|
-
}), {
|
|
267
|
-
default: a(() => [
|
|
268
|
-
p(t.$slots, "default")
|
|
269
|
-
]),
|
|
270
|
-
_: 3
|
|
271
|
-
}, 16)) : (n(), o(s, r({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
272
|
-
text: "",
|
|
273
|
-
icon: "Plus"
|
|
274
|
-
}), null, 16));
|
|
275
|
-
}
|
|
276
|
-
}), J = /* @__PURE__ */ l({
|
|
277
|
-
name: "NanoUnfreezeButton",
|
|
278
|
-
inheritAttrs: !1,
|
|
279
|
-
__name: "NanoUnfreezeButton",
|
|
280
|
-
props: i,
|
|
281
|
-
setup(u) {
|
|
282
|
-
return (t, e) => t.$slots.default ? (n(), o(s, r({ key: 0 }, { ...t.$props, ...t.$attrs }, {
|
|
283
|
-
type: "success",
|
|
284
|
-
icon: "View"
|
|
285
|
-
}), {
|
|
286
|
-
default: a(() => [
|
|
287
|
-
p(t.$slots, "default")
|
|
288
|
-
]),
|
|
289
|
-
_: 3
|
|
290
|
-
}, 16)) : (n(), o(s, r({ key: 1 }, { ...t.$props, ...t.$attrs }, {
|
|
291
|
-
type: "success",
|
|
292
|
-
icon: "View"
|
|
293
|
-
}), null, 16));
|
|
294
|
-
}
|
|
295
|
-
});
|
|
296
|
-
export {
|
|
297
|
-
E as _,
|
|
298
|
-
G as a,
|
|
299
|
-
j as b,
|
|
300
|
-
I as c,
|
|
301
|
-
F as d,
|
|
302
|
-
U as e,
|
|
303
|
-
R as f,
|
|
304
|
-
V as g,
|
|
305
|
-
H as h,
|
|
306
|
-
J as i,
|
|
307
|
-
q as j,
|
|
308
|
-
z as k,
|
|
309
|
-
M as l
|
|
310
|
-
};
|