@aplus-frontend/ui 0.2.23 → 0.2.24
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/ap-field/checkbox/index.vue.d.ts +3 -0
- package/es/src/ap-field/checkbox/index.vue.mjs +6 -6
- package/es/src/ap-field/number/index.vue.d.ts +3 -0
- package/es/src/ap-field/number/index.vue.mjs +1 -1
- package/es/src/ap-field/radio/index.vue.d.ts +3 -0
- package/es/src/ap-field/radio/index.vue.mjs +8 -8
- package/es/src/ap-field/rate/index.vue.d.ts +2 -2
- package/es/src/ap-field/rate/index.vue.mjs +3 -3
- package/es/src/ap-field/slider/index.vue.d.ts +3 -0
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.d.ts +3 -0
- package/es/src/ap-field/switch/index.vue.mjs +2 -1
- package/es/src/ap-field/text/index.vue.d.ts +3 -0
- package/es/src/ap-field/text/index.vue2.mjs +9 -8
- package/es/src/ap-field/text/password.vue.d.ts +3 -0
- package/es/src/ap-field/text/password.vue.mjs +8 -7
- package/es/src/ap-field/text-area/index.vue.d.ts +3 -0
- package/es/src/ap-field/text-area/index.vue.mjs +5 -5
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/hooks/use-watch.mjs +28 -22
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/checkbox/index.vue.mjs +12 -12
- package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +10 -10
- package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +9 -9
- package/es/src/ap-form/items/number/index.vue.d.ts +8 -3
- package/es/src/ap-form/items/number/index.vue.mjs +10 -10
- package/es/src/ap-form/items/radio/index.vue.d.ts +7 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +6 -6
- package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/select/index.vue.mjs +10 -10
- package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/switch/index.vue.mjs +10 -10
- package/es/src/ap-form/items/text/index.vue.d.ts +8 -3
- package/es/src/ap-form/items/text/index.vue2.mjs +15 -15
- package/es/src/ap-form/items/text/password.vue.d.ts +8 -3
- package/es/src/ap-form/items/text/password.vue.mjs +10 -10
- package/es/src/ap-form/items/text-area/index.vue.d.ts +7 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +11 -11
- package/es/src/ap-table/ap-table.vue2.mjs +30 -33
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +21 -21
- package/es/src/ap-table/constants.d.ts +77 -40
- package/es/src/ap-table/utils.d.ts +40 -40
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -0
- package/es/src/ap-upload/apUpload.vue.mjs +7 -6
- package/es/src/design-token/index.mjs +3 -1
- package/es/src/theme/antd-global-overwrite/admin/form.css +0 -3
- package/es/src/theme/antd-global-overwrite/admin/index.css +0 -3
- package/es/src/theme/antd-global-overwrite/aplus/form.css +0 -4
- package/es/src/theme/antd-global-overwrite/aplus/index.css +0 -4
- package/lib/src/ap-field/checkbox/index.vue.d.ts +3 -0
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +3 -0
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +3 -0
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +2 -2
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +3 -0
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.d.ts +3 -0
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +3 -0
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +3 -0
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +3 -0
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +8 -3
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.d.ts +7 -2
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +8 -3
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +8 -3
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +7 -2
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +77 -40
- package/lib/src/ap-table/utils.d.ts +40 -40
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -0
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/theme/antd-global-overwrite/admin/form.css +0 -3
- package/lib/src/theme/antd-global-overwrite/admin/index.css +0 -3
- package/lib/src/theme/antd-global-overwrite/aplus/form.css +0 -4
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +0 -4
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as B, useSlots as _, ref as g, openBlock as x, createBlock as k, normalizeProps as t, guardReactiveProps as s, unref as o, createSlots as n, withCtx as d, createVNode as F, mergeProps as S, renderList as i, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import { ApField as C } from "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as u, pick as P } from "lodash-unified";
|
|
5
5
|
import { apFormItemSlotNames as m } from "../../constant.mjs";
|
|
6
6
|
import w from "../../item/index.vue.mjs";
|
|
7
|
-
const z = /* @__PURE__ */
|
|
7
|
+
const z = /* @__PURE__ */ B({
|
|
8
8
|
name: "ApFormItemText",
|
|
9
9
|
__name: "password",
|
|
10
10
|
props: {
|
|
@@ -49,10 +49,10 @@ const z = /* @__PURE__ */ v({
|
|
|
49
49
|
transform: {},
|
|
50
50
|
field: { default: () => ({}) },
|
|
51
51
|
placeholder: {},
|
|
52
|
-
disabled: { type: Boolean, default:
|
|
52
|
+
disabled: { type: Boolean, default: void 0 }
|
|
53
53
|
},
|
|
54
54
|
setup(c, { expose: b }) {
|
|
55
|
-
const { Text: h } = C,
|
|
55
|
+
const { Text: h } = C, p = _(), v = c, a = g();
|
|
56
56
|
return b({
|
|
57
57
|
focus: () => {
|
|
58
58
|
var e;
|
|
@@ -62,17 +62,17 @@ const z = /* @__PURE__ */ v({
|
|
|
62
62
|
var e;
|
|
63
63
|
(e = a.value) == null || e.blur();
|
|
64
64
|
}
|
|
65
|
-
}), (e, R) => (x(), k(w, t(s(o(u)(
|
|
66
|
-
default:
|
|
65
|
+
}), (e, R) => (x(), k(w, t(s(o(u)(v, ["field", "disabled", "placeholder"]))), n({
|
|
66
|
+
default: d(() => [
|
|
67
67
|
F(o(h).Password, S({
|
|
68
68
|
ref_key: "inputRef",
|
|
69
69
|
ref: a,
|
|
70
70
|
disabled: e.disabled,
|
|
71
71
|
placeholder: e.placeholder
|
|
72
72
|
}, e.field), n({ _: 2 }, [
|
|
73
|
-
i(o(u)(
|
|
73
|
+
i(o(u)(p, o(m)), (y, l) => ({
|
|
74
74
|
name: l,
|
|
75
|
-
fn:
|
|
75
|
+
fn: d((r) => [
|
|
76
76
|
f(e.$slots, l, t(s(r || {})))
|
|
77
77
|
])
|
|
78
78
|
}))
|
|
@@ -80,9 +80,9 @@ const z = /* @__PURE__ */ v({
|
|
|
80
80
|
]),
|
|
81
81
|
_: 2
|
|
82
82
|
}, [
|
|
83
|
-
i(o(P)(
|
|
83
|
+
i(o(P)(p, o(m)), (y, l) => ({
|
|
84
84
|
name: l,
|
|
85
|
-
fn:
|
|
85
|
+
fn: d((r) => [
|
|
86
86
|
f(e.$slots, l, t(s(r || {})))
|
|
87
87
|
])
|
|
88
88
|
}))
|
|
@@ -66,6 +66,7 @@ declare function __VLS_template(): {
|
|
|
66
66
|
};
|
|
67
67
|
disabled: {
|
|
68
68
|
type: PropType<boolean>;
|
|
69
|
+
default: undefined;
|
|
69
70
|
};
|
|
70
71
|
bordered: {
|
|
71
72
|
type: PropType<boolean>;
|
|
@@ -216,6 +217,7 @@ declare function __VLS_template(): {
|
|
|
216
217
|
};
|
|
217
218
|
disabled: {
|
|
218
219
|
type: PropType<boolean>;
|
|
220
|
+
default: undefined;
|
|
219
221
|
};
|
|
220
222
|
bordered: {
|
|
221
223
|
type: PropType<boolean>;
|
|
@@ -307,6 +309,7 @@ declare function __VLS_template(): {
|
|
|
307
309
|
}, {
|
|
308
310
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
309
311
|
mode: FieldMode;
|
|
312
|
+
disabled: boolean;
|
|
310
313
|
bordered: boolean;
|
|
311
314
|
lazy: boolean;
|
|
312
315
|
allowClear: boolean;
|
|
@@ -374,6 +377,7 @@ declare function __VLS_template(): {
|
|
|
374
377
|
};
|
|
375
378
|
disabled: {
|
|
376
379
|
type: PropType<boolean>;
|
|
380
|
+
default: undefined;
|
|
377
381
|
};
|
|
378
382
|
bordered: {
|
|
379
383
|
type: PropType<boolean>;
|
|
@@ -469,6 +473,7 @@ declare function __VLS_template(): {
|
|
|
469
473
|
}, {}, {}, {}, {
|
|
470
474
|
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
471
475
|
mode: FieldMode;
|
|
476
|
+
disabled: boolean;
|
|
472
477
|
bordered: boolean;
|
|
473
478
|
lazy: boolean;
|
|
474
479
|
allowClear: boolean;
|
|
@@ -484,7 +489,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
484
489
|
autoLink: boolean;
|
|
485
490
|
required: undefined;
|
|
486
491
|
validateFirst: undefined;
|
|
487
|
-
disabled:
|
|
492
|
+
disabled: undefined;
|
|
488
493
|
field: () => {};
|
|
489
494
|
}>, {
|
|
490
495
|
focus: (options?: InputFocusOptions) => void;
|
|
@@ -496,7 +501,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
496
501
|
autoLink: boolean;
|
|
497
502
|
required: undefined;
|
|
498
503
|
validateFirst: undefined;
|
|
499
|
-
disabled:
|
|
504
|
+
disabled: undefined;
|
|
500
505
|
field: () => {};
|
|
501
506
|
}>>>, {
|
|
502
507
|
disabled: boolean;
|
|
@@ -47,14 +47,14 @@ const $ = /* @__PURE__ */ c({
|
|
|
47
47
|
transform: {},
|
|
48
48
|
field: { default: () => ({}) },
|
|
49
49
|
placeholder: {},
|
|
50
|
-
disabled: { type: Boolean, default:
|
|
50
|
+
disabled: { type: Boolean, default: void 0 }
|
|
51
51
|
},
|
|
52
|
-
setup(
|
|
53
|
-
const { TextArea:
|
|
54
|
-
return
|
|
52
|
+
setup(i, { expose: n }) {
|
|
53
|
+
const { TextArea: p } = C, u = b(), f = i, l = x();
|
|
54
|
+
return n({
|
|
55
55
|
focus: (e) => {
|
|
56
|
-
var
|
|
57
|
-
(
|
|
56
|
+
var o;
|
|
57
|
+
(o = l.value) == null || o.focus(e);
|
|
58
58
|
},
|
|
59
59
|
blur: () => {
|
|
60
60
|
var e;
|
|
@@ -64,9 +64,9 @@ const $ = /* @__PURE__ */ c({
|
|
|
64
64
|
var e;
|
|
65
65
|
return (e = l.value) == null ? void 0 : e.resizableTextArea;
|
|
66
66
|
})
|
|
67
|
-
}), (e,
|
|
67
|
+
}), (e, o) => (v(), y(S, r(t(s(F)(f, ["field", "disabled", "placeholder"]))), B({
|
|
68
68
|
default: d(() => [
|
|
69
|
-
A(s(
|
|
69
|
+
A(s(p), g({
|
|
70
70
|
ref_key: "textAreaRef",
|
|
71
71
|
ref: l,
|
|
72
72
|
disabled: e.disabled,
|
|
@@ -75,10 +75,10 @@ const $ = /* @__PURE__ */ c({
|
|
|
75
75
|
]),
|
|
76
76
|
_: 2
|
|
77
77
|
}, [
|
|
78
|
-
_(
|
|
79
|
-
name:
|
|
78
|
+
_(u, (z, a) => ({
|
|
79
|
+
name: a,
|
|
80
80
|
fn: d((m) => [
|
|
81
|
-
k(e.$slots,
|
|
81
|
+
k(e.$slots, a, r(t(m || {})))
|
|
82
82
|
])
|
|
83
83
|
}))
|
|
84
84
|
]), 1040));
|
|
@@ -6,19 +6,18 @@ import { noRenderAsFormItemValueList as Y } from "./constants.mjs";
|
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
7
|
import { useTablePaging as Ke } from "./hooks/use-table-paging.mjs";
|
|
8
8
|
import { isUndefined as m, omit as Z, isBoolean as Le } from "lodash-unified";
|
|
9
|
-
import { getColumnOrder as ee, updateFormProps as Oe, getFieldProps as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { isDef as _e } from "../utils/index.mjs";
|
|
9
|
+
import { getColumnOrder as ee, updateFormProps as Oe, getFieldProps as Ae, getSearchFormItemRenderNode as De, recursionApColumns as ae, apColumnToColumn as Ve, getTableTitle as je, getTableRenderType as $e, getTableRenderProps as We, getTableCellRenderNode as He } from "./utils.mjs";
|
|
10
|
+
import qe from "./hooks/use-table-content-height.mjs";
|
|
11
|
+
import Ue from "./hooks/use-table-row-selection.mjs";
|
|
12
|
+
import { isDef as Ge } from "../utils/index.mjs";
|
|
14
13
|
import "./components/setting/modal/index.vue.mjs";
|
|
15
14
|
import "./components/paragraph-ellipsis/index.vue.mjs";
|
|
16
|
-
import { useProvideApTable as
|
|
17
|
-
import { useNamespace as
|
|
18
|
-
import { useGlobalConfig as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
const
|
|
15
|
+
import { useProvideApTable as Me } from "./context.mjs";
|
|
16
|
+
import { useNamespace as _e } from "../config-provider/hooks/use-namespace.mjs";
|
|
17
|
+
import { useGlobalConfig as Je } from "../config-provider/hooks/use-global-config.mjs";
|
|
18
|
+
import Qe from "./components/paragraph-ellipsis/index.vue2.mjs";
|
|
19
|
+
import Xe from "./components/setting/modal/index.vue2.mjs";
|
|
20
|
+
const wa = /* @__PURE__ */ Te({
|
|
22
21
|
name: "ApTable",
|
|
23
22
|
__name: "ap-table",
|
|
24
23
|
props: {
|
|
@@ -151,11 +150,11 @@ const ba = /* @__PURE__ */ Te({
|
|
|
151
150
|
e: x,
|
|
152
151
|
b: i,
|
|
153
152
|
be: E
|
|
154
|
-
} =
|
|
153
|
+
} = _e("ap-table"), K = Je("valueTypeMap"), {
|
|
155
154
|
height: le,
|
|
156
155
|
contentRef: ne
|
|
157
|
-
} =
|
|
158
|
-
|
|
156
|
+
} = qe(), B = P(a.size), d = P([]), L = P([]);
|
|
157
|
+
Me({
|
|
159
158
|
columns: s(() => d.value),
|
|
160
159
|
columnsBackup: s(() => L.value),
|
|
161
160
|
size: s(() => B.value),
|
|
@@ -172,7 +171,7 @@ const ba = /* @__PURE__ */ Te({
|
|
|
172
171
|
let n = ee(l.order);
|
|
173
172
|
return ee(u.order) - n;
|
|
174
173
|
})) == null ? void 0 : t.map((l) => {
|
|
175
|
-
const u = Oe(l,
|
|
174
|
+
const u = Oe(l, Ae(l.fieldProps, {})), n = {
|
|
176
175
|
...l,
|
|
177
176
|
fieldProps: {
|
|
178
177
|
label: l.title,
|
|
@@ -194,16 +193,16 @@ const ba = /* @__PURE__ */ Te({
|
|
|
194
193
|
rowSelection: b,
|
|
195
194
|
selectedRows: C,
|
|
196
195
|
...R
|
|
197
|
-
} =
|
|
196
|
+
} = Ue({
|
|
198
197
|
fixed: !0,
|
|
199
198
|
...a.rowSelection === !0 ? {} : a.rowSelection,
|
|
200
199
|
rowKey: a.rowKey,
|
|
201
200
|
dataSource: ue
|
|
202
201
|
}), {
|
|
203
202
|
formRef: k,
|
|
204
|
-
submit:
|
|
203
|
+
submit: A,
|
|
205
204
|
reset: D,
|
|
206
|
-
tableProps:
|
|
205
|
+
tableProps: V,
|
|
207
206
|
refresh: ie,
|
|
208
207
|
data: v,
|
|
209
208
|
setDataSource: ce,
|
|
@@ -237,8 +236,8 @@ const ba = /* @__PURE__ */ Te({
|
|
|
237
236
|
let e = ((t = a.columns) == null ? void 0 : t.filter((l) => !l.hideInTable)) || [];
|
|
238
237
|
function o(l, u) {
|
|
239
238
|
return l.map((n) => ({
|
|
240
|
-
resizable:
|
|
241
|
-
...Z(
|
|
239
|
+
resizable: Ge(n.resizable) ? n.resizable : a.columnResizable,
|
|
240
|
+
...Z(Ve(n), ["ellipsis"]),
|
|
242
241
|
...pe(n),
|
|
243
242
|
fixed: u ? u.fixed : n.fixed,
|
|
244
243
|
title: je(n, E("table-header", "title"), S.headerCell, r(re).colorPrimary),
|
|
@@ -295,7 +294,7 @@ const ba = /* @__PURE__ */ Te({
|
|
|
295
294
|
return "fixed";
|
|
296
295
|
}), j = s(() => {
|
|
297
296
|
var t;
|
|
298
|
-
const e = r(
|
|
297
|
+
const e = r(V), o = r(b);
|
|
299
298
|
return {
|
|
300
299
|
...a,
|
|
301
300
|
...e,
|
|
@@ -310,18 +309,16 @@ const ba = /* @__PURE__ */ Te({
|
|
|
310
309
|
};
|
|
311
310
|
}), ye = s(() => [i(), a.card ? null : i("wrapper"), a.adaptive ? i("adaptive") : null].filter(Boolean));
|
|
312
311
|
function we(e, o, t) {
|
|
313
|
-
|
|
314
|
-
return t;
|
|
315
|
-
const l = qe(o);
|
|
316
|
-
return e.copyable || e.ellipsis ? y(Ye, {
|
|
312
|
+
return Y.includes(e.valueType) ? t : e.copyable || e.ellipsis ? y(Qe, {
|
|
317
313
|
copyable: e.copyable,
|
|
318
314
|
ellipsis: e.ellipsis ? Le(e.ellipsis) ? {
|
|
319
|
-
tooltip:
|
|
315
|
+
tooltip: t,
|
|
316
|
+
rows: 1
|
|
320
317
|
} : {
|
|
321
318
|
...e.ellipsis,
|
|
322
|
-
tooltip:
|
|
319
|
+
tooltip: t
|
|
323
320
|
} : !1,
|
|
324
|
-
content:
|
|
321
|
+
content: t
|
|
325
322
|
}, null) : t;
|
|
326
323
|
}
|
|
327
324
|
G(() => r(v).loading, (e) => {
|
|
@@ -344,7 +341,7 @@ const ba = /* @__PURE__ */ Te({
|
|
|
344
341
|
return r(d);
|
|
345
342
|
}
|
|
346
343
|
return te({
|
|
347
|
-
submit: () =>
|
|
344
|
+
submit: () => A(),
|
|
348
345
|
reset: () => D(),
|
|
349
346
|
refresh: () => ie(),
|
|
350
347
|
setSearchFormValues: he,
|
|
@@ -365,9 +362,9 @@ const ba = /* @__PURE__ */ Te({
|
|
|
365
362
|
ref_key: "formRef",
|
|
366
363
|
ref: k,
|
|
367
364
|
"custom-reset": "",
|
|
368
|
-
onSubmit: r(
|
|
365
|
+
onSubmit: r(A),
|
|
369
366
|
onReset: r(D),
|
|
370
|
-
"submit-loading": r(
|
|
367
|
+
"submit-loading": r(V).loading
|
|
371
368
|
}), _({
|
|
372
369
|
default: F(() => [(p(!0), T(U, null, J(O.value, (t) => (p(), Q(Be(t.renderNode), w({
|
|
373
370
|
key: t.dataIndex,
|
|
@@ -399,7 +396,7 @@ const ba = /* @__PURE__ */ Te({
|
|
|
399
396
|
}, R))], 2), S.title ? (p(), Q(r(Pe), {
|
|
400
397
|
key: 0,
|
|
401
398
|
type: "vertical"
|
|
402
|
-
})) : X("", !0), y(
|
|
399
|
+
})) : X("", !0), y(Xe, {
|
|
403
400
|
config: e.settings === !0 ? {} : e.settings
|
|
404
401
|
}, null, 8, ["config"])], 2)) : h(e.$slots, "title", w({
|
|
405
402
|
key: 1,
|
|
@@ -427,5 +424,5 @@ const ba = /* @__PURE__ */ Te({
|
|
|
427
424
|
}
|
|
428
425
|
});
|
|
429
426
|
export {
|
|
430
|
-
|
|
427
|
+
wa as default
|
|
431
428
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as g, ref as T, computed as _, openBlock as o, createElementBlock as f, mergeProps as w, unref as t, createElementVNode as B, normalizeClass as d, createVNode as y, createSlots as O, withCtx as u, createBlock as r, resolveDynamicComponent as v, h as b, createCommentVNode as x } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import { CopyOutlined as
|
|
5
|
-
import { useNamespace as
|
|
6
|
-
import { useLocale as
|
|
7
|
-
const $ = /* @__PURE__ */
|
|
3
|
+
import { Tooltip as h } from "@aplus-frontend/antdv";
|
|
4
|
+
import { CopyOutlined as E, CheckOutlined as N } from "@ant-design/icons-vue";
|
|
5
|
+
import { useNamespace as j } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
import { useLocale as S } from "../../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
const $ = /* @__PURE__ */ g({
|
|
8
8
|
name: "ApTableParagraphEllipsis",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -12,8 +12,8 @@ const $ = /* @__PURE__ */ T({
|
|
|
12
12
|
content: { type: [Object, String, Number, Boolean, null, Array] },
|
|
13
13
|
ellipsis: { type: [Boolean, Object] }
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const { b: i } =
|
|
15
|
+
setup(C) {
|
|
16
|
+
const { b: i } = j("ap-table-paragraph-ellipsis"), { t: m } = S(), e = C, l = T(!1), s = _(() => e.ellipsis === !0 ? {
|
|
17
17
|
rows: 1,
|
|
18
18
|
tooltip: e.content
|
|
19
19
|
} : typeof e.ellipsis == "object" ? Object.assign(
|
|
@@ -25,35 +25,35 @@ const $ = /* @__PURE__ */ T({
|
|
|
25
25
|
) : {});
|
|
26
26
|
function k() {
|
|
27
27
|
var c, a, p;
|
|
28
|
-
const n = ((c =
|
|
28
|
+
const n = ((c = s.value) == null ? void 0 : c.tooltip) ?? ((p = (a = e.content) == null ? void 0 : a.props) == null ? void 0 : p.value) ?? e.content;
|
|
29
29
|
navigator.clipboard.writeText(n), l.value || (l.value = !0, setTimeout(() => {
|
|
30
30
|
l.value = !1;
|
|
31
31
|
}, 2200));
|
|
32
32
|
}
|
|
33
33
|
return (n, c) => {
|
|
34
34
|
var a, p;
|
|
35
|
-
return o(), f("div",
|
|
35
|
+
return o(), f("div", w({
|
|
36
36
|
class: [t(i)()]
|
|
37
37
|
}, {
|
|
38
38
|
...n.$attrs
|
|
39
39
|
}, {
|
|
40
40
|
style: {
|
|
41
|
-
"--ap-table-paragraph-ellipsis-rows": (a =
|
|
41
|
+
"--ap-table-paragraph-ellipsis-rows": (a = s.value) == null ? void 0 : a.rows
|
|
42
42
|
}
|
|
43
43
|
}), [
|
|
44
|
-
|
|
45
|
-
class:
|
|
44
|
+
B("div", {
|
|
45
|
+
class: d([t(i)("content")])
|
|
46
46
|
}, [
|
|
47
|
-
|
|
47
|
+
y(t(h), null, O({
|
|
48
48
|
default: u(() => [
|
|
49
|
-
(o(),
|
|
49
|
+
(o(), r(v(b("span", [e.content]))))
|
|
50
50
|
]),
|
|
51
51
|
_: 2
|
|
52
52
|
}, [
|
|
53
|
-
(p =
|
|
53
|
+
(p = s.value) != null && p.tooltip ? {
|
|
54
54
|
name: "title",
|
|
55
55
|
fn: u(() => [
|
|
56
|
-
(o(),
|
|
56
|
+
(o(), r(v(b("div", [s.value.tooltip]))))
|
|
57
57
|
]),
|
|
58
58
|
key: "0"
|
|
59
59
|
} : void 0
|
|
@@ -61,18 +61,18 @@ const $ = /* @__PURE__ */ T({
|
|
|
61
61
|
], 2),
|
|
62
62
|
e.copyable ? (o(), f("div", {
|
|
63
63
|
key: 0,
|
|
64
|
-
class:
|
|
64
|
+
class: d([t(i)("copyable")]),
|
|
65
65
|
onClick: k
|
|
66
66
|
}, [
|
|
67
|
-
|
|
67
|
+
y(t(h), {
|
|
68
68
|
title: l.value ? t(m)("ap.apTable.paragraphEllipsis.copySuccess") : t(m)("ap.apTable.paragraphEllipsis.copy")
|
|
69
69
|
}, {
|
|
70
70
|
default: u(() => [
|
|
71
|
-
l.value ? (o(),
|
|
71
|
+
l.value ? (o(), r(t(N), { key: 1 })) : (o(), r(t(E), { key: 0 }))
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
74
|
}, 8, ["title"])
|
|
75
|
-
], 2)) :
|
|
75
|
+
], 2)) : x("", !0)
|
|
76
76
|
], 16);
|
|
77
77
|
};
|
|
78
78
|
}
|