@aplus-frontend/ui 6.31.0 → 6.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,18 @@ declare const _default: DefineComponent<ExtractPropTypes<{
21
21
  type: PropType< ApCopy["disableCopy"]>;
22
22
  default: boolean;
23
23
  };
24
+ onClick: {
25
+ type: PropType< ApCopy["onClick"]>;
26
+ default: () => void;
27
+ };
28
+ tipMessageSuccess: {
29
+ type: PropType< ApCopy["tipMessageSuccess"]>;
30
+ default: string;
31
+ };
32
+ tipMessageError: {
33
+ type: PropType< ApCopy["tipMessageError"]>;
34
+ default: string;
35
+ };
24
36
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
25
37
  text: {
26
38
  type: PropType< ApCopy["text"]>;
@@ -42,11 +54,26 @@ declare const _default: DefineComponent<ExtractPropTypes<{
42
54
  type: PropType< ApCopy["disableCopy"]>;
43
55
  default: boolean;
44
56
  };
57
+ onClick: {
58
+ type: PropType< ApCopy["onClick"]>;
59
+ default: () => void;
60
+ };
61
+ tipMessageSuccess: {
62
+ type: PropType< ApCopy["tipMessageSuccess"]>;
63
+ default: string;
64
+ };
65
+ tipMessageError: {
66
+ type: PropType< ApCopy["tipMessageError"]>;
67
+ default: string;
68
+ };
45
69
  }>> & Readonly<{}>, {
46
70
  size: number | undefined;
47
- link: string | undefined;
71
+ link: string | boolean | undefined;
72
+ onClick: (() => void) | undefined;
48
73
  text: string | undefined;
49
74
  textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
50
75
  disableCopy: boolean | undefined;
76
+ tipMessageSuccess: string | undefined;
77
+ tipMessageError: string | undefined;
51
78
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
52
79
  export default _default;
@@ -1,46 +1,47 @@
1
- import { defineComponent as b, Text as c, isVNode as f, computed as p, createVNode as r, Fragment as C } from "vue";
1
+ import { defineComponent as C, Text as f, isVNode as y, computed as m, createVNode as r, Fragment as b } from "vue";
2
2
  import { ApCopyProps as T } from "./constans.mjs";
3
3
  import { IconApAdLineCopy as h } from "@aplus-frontend/icon";
4
4
  import "../../config-provider/index.mjs";
5
- import { message as y } from "@aplus-frontend/antdv";
6
- import { isNull as k, isUndefined as P } from "lodash-unified";
7
- import { useNamespace as j } from "../../config-provider/hooks/use-namespace.mjs";
8
- import { useLocale as A } from "../../config-provider/hooks/use-locale.mjs";
9
- const B = /* @__PURE__ */ b({
5
+ import { message as d } from "@aplus-frontend/antdv";
6
+ import { isNull as P, isUndefined as j, isString as A, isBoolean as N } from "lodash-unified";
7
+ import { useNamespace as V } from "../../config-provider/hooks/use-namespace.mjs";
8
+ import { useLocale as w } from "../../config-provider/hooks/use-locale.mjs";
9
+ const D = /* @__PURE__ */ C({
10
10
  name: "CopyBtn",
11
11
  props: T(),
12
- setup(n, {
13
- slots: m
12
+ setup(e, {
13
+ slots: p
14
14
  }) {
15
+ console.log("props.link", e.link);
15
16
  const {
16
- b: d,
17
+ b: x,
17
18
  e: l,
18
- m: x
19
- } = j("ap-copy"), {
20
- t: a
21
- } = A(), g = (t) => {
22
- t.stopPropagation(), t.preventDefault(), t.stopImmediatePropagation(), navigator.clipboard.writeText(n.text || s() || "").then(() => {
23
- y.success(a("ap.apCopy.copySuccess"));
19
+ m: a
20
+ } = V("ap-copy"), {
21
+ t: s
22
+ } = w(), g = (t, n, k) => {
23
+ t.stopPropagation(), t.preventDefault(), t.stopImmediatePropagation(), navigator.clipboard.writeText(e.text || c() || "").then(() => {
24
+ d.success(n || s("ap.apCopy.copySuccess"));
24
25
  }).catch(() => {
25
- y.error(a("ap.apCopy.copyError"));
26
+ d.error(k || s("ap.apCopy.copyError"));
26
27
  });
27
28
  }, v = (t) => {
28
29
  if (t.length === 1) {
29
- const e = t[0];
30
- if (e.type === c || e.type.toString() === "Symbol(Text)" || f(e) && typeof e.children == "string")
30
+ const n = t[0];
31
+ if (n.type === f || n.type.toString() === "Symbol(Text)" || y(n) && typeof n.children == "string")
31
32
  return !0;
32
33
  }
33
34
  return !1;
34
35
  }, S = (t) => {
35
36
  if (!t.length) return "";
36
- const e = t[0];
37
- return e.type === c || e.type.toString() === "Symbol(Text)" ? String(e.children) : f(e) && typeof e.children == "string" ? e.children : "";
38
- }, s = () => {
39
- const t = m.default?.();
37
+ const n = t[0];
38
+ return n.type === f || n.type.toString() === "Symbol(Text)" ? String(n.children) : y(n) && typeof n.children == "string" ? n.children : "";
39
+ }, c = () => {
40
+ const t = p.default?.();
40
41
  return t && v(t) ? S(t) : null;
41
- }, u = (t) => !(k(t) || P(t) || typeof t == "string" && t === ""), o = p(() => {
42
- if (typeof n.textStyle == "string")
43
- switch (n.textStyle) {
42
+ }, u = (t) => !(P(t) || j(t) || typeof t == "string" && t === ""), o = m(() => {
43
+ if (typeof e.textStyle == "string")
44
+ switch (e.textStyle) {
44
45
  case "link":
45
46
  return "text-link";
46
47
  case "minor":
@@ -50,31 +51,34 @@ const B = /* @__PURE__ */ b({
50
51
  default:
51
52
  return "text-major";
52
53
  }
53
- else if (typeof n.textStyle == "object")
54
+ else if (typeof e.textStyle == "object")
54
55
  return {
55
- ...n.textStyle
56
+ ...e.textStyle
56
57
  };
57
58
  return {};
58
- }), i = p(() => s() || n.text || "");
59
- return () => r(C, null, [r("div", {
60
- class: [d()]
59
+ }), i = m(() => c() || e.text || "");
60
+ return () => r(b, null, [r("div", {
61
+ class: [x()]
61
62
  }, [r("div", {
62
- class: [l("text"), typeof o.value == "string" && x(o.value)],
63
+ class: [l("text"), typeof o.value == "string" && a(o.value)],
63
64
  style: typeof o.value != "string" && o.value,
64
- title: typeof o.value == "string" ? i.value : ""
65
- }, [u(i.value) ? n.link ? r("a", {
66
- href: n.link,
65
+ title: typeof o.value == "string" ? i.value : "",
66
+ onClick: e.onClick ? () => e.onClick() : void 0
67
+ }, [u(i.value) ? e.link && A(e.link) ? r("a", {
68
+ href: e.link,
67
69
  target: "_blank"
68
- }, [i.value]) : i.value : "--"]), u(i.value) && !n.disableCopy ? r("div", {
70
+ }, [i.value]) : N(e.link) ? r("span", {
71
+ class: a("text-link")
72
+ }, [i.value]) : i.value : "--"]), u(i.value) && !e.disableCopy ? r("div", {
69
73
  class: [l("copy-btn"), "copy-btn"],
70
- onClick: n.disableCopy ? void 0 : g
74
+ onClick: e.disableCopy ? void 0 : (t) => g(t, e.tipMessageSuccess, e.tipMessageError)
71
75
  }, [r(h, {
72
- size: n.size
76
+ size: e.size
73
77
  }, null)]) : r("div", {
74
78
  class: [l("copy-btn"), "copy-btn"]
75
79
  }, null)])]);
76
80
  }
77
81
  });
78
82
  export {
79
- B as default
83
+ D as default
80
84
  };
@@ -21,4 +21,16 @@ export declare const ApCopyProps: () => {
21
21
  type: PropType<ApCopy["disableCopy"]>;
22
22
  default: boolean;
23
23
  };
24
+ onClick: {
25
+ type: PropType<ApCopy["onClick"]>;
26
+ default: () => void;
27
+ };
28
+ tipMessageSuccess: {
29
+ type: PropType<ApCopy["tipMessageSuccess"]>;
30
+ default: string;
31
+ };
32
+ tipMessageError: {
33
+ type: PropType<ApCopy["tipMessageError"]>;
34
+ default: string;
35
+ };
24
36
  };
@@ -18,6 +18,19 @@ const t = () => ({
18
18
  disableCopy: {
19
19
  type: Boolean,
20
20
  default: !1
21
+ },
22
+ onClick: {
23
+ type: Function,
24
+ default: () => {
25
+ }
26
+ },
27
+ tipMessageSuccess: {
28
+ type: String,
29
+ default: ""
30
+ },
31
+ tipMessageError: {
32
+ type: String,
33
+ default: ""
21
34
  }
22
35
  });
23
36
  export {
@@ -23,12 +23,27 @@ declare const ApCopy: {
23
23
  type: PropType< ApCopy["disableCopy"]>;
24
24
  default: boolean;
25
25
  };
26
+ onClick: {
27
+ type: PropType< ApCopy["onClick"]>;
28
+ default: () => void;
29
+ };
30
+ tipMessageSuccess: {
31
+ type: PropType< ApCopy["tipMessageSuccess"]>;
32
+ default: string;
33
+ };
34
+ tipMessageError: {
35
+ type: PropType< ApCopy["tipMessageError"]>;
36
+ default: string;
37
+ };
26
38
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
27
39
  size: number | undefined;
28
- link: string | undefined;
40
+ link: string | boolean | undefined;
41
+ onClick: (() => void) | undefined;
29
42
  text: string | undefined;
30
43
  textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
31
44
  disableCopy: boolean | undefined;
45
+ tipMessageSuccess: string | undefined;
46
+ tipMessageError: string | undefined;
32
47
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
33
48
  P: {};
34
49
  B: {};
@@ -57,12 +72,27 @@ declare const ApCopy: {
57
72
  type: PropType< ApCopy["disableCopy"]>;
58
73
  default: boolean;
59
74
  };
75
+ onClick: {
76
+ type: PropType< ApCopy["onClick"]>;
77
+ default: () => void;
78
+ };
79
+ tipMessageSuccess: {
80
+ type: PropType< ApCopy["tipMessageSuccess"]>;
81
+ default: string;
82
+ };
83
+ tipMessageError: {
84
+ type: PropType< ApCopy["tipMessageError"]>;
85
+ default: string;
86
+ };
60
87
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
61
88
  size: number | undefined;
62
- link: string | undefined;
89
+ link: string | boolean | undefined;
90
+ onClick: (() => void) | undefined;
63
91
  text: string | undefined;
64
92
  textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
65
93
  disableCopy: boolean | undefined;
94
+ tipMessageSuccess: string | undefined;
95
+ tipMessageError: string | undefined;
66
96
  }>;
67
97
  __isFragment?: never;
68
98
  __isTeleport?: never;
@@ -88,12 +118,27 @@ declare const ApCopy: {
88
118
  type: PropType< ApCopy["disableCopy"]>;
89
119
  default: boolean;
90
120
  };
121
+ onClick: {
122
+ type: PropType< ApCopy["onClick"]>;
123
+ default: () => void;
124
+ };
125
+ tipMessageSuccess: {
126
+ type: PropType< ApCopy["tipMessageSuccess"]>;
127
+ default: string;
128
+ };
129
+ tipMessageError: {
130
+ type: PropType< ApCopy["tipMessageError"]>;
131
+ default: string;
132
+ };
91
133
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
92
134
  size: number | undefined;
93
- link: string | undefined;
135
+ link: string | boolean | undefined;
136
+ onClick: (() => void) | undefined;
94
137
  text: string | undefined;
95
138
  textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
96
139
  disableCopy: boolean | undefined;
140
+ tipMessageSuccess: string | undefined;
141
+ tipMessageError: string | undefined;
97
142
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
98
143
  $props: {
99
144
  onClick?: () => void;
@@ -3,6 +3,9 @@ export interface ApCopy {
3
3
  text?: string;
4
4
  size?: number;
5
5
  textStyle?: 'major' | 'minor' | 'link' | CSSProperties;
6
- link?: string;
6
+ link?: string | boolean;
7
7
  disableCopy?: boolean;
8
+ onClick?: () => void;
9
+ tipMessageSuccess?: string;
10
+ tipMessageError?: string;
8
11
  }
@@ -1,2 +1,2 @@
1
- declare const _default: "6.31.0";
1
+ declare const _default: "6.31.1";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "6.31.0";
1
+ const e = "6.31.1";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -21,6 +21,18 @@ declare const _default: DefineComponent<ExtractPropTypes<{
21
21
  type: PropType< ApCopy["disableCopy"]>;
22
22
  default: boolean;
23
23
  };
24
+ onClick: {
25
+ type: PropType< ApCopy["onClick"]>;
26
+ default: () => void;
27
+ };
28
+ tipMessageSuccess: {
29
+ type: PropType< ApCopy["tipMessageSuccess"]>;
30
+ default: string;
31
+ };
32
+ tipMessageError: {
33
+ type: PropType< ApCopy["tipMessageError"]>;
34
+ default: string;
35
+ };
24
36
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
25
37
  text: {
26
38
  type: PropType< ApCopy["text"]>;
@@ -42,11 +54,26 @@ declare const _default: DefineComponent<ExtractPropTypes<{
42
54
  type: PropType< ApCopy["disableCopy"]>;
43
55
  default: boolean;
44
56
  };
57
+ onClick: {
58
+ type: PropType< ApCopy["onClick"]>;
59
+ default: () => void;
60
+ };
61
+ tipMessageSuccess: {
62
+ type: PropType< ApCopy["tipMessageSuccess"]>;
63
+ default: string;
64
+ };
65
+ tipMessageError: {
66
+ type: PropType< ApCopy["tipMessageError"]>;
67
+ default: string;
68
+ };
45
69
  }>> & Readonly<{}>, {
46
70
  size: number | undefined;
47
- link: string | undefined;
71
+ link: string | boolean | undefined;
72
+ onClick: (() => void) | undefined;
48
73
  text: string | undefined;
49
74
  textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
50
75
  disableCopy: boolean | undefined;
76
+ tipMessageSuccess: string | undefined;
77
+ tipMessageError: string | undefined;
51
78
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
52
79
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),v=require("./constans.js"),S=require("@aplus-frontend/icon");require("../../config-provider/index.js");const u=require("@aplus-frontend/antdv"),d=require("lodash-unified"),b=require("../../config-provider/hooks/use-namespace.js"),T=require("../../config-provider/hooks/use-locale.js"),N=t.defineComponent({name:"CopyBtn",props:v.ApCopyProps(),setup(r,{slots:y}){const{b:f,e:a,m:p}=b.useNamespace("ap-copy"),{t:s}=T.useLocale(),x=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation(),navigator.clipboard.writeText(r.text||l()||"").then(()=>{u.message.success(s("ap.apCopy.copySuccess"))}).catch(()=>{u.message.error(s("ap.apCopy.copyError"))})},g=e=>{if(e.length===1){const n=e[0];if(n.type===t.Text||n.type.toString()==="Symbol(Text)"||t.isVNode(n)&&typeof n.children=="string")return!0}return!1},m=e=>{if(!e.length)return"";const n=e[0];return n.type===t.Text||n.type.toString()==="Symbol(Text)"?String(n.children):t.isVNode(n)&&typeof n.children=="string"?n.children:""},l=()=>{const e=y.default?.();return e&&g(e)?m(e):null},c=e=>!(d.isNull(e)||d.isUndefined(e)||typeof e=="string"&&e===""),o=t.computed(()=>{if(typeof r.textStyle=="string")switch(r.textStyle){case"link":return"text-link";case"minor":return"text-minor";case"major":return"text-major";default:return"text-major"}else if(typeof r.textStyle=="object")return{...r.textStyle};return{}}),i=t.computed(()=>l()||r.text||"");return()=>t.createVNode(t.Fragment,null,[t.createVNode("div",{class:[f()]},[t.createVNode("div",{class:[a("text"),typeof o.value=="string"&&p(o.value)],style:typeof o.value!="string"&&o.value,title:typeof o.value=="string"?i.value:""},[c(i.value)?r.link?t.createVNode("a",{href:r.link,target:"_blank"},[i.value]):i.value:"--"]),c(i.value)&&!r.disableCopy?t.createVNode("div",{class:[a("copy-btn"),"copy-btn"],onClick:r.disableCopy?void 0:x},[t.createVNode(S.IconApAdLineCopy,{size:r.size},null)]):t.createVNode("div",{class:[a("copy-btn"),"copy-btn"]},null)])])}});exports.default=N;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),S=require("./constans.js"),b=require("@aplus-frontend/icon");require("../../config-provider/index.js");const y=require("@aplus-frontend/antdv"),l=require("lodash-unified"),k=require("../../config-provider/hooks/use-namespace.js"),C=require("../../config-provider/hooks/use-locale.js"),N=n.defineComponent({name:"CopyBtn",props:S.ApCopyProps(),setup(t,{slots:f}){console.log("props.link",t.link);const{b:g,e:a,m:s}=k.useNamespace("ap-copy"),{t:c}=C.useLocale(),x=(e,r,v)=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation(),navigator.clipboard.writeText(t.text||u()||"").then(()=>{y.message.success(r||c("ap.apCopy.copySuccess"))}).catch(()=>{y.message.error(v||c("ap.apCopy.copyError"))})},p=e=>{if(e.length===1){const r=e[0];if(r.type===n.Text||r.type.toString()==="Symbol(Text)"||n.isVNode(r)&&typeof r.children=="string")return!0}return!1},m=e=>{if(!e.length)return"";const r=e[0];return r.type===n.Text||r.type.toString()==="Symbol(Text)"?String(r.children):n.isVNode(r)&&typeof r.children=="string"?r.children:""},u=()=>{const e=f.default?.();return e&&p(e)?m(e):null},d=e=>!(l.isNull(e)||l.isUndefined(e)||typeof e=="string"&&e===""),o=n.computed(()=>{if(typeof t.textStyle=="string")switch(t.textStyle){case"link":return"text-link";case"minor":return"text-minor";case"major":return"text-major";default:return"text-major"}else if(typeof t.textStyle=="object")return{...t.textStyle};return{}}),i=n.computed(()=>u()||t.text||"");return()=>n.createVNode(n.Fragment,null,[n.createVNode("div",{class:[g()]},[n.createVNode("div",{class:[a("text"),typeof o.value=="string"&&s(o.value)],style:typeof o.value!="string"&&o.value,title:typeof o.value=="string"?i.value:"",onClick:t.onClick?()=>t.onClick():void 0},[d(i.value)?t.link&&l.isString(t.link)?n.createVNode("a",{href:t.link,target:"_blank"},[i.value]):l.isBoolean(t.link)?n.createVNode("span",{class:s("text-link")},[i.value]):i.value:"--"]),d(i.value)&&!t.disableCopy?n.createVNode("div",{class:[a("copy-btn"),"copy-btn"],onClick:t.disableCopy?void 0:e=>x(e,t.tipMessageSuccess,t.tipMessageError)},[n.createVNode(b.IconApAdLineCopy,{size:t.size},null)]):n.createVNode("div",{class:[a("copy-btn"),"copy-btn"]},null)])])}});exports.default=N;
@@ -21,4 +21,16 @@ export declare const ApCopyProps: () => {
21
21
  type: PropType<ApCopy["disableCopy"]>;
22
22
  default: boolean;
23
23
  };
24
+ onClick: {
25
+ type: PropType<ApCopy["onClick"]>;
26
+ default: () => void;
27
+ };
28
+ tipMessageSuccess: {
29
+ type: PropType<ApCopy["tipMessageSuccess"]>;
30
+ default: string;
31
+ };
32
+ tipMessageError: {
33
+ type: PropType<ApCopy["tipMessageError"]>;
34
+ default: string;
35
+ };
24
36
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({text:{type:String,default:""},size:{type:Number,default:14},textStyle:{type:[String,Object],default:"major"},link:{type:String,default:""},disableCopy:{type:Boolean,default:!1}});exports.ApCopyProps=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({text:{type:String,default:""},size:{type:Number,default:14},textStyle:{type:[String,Object],default:"major"},link:{type:String,default:""},disableCopy:{type:Boolean,default:!1},onClick:{type:Function,default:()=>{}},tipMessageSuccess:{type:String,default:""},tipMessageError:{type:String,default:""}});exports.ApCopyProps=e;
@@ -23,12 +23,27 @@ declare const ApCopy: {
23
23
  type: PropType< ApCopy["disableCopy"]>;
24
24
  default: boolean;
25
25
  };
26
+ onClick: {
27
+ type: PropType< ApCopy["onClick"]>;
28
+ default: () => void;
29
+ };
30
+ tipMessageSuccess: {
31
+ type: PropType< ApCopy["tipMessageSuccess"]>;
32
+ default: string;
33
+ };
34
+ tipMessageError: {
35
+ type: PropType< ApCopy["tipMessageError"]>;
36
+ default: string;
37
+ };
26
38
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
27
39
  size: number | undefined;
28
- link: string | undefined;
40
+ link: string | boolean | undefined;
41
+ onClick: (() => void) | undefined;
29
42
  text: string | undefined;
30
43
  textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
31
44
  disableCopy: boolean | undefined;
45
+ tipMessageSuccess: string | undefined;
46
+ tipMessageError: string | undefined;
32
47
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
33
48
  P: {};
34
49
  B: {};
@@ -57,12 +72,27 @@ declare const ApCopy: {
57
72
  type: PropType< ApCopy["disableCopy"]>;
58
73
  default: boolean;
59
74
  };
75
+ onClick: {
76
+ type: PropType< ApCopy["onClick"]>;
77
+ default: () => void;
78
+ };
79
+ tipMessageSuccess: {
80
+ type: PropType< ApCopy["tipMessageSuccess"]>;
81
+ default: string;
82
+ };
83
+ tipMessageError: {
84
+ type: PropType< ApCopy["tipMessageError"]>;
85
+ default: string;
86
+ };
60
87
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
61
88
  size: number | undefined;
62
- link: string | undefined;
89
+ link: string | boolean | undefined;
90
+ onClick: (() => void) | undefined;
63
91
  text: string | undefined;
64
92
  textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
65
93
  disableCopy: boolean | undefined;
94
+ tipMessageSuccess: string | undefined;
95
+ tipMessageError: string | undefined;
66
96
  }>;
67
97
  __isFragment?: never;
68
98
  __isTeleport?: never;
@@ -88,12 +118,27 @@ declare const ApCopy: {
88
118
  type: PropType< ApCopy["disableCopy"]>;
89
119
  default: boolean;
90
120
  };
121
+ onClick: {
122
+ type: PropType< ApCopy["onClick"]>;
123
+ default: () => void;
124
+ };
125
+ tipMessageSuccess: {
126
+ type: PropType< ApCopy["tipMessageSuccess"]>;
127
+ default: string;
128
+ };
129
+ tipMessageError: {
130
+ type: PropType< ApCopy["tipMessageError"]>;
131
+ default: string;
132
+ };
91
133
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
92
134
  size: number | undefined;
93
- link: string | undefined;
135
+ link: string | boolean | undefined;
136
+ onClick: (() => void) | undefined;
94
137
  text: string | undefined;
95
138
  textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
96
139
  disableCopy: boolean | undefined;
140
+ tipMessageSuccess: string | undefined;
141
+ tipMessageError: string | undefined;
97
142
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
98
143
  $props: {
99
144
  onClick?: () => void;
@@ -3,6 +3,9 @@ export interface ApCopy {
3
3
  text?: string;
4
4
  size?: number;
5
5
  textStyle?: 'major' | 'minor' | 'link' | CSSProperties;
6
- link?: string;
6
+ link?: string | boolean;
7
7
  disableCopy?: boolean;
8
+ onClick?: () => void;
9
+ tipMessageSuccess?: string;
10
+ tipMessageError?: string;
8
11
  }
@@ -1,2 +1,2 @@
1
- declare const _default: "6.31.0";
1
+ declare const _default: "6.31.1";
2
2
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.31.0";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.31.1";exports.default=e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "6.31.0",
3
+ "version": "6.31.1",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [