@cst-ui/nano-buttons 0.5.2 → 0.6.0

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.
@@ -1,7 +1,7 @@
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
- import { _ as r } from "../NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js";
3
- const d = [
4
- r,
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 $, m as r, n as p, o as d, p as l, q as C } from "../NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-GwQzbJBa.js";
2
+ import { _ as b } from "../NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js";
3
+ const g = [
4
+ b,
5
5
  s,
6
6
  o,
7
7
  t,
@@ -14,29 +14,39 @@ const d = [
14
14
  u,
15
15
  B,
16
16
  N,
17
- $
18
- ], p = (n) => {
19
- d.forEach((a) => {
17
+ $,
18
+ r,
19
+ p,
20
+ d,
21
+ l,
22
+ C
23
+ ], h = (n) => {
24
+ g.forEach((a) => {
20
25
  n.component(a.name || "AnonymousComponent", a);
21
26
  });
22
- }, x = {
23
- install: p
27
+ }, E = {
28
+ install: h
24
29
  };
25
30
  export {
26
31
  s as NanoAddButton,
27
- $ as NanoBackTopButton,
28
- r as NanoButton,
29
- N as NanoCancelButton,
30
- i as NanoDeleteButton,
32
+ C as NanoBackTopButton,
33
+ b as NanoButton,
34
+ l as NanoCancelButton,
35
+ u as NanoCompleteButton,
36
+ i as NanoConfirmButton,
37
+ $ as NanoDeleteButton,
31
38
  c as NanoEditButton,
32
39
  m as NanoExportButton,
33
- e as NanoFreezeButton,
40
+ r as NanoFreezeButton,
34
41
  _ as NanoImportButton,
42
+ e as NanoInterruptButton,
35
43
  f as NanoManageButton,
36
44
  t as NanoMoveButton,
37
- B as NanoSubmitButton,
45
+ N as NanoResetButton,
46
+ B as NanoSendButton,
47
+ d as NanoSubmitButton,
38
48
  o as NanoTextAddButton,
39
- u as NanoUnfreezeButton,
40
- x as default,
41
- p as install
49
+ p as NanoUnfreezeButton,
50
+ E as default,
51
+ h as install
42
52
  };
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-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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-BadVAl6-.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,n._sfc_main$11,n._sfc_main$12,n._sfc_main$13,n._sfc_main$14,n._sfc_main$15,n._sfc_main$16,n._sfc_main$17],a=o=>{s.forEach(_=>{o.component(_.name||"AnonymousComponent",_)})},e={install:a};exports.NanoAddButton=n._sfc_main;exports.NanoBackTopButton=n._sfc_main$17;exports.NanoCancelButton=n._sfc_main$16;exports.NanoCompleteButton=n._sfc_main$9;exports.NanoConfirmButton=n._sfc_main$7;exports.NanoDeleteButton=n._sfc_main$12;exports.NanoEditButton=n._sfc_main$5;exports.NanoExportButton=n._sfc_main$4;exports.NanoFreezeButton=n._sfc_main$13;exports.NanoImportButton=n._sfc_main$3;exports.NanoInterruptButton=n._sfc_main$8;exports.NanoManageButton=n._sfc_main$6;exports.NanoMoveButton=n._sfc_main$2;exports.NanoResetButton=n._sfc_main$11;exports.NanoSendButton=n._sfc_main$10;exports.NanoSubmitButton=n._sfc_main$15;exports.NanoTextAddButton=n._sfc_main$1;exports.NanoUnfreezeButton=n._sfc_main$14;exports.NanoButton=t._sfc_main;exports.default=e;exports.install=a;
package/dist/index.d.ts CHANGED
@@ -4,18 +4,23 @@ import NanoAddButton from './buttons/components/NanoAddButton.vue';
4
4
  import NanoBackTopButton from './buttons/components/NanoBackTopButton.vue';
5
5
  import NanoButton from './buttons/components/NanoButton.vue';
6
6
  import NanoCancelButton from './buttons/components/NanoCancelButton.vue';
7
+ import NanoCompleteButton from './buttons/components/NanoCompleteButton.vue';
8
+ import NanoConfirmButton from './buttons/components/NanoConfirmButton.vue';
7
9
  import NanoDeleteButton from './buttons/components/NanoDeleteButton.vue';
8
10
  import NanoEditButton from './buttons/components/NanoEditButton.vue';
9
11
  import NanoExportButton from './buttons/components/NanoExportButton.vue';
10
12
  import NanoFreezeButton from './buttons/components/NanoFreezeButton.vue';
11
13
  import NanoImportButton from './buttons/components/NanoImportButton.vue';
14
+ import NanoInterruptButton from './buttons/components/NanoInterruptButton.vue';
12
15
  import NanoManageButton from './buttons/components/NanoManageButton.vue';
13
16
  import NanoMoveButton from './buttons/components/NanoMoveButton.vue';
17
+ import NanoResetButton from './buttons/components/NanoResetButton.vue';
18
+ import NanoSendButton from './buttons/components/NanoSendButton.vue';
14
19
  import NanoSubmitButton from './buttons/components/NanoSubmitButton.vue';
15
20
  import NanoTextAddButton from './buttons/components/NanoTextAddButton.vue';
16
21
  import NanoUnfreezeButton from './buttons/components/NanoUnfreezeButton.vue';
17
22
  declare const install: (app: App) => void;
18
23
  declare const NanoButtons: Plugin;
19
- export { NanoButton, NanoAddButton, NanoTextAddButton, NanoMoveButton, NanoImportButton, NanoExportButton, NanoEditButton, NanoManageButton, NanoDeleteButton, NanoFreezeButton, NanoUnfreezeButton, NanoSubmitButton, NanoCancelButton, NanoBackTopButton, install, };
24
+ export { NanoButton, NanoAddButton, NanoTextAddButton, NanoMoveButton, NanoImportButton, NanoExportButton, NanoEditButton, NanoManageButton, NanoConfirmButton, NanoInterruptButton, NanoCompleteButton, NanoSendButton, NanoResetButton, NanoDeleteButton, NanoFreezeButton, NanoUnfreezeButton, NanoSubmitButton, NanoCancelButton, NanoBackTopButton, install, };
20
25
  export type { NanoButtonProps } from './buttons/components/props';
21
26
  export default NanoButtons;
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
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
- import { _ as r } from "./NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js";
3
- const d = [
4
- r,
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 $, m as r, n as p, o as d, p as l, q as C } from "./NanoUnfreezeButton.vue_vue_type_script_setup_true_lang-GwQzbJBa.js";
2
+ import { _ as b } from "./NanoButton.vue_vue_type_script_setup_true_lang-DgnSKBXL.js";
3
+ const g = [
4
+ b,
5
5
  s,
6
6
  o,
7
7
  t,
@@ -14,29 +14,39 @@ const d = [
14
14
  u,
15
15
  B,
16
16
  N,
17
- $
18
- ], p = (n) => {
19
- d.forEach((a) => {
17
+ $,
18
+ r,
19
+ p,
20
+ d,
21
+ l,
22
+ C
23
+ ], h = (n) => {
24
+ g.forEach((a) => {
20
25
  n.component(a.name || "AnonymousComponent", a);
21
26
  });
22
- }, x = {
23
- install: p
27
+ }, E = {
28
+ install: h
24
29
  };
25
30
  export {
26
31
  s as NanoAddButton,
27
- $ as NanoBackTopButton,
28
- r as NanoButton,
29
- N as NanoCancelButton,
30
- i as NanoDeleteButton,
32
+ C as NanoBackTopButton,
33
+ b as NanoButton,
34
+ l as NanoCancelButton,
35
+ u as NanoCompleteButton,
36
+ i as NanoConfirmButton,
37
+ $ as NanoDeleteButton,
31
38
  c as NanoEditButton,
32
39
  m as NanoExportButton,
33
- e as NanoFreezeButton,
40
+ r as NanoFreezeButton,
34
41
  _ as NanoImportButton,
42
+ e as NanoInterruptButton,
35
43
  f as NanoManageButton,
36
44
  t as NanoMoveButton,
37
- B as NanoSubmitButton,
45
+ N as NanoResetButton,
46
+ B as NanoSendButton,
47
+ d as NanoSubmitButton,
38
48
  o as NanoTextAddButton,
39
- u as NanoUnfreezeButton,
40
- x as default,
41
- p as install
49
+ p as NanoUnfreezeButton,
50
+ E as default,
51
+ h as install
42
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cst-ui/nano-buttons",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "Nano themed Vue 3 button, table, pagination, and dialog tab components based on Element Plus.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1 +0,0 @@
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;
@@ -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
- };