@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.
- package/es/src/business/ap-copy/ApCopy.d.ts +28 -1
- package/es/src/business/ap-copy/ApCopy.mjs +42 -38
- package/es/src/business/ap-copy/constans.d.ts +12 -0
- package/es/src/business/ap-copy/constans.mjs +13 -0
- package/es/src/business/ap-copy/index.d.ts +48 -3
- package/es/src/business/ap-copy/interface.d.ts +4 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/business/ap-copy/ApCopy.d.ts +28 -1
- package/lib/src/business/ap-copy/ApCopy.js +1 -1
- package/lib/src/business/ap-copy/constans.d.ts +12 -0
- package/lib/src/business/ap-copy/constans.js +1 -1
- package/lib/src/business/ap-copy/index.d.ts +48 -3
- package/lib/src/business/ap-copy/interface.d.ts +4 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
6
|
-
import { isNull as
|
|
7
|
-
import { useNamespace as
|
|
8
|
-
import { useLocale as
|
|
9
|
-
const
|
|
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(
|
|
13
|
-
slots:
|
|
12
|
+
setup(e, {
|
|
13
|
+
slots: p
|
|
14
14
|
}) {
|
|
15
|
+
console.log("props.link", e.link);
|
|
15
16
|
const {
|
|
16
|
-
b:
|
|
17
|
+
b: x,
|
|
17
18
|
e: l,
|
|
18
|
-
m:
|
|
19
|
-
} =
|
|
20
|
-
t:
|
|
21
|
-
} =
|
|
22
|
-
t.stopPropagation(), t.preventDefault(), t.stopImmediatePropagation(), navigator.clipboard.writeText(
|
|
23
|
-
|
|
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
|
-
|
|
26
|
+
d.error(k || s("ap.apCopy.copyError"));
|
|
26
27
|
});
|
|
27
28
|
}, v = (t) => {
|
|
28
29
|
if (t.length === 1) {
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
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
|
|
37
|
-
return
|
|
38
|
-
},
|
|
39
|
-
const t =
|
|
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) => !(
|
|
42
|
-
if (typeof
|
|
43
|
-
switch (
|
|
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
|
|
54
|
+
else if (typeof e.textStyle == "object")
|
|
54
55
|
return {
|
|
55
|
-
...
|
|
56
|
+
...e.textStyle
|
|
56
57
|
};
|
|
57
58
|
return {};
|
|
58
|
-
}), i =
|
|
59
|
-
return () => r(
|
|
60
|
-
class: [
|
|
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" &&
|
|
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
|
-
|
|
66
|
-
|
|
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]) :
|
|
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:
|
|
74
|
+
onClick: e.disableCopy ? void 0 : (t) => g(t, e.tipMessageSuccess, e.tipMessageError)
|
|
71
75
|
}, [r(h, {
|
|
72
|
-
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
|
-
|
|
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
|
}
|
package/es/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "6.31.
|
|
1
|
+
declare const _default: "6.31.1";
|
|
2
2
|
export default _default;
|
package/es/src/version.mjs
CHANGED
|
@@ -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
|
|
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
|
}
|
package/lib/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "6.31.
|
|
1
|
+
declare const _default: "6.31.1";
|
|
2
2
|
export default _default;
|
package/lib/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.31.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.31.1";exports.default=e;
|