@aplus-frontend/ui 7.13.7 → 7.13.9
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/select/index.vue.d.ts +13 -3
- package/es/src/ap-field/select/index.vue.mjs +250 -207
- package/es/src/ap-field/style/select.mjs +61 -31
- package/es/src/ap-form/items/select/index.vue.d.ts +4 -4
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +13 -12
- package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +1 -0
- package/es/src/ap-table/components/setting/template/edit-form.vue2.mjs +25 -24
- package/es/src/ap-table/components/setting/template/item.vue2.mjs +1 -0
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/constants.d.ts +2 -2
- package/es/src/ap-table/style/setting.mjs +2 -2
- package/es/src/locale/lang/en.mjs +2 -1
- package/es/src/locale/lang/zh-cn.mjs +2 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +13 -3
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/style/select.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +4 -4
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +1 -0
- package/lib/src/ap-table/components/setting/template/edit-form.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2 -2
- package/lib/src/ap-table/style/setting.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,60 +1,90 @@
|
|
|
1
|
-
import { singleRow as
|
|
2
|
-
const
|
|
3
|
-
const { componentCls:
|
|
1
|
+
import { singleRow as n } from "../../style/index.mjs";
|
|
2
|
+
const a = (o) => {
|
|
3
|
+
const { componentCls: t } = o, i = `${t}-select-popup`;
|
|
4
4
|
return {
|
|
5
|
-
[`${
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
[`${p}-all-option-wrapper`]: {
|
|
9
|
-
padding: i.space,
|
|
10
|
-
paddingBlockEnd: i.spaceXS
|
|
11
|
-
},
|
|
12
|
-
[`${p}-all-option`]: {
|
|
5
|
+
[`${i}`]: {
|
|
6
|
+
padding: o.space,
|
|
7
|
+
[`${i}-all-option`]: {
|
|
13
8
|
width: "100%",
|
|
14
9
|
display: "inline-flex",
|
|
15
10
|
cursor: "pointer",
|
|
16
|
-
paddingInline:
|
|
17
|
-
paddingBlock:
|
|
18
|
-
[`${
|
|
19
|
-
paddingInline:
|
|
11
|
+
paddingInline: o.space,
|
|
12
|
+
paddingBlock: o.spaceSM,
|
|
13
|
+
[`${i}-all-option-label`]: {
|
|
14
|
+
paddingInline: o.space
|
|
20
15
|
}
|
|
21
16
|
},
|
|
22
|
-
[`${
|
|
23
|
-
|
|
17
|
+
[`${i}-option-outter`]: {
|
|
18
|
+
borderRadius: o.antdv.borderRadiusSM,
|
|
19
|
+
paddingInline: o.space
|
|
24
20
|
},
|
|
25
|
-
[`${
|
|
26
|
-
|
|
21
|
+
[`${i}-option-wrapper`]: {
|
|
22
|
+
height: "30px"
|
|
23
|
+
},
|
|
24
|
+
[`${i}-option-content-wrapper`]: {
|
|
25
|
+
flex: 1,
|
|
26
|
+
flexShrink: 1,
|
|
27
|
+
minWidth: 0
|
|
28
|
+
},
|
|
29
|
+
[`${i}-option-label`]: {
|
|
30
|
+
...n(o),
|
|
27
31
|
color: "inherit"
|
|
28
32
|
},
|
|
29
|
-
[`${
|
|
33
|
+
[`${i}-option-custom`]: {
|
|
34
|
+
flex: 1,
|
|
35
|
+
flexShrink: 1,
|
|
36
|
+
minWidth: 0
|
|
37
|
+
},
|
|
38
|
+
[`${i}-option-action`]: {
|
|
30
39
|
display: "none",
|
|
31
|
-
color:
|
|
32
|
-
paddingInline:
|
|
33
|
-
paddingBlock:
|
|
40
|
+
color: o.colorPrimary,
|
|
41
|
+
paddingInline: o.spaceSM,
|
|
42
|
+
paddingBlock: o.spaceXXS,
|
|
34
43
|
"&:hover": {
|
|
35
|
-
background:
|
|
44
|
+
background: o.colorPrimary,
|
|
36
45
|
color: "#fff",
|
|
37
46
|
borderRadius: "2px"
|
|
38
47
|
}
|
|
39
48
|
},
|
|
40
49
|
"div.ant-select-item": {
|
|
41
|
-
|
|
42
|
-
|
|
50
|
+
padding: 0,
|
|
51
|
+
paddingBlockEnd: o.spaceXS,
|
|
43
52
|
fontWeight: "normal !important",
|
|
44
|
-
|
|
45
|
-
|
|
53
|
+
"&.ant-select-item-option-active:not(.ant-select-item-option-disabled)": {
|
|
54
|
+
backgroundColor: "unset",
|
|
55
|
+
[`& ${i}-option-outter`]: {
|
|
56
|
+
backgroundColor: o.antdv.controlItemBgHover
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"&.ant-select-item-option-selected:not(.ant-select-item-option-disabled)": {
|
|
60
|
+
backgroundColor: "unset",
|
|
61
|
+
[`& ${i}-option-outter`]: {
|
|
62
|
+
backgroundColor: o.antdv.controlItemBgActive
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"&.ant-select-item-option-disabled.ant-select-item-option-selected": {
|
|
66
|
+
backgroundColor: "unset",
|
|
67
|
+
[`& ${i}-option-outter`]: {
|
|
68
|
+
backgroundColor: o.antdv.colorBgContainerDisabled
|
|
69
|
+
}
|
|
70
|
+
},
|
|
46
71
|
"&:hover": {
|
|
47
|
-
[`${
|
|
72
|
+
[`${i}-option-action`]: {
|
|
48
73
|
display: "inline"
|
|
49
74
|
}
|
|
50
75
|
},
|
|
51
76
|
"&:last-child": {
|
|
52
|
-
|
|
77
|
+
paddingBlockEnd: 0
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
[`&:has(${i}-all-option)`]: {
|
|
81
|
+
"div.ant-select-item:first-child": {
|
|
82
|
+
paddingBlockStart: o.spaceXS
|
|
53
83
|
}
|
|
54
84
|
}
|
|
55
85
|
}
|
|
56
86
|
};
|
|
57
87
|
};
|
|
58
88
|
export {
|
|
59
|
-
|
|
89
|
+
a as genSelectStyle
|
|
60
90
|
};
|
|
@@ -671,7 +671,7 @@ declare function __VLS_template(): {
|
|
|
671
671
|
maxTagPlaceholder: any;
|
|
672
672
|
optionLabel: any;
|
|
673
673
|
default: any;
|
|
674
|
-
|
|
674
|
+
option: any;
|
|
675
675
|
}> & {
|
|
676
676
|
notFoundContent: any;
|
|
677
677
|
suffixIcon: any;
|
|
@@ -683,7 +683,7 @@ declare function __VLS_template(): {
|
|
|
683
683
|
maxTagPlaceholder: any;
|
|
684
684
|
optionLabel: any;
|
|
685
685
|
default: any;
|
|
686
|
-
|
|
686
|
+
option: any;
|
|
687
687
|
};
|
|
688
688
|
}) | null;
|
|
689
689
|
};
|
|
@@ -1332,7 +1332,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
1332
1332
|
maxTagPlaceholder: any;
|
|
1333
1333
|
optionLabel: any;
|
|
1334
1334
|
default: any;
|
|
1335
|
-
|
|
1335
|
+
option: any;
|
|
1336
1336
|
}> & {
|
|
1337
1337
|
notFoundContent: any;
|
|
1338
1338
|
suffixIcon: any;
|
|
@@ -1344,7 +1344,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
1344
1344
|
maxTagPlaceholder: any;
|
|
1345
1345
|
optionLabel: any;
|
|
1346
1346
|
default: any;
|
|
1347
|
-
|
|
1347
|
+
option: any;
|
|
1348
1348
|
};
|
|
1349
1349
|
}) | null;
|
|
1350
1350
|
}, any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as pe, ref as v, computed as ce, toRef as me, useSlots as de, createVNode as l, cloneVNode as fe, unref as e, watch as E, createElementBlock as P, openBlock as S, Fragment as ve, createBlock as x, createCommentVNode as j, resolveDynamicComponent as w, withCtx as o, withDirectives as ge, createElementVNode as c, normalizeClass as u, toDisplayString as g, createTextVNode as
|
|
1
|
+
import { defineComponent as pe, ref as v, computed as ce, toRef as me, useSlots as de, createVNode as l, cloneVNode as fe, unref as e, watch as E, createElementBlock as P, openBlock as S, Fragment as ve, createBlock as x, createCommentVNode as j, resolveDynamicComponent as w, withCtx as o, withDirectives as ge, createElementVNode as c, normalizeClass as u, toDisplayString as g, createTextVNode as k, isRef as ye, vShow as Se } from "vue";
|
|
2
2
|
import { SettingOutlined as Te, SaveOutlined as be } from "@ant-design/icons-vue";
|
|
3
|
-
import { Button as F, Modal as Ce, Divider as A, RadioGroup as
|
|
3
|
+
import { Button as F, Modal as Ce, Divider as A, RadioGroup as ke, RadioButton as M, Flex as he, Space as q, Popover as _e } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../../../ap-button/index.mjs";
|
|
5
5
|
import { randomStr as ze } from "../../../../utils/index.mjs";
|
|
6
6
|
import "../../../../config-provider/index.mjs";
|
|
@@ -41,18 +41,18 @@ const Ee = {
|
|
|
41
41
|
columnsBackup: J,
|
|
42
42
|
updateSize: Q,
|
|
43
43
|
updateColumns: W
|
|
44
|
-
} = we(), m = v(),
|
|
44
|
+
} = we(), m = v(), h = ce(() => T.config.persistenceKey), b = v(!1), {
|
|
45
45
|
basicTemplate: X,
|
|
46
46
|
customizeTemplateList: d,
|
|
47
47
|
addTemplate: Y,
|
|
48
48
|
deleteTemplate: N,
|
|
49
49
|
updateTemplate: Z
|
|
50
|
-
} = Be(T.config,
|
|
50
|
+
} = Be(T.config, h), {
|
|
51
51
|
columnState: p,
|
|
52
52
|
setColumnState: K,
|
|
53
53
|
isAllSelected: ee,
|
|
54
54
|
toggleSelectAll: te
|
|
55
|
-
} = Ae([]), $ = `${
|
|
55
|
+
} = Ae([]), $ = `${h.value}__active_key`;
|
|
56
56
|
function I(a) {
|
|
57
57
|
localStorage.setItem($, a);
|
|
58
58
|
}
|
|
@@ -155,11 +155,12 @@ const Ee = {
|
|
|
155
155
|
"after-open-change": ue,
|
|
156
156
|
"wrap-class-name": `${e(f)()} ${e(le)}`,
|
|
157
157
|
"ok-text": e(r)("ap.apTable.setting.saveAndApply"),
|
|
158
|
+
"mask-closable": !1,
|
|
158
159
|
onOk: ie
|
|
159
160
|
}, {
|
|
160
161
|
footer: o(({
|
|
161
162
|
extra: n
|
|
162
|
-
}) => [l(e(
|
|
163
|
+
}) => [l(e(he), {
|
|
163
164
|
justify: "space-between"
|
|
164
165
|
}, {
|
|
165
166
|
default: o(() => [l(e(q), {
|
|
@@ -182,7 +183,7 @@ const Ee = {
|
|
|
182
183
|
disabled: !a.config.persistenceKey
|
|
183
184
|
}, {
|
|
184
185
|
icon: o(() => [l(e(be))]),
|
|
185
|
-
default: o(() => [
|
|
186
|
+
default: o(() => [k(g(e(r)("ap.apTable.setting.saveAsTemplate")) + " ", 1)]),
|
|
186
187
|
_: 1
|
|
187
188
|
}, 8, ["disabled"])]),
|
|
188
189
|
_: 1
|
|
@@ -205,7 +206,7 @@ const Ee = {
|
|
|
205
206
|
class: u(e(f)("left"))
|
|
206
207
|
}, [l(Re, {
|
|
207
208
|
"customize-template-list": e(d),
|
|
208
|
-
"persistence-key":
|
|
209
|
+
"persistence-key": h.value,
|
|
209
210
|
onActiveChange: U
|
|
210
211
|
}, null, 8, ["customize-template-list", "persistence-key"])], 2), l(e(A), {
|
|
211
212
|
type: "vertical",
|
|
@@ -226,21 +227,21 @@ const Ee = {
|
|
|
226
227
|
size: "small",
|
|
227
228
|
onClick: e(te)
|
|
228
229
|
}, {
|
|
229
|
-
default: o(() => [
|
|
230
|
+
default: o(() => [k(g(e(ee) ? e(r)("ap.apTable.setting.unSelectAll") : e(r)("ap.apTable.setting.selectAll")), 1)]),
|
|
230
231
|
_: 1
|
|
231
|
-
}, 8, ["onClick"])], 2), l(e(
|
|
232
|
+
}, 8, ["onClick"])], 2), l(e(ke), {
|
|
232
233
|
value: m.value,
|
|
233
234
|
"onUpdate:value": t[0] || (t[0] = (n) => m.value = n)
|
|
234
235
|
}, {
|
|
235
236
|
default: o(() => [l(e(M), {
|
|
236
237
|
value: "small"
|
|
237
238
|
}, {
|
|
238
|
-
default: o(() => [
|
|
239
|
+
default: o(() => [k(g(e(r)("ap.apTable.setting.sizeSmall")), 1)]),
|
|
239
240
|
_: 1
|
|
240
241
|
}), l(e(M), {
|
|
241
242
|
value: "middle"
|
|
242
243
|
}, {
|
|
243
|
-
default: o(() => [
|
|
244
|
+
default: o(() => [k(g(e(r)("ap.apTable.setting.sizeNormal")), 1)]),
|
|
244
245
|
_: 1
|
|
245
246
|
})]),
|
|
246
247
|
_: 1
|
|
@@ -14,6 +14,7 @@ type __VLS_Props = {
|
|
|
14
14
|
onConfirm: (label?: string) => void;
|
|
15
15
|
onCancel: () => void;
|
|
16
16
|
initialValues?: Record<string, any>;
|
|
17
|
+
isEdit?: boolean;
|
|
17
18
|
};
|
|
18
19
|
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
19
20
|
formRef: ({
|
|
@@ -1,65 +1,66 @@
|
|
|
1
|
-
import { defineComponent as f, ref as u, createElementBlock as d, openBlock as y, createVNode as
|
|
2
|
-
import { Flex as C, Button as
|
|
3
|
-
import { ApForm as
|
|
1
|
+
import { defineComponent as f, ref as u, createElementBlock as d, openBlock as y, createVNode as l, unref as e, withCtx as o, createTextVNode as i, toDisplayString as r } from "vue";
|
|
2
|
+
import { Flex as C, Button as p } from "@aplus-frontend/antdv";
|
|
3
|
+
import { ApForm as b } from "../../../../ap-form/index.mjs";
|
|
4
4
|
import "../../../../config-provider/index.mjs";
|
|
5
|
-
import { useLocale as
|
|
6
|
-
import { ApFormItemText as
|
|
7
|
-
const
|
|
5
|
+
import { useLocale as g } from "../../../../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
import { ApFormItemText as h } from "../../../../ap-form/items/text/index.mjs";
|
|
7
|
+
const B = /* @__PURE__ */ f({
|
|
8
8
|
__name: "edit-form",
|
|
9
9
|
props: {
|
|
10
10
|
onConfirm: { type: Function },
|
|
11
11
|
onCancel: { type: Function },
|
|
12
|
-
initialValues: {}
|
|
12
|
+
initialValues: {},
|
|
13
|
+
isEdit: { type: Boolean }
|
|
13
14
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const s =
|
|
15
|
+
setup(m) {
|
|
16
|
+
const s = m, { t } = g(), n = u();
|
|
16
17
|
async function c() {
|
|
17
|
-
const
|
|
18
|
-
s.onConfirm(
|
|
18
|
+
const a = await n.value?.validateFields();
|
|
19
|
+
s.onConfirm(a?.label);
|
|
19
20
|
}
|
|
20
|
-
return (
|
|
21
|
-
|
|
21
|
+
return (a, T) => (y(), d("div", null, [
|
|
22
|
+
l(e(b), {
|
|
22
23
|
ref_key: "formRef",
|
|
23
24
|
ref: n,
|
|
24
25
|
colon: !1,
|
|
25
26
|
"label-col": { span: 24 },
|
|
26
|
-
"initial-values":
|
|
27
|
+
"initial-values": a.initialValues
|
|
27
28
|
}, {
|
|
28
29
|
default: o(() => [
|
|
29
|
-
|
|
30
|
+
l(e(h), {
|
|
30
31
|
rules: [
|
|
31
32
|
{
|
|
32
33
|
required: !0,
|
|
33
|
-
message: e(
|
|
34
|
+
message: e(t)("ap.apTable.setting.templateNamePlaceholder")
|
|
34
35
|
}
|
|
35
36
|
],
|
|
36
37
|
name: "label",
|
|
37
|
-
label: e(
|
|
38
|
+
label: a.isEdit ? e(t)("ap.apTable.setting.templateName") : e(t)("ap.apTable.setting.newTemplateName")
|
|
38
39
|
}, null, 8, ["rules", "label"])
|
|
39
40
|
]),
|
|
40
41
|
_: 1
|
|
41
42
|
}, 8, ["initial-values"]),
|
|
42
|
-
|
|
43
|
+
l(e(C), {
|
|
43
44
|
justify: "end",
|
|
44
45
|
gap: 8
|
|
45
46
|
}, {
|
|
46
47
|
default: o(() => [
|
|
47
|
-
|
|
48
|
+
l(e(p), {
|
|
48
49
|
style: { height: "24px" },
|
|
49
|
-
onClick:
|
|
50
|
+
onClick: a.onCancel
|
|
50
51
|
}, {
|
|
51
52
|
default: o(() => [
|
|
52
|
-
i(r(e(
|
|
53
|
+
i(r(e(t)("ap.common.cancelText")), 1)
|
|
53
54
|
]),
|
|
54
55
|
_: 1
|
|
55
56
|
}, 8, ["onClick"]),
|
|
56
|
-
|
|
57
|
+
l(e(p), {
|
|
57
58
|
style: { height: "24px" },
|
|
58
59
|
type: "primary",
|
|
59
60
|
onClick: c
|
|
60
61
|
}, {
|
|
61
62
|
default: o(() => [
|
|
62
|
-
i(r(e(
|
|
63
|
+
i(r(e(t)("ap.common.save")), 1)
|
|
63
64
|
]),
|
|
64
65
|
_: 1
|
|
65
66
|
})
|
|
@@ -70,5 +71,5 @@ const V = /* @__PURE__ */ f({
|
|
|
70
71
|
}
|
|
71
72
|
});
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
B as default
|
|
74
75
|
};
|
|
@@ -1559,7 +1559,7 @@ export declare const apTableFormItemMap: {
|
|
|
1559
1559
|
maxTagPlaceholder: any;
|
|
1560
1560
|
optionLabel: any;
|
|
1561
1561
|
default: any;
|
|
1562
|
-
|
|
1562
|
+
option: any;
|
|
1563
1563
|
}> & {
|
|
1564
1564
|
notFoundContent: any;
|
|
1565
1565
|
suffixIcon: any;
|
|
@@ -1571,7 +1571,7 @@ export declare const apTableFormItemMap: {
|
|
|
1571
1571
|
maxTagPlaceholder: any;
|
|
1572
1572
|
optionLabel: any;
|
|
1573
1573
|
default: any;
|
|
1574
|
-
|
|
1574
|
+
option: any;
|
|
1575
1575
|
};
|
|
1576
1576
|
}) | null;
|
|
1577
1577
|
}, any, ComponentProvideOptions, {
|
|
@@ -250,7 +250,7 @@ const o = (e) => {
|
|
|
250
250
|
marginBottom: 0
|
|
251
251
|
},
|
|
252
252
|
"&:hover": {
|
|
253
|
-
backgroundColor: e.
|
|
253
|
+
backgroundColor: e.colorBg3,
|
|
254
254
|
cursor: "pointer",
|
|
255
255
|
[`${e.componentCls}-template-item-action-wrapper`]: {
|
|
256
256
|
display: "flex"
|
|
@@ -273,7 +273,7 @@ const o = (e) => {
|
|
|
273
273
|
},
|
|
274
274
|
[`${i}-active`]: {
|
|
275
275
|
backgroundColor: e.calc(e.colorPrimary).colorMix(5),
|
|
276
|
-
|
|
276
|
+
[`${i}-label`]: {
|
|
277
277
|
color: e.colorPrimary
|
|
278
278
|
}
|
|
279
279
|
}
|
|
@@ -69,7 +69,8 @@ const a = {
|
|
|
69
69
|
saveAndApply: "Save and Apply",
|
|
70
70
|
modifyNotification: "The current template has been modified. You can save it as a new template.",
|
|
71
71
|
templateSetting: "Column Configuration Template",
|
|
72
|
-
templateName: "
|
|
72
|
+
templateName: "Template Name",
|
|
73
|
+
newTemplateName: "New Template Name",
|
|
73
74
|
templateNamePlaceholder: "Please enter a template name"
|
|
74
75
|
},
|
|
75
76
|
paragraphEllipsis: {
|
package/es/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "7.13.
|
|
1
|
+
declare const _default: "7.13.9";
|
|
2
2
|
export default _default;
|
package/es/src/version.mjs
CHANGED
|
@@ -19,7 +19,7 @@ type ApFieldSelectSlots = {
|
|
|
19
19
|
maxTagPlaceholder: any;
|
|
20
20
|
optionLabel: any;
|
|
21
21
|
default: any;
|
|
22
|
-
|
|
22
|
+
option: any;
|
|
23
23
|
};
|
|
24
24
|
declare function __VLS_template(): {
|
|
25
25
|
attrs: Partial<{}>;
|
|
@@ -170,7 +170,12 @@ declare function __VLS_template(): {
|
|
|
170
170
|
type: PropType<(props: CustomTagProps) => any>;
|
|
171
171
|
};
|
|
172
172
|
optionLabelRender: {
|
|
173
|
-
type:
|
|
173
|
+
type: **
|
|
174
|
+
* 在聚焦时再次发起网络请求的前提:
|
|
175
|
+
* 1. 设置了`refetchOnFocus=true`
|
|
176
|
+
* 2. `fetchId > 0`表示已经发起过一次网络请求
|
|
177
|
+
* 3. 当前并不处于loading状态
|
|
178
|
+
*/).PropType<(option: Record<string, any>) => any>;
|
|
174
179
|
};
|
|
175
180
|
onClear: PropType<() => void>;
|
|
176
181
|
defaultOpen: {
|
|
@@ -630,7 +635,12 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
630
635
|
type: PropType<(props: CustomTagProps) => any>;
|
|
631
636
|
};
|
|
632
637
|
optionLabelRender: {
|
|
633
|
-
type:
|
|
638
|
+
type: **
|
|
639
|
+
* 在聚焦时再次发起网络请求的前提:
|
|
640
|
+
* 1. 设置了`refetchOnFocus=true`
|
|
641
|
+
* 2. `fetchId > 0`表示已经发起过一次网络请求
|
|
642
|
+
* 3. 当前并不处于loading状态
|
|
643
|
+
*/).PropType<(option: Record<string, any>) => any>;
|
|
634
644
|
};
|
|
635
645
|
onClear: PropType<() => void>;
|
|
636
646
|
defaultOpen: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("@aplus-frontend/antdv"),r=require("lodash-unified");require("../../config-provider/index.js");require("../../utils/index.js");require("../../hooks/index.js");const J=require("../hooks/use-default-placeholder.js"),Q=require("../style/index.js"),X=require("./use-select-options.js"),N=require("../../config-provider/hooks/use-namespace.js"),Y=require("../../config-provider/hooks/use-locale.js"),Z=require("../../hooks/useControllableValue.js"),x=require("../../utils/is.js"),ee={key:0},te=["onClick"],ne=e.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},variant:{},maxCount:{},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},placeholder:{},loading:{type:Boolean,default:void 0},prefix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},fieldNames:{},inputValue:{},searchValue:{},autoClearSearchValue:{type:Boolean,default:void 0},onDeselect:{},onActive:{},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},options:{},defaultActiveFirstOption:{type:Boolean,default:void 0},listItemHeight:{},onClickOption:{},menuItemSelectedIcon:{},labelInValue:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{},maxTagTextLength:{},maxTagCount:{},maxTagPlaceholder:{},tokenSeparators:{},removeIcon:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showAction:{},onPopupScroll:{},onInputKeyDown:{},emptyText:{default:"--"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"},refetchOnFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},addAll:{type:[Boolean,Number],default:5},params:{},searchDelay:{default:300},allowOnlySelect:{type:Boolean,default:!0}},emits:["update:value"],setup(V,{expose:F,emit:O}){let s=0;const w=e.useSlots(),t=V,{b:v}=N.useNamespace("field-select"),{b:c}=N.useNamespace("field-select-popup-option"),q=Q.default("field"),k=e.ref(!1),{t:S}=Y.useLocale(),A=r.debounce(n=>{if(!r.isFunction(t.request))return;s+=1;const o=s;m([]),u.value=!0,t.request(n).then(l=>{s===o&&(m(l),u.value=!1)})},t.searchDelay),I=(n,o)=>{const l=t.fieldNames?.label||"label";return typeof o?.[l]=="string"&&o[l].toLowerCase().indexOf(n.toLowerCase())>-1},{options:f,updateOptions:m}=X.useSelectOptions(t),y=e.shallowRef(),u=e.ref(t?.loading||!1),D=O,_=e.computed(()=>{if(t.multiple)return t.tokenSeparators?"tags":"multiple"});async function h(n=!0){if(!r.isFunction(t.request))return;u.value=!0,s+=1;const o=s;try{n&&m([]);const l=await t.request(void 0,t.params);if(o!==s)return;m(l)}finally{u.value=!1}}function M(n){t.onFocus?.(n),t.refetchOnFocus&&s>0&&!u.value&&h(!0)}e.onMounted(()=>{t.lazy||h()}),e.watch(()=>t.params,()=>{h()},{deep:!0});const{value:i,updateValue:C}=Z.useControllableValue(t,D),P=J.useDefaultPlaceholder("Select",t),z=e.computed(()=>{const n=e.unref(i);if(!n)return t.emptyText;const o=t.fieldNames?.label||"label",l=t.fieldNames?.value||"value";return r.isArray(n)?n.map(p=>e.unref(f).find(G=>G[l]===p)?.[o]).filter(Boolean).join("、")||t.emptyText:e.unref(f).find(p=>p[l]===n)?.[o]||t.emptyText}),T=e.computed(()=>{const n=!!t?.showSearch,o=t.searchMode;let l={};return n&&(l=o==="request"?{defaultActiveFirstOption:!1,onSearch:A,notFoundContent:u.value?void 0:null,filterOption:!1,suffixIcon:null}:{filterOption:r.isNil(t?.filterOption)?I:t?.filterOption}),{...r.omit(t,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus","onBeforeSelect"]),placeholder:e.unref(P),...l}}),L=e.computed(()=>f.value.map(n=>n[t.fieldNames?.value||"value"])),g=e.computed(()=>f.value.filter(n=>!n.disabled).map(n=>n[t.fieldNames?.value||"value"])),B=e.computed(()=>!t.multiple||x.isDef(t.maxCount)?!1:r.isNumber(t.addAll)?L.value.length>=t.addAll:!!t.addAll),R=e.computed(()=>t.multiple&&t.allowOnlySelect&&(!x.isDef(t.maxCount)||t.maxCount>=1));function E(){y.value?.focus()}function U(){y.value?.blur()}function b(n,o){const l=t.fieldNames?.[o]??o;return n[l]}function $(n){const o=b(n,"value");C(t.multiple?[o]:o)}function j(n){return w.option?e.createVNode("div",{class:c("custom")},[w.option(n)]):e.createVNode("span",{class:c("label")},[b(n,"label")])}const K=e.computed(()=>{const n=e.unref(i)||[],o=g.value;return o.length>0&&o.every(l=>n.includes(l))}),H=e.computed(()=>{const n=e.unref(i)||[],o=g.value,l=o.filter(a=>n.includes(a)).length;return l>0&&l<o.length});function W(){const n=new Set(e.unref(i)||[]),o=g.value;o.length>0&&o.every(a=>n.has(a))?o.forEach(a=>n.delete(a)):o.forEach(a=>n.add(a)),C([...n])}return F({focus:E,blur:U,request:h}),(n,o)=>n.mode==="read"?(e.openBlock(),e.createElementBlock("span",ee,e.toDisplayString(z.value),1)):(e.openBlock(),e.createBlock(e.unref(d.Select),e.mergeProps({key:1,ref_key:"selectRef",ref:y,"allow-clear":""},T.value,{mode:_.value,value:e.unref(i),options:e.unref(f),loading:u.value,"menu-item-selected-icon":e.h("span"),"popup-class-name":`${e.unref(v)("popup")} ${e.unref(q)}`,open:k.value,"onUpdate:value":e.unref(C),onFocus:M,onDropdownVisibleChange:o[0]||(o[0]=l=>k.value=l)}),e.createSlots({option:e.withCtx(l=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)("outter"))},[e.createVNode(e.unref(d.Flex),{justify:"space-between",align:"center",class:e.normalizeClass(e.unref(c)("wrapper")),gap:8},{default:e.withCtx(()=>[e.createVNode(e.unref(d.Flex),{gap:8,align:"center",class:e.normalizeClass(e.unref(c)("content-wrapper"))},{default:e.withCtx(()=>[B.value?(e.openBlock(),e.createBlock(e.unref(d.Checkbox),{key:0,checked:e.unref(i)?.includes(b(l,"value"))},null,8,["checked"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(j(l))))]),_:2},1032,["class"]),R.value&&!l?.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(c)("action")),onClick:e.withModifiers(()=>$(l),["stop"])},e.toDisplayString(e.unref(S)("ap.field.chooseOnly")),11,te)):e.createCommentVNode("",!0)]),_:2},1032,["class"])],2)]),_:2},[e.renderList(e.unref(r.omit)(n.$slots,["option"]),(l,a)=>({name:a,fn:e.withCtx(p=>[e.renderSlot(n.$slots,a,e.normalizeProps(e.guardReactiveProps(p||{})))])})),u.value?{name:"notFoundContent",fn:e.withCtx(()=>[e.createVNode(e.unref(d.Spin),{size:"small"})]),key:"0"}:void 0,B.value?{name:"dropdownRender",fn:e.withCtx(({menuNode:l})=>[e.createElementVNode("div",{tabindex:-1,class:e.normalizeClass(e.unref(v)("popup-all-option")),onClick:W},[e.createVNode(e.unref(d.Checkbox),{checked:K.value,indeterminate:H.value},null,8,["checked","indeterminate"]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(v)("popup-all-option-label"))},e.toDisplayString(e.unref(S)("ap.field.selectAll")),3)],2),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l)))]),key:"1"}:void 0]),1040,["mode","value","options","loading","menu-item-selected-icon","popup-class-name","open","onUpdate:value"]))}});exports.default=ne;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../style/index.js"),n=o=>{const{componentCls:t}=o,e=`${t}-select-popup`;return{[`${e}`]:{padding:o.space,[`${e}-all-option`]:{width:"100%",display:"inline-flex",cursor:"pointer",paddingInline:o.space,paddingBlock:o.spaceSM,[`${e}-all-option-label`]:{paddingInline:o.space}},[`${e}-option-outter`]:{borderRadius:o.antdv.borderRadiusSM,paddingInline:o.space},[`${e}-option-wrapper`]:{height:"30px"},[`${e}-option-content-wrapper`]:{flex:1,flexShrink:1,minWidth:0},[`${e}-option-label`]:{...i.singleRow(o),color:"inherit"},[`${e}-option-custom`]:{flex:1,flexShrink:1,minWidth:0},[`${e}-option-action`]:{display:"none",color:o.colorPrimary,paddingInline:o.spaceSM,paddingBlock:o.spaceXXS,"&:hover":{background:o.colorPrimary,color:"#fff",borderRadius:"2px"}},"div.ant-select-item":{padding:0,paddingBlockEnd:o.spaceXS,fontWeight:"normal !important","&.ant-select-item-option-active:not(.ant-select-item-option-disabled)":{backgroundColor:"unset",[`& ${e}-option-outter`]:{backgroundColor:o.antdv.controlItemBgHover}},"&.ant-select-item-option-selected:not(.ant-select-item-option-disabled)":{backgroundColor:"unset",[`& ${e}-option-outter`]:{backgroundColor:o.antdv.controlItemBgActive}},"&.ant-select-item-option-disabled.ant-select-item-option-selected":{backgroundColor:"unset",[`& ${e}-option-outter`]:{backgroundColor:o.antdv.colorBgContainerDisabled}},"&:hover":{[`${e}-option-action`]:{display:"inline"}},"&:last-child":{paddingBlockEnd:0}},[`&:has(${e}-all-option)`]:{"div.ant-select-item:first-child":{paddingBlockStart:o.spaceXS}}}}};exports.genSelectStyle=n;
|
|
@@ -671,7 +671,7 @@ declare function __VLS_template(): {
|
|
|
671
671
|
maxTagPlaceholder: any;
|
|
672
672
|
optionLabel: any;
|
|
673
673
|
default: any;
|
|
674
|
-
|
|
674
|
+
option: any;
|
|
675
675
|
}> & {
|
|
676
676
|
notFoundContent: any;
|
|
677
677
|
suffixIcon: any;
|
|
@@ -683,7 +683,7 @@ declare function __VLS_template(): {
|
|
|
683
683
|
maxTagPlaceholder: any;
|
|
684
684
|
optionLabel: any;
|
|
685
685
|
default: any;
|
|
686
|
-
|
|
686
|
+
option: any;
|
|
687
687
|
};
|
|
688
688
|
}) | null;
|
|
689
689
|
};
|
|
@@ -1332,7 +1332,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
1332
1332
|
maxTagPlaceholder: any;
|
|
1333
1333
|
optionLabel: any;
|
|
1334
1334
|
default: any;
|
|
1335
|
-
|
|
1335
|
+
option: any;
|
|
1336
1336
|
}> & {
|
|
1337
1337
|
notFoundContent: any;
|
|
1338
1338
|
suffixIcon: any;
|
|
@@ -1344,7 +1344,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
1344
1344
|
maxTagPlaceholder: any;
|
|
1345
1345
|
optionLabel: any;
|
|
1346
1346
|
default: any;
|
|
1347
|
-
|
|
1347
|
+
option: any;
|
|
1348
1348
|
};
|
|
1349
1349
|
}) | null;
|
|
1350
1350
|
}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),z=require("@ant-design/icons-vue"),l=require("@aplus-frontend/antdv");require("../../../../ap-button/index.js");const Q=require("../../../../utils/index.js");require("../../../../config-provider/index.js");const W=require("../../../../utils/slot.js"),X=require("../../../context.js"),Y=require("../../../hooks/use-table-column-state.js"),Z=require("../../../hooks/use-table-template-storage.js"),ee=require("../../../style/setting.js"),te=require("../context.js");require("../sorter/index.vue.js");require("../template/edit-form.vue.js");require("../template/index.vue.js");require("../tree-select/index.vue.js");const f=require("../utils.js"),ne=require("../../../../config-provider/hooks/use-locale.js"),B=require("../../../../config-provider/hooks/use-namespace.js"),ae=require("../template/index.vue2.js"),le=require("../tree-select/index.vue2.js"),oe=require("../sorter/index.vue2.js"),re=require("../../../../ap-button/ap-button.vue.js"),ue=require("../template/edit-form.vue2.js"),se={style:{"padding-inline":"8px"}},ie=e.defineComponent({name:"ApTableSetting",__name:"index",props:{config:{default:()=>({persistenceKey:""})}},setup(D){const m=D,{columnsBackup:E,updateSize:A,updateColumns:I}=X.useInjectApTable(),i=e.ref(),C=e.computed(()=>m.config.persistenceKey),v=e.ref(!1),{basicTemplate:K,customizeTemplateList:c,addTemplate:L,deleteTemplate:S,updateTemplate:R}=Z.useTableTemplateStorage(m.config,C),{columnState:s,setColumnState:N,isAllSelected:O,toggleSelectAll:$}=Y.useTableColumnState([]),h=`${C.value}__active_key`;function T(n){localStorage.setItem(h,n)}function V(){return localStorage.getItem(h)}const o=e.ref(V()??c.value?.[0].key);te.useProvideApColumnSetting({activeKey:o,cacheConfig:e.toRef(m,"config"),deleteTemplate:H});const{t:u}=ne.useLocale(),{b:p,be:g}=B.useNamespace("ap-column-setting"),{b:M}=B.useNamespace("ap-table"),P=ee.default("ap-column-setting"),d=e.ref(!1),k=e.ref(!1),U=e.useSlots(),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),z=require("@ant-design/icons-vue"),l=require("@aplus-frontend/antdv");require("../../../../ap-button/index.js");const Q=require("../../../../utils/index.js");require("../../../../config-provider/index.js");const W=require("../../../../utils/slot.js"),X=require("../../../context.js"),Y=require("../../../hooks/use-table-column-state.js"),Z=require("../../../hooks/use-table-template-storage.js"),ee=require("../../../style/setting.js"),te=require("../context.js");require("../sorter/index.vue.js");require("../template/edit-form.vue.js");require("../template/index.vue.js");require("../tree-select/index.vue.js");const f=require("../utils.js"),ne=require("../../../../config-provider/hooks/use-locale.js"),B=require("../../../../config-provider/hooks/use-namespace.js"),ae=require("../template/index.vue2.js"),le=require("../tree-select/index.vue2.js"),oe=require("../sorter/index.vue2.js"),re=require("../../../../ap-button/ap-button.vue.js"),ue=require("../template/edit-form.vue2.js"),se={style:{"padding-inline":"8px"}},ie=e.defineComponent({name:"ApTableSetting",__name:"index",props:{config:{default:()=>({persistenceKey:""})}},setup(D){const m=D,{columnsBackup:E,updateSize:A,updateColumns:I}=X.useInjectApTable(),i=e.ref(),C=e.computed(()=>m.config.persistenceKey),v=e.ref(!1),{basicTemplate:K,customizeTemplateList:c,addTemplate:L,deleteTemplate:S,updateTemplate:R}=Z.useTableTemplateStorage(m.config,C),{columnState:s,setColumnState:N,isAllSelected:O,toggleSelectAll:$}=Y.useTableColumnState([]),h=`${C.value}__active_key`;function T(n){localStorage.setItem(h,n)}function V(){return localStorage.getItem(h)}const o=e.ref(V()??c.value?.[0].key);te.useProvideApColumnSetting({activeKey:o,cacheConfig:e.toRef(m,"config"),deleteTemplate:H});const{t:u}=ne.useLocale(),{b:p,be:g}=B.useNamespace("ap-column-setting"),{b:M}=B.useNamespace("ap-table"),P=ee.default("ap-column-setting"),d=e.ref(!1),k=e.ref(!1),U=e.useSlots(),b=W.getSingleVNode(U.trigger)||e.createVNode(l.Button,{icon:e.createVNode(z.SettingOutlined,null,null),class:M("setting-trigger-button")},null),x=b?e.cloneVNode(b,{onClick:()=>{d.value=!0}}):null;function j(){N(f.customCloneColumnStates(e.unref(K).columnState))}function q(n,t){I?.(f.default(e.unref(E),n)),A?.(t)}function F(){q(e.unref(s),e.unref(i)),d.value=!1;const n=f.customCloneColumnStates(s.value),t=R(o.value,{columnState:n,size:i.value});T(o.value),m.config?.onChange?.(n,t)}function G(n){const t=Q.randomStr();L({key:t,label:n,columnState:s.value,size:i.value}),v.value=!1,o.value=t}function w(n){const t=[...c.value].find(a=>a?.key===n);t&&(N(f.customCloneColumnStates(t.columnState)),i.value=t.size)}function H(n){if(n!==o.value){S(n);return}const t=c.value,a=t.findIndex(_=>_.key===n),r=t[a+1]?.key??t[a-1]?.key;S(n),o.value=r,T(r)}function J(n){if(k.value=n,!n){const t=V();t&&t!==o.value&&(o.value=t)}}e.watch(()=>o.value,(n,t)=>{if(!t&&n){const a=[...c.value].find(r=>r?.key===n);if(!a)return;q(a.columnState,a.size)}w(n)},{immediate:!0});const y=e.ref(!1);return e.watch([i,s,d],([n,t,a])=>{if(!a)return;const r=c.value.find(_=>_.key===o.value);r&&(r.size!==n||!f.isEqualColumnStateIgnoreLabel(t,r.columnState))?y.value=!0:y.value=!1},{deep:!0}),(n,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(x)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(x)),{key:0})):e.createCommentVNode("",!0),e.createVNode(e.unref(l.Modal),{open:d.value,"onUpdate:open":t[4]||(t[4]=a=>d.value=a),title:e.unref(u)("ap.apTable.setting.title"),width:1e3,centered:!0,"body-style":{padding:"0px !important",height:"516px"},"after-open-change":J,"wrap-class-name":`${e.unref(p)()} ${e.unref(P)}`,"ok-text":e.unref(u)("ap.apTable.setting.saveAndApply"),"mask-closable":!1,onOk:F},{footer:e.withCtx(({extra:a})=>[e.createVNode(e.unref(l.Flex),{justify:"space-between"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.Space),{size:12},{default:e.withCtx(()=>[e.createVNode(e.unref(l.Popover),{open:v.value,"onUpdate:open":t[3]||(t[3]=r=>v.value=r),trigger:"click",arrow:!1,placement:"topLeft","destroy-tooltip-on-hide":""},{content:e.withCtx(()=>[e.createVNode(ue.default,{onConfirm:G,onCancel:t[2]||(t[2]=()=>v.value=!1)})]),default:e.withCtx(()=>[e.createVNode(e.unref(re.default),{type:"borderLink",disabled:!n.config.persistenceKey},{icon:e.withCtx(()=>[e.createVNode(e.unref(z.SaveOutlined))]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("ap.apTable.setting.saveAsTemplate"))+" ",1)]),_:1},8,["disabled"])]),_:1},8,["open"]),y.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(p)("modify-tip"))},e.toDisplayString(e.unref(u)("ap.apTable.setting.modifyNotification")),3)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.unref(l.Space),{size:10},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.cancelBtn))),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.okBtn)))]),_:2},1024)]),_:2},1024)]),default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("wrapper"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("left"))},[e.createVNode(ae.default,{"customize-template-list":e.unref(c),"persistence-key":C.value,onActiveChange:w},null,8,["customize-template-list","persistence-key"])],2),e.createVNode(e.unref(l.Divider),{type:"vertical",style:{height:"100%",margin:"0px"}}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("center"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(g)("center","header"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(g)("center","tip-wrapper"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(g)("center","header-tips"))},e.toDisplayString(e.unref(u)("ap.apTable.setting.selectAllTip")),3),e.createVNode(e.unref(l.Button),{type:"link",size:"small",onClick:e.unref($)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(O)?e.unref(u)("ap.apTable.setting.unSelectAll"):e.unref(u)("ap.apTable.setting.selectAll")),1)]),_:1},8,["onClick"])],2),e.createVNode(e.unref(l.RadioGroup),{value:i.value,"onUpdate:value":t[0]||(t[0]=a=>i.value=a)},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RadioButton),{value:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("ap.apTable.setting.sizeSmall")),1)]),_:1}),e.createVNode(e.unref(l.RadioButton),{value:"middle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("ap.apTable.setting.sizeNormal")),1)]),_:1})]),_:1},8,["value"])],2),e.createElementVNode("div",se,[e.createVNode(e.unref(l.Divider),{dashed:"",style:{margin:"0px"}})]),e.createVNode(le.default,{class:e.normalizeClass(e.unref(g)("center","content")),value:e.unref(s)},null,8,["class","value"])],2),e.createVNode(e.unref(l.Divider),{type:"vertical",style:{height:"100%",margin:"0px"}}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("right"))},[e.createVNode(oe.default,{value:e.unref(s),"onUpdate:value":t[1]||(t[1]=a=>e.isRef(s)?s.value=a:null),onReset:j},null,8,["value"])],2)],2),[[e.vShow,k.value]])]),_:1},8,["open","title","wrap-class-name","ok-text"])],64))}});exports.default=ie;
|
|
@@ -14,6 +14,7 @@ type __VLS_Props = {
|
|
|
14
14
|
onConfirm: (label?: string) => void;
|
|
15
15
|
onCancel: () => void;
|
|
16
16
|
initialValues?: Record<string, any>;
|
|
17
|
+
isEdit?: boolean;
|
|
17
18
|
};
|
|
18
19
|
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
19
20
|
formRef: ({
|