@aplus-frontend/ui 6.10.0 → 6.12.0
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-descriptions/formatter/index.mjs +1 -1
- package/es/src/ap-field/hooks/use-date-timezone.d.ts +1 -1
- package/es/src/ap-form/interface.d.ts +6 -0
- package/es/src/ap-form/item/index.vue.mjs +2 -1
- package/es/src/ap-form/items/checkbox/index.vue.mjs +1 -0
- package/es/src/ap-form/items/date/index.vue.mjs +1 -0
- package/es/src/ap-form/items/date-range/index.vue.mjs +7 -6
- package/es/src/ap-form/items/number/index.vue.mjs +14 -13
- package/es/src/ap-form/items/radio/index.vue.mjs +1 -0
- package/es/src/ap-form/items/select/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/select/index.vue.mjs +6 -5
- package/es/src/ap-form/items/switch/index.vue.mjs +7 -6
- package/es/src/ap-form/items/text/index.vue2.mjs +8 -7
- package/es/src/ap-form/items/text/password.vue.mjs +4 -3
- package/es/src/ap-form/items/text-area/index.vue.mjs +7 -6
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/tree-select/index.vue.mjs +7 -6
- package/es/src/ap-form/render/item.vue.mjs +7 -6
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +25 -22
- package/es/src/ap-table/constants.d.ts +4 -4
- package/es/src/ap-table/utils.d.ts +4 -4
- package/es/src/business/ap-card/ApCard.vue2.mjs +17 -17
- package/es/src/business/ap-summary/interface.d.ts +2 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +9 -8
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider-props.mjs +4 -0
- package/es/src/config-provider/config-provider.d.ts +14 -5
- package/es/src/config-provider/config-provider.mjs +19 -18
- package/es/src/config-provider/constants.d.ts +3 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +28 -13
- package/es/src/utils/config-provider-preset.d.ts +6 -6
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.d.ts +1 -1
- package/lib/src/ap-form/interface.d.ts +6 -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.d.ts +4 -4
- 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.d.ts +4 -4
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/render/item.vue.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
- package/lib/src/ap-table/constants.d.ts +4 -4
- package/lib/src/ap-table/utils.d.ts +4 -4
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
- package/lib/src/business/ap-summary/interface.d.ts +2 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +14 -5
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +3 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +28 -13
- package/lib/src/utils/config-provider-preset.d.ts +6 -6
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +2 -2
- package/theme/ap-grid/index.css +2 -6
- package/theme/ap-grid/index.less +6 -6
- package/theme/font/aplusuiiconfont.woff2 +0 -0
- package/theme/font/font.css +1 -1
- package/theme/font/font.less +2 -2
- package/theme/index.css +3 -7
|
@@ -3,5 +3,5 @@ import { Ref } from 'vue';
|
|
|
3
3
|
export declare const useDateTimezone: (props: BasicApFieldProps<{
|
|
4
4
|
timezone?: ApFieldDateRangeProps["timezone"];
|
|
5
5
|
}>) => {
|
|
6
|
-
currentTimezone: Ref<"RJ" | "PR" | "VD" | "CP" | "BS" | "MS" | "SP" | "DB" | "NY" | "KR" | "CG" | "TM" | "DV" | "SU" | "LA" | "SH" | "ALS" | undefined, "RJ" | "PR" | "VD" | "CP" | "BS" | "MS" | "SP" | "DB" | "NY" | "KR" | "CG" | "TM" | "DV" | "SU" | "LA" | "SH" | "ALS" | undefined>;
|
|
6
|
+
currentTimezone: Ref<"RJ" | "LD" | "PR" | "VD" | "CP" | "BS" | "MS" | "SP" | "DB" | "NY" | "KR" | "CG" | "TM" | "DV" | "SU" | "LA" | "SH" | "ALS" | undefined, "RJ" | "LD" | "PR" | "VD" | "CP" | "BS" | "MS" | "SP" | "DB" | "NY" | "KR" | "CG" | "TM" | "DV" | "SU" | "LA" | "SH" | "ALS" | undefined>;
|
|
7
7
|
};
|
|
@@ -38,6 +38,12 @@ export type ApFormItemProps = FormItemProps & Partial<ApFormColProps> & {
|
|
|
38
38
|
* 此表单项的描述,设置此信息后,在查询表单排序时将优先使用此属性值
|
|
39
39
|
*/
|
|
40
40
|
description?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 自定义表单是否输入值校验,用于查询表单收起表单项的输入表单数量角标显示
|
|
43
|
+
* @param value
|
|
44
|
+
* @returns
|
|
45
|
+
*/
|
|
46
|
+
customFilled?: (value: any) => boolean;
|
|
41
47
|
};
|
|
42
48
|
export type ApFormItemGroupProps = RowProps & {
|
|
43
49
|
countPerRow?: number;
|
|
@@ -52,7 +52,8 @@ const Ve = /* @__PURE__ */ D({
|
|
|
52
52
|
initialValue: {},
|
|
53
53
|
_signal: {},
|
|
54
54
|
transform: {},
|
|
55
|
-
description: {}
|
|
55
|
+
description: {},
|
|
56
|
+
customFilled: {}
|
|
56
57
|
},
|
|
57
58
|
setup(B, { expose: h }) {
|
|
58
59
|
const o = B, s = L(), { model: u, updateModel: f, internalInstance: m } = re(), { m: c, b: x } = ie("ap-form-item"), d = b(!1), a = b(), [, C] = Z();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as g, computed as v, createBlock as y, openBlock as x, normalizeProps as r, guardReactiveProps as t, unref as o, createSlots as p, withCtx as
|
|
1
|
+
import { defineComponent as B, useSlots as g, computed as v, createBlock as y, openBlock as x, normalizeProps as r, guardReactiveProps as t, unref as o, createSlots as p, withCtx as n, createVNode as F, renderList as f, renderSlot as m } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as S, omit as u, pick as k } from "lodash-unified";
|
|
@@ -49,6 +49,7 @@ const I = /* @__PURE__ */ B({
|
|
|
49
49
|
_signal: {},
|
|
50
50
|
transform: {},
|
|
51
51
|
description: {},
|
|
52
|
+
customFilled: {},
|
|
52
53
|
field: { default: () => ({}) },
|
|
53
54
|
placeholder: {},
|
|
54
55
|
disabled: { type: Boolean, default: void 0 }
|
|
@@ -64,12 +65,12 @@ const I = /* @__PURE__ */ B({
|
|
|
64
65
|
};
|
|
65
66
|
});
|
|
66
67
|
return (l, d) => (x(), y(C, r(t(o(u)(e, ["field", "placeholder", "disabled"]))), p({
|
|
67
|
-
default:
|
|
68
|
+
default: n(() => [
|
|
68
69
|
F(o(P), r(t(_.value)), p({ _: 2 }, [
|
|
69
70
|
f(o(u)(s, o(c)), (h, a) => ({
|
|
70
71
|
name: a,
|
|
71
|
-
fn:
|
|
72
|
-
m(l.$slots, a, r(t(
|
|
72
|
+
fn: n((i) => [
|
|
73
|
+
m(l.$slots, a, r(t(i || {})))
|
|
73
74
|
])
|
|
74
75
|
}))
|
|
75
76
|
]), 1040)
|
|
@@ -78,8 +79,8 @@ const I = /* @__PURE__ */ B({
|
|
|
78
79
|
}, [
|
|
79
80
|
f(o(k)(s, o(c)), (h, a) => ({
|
|
80
81
|
name: a,
|
|
81
|
-
fn:
|
|
82
|
-
m(l.$slots, a, r(t(
|
|
82
|
+
fn: n((i) => [
|
|
83
|
+
m(l.$slots, a, r(t(i || {})))
|
|
83
84
|
])
|
|
84
85
|
}))
|
|
85
86
|
]), 1040));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as y, useSlots as B, ref as _, createBlock as g, openBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as
|
|
1
|
+
import { defineComponent as y, useSlots as B, ref as _, createBlock as g, openBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as p, withCtx as d, createVNode as k, mergeProps as F, renderList as i, renderSlot as u } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/number/index.vue2.mjs";
|
|
4
|
-
import { omit as f, pick as
|
|
4
|
+
import { omit as f, pick as N } from "lodash-unified";
|
|
5
5
|
import { apFormItemSlotNames as m } from "../../constant.mjs";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import S from "../../item/index.vue.mjs";
|
|
7
|
+
import C from "../../../ap-field/number/index.vue.mjs";
|
|
8
8
|
const T = /* @__PURE__ */ y({
|
|
9
9
|
name: "ApFormItemNumber",
|
|
10
10
|
__name: "index",
|
|
@@ -49,12 +49,13 @@ const T = /* @__PURE__ */ y({
|
|
|
49
49
|
_signal: {},
|
|
50
50
|
transform: {},
|
|
51
51
|
description: {},
|
|
52
|
+
customFilled: {},
|
|
52
53
|
field: { default: () => ({}) },
|
|
53
54
|
placeholder: {},
|
|
54
55
|
disabled: { type: Boolean, default: void 0 }
|
|
55
56
|
},
|
|
56
57
|
setup(c, { expose: b }) {
|
|
57
|
-
const h = c,
|
|
58
|
+
const h = c, n = B(), r = _();
|
|
58
59
|
return b({
|
|
59
60
|
focus: () => {
|
|
60
61
|
var e;
|
|
@@ -64,17 +65,17 @@ const T = /* @__PURE__ */ y({
|
|
|
64
65
|
var e;
|
|
65
66
|
(e = r.value) == null || e.blur();
|
|
66
67
|
}
|
|
67
|
-
}), (e, R) => (x(), g(
|
|
68
|
-
default:
|
|
69
|
-
k(
|
|
68
|
+
}), (e, R) => (x(), g(S, t(s(l(f)(h, ["field", "placeholder", "disabled"]))), p({
|
|
69
|
+
default: d(() => [
|
|
70
|
+
k(C, F({
|
|
70
71
|
ref_key: "inputNumberRef",
|
|
71
72
|
ref: r,
|
|
72
73
|
placeholder: e.placeholder,
|
|
73
74
|
disabled: e.disabled
|
|
74
|
-
}, e.field),
|
|
75
|
-
i(l(f)(
|
|
75
|
+
}, e.field), p({ _: 2 }, [
|
|
76
|
+
i(l(f)(n, l(m)), (v, o) => ({
|
|
76
77
|
name: o,
|
|
77
|
-
fn:
|
|
78
|
+
fn: d((a) => [
|
|
78
79
|
u(e.$slots, o, t(s(a || {})))
|
|
79
80
|
])
|
|
80
81
|
}))
|
|
@@ -82,9 +83,9 @@ const T = /* @__PURE__ */ y({
|
|
|
82
83
|
]),
|
|
83
84
|
_: 2
|
|
84
85
|
}, [
|
|
85
|
-
i(l(
|
|
86
|
+
i(l(N)(n, l(m)), (v, o) => ({
|
|
86
87
|
name: o,
|
|
87
|
-
fn:
|
|
88
|
+
fn: d((a) => [
|
|
88
89
|
u(e.$slots, o, t(s(a || {})))
|
|
89
90
|
])
|
|
90
91
|
}))
|
|
@@ -72,10 +72,10 @@ declare function __VLS_template(): {
|
|
|
72
72
|
readonly autofocus?: boolean | undefined;
|
|
73
73
|
readonly bordered?: boolean | undefined;
|
|
74
74
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
75
|
-
readonly placeholder?: any;
|
|
76
|
-
readonly defaultValue?: SelectValue;
|
|
77
75
|
readonly virtual?: boolean | undefined;
|
|
78
76
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
77
|
+
readonly placeholder?: any;
|
|
78
|
+
readonly defaultValue?: SelectValue;
|
|
79
79
|
readonly id?: string | undefined;
|
|
80
80
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
81
81
|
readonly clearIcon?: any;
|
|
@@ -703,10 +703,10 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
703
703
|
readonly autofocus?: boolean | undefined;
|
|
704
704
|
readonly bordered?: boolean | undefined;
|
|
705
705
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
706
|
-
readonly placeholder?: any;
|
|
707
|
-
readonly defaultValue?: SelectValue;
|
|
708
706
|
readonly virtual?: boolean | undefined;
|
|
709
707
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
708
|
+
readonly placeholder?: any;
|
|
709
|
+
readonly defaultValue?: SelectValue;
|
|
710
710
|
readonly id?: string | undefined;
|
|
711
711
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
712
712
|
readonly clearIcon?: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as x, ref as g, computed as S, createBlock as
|
|
1
|
+
import { defineComponent as B, useSlots as x, ref as g, computed as S, createBlock as F, openBlock as k, normalizeProps as d, guardReactiveProps as n, unref as l, createSlots as u, withCtx as i, createVNode as C, mergeProps as P, renderList as f, renderSlot as c } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as q, omit as m, pick as $ } from "lodash-unified";
|
|
@@ -49,6 +49,7 @@ const E = /* @__PURE__ */ B({
|
|
|
49
49
|
_signal: {},
|
|
50
50
|
transform: {},
|
|
51
51
|
description: {},
|
|
52
|
+
customFilled: {},
|
|
52
53
|
field: { default: () => ({}) },
|
|
53
54
|
placeholder: {},
|
|
54
55
|
disabled: { type: Boolean, default: void 0 }
|
|
@@ -76,13 +77,13 @@ const E = /* @__PURE__ */ B({
|
|
|
76
77
|
var e;
|
|
77
78
|
(e = t.value) == null || e.request();
|
|
78
79
|
}
|
|
79
|
-
}), (e, a) => (
|
|
80
|
+
}), (e, a) => (k(), F(N, d(n(l(m)(o, ["field", "placeholder", "disabled"]))), u({
|
|
80
81
|
default: i(() => [
|
|
81
82
|
C(l(R), P(h.value, {
|
|
82
83
|
ref_key: "selectRef",
|
|
83
84
|
ref: t
|
|
84
|
-
}),
|
|
85
|
-
|
|
85
|
+
}), u({ _: 2 }, [
|
|
86
|
+
f(l(m)(p, l(b)), (y, r) => ({
|
|
86
87
|
name: r,
|
|
87
88
|
fn: i((s) => [
|
|
88
89
|
c(e.$slots, r, d(n(s || {})))
|
|
@@ -92,7 +93,7 @@ const E = /* @__PURE__ */ B({
|
|
|
92
93
|
]),
|
|
93
94
|
_: 2
|
|
94
95
|
}, [
|
|
95
|
-
|
|
96
|
+
f(l($)(p, l(b)), (y, r) => ({
|
|
96
97
|
name: r,
|
|
97
98
|
fn: i((s) => [
|
|
98
99
|
c(e.$slots, r, d(n(s || {})))
|
|
@@ -48,18 +48,19 @@ const I = /* @__PURE__ */ b({
|
|
|
48
48
|
_signal: {},
|
|
49
49
|
transform: {},
|
|
50
50
|
description: {},
|
|
51
|
+
customFilled: {},
|
|
51
52
|
field: { default: () => ({}) },
|
|
52
53
|
disabled: { type: Boolean, default: void 0 }
|
|
53
54
|
},
|
|
54
55
|
setup(u) {
|
|
55
56
|
const c = u, s = B();
|
|
56
|
-
return (
|
|
57
|
+
return (l, F) => (v(), h(S, t(r(o(m)(c, ["field", "disabled"]))), d({
|
|
57
58
|
default: i(() => [
|
|
58
|
-
y(k, g({ disabled:
|
|
59
|
+
y(k, g({ disabled: l.disabled }, l.field), d({ _: 2 }, [
|
|
59
60
|
n(o(m)(s, o(f)), (_, e) => ({
|
|
60
61
|
name: e,
|
|
61
|
-
fn: i((
|
|
62
|
-
p(
|
|
62
|
+
fn: i((a) => [
|
|
63
|
+
p(l.$slots, e, t(r(a || {})))
|
|
63
64
|
])
|
|
64
65
|
}))
|
|
65
66
|
]), 1040, ["disabled"])
|
|
@@ -68,8 +69,8 @@ const I = /* @__PURE__ */ b({
|
|
|
68
69
|
}, [
|
|
69
70
|
n(o(x)(s, o(f)), (_, e) => ({
|
|
70
71
|
name: e,
|
|
71
|
-
fn: i((
|
|
72
|
-
p(
|
|
72
|
+
fn: i((a) => [
|
|
73
|
+
p(l.$slots, e, t(r(a || {})))
|
|
73
74
|
])
|
|
74
75
|
}))
|
|
75
76
|
]), 1040));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as x, ref as S, computed as _, createBlock as
|
|
1
|
+
import { defineComponent as B, useSlots as x, ref as S, computed as _, createBlock as F, openBlock as k, normalizeProps as n, guardReactiveProps as i, unref as t, createSlots as u, withCtx as p, createVNode as R, mergeProps as C, renderList as f, renderSlot as c } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import { ApField as P } from "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as m, pick as A } from "lodash-unified";
|
|
@@ -48,6 +48,7 @@ const E = /* @__PURE__ */ B({
|
|
|
48
48
|
_signal: {},
|
|
49
49
|
transform: {},
|
|
50
50
|
description: {},
|
|
51
|
+
customFilled: {},
|
|
51
52
|
field: { default: () => ({}) },
|
|
52
53
|
placeholder: {},
|
|
53
54
|
disabled: { type: Boolean, default: void 0 }
|
|
@@ -75,8 +76,8 @@ const E = /* @__PURE__ */ B({
|
|
|
75
76
|
var e;
|
|
76
77
|
return (e = l.value) == null ? void 0 : e.input;
|
|
77
78
|
})
|
|
78
|
-
}), (e, a) => (
|
|
79
|
-
default:
|
|
79
|
+
}), (e, a) => (k(), F(N, n(i(t(m)(y, ["field", "disabled", "placeholder"]))), u({
|
|
80
|
+
default: p(() => [
|
|
80
81
|
R(t(g), C({
|
|
81
82
|
ref_key: "inputRef",
|
|
82
83
|
ref: l,
|
|
@@ -85,8 +86,8 @@ const E = /* @__PURE__ */ B({
|
|
|
85
86
|
}, e.field), u({ _: 2 }, [
|
|
86
87
|
f(t(m)(d, t(b)), (r, o) => ({
|
|
87
88
|
name: o,
|
|
88
|
-
fn:
|
|
89
|
-
c(e.$slots, o, n(
|
|
89
|
+
fn: p((s) => [
|
|
90
|
+
c(e.$slots, o, n(i(s || {})))
|
|
90
91
|
])
|
|
91
92
|
}))
|
|
92
93
|
]), 1040, ["disabled", "placeholder"])
|
|
@@ -95,8 +96,8 @@ const E = /* @__PURE__ */ B({
|
|
|
95
96
|
}, [
|
|
96
97
|
f(t(A)(d, t(b)), (r, o) => ({
|
|
97
98
|
name: o,
|
|
98
|
-
fn:
|
|
99
|
-
c(e.$slots, o, n(
|
|
99
|
+
fn: p((s) => [
|
|
100
|
+
c(e.$slots, o, n(i(s || {})))
|
|
100
101
|
])
|
|
101
102
|
}))
|
|
102
103
|
]), 1040));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as _, ref as g, createBlock as x, openBlock as
|
|
1
|
+
import { defineComponent as B, useSlots as _, ref as g, createBlock as x, openBlock as F, normalizeProps as t, guardReactiveProps as s, unref as o, createSlots as n, withCtx as d, createVNode as k, mergeProps as P, renderList as i, renderSlot as f } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import { ApField as S } from "../../../ap-field/index.mjs";
|
|
4
4
|
import { omit as u, pick as w } from "lodash-unified";
|
|
@@ -48,6 +48,7 @@ const z = /* @__PURE__ */ B({
|
|
|
48
48
|
_signal: {},
|
|
49
49
|
transform: {},
|
|
50
50
|
description: {},
|
|
51
|
+
customFilled: {},
|
|
51
52
|
field: { default: () => ({}) },
|
|
52
53
|
placeholder: {},
|
|
53
54
|
disabled: { type: Boolean, default: void 0 }
|
|
@@ -63,9 +64,9 @@ const z = /* @__PURE__ */ B({
|
|
|
63
64
|
var e;
|
|
64
65
|
(e = a.value) == null || e.blur();
|
|
65
66
|
}
|
|
66
|
-
}), (e, R) => (
|
|
67
|
+
}), (e, R) => (F(), x(C, t(s(o(u)(v, ["field", "disabled", "placeholder"]))), n({
|
|
67
68
|
default: d(() => [
|
|
68
|
-
|
|
69
|
+
k(o(h).Password, P({
|
|
69
70
|
ref_key: "inputRef",
|
|
70
71
|
ref: a,
|
|
71
72
|
disabled: e.disabled,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as c, useSlots as b, ref as x, computed as h, createBlock as v, openBlock as y, normalizeProps as r, guardReactiveProps as t, unref as s, createSlots as B, withCtx as d, createVNode as A, mergeProps as g, renderList as _, renderSlot as
|
|
1
|
+
import { defineComponent as c, useSlots as b, ref as x, computed as h, createBlock as v, openBlock as y, normalizeProps as r, guardReactiveProps as t, unref as s, createSlots as B, withCtx as d, createVNode as A, mergeProps as g, renderList as _, renderSlot as F } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
|
-
import { ApField as
|
|
4
|
-
import { omit as
|
|
3
|
+
import { ApField as k } from "../../../ap-field/index.mjs";
|
|
4
|
+
import { omit as C } from "lodash-unified";
|
|
5
5
|
import S from "../../item/index.vue.mjs";
|
|
6
6
|
const $ = /* @__PURE__ */ c({
|
|
7
7
|
name: "ApFormItemTextArea",
|
|
@@ -46,12 +46,13 @@ const $ = /* @__PURE__ */ c({
|
|
|
46
46
|
_signal: {},
|
|
47
47
|
transform: {},
|
|
48
48
|
description: {},
|
|
49
|
+
customFilled: {},
|
|
49
50
|
field: { default: () => ({}) },
|
|
50
51
|
placeholder: {},
|
|
51
52
|
disabled: { type: Boolean, default: void 0 }
|
|
52
53
|
},
|
|
53
54
|
setup(i, { expose: n }) {
|
|
54
|
-
const { TextArea: p } =
|
|
55
|
+
const { TextArea: p } = k, u = b(), f = i, l = x();
|
|
55
56
|
return n({
|
|
56
57
|
focus: (e) => {
|
|
57
58
|
var o;
|
|
@@ -65,7 +66,7 @@ const $ = /* @__PURE__ */ c({
|
|
|
65
66
|
var e;
|
|
66
67
|
return (e = l.value) == null ? void 0 : e.resizableTextArea;
|
|
67
68
|
})
|
|
68
|
-
}), (e, o) => (y(), v(S, r(t(s(
|
|
69
|
+
}), (e, o) => (y(), v(S, r(t(s(C)(f, ["field", "disabled", "placeholder"]))), B({
|
|
69
70
|
default: d(() => [
|
|
70
71
|
A(s(p), g({
|
|
71
72
|
ref_key: "textAreaRef",
|
|
@@ -79,7 +80,7 @@ const $ = /* @__PURE__ */ c({
|
|
|
79
80
|
_(u, (z, a) => ({
|
|
80
81
|
name: a,
|
|
81
82
|
fn: d((m) => [
|
|
82
|
-
|
|
83
|
+
F(e.$slots, a, r(t(m || {})))
|
|
83
84
|
])
|
|
84
85
|
}))
|
|
85
86
|
]), 1040));
|
|
@@ -77,10 +77,10 @@ declare function __VLS_template(): {
|
|
|
77
77
|
readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
|
|
78
78
|
readonly bordered?: boolean | undefined;
|
|
79
79
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
80
|
-
readonly placeholder?: any;
|
|
81
|
-
readonly defaultValue?: unknown;
|
|
82
80
|
readonly virtual?: boolean | undefined;
|
|
83
81
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
82
|
+
readonly placeholder?: any;
|
|
83
|
+
readonly defaultValue?: unknown;
|
|
84
84
|
readonly id?: string | undefined;
|
|
85
85
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
86
86
|
readonly clearIcon?: any;
|
|
@@ -851,10 +851,10 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
851
851
|
readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
|
|
852
852
|
readonly bordered?: boolean | undefined;
|
|
853
853
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
854
|
-
readonly placeholder?: any;
|
|
855
|
-
readonly defaultValue?: unknown;
|
|
856
854
|
readonly virtual?: boolean | undefined;
|
|
857
855
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
856
|
+
readonly placeholder?: any;
|
|
857
|
+
readonly defaultValue?: unknown;
|
|
858
858
|
readonly id?: string | undefined;
|
|
859
859
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
860
860
|
readonly clearIcon?: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as x, ref as S, computed as g, createBlock as
|
|
1
|
+
import { defineComponent as B, useSlots as x, ref as S, computed as g, createBlock as F, openBlock as k, normalizeProps as n, guardReactiveProps as i, unref as l, createSlots as f, withCtx as p, createVNode as C, mergeProps as P, renderList as c, renderSlot as m } from "vue";
|
|
2
2
|
import "../../item/index.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as q, omit as b, pick as $ } from "lodash-unified";
|
|
@@ -49,12 +49,13 @@ const E = /* @__PURE__ */ B({
|
|
|
49
49
|
_signal: {},
|
|
50
50
|
transform: {},
|
|
51
51
|
description: {},
|
|
52
|
+
customFilled: {},
|
|
52
53
|
field: { default: () => ({}) },
|
|
53
54
|
placeholder: {},
|
|
54
55
|
disabled: { type: Boolean, default: void 0 }
|
|
55
56
|
},
|
|
56
57
|
setup(v, { expose: h }) {
|
|
57
|
-
const o = v,
|
|
58
|
+
const o = v, u = x(), a = S(), y = g(() => {
|
|
58
59
|
var e, r;
|
|
59
60
|
return {
|
|
60
61
|
placeholder: o.placeholder,
|
|
@@ -76,13 +77,13 @@ const E = /* @__PURE__ */ B({
|
|
|
76
77
|
var d;
|
|
77
78
|
(d = a.value) == null || d.request(e, r);
|
|
78
79
|
}
|
|
79
|
-
}), (e, r) => (
|
|
80
|
+
}), (e, r) => (k(), F(N, n(i(l(b)(o, ["field", "placeholder", "disabled"]))), f({
|
|
80
81
|
default: p(() => [
|
|
81
82
|
C(l(R), P(y.value, {
|
|
82
83
|
ref_key: "treeSelectRef",
|
|
83
84
|
ref: a
|
|
84
|
-
}),
|
|
85
|
-
c(l(b)(
|
|
85
|
+
}), f({ _: 2 }, [
|
|
86
|
+
c(l(b)(u, l(_)), (d, t) => ({
|
|
86
87
|
name: t,
|
|
87
88
|
fn: p((s) => [
|
|
88
89
|
m(e.$slots, t, n(i(s || {})))
|
|
@@ -92,7 +93,7 @@ const E = /* @__PURE__ */ B({
|
|
|
92
93
|
]),
|
|
93
94
|
_: 2
|
|
94
95
|
}, [
|
|
95
|
-
c(l($)(
|
|
96
|
+
c(l($)(u, l(_)), (d, t) => ({
|
|
96
97
|
name: t,
|
|
97
98
|
fn: p((s) => [
|
|
98
99
|
m(e.$slots, t, n(i(s || {})))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as m, useSlots as c, createBlock as B, openBlock as v, unref as e, normalizeProps as o, guardReactiveProps as l, createSlots as y, withCtx as t, createVNode as x, renderSlot as s, renderList as _ } from "vue";
|
|
2
2
|
import { omit as g } from "lodash-unified";
|
|
3
|
-
import { ApForm as
|
|
3
|
+
import { ApForm as d } from "../index.mjs";
|
|
4
4
|
const S = /* @__PURE__ */ m({
|
|
5
5
|
name: "ApFormItemRender",
|
|
6
6
|
__name: "item",
|
|
@@ -44,13 +44,14 @@ const S = /* @__PURE__ */ m({
|
|
|
44
44
|
initialValue: {},
|
|
45
45
|
_signal: {},
|
|
46
46
|
transform: {},
|
|
47
|
-
description: {}
|
|
47
|
+
description: {},
|
|
48
|
+
customFilled: {}
|
|
48
49
|
},
|
|
49
|
-
setup(
|
|
50
|
-
const i =
|
|
51
|
-
return (a, h) => (v(), B(e(
|
|
50
|
+
setup(p) {
|
|
51
|
+
const i = p, u = c();
|
|
52
|
+
return (a, h) => (v(), B(e(d).FormItem, o(l(i)), y({
|
|
52
53
|
default: t(() => [
|
|
53
|
-
x(e(
|
|
54
|
+
x(e(d).ControlRender, null, {
|
|
54
55
|
default: t((r) => [
|
|
55
56
|
s(a.$slots, "default", o(l(r)))
|
|
56
57
|
]),
|
|
@@ -1,39 +1,42 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { useInjectForm as
|
|
3
|
-
import { isArray as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { computed as F } from "vue";
|
|
2
|
+
import { useInjectForm as a } from "../../context.mjs";
|
|
3
|
+
import { isArray as d, isObject as m } from "lodash-unified";
|
|
4
|
+
import "../../../config-provider/index.mjs";
|
|
5
|
+
import { useGlobalConfig as h } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
6
|
+
function g(t, o) {
|
|
7
|
+
return d(o) ? o.reduce((n, i) => n == null ? void 0 : n[i], t) : t == null ? void 0 : t[o];
|
|
6
8
|
}
|
|
7
|
-
function
|
|
9
|
+
function c(t) {
|
|
8
10
|
if (t == null)
|
|
9
11
|
return !1;
|
|
10
12
|
if (typeof t == "string")
|
|
11
13
|
return t.trim() !== "";
|
|
12
|
-
if (
|
|
13
|
-
return t.some((n) =>
|
|
14
|
-
if (
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
14
|
+
if (d(t))
|
|
15
|
+
return t.some((n) => c(n));
|
|
16
|
+
if (m(t)) {
|
|
17
|
+
const o = Object.keys(t);
|
|
18
|
+
if (o.length === 0)
|
|
17
19
|
return !1;
|
|
18
|
-
for (const n of
|
|
19
|
-
if (
|
|
20
|
+
for (const n of o)
|
|
21
|
+
if (c(t[n]))
|
|
20
22
|
return !0;
|
|
21
23
|
return !1;
|
|
22
24
|
}
|
|
23
25
|
return !0;
|
|
24
26
|
}
|
|
25
|
-
const
|
|
26
|
-
const { model:
|
|
27
|
+
const O = (t) => {
|
|
28
|
+
const { model: o } = a(), n = h("searchForm");
|
|
27
29
|
return {
|
|
28
|
-
count:
|
|
29
|
-
let
|
|
30
|
-
return t.value.forEach((
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
count: F(() => {
|
|
31
|
+
let s = 0;
|
|
32
|
+
return t.value.forEach((r) => {
|
|
33
|
+
var u;
|
|
34
|
+
const p = [r.node.props.name].flat(1), l = g(o == null ? void 0 : o.value, p), f = r.node.props.customFilled || r.node.props["custom-filled"], e = (u = n.value) == null ? void 0 : u.customFilled;
|
|
35
|
+
!f && e ? e != null && e(r.node, l) && (s += 1) : (f || c)(l) && (s += 1);
|
|
36
|
+
}), s;
|
|
34
37
|
})
|
|
35
38
|
};
|
|
36
39
|
};
|
|
37
40
|
export {
|
|
38
|
-
|
|
41
|
+
O as useCollapseInputCount
|
|
39
42
|
};
|
|
@@ -900,10 +900,10 @@ export declare const apTableFormItemMap: {
|
|
|
900
900
|
readonly autofocus?: boolean | undefined;
|
|
901
901
|
readonly bordered?: boolean | undefined;
|
|
902
902
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
903
|
-
readonly placeholder?: any;
|
|
904
|
-
readonly defaultValue?: SelectValue;
|
|
905
903
|
readonly virtual?: boolean | undefined;
|
|
906
904
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
905
|
+
readonly placeholder?: any;
|
|
906
|
+
readonly defaultValue?: SelectValue;
|
|
907
907
|
readonly id?: string | undefined;
|
|
908
908
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
909
909
|
readonly clearIcon?: any;
|
|
@@ -2468,10 +2468,10 @@ export declare const apTableFormItemMap: {
|
|
|
2468
2468
|
readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
|
|
2469
2469
|
readonly bordered?: boolean | undefined;
|
|
2470
2470
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
2471
|
-
readonly placeholder?: any;
|
|
2472
|
-
readonly defaultValue?: unknown;
|
|
2473
2471
|
readonly virtual?: boolean | undefined;
|
|
2474
2472
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
2473
|
+
readonly placeholder?: any;
|
|
2474
|
+
readonly defaultValue?: unknown;
|
|
2475
2475
|
readonly id?: string | undefined;
|
|
2476
2476
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
2477
2477
|
readonly clearIcon?: any;
|
|
@@ -1733,10 +1733,10 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
1733
1733
|
readonly autofocus?: boolean | undefined;
|
|
1734
1734
|
readonly bordered?: boolean | undefined;
|
|
1735
1735
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
1736
|
-
readonly placeholder?: any;
|
|
1737
|
-
readonly defaultValue?: SelectValue;
|
|
1738
1736
|
readonly virtual?: boolean | undefined;
|
|
1739
1737
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
1738
|
+
readonly placeholder?: any;
|
|
1739
|
+
readonly defaultValue?: SelectValue;
|
|
1740
1740
|
readonly id?: string | undefined;
|
|
1741
1741
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
1742
1742
|
readonly clearIcon?: any;
|
|
@@ -2522,10 +2522,10 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
2522
2522
|
readonly 'onUpdate:value'?: (((value: any) => void) & ((...args: any[]) => any)) | undefined;
|
|
2523
2523
|
readonly bordered?: boolean | undefined;
|
|
2524
2524
|
readonly getPopupContainer?: RenderDOMFunc | undefined;
|
|
2525
|
-
readonly placeholder?: any;
|
|
2526
|
-
readonly defaultValue?: unknown;
|
|
2527
2525
|
readonly virtual?: boolean | undefined;
|
|
2528
2526
|
readonly dropdownMatchSelectWidth?: number | boolean | undefined;
|
|
2527
|
+
readonly placeholder?: any;
|
|
2528
|
+
readonly defaultValue?: unknown;
|
|
2529
2529
|
readonly id?: string | undefined;
|
|
2530
2530
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
2531
2531
|
readonly clearIcon?: any;
|