@aplus-frontend/ui 7.13.12 → 7.14.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 +58 -56
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +8 -8
- package/es/src/ap-form/ap-form.vue.d.ts +1 -0
- package/es/src/ap-form/ap-form.vue2.mjs +122 -106
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -0
- package/es/src/ap-form/drawer-form/index.vue.mjs +13 -10
- package/es/src/ap-form/interface.d.ts +5 -0
- package/es/src/ap-form/item/index.vue.d.ts +1 -0
- package/es/src/ap-form/item/index.vue.mjs +84 -70
- package/es/src/ap-form/items/checkbox/index.vue.mjs +9 -8
- package/es/src/ap-form/items/date/index.vue.mjs +10 -9
- package/es/src/ap-form/items/date-range/index.vue.mjs +10 -9
- package/es/src/ap-form/items/number/index.vue.mjs +7 -6
- package/es/src/ap-form/items/radio/index.vue.mjs +9 -8
- package/es/src/ap-form/items/select/index.vue.mjs +3 -2
- package/es/src/ap-form/items/switch/index.vue.mjs +10 -9
- package/es/src/ap-form/items/text/index.vue2.mjs +6 -5
- package/es/src/ap-form/items/text/password.vue.mjs +10 -9
- package/es/src/ap-form/items/text-area/index.vue.mjs +4 -3
- package/es/src/ap-form/items/tree-select/index.vue.mjs +1 -0
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -0
- package/es/src/ap-form/modal-form/index.vue.mjs +3 -0
- package/es/src/ap-form/render/item.vue.mjs +6 -5
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -0
- package/es/src/ap-form/search-form/index.vue.mjs +26 -23
- package/es/src/ap-table/ap-table.vue2.mjs +2 -2
- package/es/src/ap-table/components/setting/index.d.ts +2 -0
- package/es/src/ap-table/components/setting/index.mjs +5 -0
- package/es/src/ap-table/components/setting/modal/index.vue.mjs +277 -2
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +2 -273
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +11 -8
- package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -0
- package/es/src/ap-table/components/setting/template/item.vue2.mjs +35 -35
- package/es/src/ap-table/hooks/use-table-template-storage.mjs +55 -54
- package/es/src/ap-table/index.d.ts +2 -2
- package/es/src/ap-table/index.mjs +7 -6
- package/es/src/ap-table/interface.d.ts +16 -0
- package/es/src/business/ap-image/ApImage.vue2.mjs +32 -32
- package/es/src/business/ap-image/style/index.mjs +9 -8
- package/es/src/business/ap-size-input/form-item.vue.mjs +6 -5
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -0
- package/es/src/business/batch-input-group/form-item.vue.mjs +8 -7
- package/es/src/index.mjs +54 -52
- package/es/src/locale/lang/en.mjs +1 -0
- package/es/src/locale/lang/zh-cn.mjs +1 -0
- package/es/src/render/render.d.ts +7 -4
- package/es/src/render/render.mjs +17 -7
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -0
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -0
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +5 -0
- package/lib/src/ap-form/item/index.vue.d.ts +1 -0
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -0
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/render/item.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -0
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/index.d.ts +2 -0
- package/lib/src/ap-table/components/setting/index.js +1 -0
- package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -0
- package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-template-storage.js +1 -1
- package/lib/src/ap-table/index.d.ts +2 -2
- package/lib/src/ap-table/index.js +1 -1
- package/lib/src/ap-table/interface.d.ts +16 -0
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-image/style/index.js +1 -1
- package/lib/src/business/ap-size-input/form-item.vue.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -0
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/index.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/render/render.d.ts +7 -4
- package/lib/src/render/render.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _, useSlots as b, createBlock as y, openBlock as h, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as d, withCtx as i, createVNode as v, mergeProps as g, renderList as n, renderSlot as p } from "vue";
|
|
2
2
|
import { omit as m, pick as x } from "lodash-unified";
|
|
3
3
|
import "../../../ap-field/switch/index.vue2.mjs";
|
|
4
4
|
import { apFormItemSlotNames as f } from "../../constant.mjs";
|
|
5
5
|
import "../../item/index.vue2.mjs";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const I = /* @__PURE__ */
|
|
6
|
+
import F from "../../item/index.vue.mjs";
|
|
7
|
+
import S from "../../../ap-field/switch/index.vue.mjs";
|
|
8
|
+
const I = /* @__PURE__ */ _({
|
|
9
9
|
name: "ApFormItemSwitch",
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
@@ -50,14 +50,15 @@ const I = /* @__PURE__ */ b({
|
|
|
50
50
|
description: {},
|
|
51
51
|
customFilled: {},
|
|
52
52
|
disabled: { type: Boolean, default: void 0 },
|
|
53
|
+
autoFocus: { type: Boolean },
|
|
53
54
|
field: { default: () => ({}) }
|
|
54
55
|
},
|
|
55
56
|
setup(u) {
|
|
56
|
-
const c = u, s =
|
|
57
|
-
return (l,
|
|
57
|
+
const c = u, s = b();
|
|
58
|
+
return (l, k) => (h(), y(F, t(r(o(m)(c, ["field", "disabled"]))), d({
|
|
58
59
|
default: i(() => [
|
|
59
|
-
|
|
60
|
-
n(o(m)(s, o(f)), (
|
|
60
|
+
v(S, g({ disabled: l.disabled }, l.field), d({ _: 2 }, [
|
|
61
|
+
n(o(m)(s, o(f)), (B, e) => ({
|
|
61
62
|
name: e,
|
|
62
63
|
fn: i((a) => [
|
|
63
64
|
p(l.$slots, e, t(r(a || {})))
|
|
@@ -67,7 +68,7 @@ const I = /* @__PURE__ */ b({
|
|
|
67
68
|
]),
|
|
68
69
|
_: 2
|
|
69
70
|
}, [
|
|
70
|
-
n(o(x)(s, o(f)), (
|
|
71
|
+
n(o(x)(s, o(f)), (B, e) => ({
|
|
71
72
|
name: e,
|
|
72
73
|
fn: i((a) => [
|
|
73
74
|
p(l.$slots, e, t(r(a || {})))
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as g, useSlots as x, shallowRef as S, computed as _, createBlock as F, openBlock as R, normalizeProps as s, guardReactiveProps as n, unref as l, createSlots as u, withCtx as p, createVNode as k, mergeProps as C, renderList as f, renderSlot as c } from "vue";
|
|
2
2
|
import { omit as m, pick as P } from "lodash-unified";
|
|
3
3
|
import { ApField as w } from "../../../ap-field/index.mjs";
|
|
4
4
|
import { apFormItemSlotNames as v } from "../../constant.mjs";
|
|
5
5
|
import "../../item/index.vue2.mjs";
|
|
6
6
|
import A from "../../item/index.vue.mjs";
|
|
7
|
-
const E = /* @__PURE__ */
|
|
7
|
+
const E = /* @__PURE__ */ g({
|
|
8
8
|
name: "ApFormItemText",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -50,11 +50,12 @@ const E = /* @__PURE__ */ B({
|
|
|
50
50
|
description: {},
|
|
51
51
|
customFilled: {},
|
|
52
52
|
disabled: { type: Boolean, default: void 0 },
|
|
53
|
+
autoFocus: { type: Boolean },
|
|
53
54
|
field: { default: () => ({}) },
|
|
54
55
|
placeholder: {}
|
|
55
56
|
},
|
|
56
57
|
setup(b, { expose: h }) {
|
|
57
|
-
const { Text:
|
|
58
|
+
const { Text: y } = w, i = x(), B = b, o = S();
|
|
58
59
|
return h({
|
|
59
60
|
focus: (e) => {
|
|
60
61
|
o.value?.focus(e);
|
|
@@ -69,9 +70,9 @@ const E = /* @__PURE__ */ B({
|
|
|
69
70
|
o.value?.select();
|
|
70
71
|
},
|
|
71
72
|
input: _(() => o.value?.input)
|
|
72
|
-
}), (e, d) => (R(), F(A, s(n(l(m)(
|
|
73
|
+
}), (e, d) => (R(), F(A, s(n(l(m)(B, ["field", "placeholder"]))), u({
|
|
73
74
|
default: p(() => [
|
|
74
|
-
k(l(
|
|
75
|
+
k(l(y), C({
|
|
75
76
|
ref_key: "inputRef",
|
|
76
77
|
ref: o,
|
|
77
78
|
disabled: e.disabled,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { omit as
|
|
1
|
+
import { defineComponent as v, useSlots as _, shallowRef as g, createBlock as F, openBlock as x, normalizeProps as t, guardReactiveProps as s, unref as e, createSlots as n, withCtx as d, createVNode as k, mergeProps as w, renderList as i, renderSlot as u } from "vue";
|
|
2
|
+
import { omit as f, pick as P } from "lodash-unified";
|
|
3
3
|
import { ApField as S } from "../../../ap-field/index.mjs";
|
|
4
4
|
import { apFormItemSlotNames as m } from "../../constant.mjs";
|
|
5
5
|
import "../../item/index.vue2.mjs";
|
|
6
6
|
import C from "../../item/index.vue.mjs";
|
|
7
|
-
const z = /* @__PURE__ */
|
|
7
|
+
const z = /* @__PURE__ */ v({
|
|
8
8
|
name: "ApFormItemPassword",
|
|
9
9
|
__name: "password",
|
|
10
10
|
props: {
|
|
@@ -50,11 +50,12 @@ const z = /* @__PURE__ */ B({
|
|
|
50
50
|
description: {},
|
|
51
51
|
customFilled: {},
|
|
52
52
|
disabled: { type: Boolean, default: void 0 },
|
|
53
|
+
autoFocus: { type: Boolean },
|
|
53
54
|
field: { default: () => ({}) },
|
|
54
55
|
placeholder: {}
|
|
55
56
|
},
|
|
56
57
|
setup(c, { expose: b }) {
|
|
57
|
-
const { Text: h } = S, p = _(),
|
|
58
|
+
const { Text: h } = S, p = _(), y = c, a = g();
|
|
58
59
|
return b({
|
|
59
60
|
focus: () => {
|
|
60
61
|
a.value?.focus();
|
|
@@ -62,7 +63,7 @@ const z = /* @__PURE__ */ B({
|
|
|
62
63
|
blur: () => {
|
|
63
64
|
a.value?.blur();
|
|
64
65
|
}
|
|
65
|
-
}), (o, N) => (
|
|
66
|
+
}), (o, N) => (x(), F(C, t(s(e(f)(y, ["field", "disabled", "placeholder"]))), n({
|
|
66
67
|
default: d(() => [
|
|
67
68
|
k(e(h).Password, w({
|
|
68
69
|
ref_key: "inputRef",
|
|
@@ -70,20 +71,20 @@ const z = /* @__PURE__ */ B({
|
|
|
70
71
|
disabled: o.disabled,
|
|
71
72
|
placeholder: o.placeholder
|
|
72
73
|
}, o.field), n({ _: 2 }, [
|
|
73
|
-
i(e(
|
|
74
|
+
i(e(f)(p, e(m)), (B, l) => ({
|
|
74
75
|
name: l,
|
|
75
76
|
fn: d((r) => [
|
|
76
|
-
|
|
77
|
+
u(o.$slots, l, t(s(r || {})))
|
|
77
78
|
])
|
|
78
79
|
}))
|
|
79
80
|
]), 1040, ["disabled", "placeholder"])
|
|
80
81
|
]),
|
|
81
82
|
_: 2
|
|
82
83
|
}, [
|
|
83
|
-
i(e(P)(p, e(m)), (
|
|
84
|
+
i(e(P)(p, e(m)), (B, l) => ({
|
|
84
85
|
name: l,
|
|
85
86
|
fn: d((r) => [
|
|
86
|
-
|
|
87
|
+
u(o.$slots, l, t(s(r || {})))
|
|
87
88
|
])
|
|
88
89
|
}))
|
|
89
90
|
]), 1040));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as c, useSlots as m, shallowRef as b, computed as x, createBlock as h, openBlock as v, normalizeProps as a, guardReactiveProps as t, unref as r, createSlots as y, withCtx as s, createVNode as B, mergeProps as A, renderList as g, renderSlot as _ } from "vue";
|
|
2
2
|
import { omit as F } from "lodash-unified";
|
|
3
3
|
import { ApField as k } from "../../../ap-field/index.mjs";
|
|
4
4
|
import "../../item/index.vue2.mjs";
|
|
5
5
|
import C from "../../item/index.vue.mjs";
|
|
6
|
-
const $ = /* @__PURE__ */
|
|
6
|
+
const $ = /* @__PURE__ */ c({
|
|
7
7
|
name: "ApFormItemTextArea",
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: {
|
|
@@ -48,11 +48,12 @@ const $ = /* @__PURE__ */ m({
|
|
|
48
48
|
description: {},
|
|
49
49
|
customFilled: {},
|
|
50
50
|
disabled: { type: Boolean, default: void 0 },
|
|
51
|
+
autoFocus: { type: Boolean },
|
|
51
52
|
field: { default: () => ({}) },
|
|
52
53
|
placeholder: {}
|
|
53
54
|
},
|
|
54
55
|
setup(d, { expose: i }) {
|
|
55
|
-
const { TextArea: n } = k, p =
|
|
56
|
+
const { TextArea: n } = k, p = m(), u = d, l = b();
|
|
56
57
|
return i({
|
|
57
58
|
focus: (e) => {
|
|
58
59
|
l.value?.focus(e);
|
|
@@ -122,6 +122,7 @@ declare function __VLS_template(): {
|
|
|
122
122
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
123
123
|
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
124
124
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
125
|
+
readonly autoFocusFirstInput?: boolean | undefined;
|
|
125
126
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
126
127
|
$attrs: {
|
|
127
128
|
[x: string]: unknown;
|
|
@@ -847,6 +848,7 @@ declare function __VLS_template(): {
|
|
|
847
848
|
}> & {} & ComponentCustomProperties & {} & {
|
|
848
849
|
$slots: {
|
|
849
850
|
default?(_: {}): any;
|
|
851
|
+
default?(_: {}): any;
|
|
850
852
|
};
|
|
851
853
|
}) | null;
|
|
852
854
|
};
|
|
@@ -1325,6 +1327,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1325
1327
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1326
1328
|
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1327
1329
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1330
|
+
readonly autoFocusFirstInput?: boolean | undefined;
|
|
1328
1331
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1329
1332
|
$attrs: {
|
|
1330
1333
|
[x: string]: unknown;
|
|
@@ -2050,6 +2053,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
2050
2053
|
}> & {} & ComponentCustomProperties & {} & {
|
|
2051
2054
|
$slots: {
|
|
2052
2055
|
default?(_: {}): any;
|
|
2056
|
+
default?(_: {}): any;
|
|
2053
2057
|
};
|
|
2054
2058
|
}) | null;
|
|
2055
2059
|
}, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as m, useSlots as c, createBlock as B, openBlock as y, unref as e, normalizeProps as o, guardReactiveProps as l, createSlots as v, withCtx as t, createVNode as x, renderSlot as s, renderList as
|
|
2
|
-
import { omit as
|
|
1
|
+
import { defineComponent as m, useSlots as c, createBlock as B, openBlock as y, unref as e, normalizeProps as o, guardReactiveProps as l, createSlots as v, withCtx as t, createVNode as x, renderSlot as s, renderList as F } from "vue";
|
|
2
|
+
import { omit as _ } from "lodash-unified";
|
|
3
3
|
import { ApForm as d } from "../index.mjs";
|
|
4
4
|
const S = /* @__PURE__ */ m({
|
|
5
5
|
name: "ApFormItemRender",
|
|
@@ -46,11 +46,12 @@ const S = /* @__PURE__ */ m({
|
|
|
46
46
|
transform: {},
|
|
47
47
|
description: {},
|
|
48
48
|
customFilled: {},
|
|
49
|
-
disabled: { type: Boolean }
|
|
49
|
+
disabled: { type: Boolean },
|
|
50
|
+
autoFocus: { type: Boolean }
|
|
50
51
|
},
|
|
51
52
|
setup(p) {
|
|
52
53
|
const i = p, u = c();
|
|
53
|
-
return (a,
|
|
54
|
+
return (a, b) => (y(), B(e(d).FormItem, o(l(i)), v({
|
|
54
55
|
default: t(() => [
|
|
55
56
|
x(e(d).ControlRender, null, {
|
|
56
57
|
default: t((r) => [
|
|
@@ -61,7 +62,7 @@ const S = /* @__PURE__ */ m({
|
|
|
61
62
|
]),
|
|
62
63
|
_: 2
|
|
63
64
|
}, [
|
|
64
|
-
|
|
65
|
+
F(e(_)(u, "default"), (r, n) => ({
|
|
65
66
|
name: n,
|
|
66
67
|
fn: t((f) => [
|
|
67
68
|
s(a.$slots, n, o(l(f || {})))
|
|
@@ -120,6 +120,7 @@ declare function __VLS_template(): {
|
|
|
120
120
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
121
121
|
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
122
122
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
123
|
+
readonly autoFocusFirstInput?: boolean | undefined;
|
|
123
124
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
124
125
|
$attrs: {
|
|
125
126
|
[x: string]: unknown;
|
|
@@ -845,6 +846,7 @@ declare function __VLS_template(): {
|
|
|
845
846
|
}> & {} & ComponentCustomProperties & {} & {
|
|
846
847
|
$slots: {
|
|
847
848
|
default?(_: {}): any;
|
|
849
|
+
default?(_: {}): any;
|
|
848
850
|
};
|
|
849
851
|
}) | null;
|
|
850
852
|
contentWrapperRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
@@ -1108,6 +1110,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1108
1110
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1109
1111
|
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1110
1112
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1113
|
+
readonly autoFocusFirstInput?: boolean | undefined;
|
|
1111
1114
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1112
1115
|
$attrs: {
|
|
1113
1116
|
[x: string]: unknown;
|
|
@@ -1833,6 +1836,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1833
1836
|
}> & {} & ComponentCustomProperties & {} & {
|
|
1834
1837
|
$slots: {
|
|
1835
1838
|
default?(_: {}): any;
|
|
1839
|
+
default?(_: {}): any;
|
|
1836
1840
|
};
|
|
1837
1841
|
}) | null;
|
|
1838
1842
|
contentWrapperRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isVNode as ie, defineComponent as ce, useSlots as ue, ref as pe, shallowRef as w, computed as R, unref as a, watch as M, createVNode as o, Fragment as _, createBlock as x, openBlock as p, mergeProps as de, withCtx as I, resolveDynamicComponent as T, createElementBlock as fe, renderList as me, normalizeStyle as he } from "vue";
|
|
2
|
-
import { Col as
|
|
2
|
+
import { Col as F, Flex as k, Button as q, Row as ge } from "@aplus-frontend/antdv";
|
|
3
3
|
import { isArray as xe, isBoolean as ye, omit as ve } from "lodash-unified";
|
|
4
4
|
import { floorWith as H } from "../../utils/format.mjs";
|
|
5
5
|
import { useDevWarning as Se } from "../../utils/warning.mjs";
|
|
@@ -14,13 +14,13 @@ import "./components/popover-sorter/index.vue.mjs";
|
|
|
14
14
|
import { getTargetNode as we } from "./hooks/use-collapse-input-count.mjs";
|
|
15
15
|
import { useCountPerRow as Re } from "./hooks/use-count-per-row.mjs";
|
|
16
16
|
import { useSorter as _e } from "./hooks/use-sorter.mjs";
|
|
17
|
-
import { execFunc as J, diffFormItem as
|
|
18
|
-
import { useNamespace as
|
|
17
|
+
import { execFunc as J, diffFormItem as Fe } from "./utils.mjs";
|
|
18
|
+
import { useNamespace as be } from "../../config-provider/hooks/use-namespace.mjs";
|
|
19
19
|
import { useLocale as Ae } from "../../config-provider/hooks/use-locale.mjs";
|
|
20
20
|
import { isDef as K } from "../../utils/is.mjs";
|
|
21
21
|
import Q from "../item/index.vue.mjs";
|
|
22
|
-
import
|
|
23
|
-
import
|
|
22
|
+
import Be from "./components/popover-filter.vue2.mjs";
|
|
23
|
+
import Ne from "./components/popover-sorter/index.vue2.mjs";
|
|
24
24
|
import Ie from "../ap-form.vue2.mjs";
|
|
25
25
|
function Te(d) {
|
|
26
26
|
return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !ie(d);
|
|
@@ -79,6 +79,9 @@ const r = 100, nt = /* @__PURE__ */ ce({
|
|
|
79
79
|
syncToUrlPriority: {
|
|
80
80
|
type: Boolean
|
|
81
81
|
},
|
|
82
|
+
autoFocusFirstInput: {
|
|
83
|
+
type: Boolean
|
|
84
|
+
},
|
|
82
85
|
collapse: {
|
|
83
86
|
type: Boolean,
|
|
84
87
|
default: void 0
|
|
@@ -129,7 +132,7 @@ const r = 100, nt = /* @__PURE__ */ ce({
|
|
|
129
132
|
Se("SearchForm").deprecated(typeof t.resizeTarget < "u", "resizeTarget", "resize.target");
|
|
130
133
|
const Y = Ce("ap-form-search-form"), {
|
|
131
134
|
b: f
|
|
132
|
-
} =
|
|
135
|
+
} = be("ap-form-search-form"), {
|
|
133
136
|
t: P
|
|
134
137
|
} = Ae(), v = pe(), E = w(), Z = Re(t, E), W = w();
|
|
135
138
|
function z() {
|
|
@@ -142,12 +145,12 @@ const r = 100, nt = /* @__PURE__ */ ce({
|
|
|
142
145
|
const te = (e) => K(e) ? (xe(e) ? e : [e]).join("") : Date.now();
|
|
143
146
|
let O = [];
|
|
144
147
|
const m = w(G(y.default())), c = w(y.extra?.()), L = R(() => H(r / a(Z), 4)), {
|
|
145
|
-
items:
|
|
148
|
+
items: b,
|
|
146
149
|
sorted: $,
|
|
147
150
|
handleClickConfirm: A
|
|
148
151
|
} = _e(m);
|
|
149
152
|
M(() => y.default(), (e) => {
|
|
150
|
-
O = m.value, m.value =
|
|
153
|
+
O = m.value, m.value = Fe(O, G(e)), $.value = !1;
|
|
151
154
|
}), M(() => y.extra?.(), (e) => {
|
|
152
155
|
c.value = e;
|
|
153
156
|
});
|
|
@@ -156,26 +159,26 @@ const r = 100, nt = /* @__PURE__ */ ce({
|
|
|
156
159
|
}
|
|
157
160
|
const n = R(() => {
|
|
158
161
|
const e = m.value, u = [], l = [], g = [], s = a(L);
|
|
159
|
-
let S = 0,
|
|
162
|
+
let S = 0, B = 0;
|
|
160
163
|
const le = r * t.maxRows - s * (a(c) && !t.extraInAction ? 2 : 1);
|
|
161
|
-
e.forEach((
|
|
162
|
-
const D = we(
|
|
164
|
+
e.forEach((N) => {
|
|
165
|
+
const D = we(N);
|
|
163
166
|
if (!D)
|
|
164
167
|
return;
|
|
165
168
|
const i = D.props;
|
|
166
169
|
if (ye(i.hidden) ? !!i.hidden : K(i.hidden))
|
|
167
|
-
u.push(
|
|
170
|
+
u.push(N);
|
|
168
171
|
else {
|
|
169
172
|
let C = i.span ? oe(i.span) : s;
|
|
170
173
|
const V = {
|
|
171
|
-
node:
|
|
174
|
+
node: N,
|
|
172
175
|
span: C,
|
|
173
176
|
key: `ApFormSearchFormItem-${te(i.name)}-${i._signal}`
|
|
174
177
|
}, U = r - S % r;
|
|
175
|
-
U < C && (C += U), S += C, S > le ? l.push(V) : (
|
|
178
|
+
U < C && (C += U), S += C, S > le ? l.push(V) : (B = S, g.push(V));
|
|
176
179
|
}
|
|
177
180
|
});
|
|
178
|
-
const j = r - (
|
|
181
|
+
const j = r - (B + s) % r, re = Math.ceil(B) % r < s, se = j < s ? r : j;
|
|
179
182
|
return {
|
|
180
183
|
hideNode: o(_, null, [u]),
|
|
181
184
|
nodes: g,
|
|
@@ -185,7 +188,7 @@ const r = 100, nt = /* @__PURE__ */ ce({
|
|
|
185
188
|
};
|
|
186
189
|
}), h = (e) => `${e}%`, ae = R(() => {
|
|
187
190
|
let e;
|
|
188
|
-
const u = n.value.collapseNodes.length || t.sortable && m.value.length, l = o(
|
|
191
|
+
const u = n.value.collapseNodes.length || t.sortable && m.value.length, l = o(F, {
|
|
189
192
|
flex: h(a(L)),
|
|
190
193
|
key: "actionWrapper"
|
|
191
194
|
}, {
|
|
@@ -200,13 +203,13 @@ const r = 100, nt = /* @__PURE__ */ ce({
|
|
|
200
203
|
}, {
|
|
201
204
|
default: () => [u ? o("div", {
|
|
202
205
|
class: f("column-setting-trigger-wrapper")
|
|
203
|
-
}, [n.value.collapseNodes.length ? o(
|
|
206
|
+
}, [n.value.collapseNodes.length ? o(Be, {
|
|
204
207
|
onSubmit: z,
|
|
205
208
|
config: n.value.collapseNodes,
|
|
206
209
|
submitLoading: t.submitLoading
|
|
207
|
-
}, null) : null, t.sortable &&
|
|
210
|
+
}, null) : null, t.sortable && b.value.length ? o(Ne, {
|
|
208
211
|
ref: W,
|
|
209
|
-
items:
|
|
212
|
+
items: b.value,
|
|
210
213
|
onClickConfirm: A,
|
|
211
214
|
sorted: $.value
|
|
212
215
|
}, null) : null]) : null, o(q, {
|
|
@@ -229,7 +232,7 @@ const r = 100, nt = /* @__PURE__ */ ce({
|
|
|
229
232
|
}), t.extraInAction ? a(c) : null]
|
|
230
233
|
})]
|
|
231
234
|
})]
|
|
232
|
-
}), g = !t.extraInAction && a(c) ? o(
|
|
235
|
+
}), g = !t.extraInAction && a(c) ? o(F, {
|
|
233
236
|
flex: h(n.value.extraSpan),
|
|
234
237
|
key: "extraNode"
|
|
235
238
|
}, {
|
|
@@ -240,7 +243,7 @@ const r = 100, nt = /* @__PURE__ */ ce({
|
|
|
240
243
|
default: () => [e]
|
|
241
244
|
})]
|
|
242
245
|
})]
|
|
243
|
-
}) : null, s = o(
|
|
246
|
+
}) : null, s = o(F, {
|
|
244
247
|
flex: h(n.value.extraSpan)
|
|
245
248
|
}, null);
|
|
246
249
|
return n.value.lastRowOnlyIncludeActionAndExtra ? o(_, null, [g || s, l]) : o(_, null, [l, g]);
|
|
@@ -251,7 +254,7 @@ const r = 100, nt = /* @__PURE__ */ ce({
|
|
|
251
254
|
}
|
|
252
255
|
return X({
|
|
253
256
|
apForm: R(() => a(v)),
|
|
254
|
-
getSorterItems: () =>
|
|
257
|
+
getSorterItems: () => b.value,
|
|
255
258
|
setSorterItems: A,
|
|
256
259
|
resetSorterItems: ne
|
|
257
260
|
}), (e, u) => (p(), x(Ie, de({
|
|
@@ -264,7 +267,7 @@ const r = 100, nt = /* @__PURE__ */ ce({
|
|
|
264
267
|
ref: E,
|
|
265
268
|
gutter: 8
|
|
266
269
|
}, {
|
|
267
|
-
default: I(() => [(p(!0), fe(_, null, me(n.value.nodes, (l) => (p(), x(a(
|
|
270
|
+
default: I(() => [(p(!0), fe(_, null, me(n.value.nodes, (l) => (p(), x(a(F), {
|
|
268
271
|
key: l.key,
|
|
269
272
|
flex: h(l.span),
|
|
270
273
|
style: he({
|
|
@@ -9,7 +9,7 @@ import { ApForm as er } from "../ap-form/index.mjs";
|
|
|
9
9
|
import "../config-provider/index.mjs";
|
|
10
10
|
import { getScrollbarSize as rr } from "../utils/index.mjs";
|
|
11
11
|
import "./components/paragraph-ellipsis/index.vue.mjs";
|
|
12
|
-
import "./components/setting/modal/index.
|
|
12
|
+
import "./components/setting/modal/index.vue2.mjs";
|
|
13
13
|
import { noRenderAsFormItemValueList as ie } from "./constants.mjs";
|
|
14
14
|
import { useProvideApTable as or } from "./context.mjs";
|
|
15
15
|
import { useStickyScroll as tr } from "./hooks/use-sticky-scroll.mjs";
|
|
@@ -22,7 +22,7 @@ import { useNamespace as Sr } from "../config-provider/hooks/use-namespace.mjs";
|
|
|
22
22
|
import { useGlobalConfig as hr } from "../config-provider/hooks/use-global-config.mjs";
|
|
23
23
|
import { isDef as fe } from "../utils/is.mjs";
|
|
24
24
|
import wr from "./components/paragraph-ellipsis/index.vue2.mjs";
|
|
25
|
-
import vr from "./components/setting/modal/index.
|
|
25
|
+
import vr from "./components/setting/modal/index.vue.mjs";
|
|
26
26
|
import Rr from "../scroll-bar/index.vue.mjs";
|
|
27
27
|
const Qr = /* @__PURE__ */ je({
|
|
28
28
|
name: "ApTable",
|