@aplus-frontend/ui 6.9.0 → 6.11.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.d.ts +5 -0
- package/es/src/ap-descriptions/formatter/index.mjs +39 -38
- package/es/src/ap-descriptions/interface.d.ts +7 -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.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.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 +29 -14
- 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/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-descriptions/formatter/index.d.ts +5 -0
- package/lib/src/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/ap-descriptions/interface.d.ts +7 -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.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/render/item.vue.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.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/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +5 -5
- package/theme/ap-grid/index.css +2 -2
- package/theme/ap-grid/index.less +6 -2
- 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 -3
|
@@ -63,6 +63,11 @@ interface NumberExtraProps {
|
|
|
63
63
|
style?: StyleValue;
|
|
64
64
|
/** 限制小数点位数 */
|
|
65
65
|
precision?: number;
|
|
66
|
+
/**
|
|
67
|
+
* 是否固定位数
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
isFixed?: boolean;
|
|
66
71
|
}
|
|
67
72
|
/** 处理数字型数据 */
|
|
68
73
|
export declare function number({ value }: FormatOptions, opt: NumberExtraProps): import("vue/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { createVNode as f } from "vue";
|
|
2
|
-
import { getTimeFormatToZone as g } from "@aplus-frontend/utils";
|
|
3
|
-
import { isBoolean as
|
|
4
|
-
import { formatString as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { getTimeFormatToZone as g, toThousand as h } from "@aplus-frontend/utils";
|
|
3
|
+
import { isBoolean as Y, merge as p, get as l, debounce as A } from "lodash-unified";
|
|
4
|
+
import { formatString as b } from "./utils.mjs";
|
|
5
|
+
import { TypographyParagraph as d } from "@aplus-frontend/antdv";
|
|
6
|
+
import { toDecimalMark as M } from "@fruits-chain/utils";
|
|
7
7
|
function S({
|
|
8
8
|
value: t
|
|
9
9
|
}, n) {
|
|
10
10
|
if (!(n != null && n.ellipsis))
|
|
11
11
|
return t;
|
|
12
|
-
const
|
|
12
|
+
const i = {
|
|
13
13
|
...n,
|
|
14
14
|
content: t,
|
|
15
|
-
ellipsis: n.ellipsis ?
|
|
15
|
+
ellipsis: n.ellipsis ? Y(n.ellipsis) ? {
|
|
16
16
|
tooltip: t,
|
|
17
17
|
rows: 1
|
|
18
18
|
} : {
|
|
@@ -20,61 +20,61 @@ function S({
|
|
|
20
20
|
tooltip: t
|
|
21
21
|
} : !1
|
|
22
22
|
};
|
|
23
|
-
return f(
|
|
23
|
+
return f(d, i, null);
|
|
24
24
|
}
|
|
25
25
|
function D({
|
|
26
26
|
value: t
|
|
27
27
|
}, n) {
|
|
28
28
|
var o;
|
|
29
29
|
const {
|
|
30
|
-
joinSymbol:
|
|
30
|
+
joinSymbol: i
|
|
31
31
|
} = p({
|
|
32
32
|
joinSymbol: " "
|
|
33
33
|
}, n);
|
|
34
|
-
return (o = t == null ? void 0 : t.join) == null ? void 0 : o.call(t,
|
|
34
|
+
return (o = t == null ? void 0 : t.join) == null ? void 0 : o.call(t, i);
|
|
35
35
|
}
|
|
36
36
|
function u({
|
|
37
37
|
value: t
|
|
38
38
|
}, n) {
|
|
39
39
|
const {
|
|
40
|
-
zoneAlias:
|
|
40
|
+
zoneAlias: i,
|
|
41
41
|
format: o
|
|
42
42
|
} = p({
|
|
43
43
|
zoneAlias: "LA",
|
|
44
44
|
format: "YYYY-MM-DD HH:mm:ss"
|
|
45
45
|
}, n);
|
|
46
|
-
return g(t,
|
|
46
|
+
return g(t, i, o);
|
|
47
47
|
}
|
|
48
48
|
function y({
|
|
49
49
|
value: t,
|
|
50
50
|
record: n
|
|
51
|
-
},
|
|
51
|
+
}, i) {
|
|
52
52
|
const {
|
|
53
53
|
fieldList: o,
|
|
54
|
-
templateString:
|
|
55
|
-
formatter:
|
|
56
|
-
} =
|
|
54
|
+
templateString: e = "{0}",
|
|
55
|
+
formatter: r
|
|
56
|
+
} = i, s = (o == null ? void 0 : o.map((m, a) => {
|
|
57
57
|
const c = l(n, m);
|
|
58
|
-
return
|
|
58
|
+
return r ? r(c, a) : c;
|
|
59
59
|
})) || [];
|
|
60
|
-
return s.length === 0 && s.push(t),
|
|
60
|
+
return s.length === 0 && s.push(t), b(e, s);
|
|
61
61
|
}
|
|
62
62
|
function j({
|
|
63
63
|
value: t,
|
|
64
64
|
record: n
|
|
65
|
-
},
|
|
65
|
+
}, i) {
|
|
66
66
|
const {
|
|
67
67
|
fieldList: o,
|
|
68
|
-
format:
|
|
69
|
-
joinSymbol:
|
|
68
|
+
format: e = "YYYY-MM-DD HH:mm:ss",
|
|
69
|
+
joinSymbol: r = "~",
|
|
70
70
|
zoneAlias: s = "LA"
|
|
71
|
-
} =
|
|
71
|
+
} = i, m = Array.isArray(e) ? e : [e, e];
|
|
72
72
|
return y({
|
|
73
73
|
value: t,
|
|
74
74
|
record: n
|
|
75
75
|
}, {
|
|
76
76
|
fieldList: o,
|
|
77
|
-
templateString: `{0} ${
|
|
77
|
+
templateString: `{0} ${r} {1}`,
|
|
78
78
|
formatter(a, c) {
|
|
79
79
|
return u({
|
|
80
80
|
value: a,
|
|
@@ -90,16 +90,16 @@ function k({
|
|
|
90
90
|
record: t
|
|
91
91
|
}, n) {
|
|
92
92
|
const {
|
|
93
|
-
urlPath:
|
|
93
|
+
urlPath: i = "url",
|
|
94
94
|
namePath: o = "name",
|
|
95
|
-
style:
|
|
96
|
-
downloadFile:
|
|
95
|
+
style: e,
|
|
96
|
+
downloadFile: r,
|
|
97
97
|
className: s
|
|
98
|
-
} = n, m = l(t, o), a = l(t,
|
|
99
|
-
|
|
98
|
+
} = n, m = l(t, o), a = l(t, i), c = A(() => {
|
|
99
|
+
r == null || r(a, m);
|
|
100
100
|
}, 500);
|
|
101
101
|
return f("span", {
|
|
102
|
-
style:
|
|
102
|
+
style: e,
|
|
103
103
|
class: [s, "ap-descriptions-item-content__link "],
|
|
104
104
|
onClick: c
|
|
105
105
|
}, [m]);
|
|
@@ -108,21 +108,22 @@ function H({
|
|
|
108
108
|
value: t
|
|
109
109
|
}, n) {
|
|
110
110
|
const {
|
|
111
|
-
style:
|
|
112
|
-
precision: o
|
|
111
|
+
style: i = {},
|
|
112
|
+
precision: o,
|
|
113
|
+
isFixed: e = !0
|
|
113
114
|
} = n;
|
|
114
|
-
let
|
|
115
|
+
let r = "";
|
|
115
116
|
try {
|
|
116
|
-
|
|
117
|
+
e ? r = h(t, o || 0, "fixed") : r = M(t, o);
|
|
117
118
|
} catch {
|
|
118
|
-
|
|
119
|
+
r = t;
|
|
119
120
|
}
|
|
120
121
|
return f("span", {
|
|
121
|
-
style:
|
|
122
|
+
style: i,
|
|
122
123
|
class: "ap-descriptions-item-content__number"
|
|
123
|
-
}, [
|
|
124
|
+
}, [r]);
|
|
124
125
|
}
|
|
125
|
-
const
|
|
126
|
+
const B = {
|
|
126
127
|
text: S,
|
|
127
128
|
array: D,
|
|
128
129
|
date: u,
|
|
@@ -136,7 +137,7 @@ export {
|
|
|
136
137
|
k as attachment,
|
|
137
138
|
u as date,
|
|
138
139
|
j as dateRange,
|
|
139
|
-
|
|
140
|
+
B as formatterMap,
|
|
140
141
|
H as number,
|
|
141
142
|
y as template,
|
|
142
143
|
S as text
|
|
@@ -12,10 +12,16 @@ type MixObjectPropertyType<O, key extends keyof O> = key extends keyof O ? {
|
|
|
12
12
|
} : never;
|
|
13
13
|
export type TransformOptionType = MixObjectPropertyType<FormatterMapType, FormatterValueType>;
|
|
14
14
|
type Recordable = Record<string, any>;
|
|
15
|
+
type AllKeys<T, P extends string = '', Level extends unknown[] = []> = Level['length'] extends 5 ? never : T extends object ? {
|
|
16
|
+
[K in keyof T]: `${P}${K extends string ? K : never}` | (T[K] extends object ? AllKeys<T[K], `${P}${K extends string ? K : never}.`, [
|
|
17
|
+
...Level,
|
|
18
|
+
unknown
|
|
19
|
+
]> : never);
|
|
20
|
+
}[keyof T] : never;
|
|
15
21
|
/** 基本描述类型 */
|
|
16
22
|
export interface ItemSchema<T extends Recordable = Recordable> {
|
|
17
23
|
label: VNodeChild | VNode;
|
|
18
|
-
field:
|
|
24
|
+
field: Extract<AllKeys<T>, string> | string[];
|
|
19
25
|
span?: number;
|
|
20
26
|
prefix?: VNodeChild | VNode;
|
|
21
27
|
suffix?: VNodeChild | VNode;
|
|
@@ -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
|
}))
|
|
@@ -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));
|
|
@@ -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
|
]),
|