@aplus-frontend/ui 0.1.29 → 0.1.30
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/index.mjs +78 -76
- package/es/src/ap-form/ap-form.vue.d.ts +1 -1
- package/es/src/ap-form/modal-form/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/es/src/ap-table/ap-table.vue.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +84 -89
- package/es/src/ap-table/utils.mjs +42 -42
- package/es/src/business/ap-action-button/ApActionButton.vue.d.ts +43 -0
- package/es/src/business/ap-action-button/ApActionButton.vue.mjs +4 -0
- package/es/src/business/ap-action-button/ApActionButton.vue2.mjs +97 -0
- package/es/src/business/ap-action-button/index.css +6 -0
- package/es/src/business/ap-action-button/interface.d.ts +6 -0
- package/es/src/business/ap-action-button/interface.mjs +1 -0
- package/es/src/business/index.d.ts +265 -0
- package/es/src/business/index.mjs +25 -21
- package/es/src/editable-table/form-item.vue.d.ts +1 -1
- package/es/src/editable-table/form-item.vue.mjs +41 -41
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.mjs +29 -29
- package/es/src/index.mjs +209 -207
- package/es/src/theme/ap-action-button/ap-action-button.css +6 -0
- package/es/src/work-order-modal/index.mjs +4 -3
- package/es/src/work-order-modal/interfaces.d.ts +3 -0
- package/es/src/work-order-modal/interfaces.mjs +6 -1
- package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -28
- package/lib/index.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-action-button/ApActionButton.vue.d.ts +43 -0
- package/lib/src/business/ap-action-button/ApActionButton.vue.js +1 -0
- package/lib/src/business/ap-action-button/ApActionButton.vue2.js +1 -0
- package/lib/src/business/ap-action-button/index.css +6 -0
- package/lib/src/business/ap-action-button/interface.d.ts +6 -0
- package/lib/src/business/ap-action-button/interface.js +1 -0
- package/lib/src/business/index.d.ts +265 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-action-button/ap-action-button.css +6 -0
- package/lib/src/work-order-modal/index.js +1 -1
- package/lib/src/work-order-modal/interfaces.d.ts +3 -0
- package/lib/src/work-order-modal/interfaces.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { isObject as c, isArray as p, isUndefined as
|
|
3
|
-
import { apTableRenderItemMap as
|
|
4
|
-
import { isType as
|
|
1
|
+
import { isVNode as m, createVNode as u, mergeProps as f, cloneVNode as T, Fragment as b } from "vue";
|
|
2
|
+
import { isObject as c, isArray as p, isUndefined as y, isFunction as g, omit as h, isBoolean as j, isString as a } from "lodash-unified";
|
|
3
|
+
import { apTableRenderItemMap as F, apTableFormItemMap as O } from "./constants.mjs";
|
|
4
|
+
import { isType as E } from "@fruits-chain/utils";
|
|
5
5
|
import "../ap-form/index.mjs";
|
|
6
|
-
import { Tooltip as
|
|
7
|
-
import { QuestionCircleOutlined as
|
|
8
|
-
import
|
|
9
|
-
function
|
|
10
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
6
|
+
import { Tooltip as x } from "ant-design-vue";
|
|
7
|
+
import { QuestionCircleOutlined as N } from "@ant-design/icons-vue";
|
|
8
|
+
import S from "../ap-form/ap-form-item.vue.mjs";
|
|
9
|
+
function I(t) {
|
|
10
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !m(t);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const v = (t, e, n) => {
|
|
13
13
|
let r = {};
|
|
14
14
|
return c(t) ? Object.keys(t).forEach((o) => {
|
|
15
|
-
c(t[o]) ? r[o] =
|
|
15
|
+
c(t[o]) ? r[o] = v(t[o], e[o], n) : r[o] = n(t[o], e);
|
|
16
16
|
}) : r = n(t, e), r;
|
|
17
|
-
},
|
|
17
|
+
}, H = (t, e) => {
|
|
18
18
|
switch (t) {
|
|
19
19
|
case "dayjs":
|
|
20
20
|
return e.valueOf();
|
|
@@ -35,15 +35,15 @@ const P = (t, e, n) => {
|
|
|
35
35
|
return e;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
function
|
|
38
|
+
function J(t) {
|
|
39
39
|
return p(t) ? t.join(".") : t;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function P(t) {
|
|
42
42
|
const e = Object.prototype.toString.call(t).match(/^\[object (.*)\]$/)[1].toLowerCase();
|
|
43
43
|
return e === "string" && typeof t == "object" ? "object" : t === null ? "null" : t === void 0 ? "undefined" : e;
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
const e = [], n =
|
|
45
|
+
const V = (t) => P(t) === "map" ? t : new Map(Object.entries(t || {})), d = (t) => {
|
|
46
|
+
const e = [], n = V(t);
|
|
47
47
|
return n.forEach((r, o) => {
|
|
48
48
|
const i = n.get(o) || n.get(`${o}`);
|
|
49
49
|
if (i) {
|
|
@@ -63,7 +63,7 @@ const w = (t) => V(t) === "map" ? t : new Map(Object.entries(t || {})), d = (t)
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
}), e;
|
|
66
|
-
},
|
|
66
|
+
}, L = (t) => y(t) || t < 0 ? 0 : t, Q = (t, e, n) => {
|
|
67
67
|
if (n)
|
|
68
68
|
return n;
|
|
69
69
|
const r = ["select", "date"], o = ["text", "textArea", "number"];
|
|
@@ -74,16 +74,16 @@ const w = (t) => V(t) === "map" ? t : new Map(Object.entries(t || {})), d = (t)
|
|
|
74
74
|
if (o.includes(e))
|
|
75
75
|
return t("ap.common.inputText");
|
|
76
76
|
};
|
|
77
|
-
function
|
|
78
|
-
return !t || !
|
|
77
|
+
function w(t, e) {
|
|
78
|
+
return !t || !g(t) ? t : t(e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function U(t) {
|
|
81
81
|
let e = t.valueType || "text";
|
|
82
82
|
return t.valueEnum && (e = "status"), e;
|
|
83
83
|
}
|
|
84
84
|
function z(t, e, n, r) {
|
|
85
85
|
var s;
|
|
86
|
-
const o =
|
|
86
|
+
const o = F[t];
|
|
87
87
|
if (o)
|
|
88
88
|
return u(o, f(e, {
|
|
89
89
|
mode: "read"
|
|
@@ -95,34 +95,34 @@ function G(t, e) {
|
|
|
95
95
|
if (t.customRenderFormItem)
|
|
96
96
|
return () => {
|
|
97
97
|
const o = t.customRenderFormItem(t);
|
|
98
|
-
return
|
|
98
|
+
return T(o, {
|
|
99
99
|
...t.fieldProps,
|
|
100
100
|
span: t.span,
|
|
101
101
|
...o.props || {}
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
|
-
const n =
|
|
104
|
+
const n = O[t.valueType];
|
|
105
105
|
if (n)
|
|
106
106
|
return n;
|
|
107
107
|
const r = e == null ? void 0 : e[t.valueType];
|
|
108
108
|
return () => {
|
|
109
109
|
var i;
|
|
110
110
|
const o = (i = r == null ? void 0 : r.renderFormItem) == null ? void 0 : i.call(r, t.fieldProps.field);
|
|
111
|
-
return o ? u(
|
|
111
|
+
return o ? u(S, f(t.fieldProps, {
|
|
112
112
|
span: t.span
|
|
113
|
-
}),
|
|
113
|
+
}), I(o) ? o : {
|
|
114
114
|
default: () => [o]
|
|
115
115
|
}) : null;
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
118
|
function K(t, e) {
|
|
119
|
-
const n =
|
|
119
|
+
const n = w(t.fieldProps, e), r = (n == null ? void 0 : n.field) || n || {}, o = t.valueType === "switch", i = t.valueType === "index", s = o ? {
|
|
120
120
|
checked: e.value
|
|
121
121
|
} : {
|
|
122
122
|
value: i ? e.index + 1 : e.value
|
|
123
123
|
};
|
|
124
124
|
return t.valueEnum && (r.valueEnum = t.valueEnum), {
|
|
125
|
-
...
|
|
125
|
+
...h(r, ["request"]),
|
|
126
126
|
...s
|
|
127
127
|
};
|
|
128
128
|
}
|
|
@@ -130,7 +130,7 @@ function X(t) {
|
|
|
130
130
|
const e = {
|
|
131
131
|
...t
|
|
132
132
|
};
|
|
133
|
-
return
|
|
133
|
+
return j(t.filters) && t.filters && t.valueEnum && (e.filters = d(t.valueEnum)), e;
|
|
134
134
|
}
|
|
135
135
|
function Y(t, e) {
|
|
136
136
|
var r;
|
|
@@ -141,7 +141,7 @@ function Y(t, e) {
|
|
|
141
141
|
}), n;
|
|
142
142
|
}
|
|
143
143
|
function Z(t) {
|
|
144
|
-
if (!
|
|
144
|
+
if (!E("Object")(t))
|
|
145
145
|
return t;
|
|
146
146
|
try {
|
|
147
147
|
return JSON.stringify(t);
|
|
@@ -159,40 +159,40 @@ function k(t, e, n, r) {
|
|
|
159
159
|
const s = a(t.title) ? u("span", {
|
|
160
160
|
class: e,
|
|
161
161
|
title: t.title
|
|
162
|
-
}, [t.title]) : t.title, l = t.tooltip ? a(t.tooltip) ? u(
|
|
162
|
+
}, [t.title]) : t.title, l = t.tooltip ? a(t.tooltip) ? u(b, null, [t.tooltip]) : t.tooltip(t) : null;
|
|
163
|
+
return l ? u("span", {
|
|
163
164
|
style: {
|
|
164
165
|
display: "inline-flex",
|
|
165
166
|
alignItems: "center"
|
|
166
167
|
}
|
|
167
|
-
}, [s, u(
|
|
168
|
+
}, [s, u(x, {
|
|
168
169
|
title: l,
|
|
169
170
|
placement: "bottom"
|
|
170
171
|
}, {
|
|
171
|
-
default: () => [u(
|
|
172
|
+
default: () => [u(N, {
|
|
172
173
|
style: {
|
|
173
174
|
padding: "4px",
|
|
174
175
|
color: r,
|
|
175
176
|
verticalAlign: "middle"
|
|
176
177
|
}
|
|
177
178
|
}, null)]
|
|
178
|
-
})]);
|
|
179
|
-
return l ? m : s;
|
|
179
|
+
})]) : s;
|
|
180
180
|
}
|
|
181
181
|
export {
|
|
182
182
|
X as apColumnToColumn,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
183
|
+
J as dataIndexToStr,
|
|
184
|
+
v as formatParamsValueType,
|
|
185
|
+
L as getColumnOrder,
|
|
186
|
+
w as getFieldProps,
|
|
187
|
+
Q as getPlaceholder,
|
|
188
188
|
G as getSearchFormItemRenderNode,
|
|
189
189
|
z as getTableCellRenderNode,
|
|
190
190
|
K as getTableRenderProps,
|
|
191
|
-
|
|
191
|
+
U as getTableRenderType,
|
|
192
192
|
k as getTableTitle,
|
|
193
|
-
|
|
193
|
+
V as objectToMap,
|
|
194
194
|
Z as objectToString,
|
|
195
|
-
|
|
195
|
+
H as parseFieldValue,
|
|
196
196
|
Y as updateFormProps,
|
|
197
197
|
d as valueEnumToArray
|
|
198
198
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ApActionButtonProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { ButtonType } from 'ant-design-vue/es/button';
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
slots: Partial<Record<string, (_: any) => any>>;
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApActionButtonProps>, {
|
|
11
|
+
type: string;
|
|
12
|
+
minWidth: boolean;
|
|
13
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApActionButtonProps>, {
|
|
14
|
+
type: string;
|
|
15
|
+
minWidth: boolean;
|
|
16
|
+
}>>>, {
|
|
17
|
+
type: ButtonType | "borderLink";
|
|
18
|
+
minWidth: boolean | number | string;
|
|
19
|
+
}, {}>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithDefaults<P, D> = {
|
|
23
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
24
|
+
default: D[K];
|
|
25
|
+
}> : P[K];
|
|
26
|
+
};
|
|
27
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
type __VLS_TypePropsToOption<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_PrettifyLocal<T> = {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} & {};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { defineComponent as M, computed as a, openBlock as h, createBlock as P, unref as p, mergeProps as x, createSlots as A, renderList as _, withCtx as w, renderSlot as z, normalizeProps as F, guardReactiveProps as O } from "vue";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
import { Button as S } from "ant-design-vue";
|
|
4
|
+
import "../../config-provider/index.mjs";
|
|
5
|
+
import { omit as T } from "lodash-unified";
|
|
6
|
+
import { useNamespace as j } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
import { useGlobalConfig as G } from "../../config-provider/hooks/use-global-config.mjs";
|
|
8
|
+
const I = 88, K = /* @__PURE__ */ M({
|
|
9
|
+
__name: "ApActionButton",
|
|
10
|
+
props: {
|
|
11
|
+
prefixCls: {},
|
|
12
|
+
htmlType: {},
|
|
13
|
+
shape: {},
|
|
14
|
+
size: {},
|
|
15
|
+
loading: { type: [Boolean, Object] },
|
|
16
|
+
disabled: { type: Boolean },
|
|
17
|
+
ghost: { type: Boolean },
|
|
18
|
+
block: { type: Boolean },
|
|
19
|
+
danger: { type: Boolean },
|
|
20
|
+
icon: {},
|
|
21
|
+
href: {},
|
|
22
|
+
target: {},
|
|
23
|
+
title: {},
|
|
24
|
+
onClick: {},
|
|
25
|
+
onMousedown: {},
|
|
26
|
+
type: { default: "borderLink" },
|
|
27
|
+
borderLinkColor: {},
|
|
28
|
+
minWidth: { type: [Boolean, Number, String], default: !0 }
|
|
29
|
+
},
|
|
30
|
+
setup(v) {
|
|
31
|
+
const e = v, c = {
|
|
32
|
+
aplus: "#0070FF",
|
|
33
|
+
admin: "#34b77c"
|
|
34
|
+
}, { b: l } = j("ap-action-button"), g = G("uiMode"), k = a(
|
|
35
|
+
() => e.borderLinkColor || c[g.value] || c.aplus
|
|
36
|
+
), d = a(
|
|
37
|
+
() => e.type === "borderLink" ? k.value : void 0
|
|
38
|
+
), f = a(() => $(d.value)), B = a(() => e.minWidth === !0 ? `${I}px` : typeof e.minWidth == "number" ? `${e.minWidth}px` : typeof e.minWidth == "string" ? e.minWidth : void 0), W = a(
|
|
39
|
+
() => (e.type === "borderLink" ? "default" : e.type) || "default"
|
|
40
|
+
);
|
|
41
|
+
function L() {
|
|
42
|
+
const r = T(e, ["type", "borderLinkColor", "minWidth"]);
|
|
43
|
+
return r ? {
|
|
44
|
+
...r,
|
|
45
|
+
type: W.value
|
|
46
|
+
} : {};
|
|
47
|
+
}
|
|
48
|
+
function $(r, s = "0.7") {
|
|
49
|
+
var y;
|
|
50
|
+
try {
|
|
51
|
+
var t = r == null ? void 0 : r.toLowerCase(), u = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
52
|
+
if (t && u.test(t)) {
|
|
53
|
+
if (t.length === 4) {
|
|
54
|
+
for (var m = "#", o = 1; o < 4; o += 1)
|
|
55
|
+
m += t.slice(o, o + 1).concat(t.slice(o, o + 1));
|
|
56
|
+
t = m;
|
|
57
|
+
}
|
|
58
|
+
for (var b = [], i = 1; i < 7; i += 2)
|
|
59
|
+
b.push(parseInt("0x" + t.slice(i, i + 2)));
|
|
60
|
+
return "rgba(" + b.join(",") + "," + s + ")";
|
|
61
|
+
}
|
|
62
|
+
if (t && t.startsWith("rgb")) {
|
|
63
|
+
let n = t.match(/(\d(\.\d+)?)+/g);
|
|
64
|
+
return n = (y = n == null ? void 0 : n.slice(0, 3)) == null ? void 0 : y.concat(s), "rgba(" + n.join(",") + ")";
|
|
65
|
+
}
|
|
66
|
+
return t;
|
|
67
|
+
} catch {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return (r, s) => (h(), P(p(S), x({
|
|
72
|
+
class: {
|
|
73
|
+
[p(l)()]: !0,
|
|
74
|
+
[`${p(l)()}-border-link`]: f.value
|
|
75
|
+
}
|
|
76
|
+
}, {
|
|
77
|
+
...r.$attrs,
|
|
78
|
+
...L()
|
|
79
|
+
}, {
|
|
80
|
+
style: {
|
|
81
|
+
color: d.value,
|
|
82
|
+
minWidth: B.value,
|
|
83
|
+
"--button-border-color": f.value
|
|
84
|
+
}
|
|
85
|
+
}), A({ _: 2 }, [
|
|
86
|
+
_(Object.keys(r.$slots), (t) => ({
|
|
87
|
+
name: t,
|
|
88
|
+
fn: w((u) => [
|
|
89
|
+
z(r.$slots, t, F(O(u || {})))
|
|
90
|
+
])
|
|
91
|
+
}))
|
|
92
|
+
]), 1040, ["class", "style"]));
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
export {
|
|
96
|
+
K as default
|
|
97
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
.aplus-ap-action-button-border-link:not(:disabled):hover,
|
|
2
|
+
.aplus-ap-action-button-border-link:not(:disabled):active,
|
|
3
|
+
.aplus-ap-action-button-border-link:not(:disabled):focus {
|
|
4
|
+
border-color: var(--button-border-color);
|
|
5
|
+
color: var(--button-border-color) !important;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -30,6 +30,7 @@ export type { ApExportGroupProps } from './ap-export-group/interface';
|
|
|
30
30
|
export type { ApLadderProps, ApLadderLabelValue, CurrencyCode, TooltipNeedProps } from './ap-ladder/interface';
|
|
31
31
|
export * from './ap-batch-action-group/interface';
|
|
32
32
|
export type { AttachmentItemProps, ApAttachmentProps } from './ap-attachment';
|
|
33
|
+
export * from './ap-action-button/interface';
|
|
33
34
|
export declare const ApTitle: {
|
|
34
35
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
35
36
|
title: {
|
|
@@ -2798,5 +2799,269 @@ export declare const ApAttachment: DefineComponent<{
|
|
|
2798
2799
|
attachmentList: AttachmentItemProps[];
|
|
2799
2800
|
fileMorePopoverPlacement: TooltipPlacement;
|
|
2800
2801
|
}, {}>;
|
|
2802
|
+
export declare const ApActionButton: {
|
|
2803
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
2804
|
+
size: {
|
|
2805
|
+
type: PropType<"small" | "large" | "middle">;
|
|
2806
|
+
};
|
|
2807
|
+
type: {
|
|
2808
|
+
type: PropType< ButtonType | "borderLink">;
|
|
2809
|
+
default: string;
|
|
2810
|
+
};
|
|
2811
|
+
title: {
|
|
2812
|
+
type: PropType<string>;
|
|
2813
|
+
};
|
|
2814
|
+
onClick: {
|
|
2815
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
2816
|
+
};
|
|
2817
|
+
onMousedown: {
|
|
2818
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
2819
|
+
};
|
|
2820
|
+
block: {
|
|
2821
|
+
type: PropType<boolean>;
|
|
2822
|
+
};
|
|
2823
|
+
icon: {
|
|
2824
|
+
type: PropType<any>;
|
|
2825
|
+
};
|
|
2826
|
+
disabled: {
|
|
2827
|
+
type: PropType<boolean>;
|
|
2828
|
+
};
|
|
2829
|
+
minWidth: {
|
|
2830
|
+
type: PropType<string | number | boolean>;
|
|
2831
|
+
default: boolean;
|
|
2832
|
+
};
|
|
2833
|
+
target: {
|
|
2834
|
+
type: PropType<string>;
|
|
2835
|
+
};
|
|
2836
|
+
prefixCls: {
|
|
2837
|
+
type: PropType<string>;
|
|
2838
|
+
};
|
|
2839
|
+
htmlType: {
|
|
2840
|
+
type: PropType<ButtonHTMLType>;
|
|
2841
|
+
};
|
|
2842
|
+
shape: {
|
|
2843
|
+
type: PropType<ButtonShape>;
|
|
2844
|
+
};
|
|
2845
|
+
loading: {
|
|
2846
|
+
type: PropType<boolean | {
|
|
2847
|
+
delay?: number;
|
|
2848
|
+
}>;
|
|
2849
|
+
};
|
|
2850
|
+
ghost: {
|
|
2851
|
+
type: PropType<boolean>;
|
|
2852
|
+
};
|
|
2853
|
+
danger: {
|
|
2854
|
+
type: PropType<boolean>;
|
|
2855
|
+
};
|
|
2856
|
+
href: {
|
|
2857
|
+
type: PropType<string>;
|
|
2858
|
+
};
|
|
2859
|
+
borderLinkColor: {
|
|
2860
|
+
type: PropType<string>;
|
|
2861
|
+
};
|
|
2862
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
2863
|
+
size: {
|
|
2864
|
+
type: PropType<"small" | "large" | "middle">;
|
|
2865
|
+
};
|
|
2866
|
+
type: {
|
|
2867
|
+
type: PropType< ButtonType | "borderLink">;
|
|
2868
|
+
default: string;
|
|
2869
|
+
};
|
|
2870
|
+
title: {
|
|
2871
|
+
type: PropType<string>;
|
|
2872
|
+
};
|
|
2873
|
+
onClick: {
|
|
2874
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
2875
|
+
};
|
|
2876
|
+
onMousedown: {
|
|
2877
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
2878
|
+
};
|
|
2879
|
+
block: {
|
|
2880
|
+
type: PropType<boolean>;
|
|
2881
|
+
};
|
|
2882
|
+
icon: {
|
|
2883
|
+
type: PropType<any>;
|
|
2884
|
+
};
|
|
2885
|
+
disabled: {
|
|
2886
|
+
type: PropType<boolean>;
|
|
2887
|
+
};
|
|
2888
|
+
minWidth: {
|
|
2889
|
+
type: PropType<string | number | boolean>;
|
|
2890
|
+
default: boolean;
|
|
2891
|
+
};
|
|
2892
|
+
target: {
|
|
2893
|
+
type: PropType<string>;
|
|
2894
|
+
};
|
|
2895
|
+
prefixCls: {
|
|
2896
|
+
type: PropType<string>;
|
|
2897
|
+
};
|
|
2898
|
+
htmlType: {
|
|
2899
|
+
type: PropType<ButtonHTMLType>;
|
|
2900
|
+
};
|
|
2901
|
+
shape: {
|
|
2902
|
+
type: PropType<ButtonShape>;
|
|
2903
|
+
};
|
|
2904
|
+
loading: {
|
|
2905
|
+
type: PropType<boolean | {
|
|
2906
|
+
delay?: number;
|
|
2907
|
+
}>;
|
|
2908
|
+
};
|
|
2909
|
+
ghost: {
|
|
2910
|
+
type: PropType<boolean>;
|
|
2911
|
+
};
|
|
2912
|
+
danger: {
|
|
2913
|
+
type: PropType<boolean>;
|
|
2914
|
+
};
|
|
2915
|
+
href: {
|
|
2916
|
+
type: PropType<string>;
|
|
2917
|
+
};
|
|
2918
|
+
borderLinkColor: {
|
|
2919
|
+
type: PropType<string>;
|
|
2920
|
+
};
|
|
2921
|
+
}>>, {
|
|
2922
|
+
type: ButtonType | "borderLink";
|
|
2923
|
+
minWidth: boolean | number | string;
|
|
2924
|
+
}, true, {}, {}, {
|
|
2925
|
+
P: {};
|
|
2926
|
+
B: {};
|
|
2927
|
+
D: {};
|
|
2928
|
+
C: {};
|
|
2929
|
+
M: {};
|
|
2930
|
+
Defaults: {};
|
|
2931
|
+
}, Readonly< ExtractPropTypes<{
|
|
2932
|
+
size: {
|
|
2933
|
+
type: PropType<"small" | "large" | "middle">;
|
|
2934
|
+
};
|
|
2935
|
+
type: {
|
|
2936
|
+
type: PropType< ButtonType | "borderLink">;
|
|
2937
|
+
default: string;
|
|
2938
|
+
};
|
|
2939
|
+
title: {
|
|
2940
|
+
type: PropType<string>;
|
|
2941
|
+
};
|
|
2942
|
+
onClick: {
|
|
2943
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
2944
|
+
};
|
|
2945
|
+
onMousedown: {
|
|
2946
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
2947
|
+
};
|
|
2948
|
+
block: {
|
|
2949
|
+
type: PropType<boolean>;
|
|
2950
|
+
};
|
|
2951
|
+
icon: {
|
|
2952
|
+
type: PropType<any>;
|
|
2953
|
+
};
|
|
2954
|
+
disabled: {
|
|
2955
|
+
type: PropType<boolean>;
|
|
2956
|
+
};
|
|
2957
|
+
minWidth: {
|
|
2958
|
+
type: PropType<string | number | boolean>;
|
|
2959
|
+
default: boolean;
|
|
2960
|
+
};
|
|
2961
|
+
target: {
|
|
2962
|
+
type: PropType<string>;
|
|
2963
|
+
};
|
|
2964
|
+
prefixCls: {
|
|
2965
|
+
type: PropType<string>;
|
|
2966
|
+
};
|
|
2967
|
+
htmlType: {
|
|
2968
|
+
type: PropType<ButtonHTMLType>;
|
|
2969
|
+
};
|
|
2970
|
+
shape: {
|
|
2971
|
+
type: PropType<ButtonShape>;
|
|
2972
|
+
};
|
|
2973
|
+
loading: {
|
|
2974
|
+
type: PropType<boolean | {
|
|
2975
|
+
delay?: number;
|
|
2976
|
+
}>;
|
|
2977
|
+
};
|
|
2978
|
+
ghost: {
|
|
2979
|
+
type: PropType<boolean>;
|
|
2980
|
+
};
|
|
2981
|
+
danger: {
|
|
2982
|
+
type: PropType<boolean>;
|
|
2983
|
+
};
|
|
2984
|
+
href: {
|
|
2985
|
+
type: PropType<string>;
|
|
2986
|
+
};
|
|
2987
|
+
borderLinkColor: {
|
|
2988
|
+
type: PropType<string>;
|
|
2989
|
+
};
|
|
2990
|
+
}>>, {}, {}, {}, {}, {
|
|
2991
|
+
type: ButtonType | "borderLink";
|
|
2992
|
+
minWidth: boolean | number | string;
|
|
2993
|
+
}>;
|
|
2994
|
+
__isFragment?: never;
|
|
2995
|
+
__isTeleport?: never;
|
|
2996
|
+
__isSuspense?: never;
|
|
2997
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
2998
|
+
size: {
|
|
2999
|
+
type: PropType<"small" | "large" | "middle">;
|
|
3000
|
+
};
|
|
3001
|
+
type: {
|
|
3002
|
+
type: PropType< ButtonType | "borderLink">;
|
|
3003
|
+
default: string;
|
|
3004
|
+
};
|
|
3005
|
+
title: {
|
|
3006
|
+
type: PropType<string>;
|
|
3007
|
+
};
|
|
3008
|
+
onClick: {
|
|
3009
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
3010
|
+
};
|
|
3011
|
+
onMousedown: {
|
|
3012
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
3013
|
+
};
|
|
3014
|
+
block: {
|
|
3015
|
+
type: PropType<boolean>;
|
|
3016
|
+
};
|
|
3017
|
+
icon: {
|
|
3018
|
+
type: PropType<any>;
|
|
3019
|
+
};
|
|
3020
|
+
disabled: {
|
|
3021
|
+
type: PropType<boolean>;
|
|
3022
|
+
};
|
|
3023
|
+
minWidth: {
|
|
3024
|
+
type: PropType<string | number | boolean>;
|
|
3025
|
+
default: boolean;
|
|
3026
|
+
};
|
|
3027
|
+
target: {
|
|
3028
|
+
type: PropType<string>;
|
|
3029
|
+
};
|
|
3030
|
+
prefixCls: {
|
|
3031
|
+
type: PropType<string>;
|
|
3032
|
+
};
|
|
3033
|
+
htmlType: {
|
|
3034
|
+
type: PropType<ButtonHTMLType>;
|
|
3035
|
+
};
|
|
3036
|
+
shape: {
|
|
3037
|
+
type: PropType<ButtonShape>;
|
|
3038
|
+
};
|
|
3039
|
+
loading: {
|
|
3040
|
+
type: PropType<boolean | {
|
|
3041
|
+
delay?: number;
|
|
3042
|
+
}>;
|
|
3043
|
+
};
|
|
3044
|
+
ghost: {
|
|
3045
|
+
type: PropType<boolean>;
|
|
3046
|
+
};
|
|
3047
|
+
danger: {
|
|
3048
|
+
type: PropType<boolean>;
|
|
3049
|
+
};
|
|
3050
|
+
href: {
|
|
3051
|
+
type: PropType<string>;
|
|
3052
|
+
};
|
|
3053
|
+
borderLinkColor: {
|
|
3054
|
+
type: PropType<string>;
|
|
3055
|
+
};
|
|
3056
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
3057
|
+
type: ButtonType | "borderLink";
|
|
3058
|
+
minWidth: boolean | number | string;
|
|
3059
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3060
|
+
$slots: Partial<Record<string, (_: any) => any>>;
|
|
3061
|
+
}) & ( Plugin & (new (...args: any[]) => {
|
|
3062
|
+
$props: {
|
|
3063
|
+
onClick?: () => void;
|
|
3064
|
+
};
|
|
3065
|
+
}));
|
|
2801
3066
|
export { ApTransformDataHelper };
|
|
2802
3067
|
export * from './ap-table-modal';
|