@aplus-frontend/ui 7.3.3 → 7.4.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/index.mjs +176 -174
- package/es/src/ag-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ag-grid/index.vue.d.ts +2 -4
- package/es/src/ap-field/date/index.vue.mjs +68 -63
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/item/index.vue.mjs +95 -86
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/utils/table.mjs +2 -2
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-modal/interface.d.ts +4 -0
- package/es/src/ap-modal/style/index.d.ts +3 -0
- package/es/src/ap-modal/style/index.mjs +20 -0
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-modal/utils/createModal.mjs +58 -56
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/constants.d.ts +10 -10
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-modal.mjs +24 -22
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.mjs +26 -24
- package/es/src/business/ag-grid-modal/interface.d.ts +2 -1
- package/es/src/business/ag-grid-modal/wrapper/index.vue.d.ts +3 -1
- package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +16 -15
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/index.d.ts +17 -5
- package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/business/ap-upload/components/Picture.vue.d.ts +2 -7
- package/es/src/business/ap-value-select-card/index.vue.d.ts +2 -4
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/design-token/interface.d.ts +2 -0
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +280 -278
- package/es/src/loading-bar/global.d.ts +13 -0
- package/es/src/loading-bar/global.mjs +35 -0
- package/es/src/loading-bar/index.d.ts +9 -0
- package/es/src/loading-bar/index.mjs +9 -0
- package/es/src/loading-bar/index.vue.d.ts +14 -0
- package/es/src/loading-bar/index.vue.mjs +4 -0
- package/es/src/loading-bar/index.vue2.mjs +112 -0
- package/es/src/loading-bar/interface.d.ts +48 -0
- package/es/src/loading-bar/interface.mjs +1 -0
- package/es/src/loading-bar/style/index.d.ts +12 -0
- package/es/src/loading-bar/style/index.mjs +85 -0
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/utils/cssinjs/TokenUtil.mjs +1 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ag-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/interface.d.ts +4 -0
- package/lib/src/ap-modal/style/index.d.ts +3 -0
- package/lib/src/ap-modal/style/index.js +1 -0
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/constants.d.ts +10 -10
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/business/ag-grid-modal/hooks/use-ag-grid-modal.js +1 -1
- package/lib/src/business/ag-grid-modal/hooks/use-ag-grid-select-modal.js +1 -1
- package/lib/src/business/ag-grid-modal/interface.d.ts +2 -1
- package/lib/src/business/ag-grid-modal/wrapper/index.vue.d.ts +3 -1
- package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +17 -5
- package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/business/ap-upload/components/Picture.vue.d.ts +2 -7
- package/lib/src/business/ap-value-select-card/index.vue.d.ts +2 -4
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/design-token/interface.d.ts +2 -0
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/loading-bar/global.d.ts +13 -0
- package/lib/src/loading-bar/global.js +1 -0
- package/lib/src/loading-bar/index.d.ts +9 -0
- package/lib/src/loading-bar/index.js +1 -0
- package/lib/src/loading-bar/index.vue.d.ts +14 -0
- package/lib/src/loading-bar/index.vue.js +1 -0
- package/lib/src/loading-bar/index.vue2.js +1 -0
- package/lib/src/loading-bar/interface.d.ts +48 -0
- package/lib/src/loading-bar/interface.js +1 -0
- package/lib/src/loading-bar/style/index.d.ts +12 -0
- package/lib/src/loading-bar/style/index.js +17 -0
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/utils/cssinjs/TokenUtil.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +5 -5
|
@@ -4,18 +4,18 @@ export declare const useTableColumnState: (columnSetting: ApTableSettingType, pe
|
|
|
4
4
|
columnState: Ref<{
|
|
5
5
|
key: string | number;
|
|
6
6
|
show?: boolean | undefined;
|
|
7
|
-
fixed?:
|
|
7
|
+
fixed?: "left" | "right" | undefined;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
label?: any;
|
|
10
|
-
children?: any[] | undefined;
|
|
10
|
+
children?: /*elided*/ any[] | undefined;
|
|
11
11
|
order?: number | undefined;
|
|
12
12
|
}[], ApColumnState[] | {
|
|
13
13
|
key: string | number;
|
|
14
14
|
show?: boolean | undefined;
|
|
15
|
-
fixed?:
|
|
15
|
+
fixed?: "left" | "right" | undefined;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
17
|
label?: any;
|
|
18
|
-
children?: any[] | undefined;
|
|
18
|
+
children?: /*elided*/ any[] | undefined;
|
|
19
19
|
order?: number | undefined;
|
|
20
20
|
}[]>;
|
|
21
21
|
selectAll: () => void;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as C, ref as P, createVNode as n, mergeProps as w } from "vue";
|
|
2
2
|
import { ApModal as y } from "../../../ap-modal/index.mjs";
|
|
3
3
|
import "../../../ag-grid/index.mjs";
|
|
4
4
|
import { genRequest as I } from "../utils.mjs";
|
|
5
5
|
import { useAgGridInstance as A } from "./use-ag-grid-instance.mjs";
|
|
6
|
-
import { isFunction as
|
|
6
|
+
import { isFunction as H, isEmpty as f, omitBy as M, isUndefined as _, omit as q } from "lodash-unified";
|
|
7
7
|
import "../wrapper/index.vue.mjs";
|
|
8
|
-
import
|
|
8
|
+
import G from "../wrapper/index.vue2.mjs";
|
|
9
9
|
import x from "../../../ag-grid/index.vue.mjs";
|
|
10
10
|
function j(r) {
|
|
11
|
-
let a = null,
|
|
12
|
-
const [o, c] = A(),
|
|
11
|
+
let a = null, l = null;
|
|
12
|
+
const [o, c] = A(), s = I(r.api, r.getRowKey, o.setDataSourceLength), u = (t) => {
|
|
13
13
|
const {
|
|
14
14
|
title: e,
|
|
15
15
|
width: i,
|
|
16
|
-
modalProps:
|
|
16
|
+
modalProps: v,
|
|
17
17
|
...d
|
|
18
|
-
} =
|
|
19
|
-
f(d) ||
|
|
20
|
-
const m =
|
|
18
|
+
} = H(t) ? t(r) : t;
|
|
19
|
+
f(d) || l?.(d);
|
|
20
|
+
const m = M({
|
|
21
21
|
title: e,
|
|
22
22
|
width: i,
|
|
23
|
-
modalProps:
|
|
24
|
-
},
|
|
23
|
+
modalProps: v
|
|
24
|
+
}, _);
|
|
25
25
|
f(m) || a?.update(m);
|
|
26
|
-
}, g = /* @__PURE__ */
|
|
26
|
+
}, g = /* @__PURE__ */ C({
|
|
27
27
|
name: "AgGridModalPreviewContent",
|
|
28
28
|
props: {
|
|
29
29
|
modalConfig: {
|
|
@@ -32,17 +32,18 @@ function j(r) {
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
setup(t) {
|
|
35
|
-
const e =
|
|
36
|
-
return
|
|
35
|
+
const e = P(t.modalConfig);
|
|
36
|
+
return l = (i) => {
|
|
37
37
|
e.value = {
|
|
38
38
|
...e.value,
|
|
39
39
|
...i
|
|
40
40
|
};
|
|
41
41
|
}, () => n(c, null, {
|
|
42
|
-
default: () => [n(
|
|
42
|
+
default: () => [n(G, {
|
|
43
|
+
height: e.value.height,
|
|
43
44
|
rowHeight: e.value.rowHeight
|
|
44
45
|
}, {
|
|
45
|
-
default: () => [e.value.renderHeader?.(
|
|
46
|
+
default: () => [e.value.renderHeader?.(q(o, "setInstance"), {
|
|
46
47
|
updateProps: u
|
|
47
48
|
}), n(x, w({
|
|
48
49
|
ref: o.setInstance,
|
|
@@ -53,18 +54,19 @@ function j(r) {
|
|
|
53
54
|
}
|
|
54
55
|
},
|
|
55
56
|
rowKey: e.value.getRowKey,
|
|
56
|
-
request:
|
|
57
|
+
request: s.request,
|
|
57
58
|
style: {
|
|
58
59
|
padding: "0px"
|
|
59
60
|
},
|
|
60
61
|
rowHeight: e.value.rowHeight,
|
|
61
|
-
columns: e.value.columns
|
|
62
|
+
columns: e.value.columns,
|
|
63
|
+
autoHeight: !!e.value.height
|
|
62
64
|
}, r.gridProps), e.value.gridSlots)]
|
|
63
65
|
})]
|
|
64
66
|
});
|
|
65
67
|
}
|
|
66
68
|
});
|
|
67
|
-
function
|
|
69
|
+
function h() {
|
|
68
70
|
a = y.createModal({
|
|
69
71
|
title: r.title,
|
|
70
72
|
width: r.width,
|
|
@@ -80,11 +82,11 @@ function j(r) {
|
|
|
80
82
|
...r.modalProps || {}
|
|
81
83
|
});
|
|
82
84
|
}
|
|
83
|
-
function
|
|
84
|
-
|
|
85
|
+
function p(t) {
|
|
86
|
+
s.setExtraParams(t?.extraParams), h();
|
|
85
87
|
}
|
|
86
88
|
return {
|
|
87
|
-
open:
|
|
89
|
+
open: p,
|
|
88
90
|
refresh: o.refresh,
|
|
89
91
|
getAgGridInstance: o.getInstance,
|
|
90
92
|
updateProps: u
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as _, ref as
|
|
2
|
-
import { ApModal as
|
|
1
|
+
import { defineComponent as _, ref as H, createVNode as i, mergeProps as L, onUnmounted as j } from "vue";
|
|
2
|
+
import { ApModal as q } from "../../../ap-modal/index.mjs";
|
|
3
3
|
import "../../../ag-grid/index.mjs";
|
|
4
|
-
import { AsyncCallback as
|
|
4
|
+
import { AsyncCallback as G, genRequest as T, delRowKeyField as D, addRowKeyField as F, getModalLayoutConfig as E } from "../utils.mjs";
|
|
5
5
|
import { useAgGridInstance as U } from "./use-ag-grid-instance.mjs";
|
|
6
6
|
import { isFunction as u, cloneDeep as W, isEmpty as b, omitBy as $, isUndefined as z, omit as p } from "lodash-unified";
|
|
7
7
|
import { ROW_KEY as B } from "../constants.mjs";
|
|
@@ -16,7 +16,7 @@ import Q from "../modal-layout/index.vue2.mjs";
|
|
|
16
16
|
import X from "../../../ag-grid/index.vue.mjs";
|
|
17
17
|
function we(t) {
|
|
18
18
|
let c, f = null, g = null;
|
|
19
|
-
const d = new
|
|
19
|
+
const d = new G(), [K, S] = N(), {
|
|
20
20
|
t: k
|
|
21
21
|
} = Y(), [s, x] = U({
|
|
22
22
|
onSelectedRows(e) {
|
|
@@ -39,13 +39,13 @@ function we(t) {
|
|
|
39
39
|
}, m = u(t.getRowKey) ? t.getRowKey : (e) => e[t.getRowKey], P = () => {
|
|
40
40
|
const e = t.mergeRule || "old", o = s.getSelectedRows() || [];
|
|
41
41
|
return {
|
|
42
|
-
keys:
|
|
42
|
+
keys: A(o),
|
|
43
43
|
rows: o.map((a) => {
|
|
44
44
|
const r = m(a);
|
|
45
45
|
return e === "old" && c?.[r] ? c[r] : D(a);
|
|
46
46
|
})
|
|
47
47
|
};
|
|
48
|
-
},
|
|
48
|
+
}, h = async () => {
|
|
49
49
|
const e = P(), o = t.maxCount || 1 / 0;
|
|
50
50
|
return e.keys.length > o ? (V.warning(k("ap.apTableModal.messageMaxCount", {
|
|
51
51
|
maxCount: o
|
|
@@ -65,7 +65,7 @@ function we(t) {
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
setup(e) {
|
|
68
|
-
const o =
|
|
68
|
+
const o = H(e.modalConfig);
|
|
69
69
|
return g = (l) => {
|
|
70
70
|
o.value = {
|
|
71
71
|
...o.value,
|
|
@@ -75,12 +75,13 @@ function we(t) {
|
|
|
75
75
|
const l = e.selectedRows?.map((r) => F(r, o.value.getRowKey)), n = o.value, a = E(n.modalLayout);
|
|
76
76
|
return i(x, null, {
|
|
77
77
|
default: () => [i(J, {
|
|
78
|
+
height: n.height,
|
|
78
79
|
rowHeight: n.rowHeight
|
|
79
80
|
}, {
|
|
80
81
|
default: () => [t.renderHeader?.(p(s, "setInstance"), {
|
|
81
82
|
updateProps: y
|
|
82
83
|
}), i(Q, a.props, {
|
|
83
|
-
default: () => [i(X,
|
|
84
|
+
default: () => [i(X, L({
|
|
84
85
|
ref: s.setInstance,
|
|
85
86
|
searchForm: {
|
|
86
87
|
sortable: !1,
|
|
@@ -105,7 +106,8 @@ function we(t) {
|
|
|
105
106
|
return u(n.disabledCheckbox) ? n.disabledCheckbox(r, p(s, "setInstance")) : n.disabledCheckbox ?? !1;
|
|
106
107
|
},
|
|
107
108
|
...t.rowSelection
|
|
108
|
-
}
|
|
109
|
+
},
|
|
110
|
+
autoHeight: !!o.value.height
|
|
109
111
|
}, t.gridProps), n.gridSlots)],
|
|
110
112
|
...a.slots
|
|
111
113
|
})]
|
|
@@ -114,15 +116,15 @@ function we(t) {
|
|
|
114
116
|
};
|
|
115
117
|
}
|
|
116
118
|
});
|
|
117
|
-
function
|
|
119
|
+
function C(e) {
|
|
118
120
|
return i(I, {
|
|
119
121
|
modalConfig: t,
|
|
120
122
|
selectedRows: e
|
|
121
123
|
}, null);
|
|
122
124
|
}
|
|
123
|
-
function
|
|
124
|
-
const e = Object.values(c || {}), o =
|
|
125
|
-
f =
|
|
125
|
+
function v() {
|
|
126
|
+
const e = Object.values(c || {}), o = C(e);
|
|
127
|
+
f = q.createModal({
|
|
126
128
|
title: i(K, {
|
|
127
129
|
title: t.title,
|
|
128
130
|
maxCount: t.maxCount || 1 / 0
|
|
@@ -130,7 +132,7 @@ function we(t) {
|
|
|
130
132
|
width: t.width,
|
|
131
133
|
destroyOnClose: !0,
|
|
132
134
|
maskClosable: !1,
|
|
133
|
-
onOk:
|
|
135
|
+
onOk: h,
|
|
134
136
|
onCancel: M,
|
|
135
137
|
afterOpenChange(l) {
|
|
136
138
|
l === !1 && (s.setInstance(void 0), s.setDataSourceLength(0));
|
|
@@ -139,28 +141,28 @@ function we(t) {
|
|
|
139
141
|
...t.modalProps || {}
|
|
140
142
|
});
|
|
141
143
|
}
|
|
142
|
-
function
|
|
144
|
+
function A(e) {
|
|
143
145
|
return e?.map(m) || [];
|
|
144
146
|
}
|
|
145
|
-
function
|
|
147
|
+
function R(e, o, l = !1) {
|
|
146
148
|
if (c = e?.reduce((n, a) => {
|
|
147
149
|
const r = m(a);
|
|
148
150
|
return n[r] = a, n;
|
|
149
|
-
}, {}), w.setExtraParams(o?.extraParams),
|
|
151
|
+
}, {}), w.setExtraParams(o?.extraParams), v(), l)
|
|
150
152
|
return d.buildPromise();
|
|
151
153
|
}
|
|
152
|
-
function
|
|
153
|
-
return
|
|
154
|
+
function O(e, o) {
|
|
155
|
+
return R(e, o, !0);
|
|
154
156
|
}
|
|
155
|
-
return
|
|
157
|
+
return j(() => {
|
|
156
158
|
d.reject("component is Unmounted!");
|
|
157
159
|
}), {
|
|
158
|
-
open:
|
|
159
|
-
asyncOpen:
|
|
160
|
+
open: R,
|
|
161
|
+
asyncOpen: O,
|
|
160
162
|
refresh: s.refresh,
|
|
161
163
|
getAgGridInstance: s.getInstance,
|
|
162
|
-
genContent:
|
|
163
|
-
validate:
|
|
164
|
+
genContent: C,
|
|
165
|
+
validate: h,
|
|
164
166
|
updateProps: y
|
|
165
167
|
};
|
|
166
168
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StyleValue, VNodeChild } from 'vue';
|
|
1
|
+
import { CSSProperties, StyleValue, VNodeChild } from 'vue';
|
|
2
2
|
import { AgGridColumnType, AgGridExpose, AgGridProps, AgGridRowSelection, AgGridSlots } from '../../ag-grid';
|
|
3
3
|
import { CreateModalFuncProps } from '../../ap-modal';
|
|
4
4
|
import { Recordable } from '../../type';
|
|
@@ -19,6 +19,7 @@ export interface AgGridModalBasicProps<TableRowType = any> {
|
|
|
19
19
|
updateProps: UpdatePropsFn<TableRowType>;
|
|
20
20
|
}) => VNodeChild;
|
|
21
21
|
rowHeight?: number;
|
|
22
|
+
height?: CSSProperties['height'];
|
|
22
23
|
}
|
|
23
24
|
/** 刷新方式 */
|
|
24
25
|
export type RefreshType = 'reset' | 'submit' | 'submitWith';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
|
+
import { CSSProperties, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
rowHeight?: number;
|
|
4
|
+
height?: CSSProperties['height'];
|
|
4
5
|
};
|
|
5
6
|
declare function __VLS_template(): {
|
|
6
7
|
attrs: Partial<{}>;
|
|
@@ -14,6 +15,7 @@ declare function __VLS_template(): {
|
|
|
14
15
|
};
|
|
15
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
17
|
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
height: import("csstype").Property.Height<string | number>;
|
|
17
19
|
rowHeight: number;
|
|
18
20
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
19
21
|
wrapperContainer: HTMLDivElement;
|
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { SMALL_HEIGHT as l, LARGER_HEIGHT as
|
|
1
|
+
import { defineComponent as h, useTemplateRef as g, computed as p, ref as f, watch as d, onMounted as m, createElementBlock as H, openBlock as v, normalizeStyle as y, unref as w, renderSlot as S } from "vue";
|
|
2
|
+
import { SMALL_HEIGHT as l, LARGER_HEIGHT as _ } from "../constants.mjs";
|
|
3
3
|
import { useAgGridModalInject as L } from "../hooks/use-ag-grid-instance.mjs";
|
|
4
|
-
const
|
|
4
|
+
const k = /* @__PURE__ */ h({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
|
-
rowHeight: { default: 32 }
|
|
7
|
+
rowHeight: { default: 32 },
|
|
8
|
+
height: { default: void 0 }
|
|
8
9
|
},
|
|
9
10
|
setup(c) {
|
|
10
|
-
const
|
|
11
|
-
() =>
|
|
12
|
-
),
|
|
11
|
+
const u = c, t = g("wrapperContainer"), s = L(), r = p(
|
|
12
|
+
() => s?.dataSourceLength?.value || 0
|
|
13
|
+
), i = f(l), a = () => {
|
|
13
14
|
const e = t.value?.clientHeight, o = t.value?.querySelector(
|
|
14
15
|
".ag-body.ag-layout-normal"
|
|
15
16
|
)?.clientHeight;
|
|
16
17
|
let n = 0;
|
|
17
|
-
!e || !o ? n = 0 : n = e - o, r.value *
|
|
18
|
+
!e || !o ? n = 0 : n = e - o, r.value * u.rowHeight > 480 - n && (i.value = _);
|
|
18
19
|
};
|
|
19
20
|
return d(
|
|
20
21
|
() => r.value,
|
|
21
22
|
() => {
|
|
22
|
-
|
|
23
|
+
a();
|
|
23
24
|
}
|
|
24
25
|
), m(() => {
|
|
25
|
-
|
|
26
|
+
a();
|
|
26
27
|
}), (e, o) => (v(), H("div", {
|
|
27
28
|
ref_key: "wrapperContainer",
|
|
28
29
|
ref: t,
|
|
29
|
-
style:
|
|
30
|
-
minHeight:
|
|
31
|
-
height:
|
|
30
|
+
style: y({
|
|
31
|
+
minHeight: e.height ? "unset" : w(l),
|
|
32
|
+
height: e.height ?? i.value,
|
|
32
33
|
display: "flex",
|
|
33
34
|
flexDirection: "column"
|
|
34
35
|
})
|
|
35
36
|
}, [
|
|
36
|
-
|
|
37
|
+
S(e.$slots, "default")
|
|
37
38
|
], 4));
|
|
38
39
|
}
|
|
39
40
|
});
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
k as default
|
|
42
43
|
};
|
|
@@ -3,8 +3,8 @@ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/bu
|
|
|
3
3
|
import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
4
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
5
|
import { MouseEventHandler, FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
|
-
import { ButtonProps, ItemType, MenuTheme, MenuMode, TableColumnsType } from '@aplus-frontend/antdv';
|
|
7
6
|
import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
7
|
+
import { ItemType, MenuTheme, MenuMode, TableColumnsType, ButtonProps } from '@aplus-frontend/antdv';
|
|
8
8
|
import { Key } from '@aplus-frontend/antdv/es/_util/type';
|
|
9
9
|
import { CSSMotionProps } from '@aplus-frontend/antdv/es/_util/transition';
|
|
10
10
|
import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler } from '@aplus-frontend/antdv/es/menu/src/interface';
|
|
@@ -70,7 +70,7 @@ declare const ApBatchActionGroup: {
|
|
|
70
70
|
color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
|
|
71
71
|
variant: PropType<ButtonVariantType>;
|
|
72
72
|
}>>, "type" | "onClick"> & {
|
|
73
|
-
type?:
|
|
73
|
+
type?: ( ButtonType | undefined) | "borderLink";
|
|
74
74
|
borderLinkColor?: string;
|
|
75
75
|
minWidth?: boolean | number | string;
|
|
76
76
|
lazy?: boolean | number;
|
|
@@ -380,7 +380,7 @@ declare const ApBatchActionGroup: {
|
|
|
380
380
|
color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
|
|
381
381
|
variant: PropType<ButtonVariantType>;
|
|
382
382
|
}>>, "type" | "onClick"> & {
|
|
383
|
-
type?:
|
|
383
|
+
type?: ( ButtonType | undefined) | "borderLink";
|
|
384
384
|
borderLinkColor?: string;
|
|
385
385
|
minWidth?: boolean | number | string;
|
|
386
386
|
lazy?: boolean | number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApExpandAlertProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
|
|
@@ -24,9 +24,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
24
24
|
}): any;
|
|
25
25
|
};
|
|
26
26
|
emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
27
|
-
}>) => VNode
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}> & {
|
|
27
|
+
}>) => VNode & {
|
|
30
28
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
31
29
|
};
|
|
32
30
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef,
|
|
1
|
+
import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, Plugin } from 'vue';
|
|
2
2
|
export * from './interface';
|
|
3
3
|
declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
@@ -21,7 +21,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
21
21
|
readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
|
|
22
22
|
readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
|
|
23
23
|
readonly onChoose?: ((args_0: T) => any) | undefined;
|
|
24
|
-
type?: "warning" | "error" | "success" | "info" | "card" | undefined;
|
|
24
|
+
type?: "warning" | "error" | "success" | "info" | "card" | undefined | undefined;
|
|
25
25
|
data?: string | T[] | undefined;
|
|
26
26
|
prefix?: string | undefined;
|
|
27
27
|
tipTitle?: string | undefined;
|
|
@@ -30,7 +30,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
30
30
|
separatorStyle?: CSSProperties | undefined;
|
|
31
31
|
contentStyle?: Omit< CSSProperties, "wordBreak" | "overflow" | "display" | "webkitLineClamp" | "webkitBoxOrient"> | undefined;
|
|
32
32
|
prefixStyle?: CSSProperties | undefined;
|
|
33
|
-
rows?:
|
|
33
|
+
rows?: string | number | undefined;
|
|
34
34
|
defaultExpand?: boolean | undefined;
|
|
35
35
|
closable?: boolean | undefined;
|
|
36
36
|
afterClose?: (() => void) | undefined;
|
|
@@ -54,9 +54,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
54
54
|
}): any;
|
|
55
55
|
};
|
|
56
56
|
emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
57
|
-
}>) => VNode
|
|
58
|
-
[key: string]: any;
|
|
59
|
-
}> & {
|
|
57
|
+
}>) => VNode & {
|
|
60
58
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
61
59
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
62
60
|
$props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApSelectItem } from './interface';
|
|
2
|
-
import { PublicProps, ShallowUnwrapRef, VNode,
|
|
2
|
+
import { PublicProps, ShallowUnwrapRef, VNode, Plugin } from 'vue';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
5
5
|
attrs: any;
|
|
@@ -38,9 +38,7 @@ declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable
|
|
|
38
38
|
(event: "afterEnter", el: Element): void;
|
|
39
39
|
(event: "afterLeave", el: Element): void;
|
|
40
40
|
};
|
|
41
|
-
}>) => VNode
|
|
42
|
-
[key: string]: any;
|
|
43
|
-
}> & {
|
|
41
|
+
}>) => VNode & {
|
|
44
42
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
45
43
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
46
44
|
$props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApSelectItem, ApSelectLayoutProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onOnSelect?: ((value: T) => any) | undefined;
|
|
@@ -19,9 +19,7 @@ declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaite
|
|
|
19
19
|
(event: "afterEnter", el: Element): void;
|
|
20
20
|
(event: "afterLeave", el: Element): void;
|
|
21
21
|
};
|
|
22
|
-
}>) => VNode
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
}> & {
|
|
22
|
+
}>) => VNode & {
|
|
25
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
24
|
};
|
|
27
25
|
export default _default;
|
|
@@ -58,7 +58,7 @@ const X = ["onClick"], se = /* @__PURE__ */ D({
|
|
|
58
58
|
"onUpdate:open": n[0] || (n[0] = (l) => k.value = l)
|
|
59
59
|
}, {
|
|
60
60
|
title: c(() => n[3] || (n[3] = [
|
|
61
|
-
A("收起"
|
|
61
|
+
A("收起")
|
|
62
62
|
])),
|
|
63
63
|
default: c(() => [
|
|
64
64
|
u(e(G), { onClick: F })
|
|
@@ -119,7 +119,7 @@ const X = ["onClick"], se = /* @__PURE__ */ D({
|
|
|
119
119
|
"onUpdate:open": n[2] || (n[2] = (l) => T.value = l)
|
|
120
120
|
}, {
|
|
121
121
|
title: c(() => n[4] || (n[4] = [
|
|
122
|
-
A("展开"
|
|
122
|
+
A("展开")
|
|
123
123
|
])),
|
|
124
124
|
default: c(() => [
|
|
125
125
|
u(e(H), { onClick: F })
|
|
@@ -4,8 +4,8 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
|
|
|
4
4
|
import { ApTableModalProps, OpenOptions, OpenReturnType } from './interface';
|
|
5
5
|
import { Recordable } from '../../type';
|
|
6
6
|
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
7
|
-
import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
|
|
8
7
|
import { ApFormSearchFormPopoverSorterItem } from '../..';
|
|
8
|
+
import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
@@ -43,8 +43,14 @@ declare const ApTableModal: {
|
|
|
43
43
|
};
|
|
44
44
|
y: undefined;
|
|
45
45
|
};
|
|
46
|
-
getPaging: () =>
|
|
47
|
-
|
|
46
|
+
getPaging: () => Partial<{
|
|
47
|
+
current: number;
|
|
48
|
+
pageSize: number;
|
|
49
|
+
}>;
|
|
50
|
+
setPaging: (nextPaging: Partial<{
|
|
51
|
+
current: number;
|
|
52
|
+
pageSize: number;
|
|
53
|
+
}>, refreshImmediately?: boolean) => void;
|
|
48
54
|
getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
|
|
49
55
|
setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
|
|
50
56
|
resetSearchFormSorterItems: () => void;
|
|
@@ -149,8 +155,14 @@ declare const ApTableModal: {
|
|
|
149
155
|
};
|
|
150
156
|
y: undefined;
|
|
151
157
|
};
|
|
152
|
-
getPaging: () =>
|
|
153
|
-
|
|
158
|
+
getPaging: () => Partial<{
|
|
159
|
+
current: number;
|
|
160
|
+
pageSize: number;
|
|
161
|
+
}>;
|
|
162
|
+
setPaging: (nextPaging: Partial<{
|
|
163
|
+
current: number;
|
|
164
|
+
pageSize: number;
|
|
165
|
+
}>, refreshImmediately?: boolean) => void;
|
|
154
166
|
getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
|
|
155
167
|
setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
|
|
156
168
|
resetSearchFormSorterItems: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
-
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface,
|
|
3
|
+
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
|
|
4
4
|
import { UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
|
|
5
5
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
6
6
|
declare function setValue(val: (string | Record<string, any>)[]): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Oss } from '../hooks/useOss';
|
|
2
|
+
import { actionResponse } from '@aplus-frontend/oss';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
4
|
declare function setValue(val?: (string | Record<string, any>)[]): void;
|
|
4
5
|
interface UploadFile extends File {
|
|
@@ -17,13 +18,7 @@ declare function __VLS_template(): {
|
|
|
17
18
|
pictureContext?(_: {
|
|
18
19
|
fileList: {
|
|
19
20
|
oss: {
|
|
20
|
-
pauseUpload: (() => Promise<
|
|
21
|
-
status: number;
|
|
22
|
-
previewUrl?: string;
|
|
23
|
-
saveUrl?: string;
|
|
24
|
-
originalFileName?: string;
|
|
25
|
-
message: string;
|
|
26
|
-
}>) | undefined;
|
|
21
|
+
pauseUpload: (() => Promise< actionResponse>) | undefined;
|
|
27
22
|
};
|
|
28
23
|
}[];
|
|
29
24
|
remove: typeof handleRemove;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApValueSelectCardProps, ApValueSelectCardOption } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onChange?: ((keys: (string | number)[]) => any) | undefined;
|
|
@@ -45,9 +45,7 @@ declare const _default: <T extends Record<string, any> = Record<string, any>>(__
|
|
|
45
45
|
(e: "remove", key: string | number): void;
|
|
46
46
|
(e: "highlight", keys: (string | number)[]): void;
|
|
47
47
|
};
|
|
48
|
-
}>) => VNode
|
|
49
|
-
[key: string]: any;
|
|
50
|
-
}> & {
|
|
48
|
+
}>) => VNode & {
|
|
51
49
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../ap-form';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
4
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath,
|
|
4
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
7
|
import { Options } from '../../../../node_modules/scroll-into-view-if-needed';
|
|
8
8
|
import { Recordable } from '../../../type';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
10
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
10
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -110,7 +109,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
110
109
|
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
111
110
|
readonly initialValues?: Recordable | undefined;
|
|
112
111
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
113
|
-
readonly syncToUrl?:
|
|
112
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
114
113
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
115
114
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
116
115
|
$attrs: {
|