@aplus-frontend/ui 0.2.20 → 0.2.22
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 +95 -93
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +18 -18
- package/es/src/ap-drawer/index.d.ts +8 -0
- package/es/src/ap-drawer/index.mjs +10 -0
- package/es/src/ap-drawer/interface.d.ts +16 -0
- package/es/src/ap-drawer/interface.mjs +1 -0
- package/es/src/ap-drawer/style/css.d.ts +1 -0
- package/es/src/ap-drawer/style/css.js +1 -0
- package/es/src/ap-drawer/style/index.d.ts +1 -0
- package/es/src/ap-drawer/style/index.js +1 -0
- package/es/src/ap-drawer/utils/createDrawer.d.ts +2 -0
- package/es/src/ap-drawer/utils/createDrawer.mjs +83 -0
- package/es/src/ap-drawer/utils/index.d.ts +1 -0
- package/es/src/ap-drawer/utils/index.mjs +4 -0
- package/es/src/ap-form/interface.d.ts +1 -1
- package/es/src/ap-form/item/index.vue.mjs +48 -51
- package/es/src/ap-form/items/number/index.vue.d.ts +10 -10
- package/es/src/ap-form/items/text/index.vue.d.ts +10 -10
- package/es/src/ap-form/items/text/password.vue.d.ts +10 -10
- package/es/src/ap-form/items/text-area/index.vue.d.ts +9 -9
- package/es/src/ap-form/render/control.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.d.ts +6 -5
- package/es/src/ap-form/render/item.vue.mjs +20 -12
- package/es/src/ap-form/render/style/css.d.ts +1 -0
- package/es/src/ap-form/render/style/css.js +1 -0
- package/es/src/ap-form/render/style/style.d.ts +1 -0
- package/es/src/ap-list/index.vue.d.ts +10 -2
- package/es/src/ap-list/index.vue.mjs +135 -85
- package/es/src/ap-list/interface.d.ts +22 -3
- package/es/src/ap-modal/interface.d.ts +3 -0
- package/es/src/ap-modal/utils/createModal.mjs +46 -36
- package/es/src/ap-table/constants.d.ts +42 -42
- package/es/src/ap-tag/ap-tag.vue.mjs +16 -13
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +206 -204
- package/es/src/path-map.mjs +4 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-drawer/index.d.ts +8 -0
- package/lib/src/ap-drawer/index.js +1 -0
- package/lib/src/ap-drawer/interface.d.ts +16 -0
- package/lib/src/ap-drawer/interface.js +1 -0
- package/lib/src/ap-drawer/style/css.d.ts +1 -0
- package/lib/src/ap-drawer/style/css.js +1 -0
- package/lib/src/ap-drawer/style/index.d.ts +1 -0
- package/lib/src/ap-drawer/style/index.js +1 -0
- package/lib/src/ap-drawer/utils/createDrawer.d.ts +2 -0
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -0
- package/lib/src/ap-drawer/utils/index.d.ts +1 -0
- package/lib/src/ap-drawer/utils/index.js +1 -0
- package/lib/src/ap-form/interface.d.ts +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +10 -10
- package/lib/src/ap-form/items/text/index.vue.d.ts +10 -10
- package/lib/src/ap-form/items/text/password.vue.d.ts +10 -10
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +9 -9
- package/lib/src/ap-form/render/control.vue.js +1 -1
- package/lib/src/ap-form/render/item.vue.d.ts +6 -5
- package/lib/src/ap-form/render/item.vue.js +1 -1
- package/lib/src/ap-form/render/style/css.d.ts +1 -0
- package/lib/src/ap-form/render/style/css.js +1 -0
- package/lib/src/ap-form/render/style/style.d.ts +1 -0
- package/lib/src/ap-list/index.vue.d.ts +10 -2
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +22 -3
- package/lib/src/ap-modal/interface.d.ts +3 -0
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/constants.d.ts +42 -42
- package/lib/src/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/package.json +4 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Form as
|
|
1
|
+
import { defineComponent as D, useSlots as $, ref as d, onMounted as j, computed as F, unref as l, watch as q, cloneVNode as E, openBlock as g, createBlock as h, mergeProps as K, createSlots as O, withCtx as i, resolveDynamicComponent as Q, createCommentVNode as U, createElementVNode as G, normalizeClass as H, createVNode as p, normalizeStyle as J, renderList as M, renderSlot as W, normalizeProps as X, guardReactiveProps as Y } from "vue";
|
|
2
|
+
import { Form as Z, Tooltip as ee, TypographyText as oe } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useToken as le } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
|
-
import { isFunction as
|
|
4
|
+
import { isFunction as B, cloneDeep as te, isArray as ae, omit as C } from "lodash-unified";
|
|
5
5
|
import { apFormItemColPropKeys as re } from "../constant.mjs";
|
|
6
6
|
import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
|
|
7
7
|
import "../../config-provider/index.mjs";
|
|
8
8
|
import { useInjectForm as ie } from "../context.mjs";
|
|
9
9
|
import { isPromise as se } from "@fruits-chain/utils";
|
|
10
10
|
import { getSingleVNode as ue, getValidVNodeList as me } from "../../utils/slot.mjs";
|
|
11
|
-
import { useNamespace as
|
|
12
|
-
const
|
|
11
|
+
import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
|
+
const Ce = /* @__PURE__ */ D({
|
|
13
13
|
name: "ApFormItem",
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: {
|
|
@@ -53,17 +53,17 @@ const fe = ["title"], Ne = /* @__PURE__ */ O({
|
|
|
53
53
|
_signal: {},
|
|
54
54
|
transform: {}
|
|
55
55
|
},
|
|
56
|
-
setup(
|
|
57
|
-
const o =
|
|
56
|
+
setup(N, { expose: k }) {
|
|
57
|
+
const o = N, r = $(), { model: s, updateModel: u, internalInstance: m } = ie(), { m: c, b: P } = fe("ap-form-item"), f = d(!1), n = d(), [, x] = le();
|
|
58
58
|
j(async () => {
|
|
59
|
-
let e =
|
|
59
|
+
let e = B(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
60
60
|
se(e) && (e = await e), m == null || m.registerField({
|
|
61
61
|
name: o.name,
|
|
62
62
|
initialValue: te(e),
|
|
63
63
|
transform: o.transform
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
|
-
const
|
|
66
|
+
const y = F(() => o.name ? ae(o.name) ? o.name.reduce((e, t) => e == null ? void 0 : e[t], l(s)) : s == null ? void 0 : s.value[o.name] : null), v = d(ue(r.default));
|
|
67
67
|
q(
|
|
68
68
|
() => {
|
|
69
69
|
var e;
|
|
@@ -73,37 +73,37 @@ const fe = ["title"], Ne = /* @__PURE__ */ O({
|
|
|
73
73
|
v.value = me(e)[0];
|
|
74
74
|
}
|
|
75
75
|
);
|
|
76
|
-
function
|
|
76
|
+
function w(e) {
|
|
77
77
|
u == null || u(o.name, e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
79
|
+
function S() {
|
|
80
|
+
f.value = !0;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
|
|
82
|
+
function I() {
|
|
83
|
+
f.value = !1;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const V = F(() => {
|
|
86
86
|
var t, a;
|
|
87
87
|
if (!o.name)
|
|
88
88
|
return (t = r.default()) == null ? void 0 : t[0];
|
|
89
89
|
const e = l(v);
|
|
90
90
|
return e ? E(e, {
|
|
91
|
-
[o.valuePropName]: l(
|
|
92
|
-
[`onUpdate:${o.valuePropName}`]:
|
|
91
|
+
[o.valuePropName]: l(y),
|
|
92
|
+
[`onUpdate:${o.valuePropName}`]: w,
|
|
93
93
|
bordered: o.bordered ? !1 : (a = e == null ? void 0 : e.props) == null ? void 0 : a.bordered,
|
|
94
|
-
onFocus:
|
|
95
|
-
onBlur:
|
|
94
|
+
onFocus: S,
|
|
95
|
+
onBlur: I
|
|
96
96
|
}) : null;
|
|
97
97
|
});
|
|
98
|
-
function
|
|
98
|
+
function T() {
|
|
99
99
|
var e;
|
|
100
100
|
(e = n.value) == null || e.onFieldBlur();
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function z() {
|
|
103
103
|
var e;
|
|
104
104
|
(e = n.value) == null || e.onFieldChange();
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function A() {
|
|
107
107
|
var e;
|
|
108
108
|
(e = n.value) == null || e.clearValidate();
|
|
109
109
|
}
|
|
@@ -112,46 +112,46 @@ const fe = ["title"], Ne = /* @__PURE__ */ O({
|
|
|
112
112
|
(e = n.value) == null || e.resetField();
|
|
113
113
|
}
|
|
114
114
|
function R(e = !1) {
|
|
115
|
-
const t = l(
|
|
115
|
+
const t = l(y);
|
|
116
116
|
if (!e || !o.transform)
|
|
117
117
|
return t;
|
|
118
|
-
const a =
|
|
118
|
+
const a = B(o.transform) ? o.transform : o.transform.transformer;
|
|
119
119
|
return o.transform ? a(t) : t;
|
|
120
120
|
}
|
|
121
|
-
return
|
|
122
|
-
onFieldBlur:
|
|
123
|
-
onFieldChange:
|
|
124
|
-
clearValidate:
|
|
121
|
+
return k({
|
|
122
|
+
onFieldBlur: T,
|
|
123
|
+
onFieldChange: z,
|
|
124
|
+
clearValidate: A,
|
|
125
125
|
resetField: L,
|
|
126
126
|
getFieldValue: R
|
|
127
|
-
}), (e, t) => (
|
|
127
|
+
}), (e, t) => (g(), h(l(Z).Item, K({
|
|
128
128
|
ref_key: "formItemRef",
|
|
129
129
|
ref: n
|
|
130
|
-
}, l(
|
|
130
|
+
}, l(C)(o, [...l(re), "tooltip", "label"]), {
|
|
131
131
|
class: {
|
|
132
|
-
[l(
|
|
133
|
-
[l(
|
|
132
|
+
[l(c)("bordered")]: e.bordered,
|
|
133
|
+
[l(c)("focused")]: e.bordered && f.value,
|
|
134
134
|
[l(P)()]: !0
|
|
135
135
|
},
|
|
136
136
|
colon: e.bordered ? !1 : o.colon
|
|
137
|
-
}),
|
|
137
|
+
}), O({
|
|
138
138
|
default: i(() => [
|
|
139
|
-
|
|
139
|
+
V.value ? (g(), h(Q(V.value), { key: 0 })) : U("", !0)
|
|
140
140
|
]),
|
|
141
141
|
_: 2
|
|
142
142
|
}, [
|
|
143
143
|
o.tooltip ? {
|
|
144
144
|
name: "tooltip",
|
|
145
145
|
fn: i(({ class: a }) => [
|
|
146
|
-
|
|
146
|
+
G("span", {
|
|
147
147
|
class: H(a)
|
|
148
148
|
}, [
|
|
149
|
-
|
|
149
|
+
p(l(ee), {
|
|
150
150
|
title: o.tooltip
|
|
151
151
|
}, {
|
|
152
152
|
default: i(() => [
|
|
153
|
-
|
|
154
|
-
style: J({ color: l(
|
|
153
|
+
p(l(ne), {
|
|
154
|
+
style: J({ color: l(x).colorPrimary })
|
|
155
155
|
}, null, 8, ["style"])
|
|
156
156
|
]),
|
|
157
157
|
_: 1
|
|
@@ -163,26 +163,23 @@ const fe = ["title"], Ne = /* @__PURE__ */ O({
|
|
|
163
163
|
e.label ? {
|
|
164
164
|
name: "label",
|
|
165
165
|
fn: i(() => [
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
textOverflow: "ellipsis"
|
|
172
|
-
}
|
|
173
|
-
}, M(e.label), 9, fe)
|
|
166
|
+
p(l(oe), {
|
|
167
|
+
content: e.label,
|
|
168
|
+
ellipsis: { tooltip: e.label },
|
|
169
|
+
style: { "min-width": "0px", flex: "1" }
|
|
170
|
+
}, null, 8, ["content", "ellipsis"])
|
|
174
171
|
]),
|
|
175
172
|
key: "1"
|
|
176
173
|
} : void 0,
|
|
177
|
-
|
|
178
|
-
name:
|
|
179
|
-
fn: i((
|
|
180
|
-
|
|
174
|
+
M(l(C)(r, "default"), (a, b) => ({
|
|
175
|
+
name: b,
|
|
176
|
+
fn: i((_) => [
|
|
177
|
+
W(e.$slots, b, X(Y(_ || {})))
|
|
181
178
|
])
|
|
182
179
|
}))
|
|
183
180
|
]), 1040, ["class", "colon"]));
|
|
184
181
|
}
|
|
185
182
|
});
|
|
186
183
|
export {
|
|
187
|
-
|
|
184
|
+
Ce as default
|
|
188
185
|
};
|
|
@@ -62,13 +62,13 @@ declare function __VLS_template(): {
|
|
|
62
62
|
readonly prefix?: any;
|
|
63
63
|
readonly autofocus?: boolean | undefined;
|
|
64
64
|
'onUpdate:value'?: (((value: ValueType) => void) & ((...args: any[]) => any)) | undefined;
|
|
65
|
+
readonly suffix?: any;
|
|
65
66
|
readonly defaultValue?: ValueType | undefined;
|
|
66
67
|
readonly onPressEnter?: KeyboardEventHandler | undefined;
|
|
67
68
|
readonly valueModifiers?: Record<string, any> | undefined;
|
|
68
69
|
readonly readonly?: boolean | undefined;
|
|
69
70
|
readonly addonBefore?: any;
|
|
70
71
|
readonly addonAfter?: any;
|
|
71
|
-
readonly suffix?: any;
|
|
72
72
|
readonly stringMode?: boolean | undefined;
|
|
73
73
|
readonly parser?: ((displayValue: string) => ValueType) | undefined;
|
|
74
74
|
readonly formatter?: ((value: ValueType, info: {
|
|
@@ -159,6 +159,9 @@ declare function __VLS_template(): {
|
|
|
159
159
|
type: PropType<ValueType>;
|
|
160
160
|
default: number;
|
|
161
161
|
};
|
|
162
|
+
suffix: {
|
|
163
|
+
type: PropType<any>;
|
|
164
|
+
};
|
|
162
165
|
defaultValue: {
|
|
163
166
|
type: PropType<ValueType>;
|
|
164
167
|
};
|
|
@@ -177,9 +180,6 @@ declare function __VLS_template(): {
|
|
|
177
180
|
addonAfter: {
|
|
178
181
|
type: PropType<any>;
|
|
179
182
|
};
|
|
180
|
-
suffix: {
|
|
181
|
-
type: PropType<any>;
|
|
182
|
-
};
|
|
183
183
|
stringMode: {
|
|
184
184
|
type: PropType<boolean>;
|
|
185
185
|
};
|
|
@@ -316,6 +316,9 @@ declare function __VLS_template(): {
|
|
|
316
316
|
type: PropType<ValueType>;
|
|
317
317
|
default: number;
|
|
318
318
|
};
|
|
319
|
+
suffix: {
|
|
320
|
+
type: PropType<any>;
|
|
321
|
+
};
|
|
319
322
|
defaultValue: {
|
|
320
323
|
type: PropType<ValueType>;
|
|
321
324
|
};
|
|
@@ -334,9 +337,6 @@ declare function __VLS_template(): {
|
|
|
334
337
|
addonAfter: {
|
|
335
338
|
type: PropType<any>;
|
|
336
339
|
};
|
|
337
|
-
suffix: {
|
|
338
|
-
type: PropType<any>;
|
|
339
|
-
};
|
|
340
340
|
stringMode: {
|
|
341
341
|
type: PropType<boolean>;
|
|
342
342
|
};
|
|
@@ -493,6 +493,9 @@ declare function __VLS_template(): {
|
|
|
493
493
|
type: PropType<ValueType>;
|
|
494
494
|
default: number;
|
|
495
495
|
};
|
|
496
|
+
suffix: {
|
|
497
|
+
type: PropType<any>;
|
|
498
|
+
};
|
|
496
499
|
defaultValue: {
|
|
497
500
|
type: PropType<ValueType>;
|
|
498
501
|
};
|
|
@@ -511,9 +514,6 @@ declare function __VLS_template(): {
|
|
|
511
514
|
addonAfter: {
|
|
512
515
|
type: PropType<any>;
|
|
513
516
|
};
|
|
514
|
-
suffix: {
|
|
515
|
-
type: PropType<any>;
|
|
516
|
-
};
|
|
517
517
|
stringMode: {
|
|
518
518
|
type: PropType<boolean>;
|
|
519
519
|
};
|
|
@@ -61,6 +61,7 @@ declare function __VLS_template(): {
|
|
|
61
61
|
readonly loading?: boolean | undefined;
|
|
62
62
|
readonly autofocus?: boolean | undefined;
|
|
63
63
|
'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
64
|
+
readonly suffix?: any;
|
|
64
65
|
readonly focused?: boolean | undefined;
|
|
65
66
|
readonly defaultValue?: string | number | undefined;
|
|
66
67
|
readonly maxlength?: number | undefined;
|
|
@@ -74,7 +75,6 @@ declare function __VLS_template(): {
|
|
|
74
75
|
readonly handleReset?: MouseEventHandler | undefined;
|
|
75
76
|
readonly addonBefore?: any;
|
|
76
77
|
readonly addonAfter?: any;
|
|
77
|
-
readonly suffix?: any;
|
|
78
78
|
readonly clearIcon?: any;
|
|
79
79
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
80
80
|
size: {
|
|
@@ -161,6 +161,9 @@ declare function __VLS_template(): {
|
|
|
161
161
|
'onUpdate:value': {
|
|
162
162
|
type: PropType<(val: string) => void>;
|
|
163
163
|
};
|
|
164
|
+
suffix: {
|
|
165
|
+
type: PropType<any>;
|
|
166
|
+
};
|
|
164
167
|
focused: {
|
|
165
168
|
type: PropType<boolean>;
|
|
166
169
|
};
|
|
@@ -204,9 +207,6 @@ declare function __VLS_template(): {
|
|
|
204
207
|
addonAfter: {
|
|
205
208
|
type: PropType<any>;
|
|
206
209
|
};
|
|
207
|
-
suffix: {
|
|
208
|
-
type: PropType<any>;
|
|
209
|
-
};
|
|
210
210
|
clearIcon: {
|
|
211
211
|
type: PropType<any>;
|
|
212
212
|
};
|
|
@@ -319,6 +319,9 @@ declare function __VLS_template(): {
|
|
|
319
319
|
'onUpdate:value': {
|
|
320
320
|
type: PropType<(val: string) => void>;
|
|
321
321
|
};
|
|
322
|
+
suffix: {
|
|
323
|
+
type: PropType<any>;
|
|
324
|
+
};
|
|
322
325
|
focused: {
|
|
323
326
|
type: PropType<boolean>;
|
|
324
327
|
};
|
|
@@ -362,9 +365,6 @@ declare function __VLS_template(): {
|
|
|
362
365
|
addonAfter: {
|
|
363
366
|
type: PropType<any>;
|
|
364
367
|
};
|
|
365
|
-
suffix: {
|
|
366
|
-
type: PropType<any>;
|
|
367
|
-
};
|
|
368
368
|
clearIcon: {
|
|
369
369
|
type: PropType<any>;
|
|
370
370
|
};
|
|
@@ -498,6 +498,9 @@ declare function __VLS_template(): {
|
|
|
498
498
|
'onUpdate:value': {
|
|
499
499
|
type: PropType<(val: string) => void>;
|
|
500
500
|
};
|
|
501
|
+
suffix: {
|
|
502
|
+
type: PropType<any>;
|
|
503
|
+
};
|
|
501
504
|
focused: {
|
|
502
505
|
type: PropType<boolean>;
|
|
503
506
|
};
|
|
@@ -541,9 +544,6 @@ declare function __VLS_template(): {
|
|
|
541
544
|
addonAfter: {
|
|
542
545
|
type: PropType<any>;
|
|
543
546
|
};
|
|
544
|
-
suffix: {
|
|
545
|
-
type: PropType<any>;
|
|
546
|
-
};
|
|
547
547
|
clearIcon: {
|
|
548
548
|
type: PropType<any>;
|
|
549
549
|
};
|
|
@@ -69,6 +69,7 @@ declare function __VLS_template(): {
|
|
|
69
69
|
readonly loading?: boolean | undefined;
|
|
70
70
|
readonly autofocus?: boolean | undefined;
|
|
71
71
|
'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
72
|
+
readonly suffix?: any;
|
|
72
73
|
readonly focused?: boolean | undefined;
|
|
73
74
|
readonly defaultValue?: string | number | undefined;
|
|
74
75
|
readonly maxlength?: number | undefined;
|
|
@@ -82,7 +83,6 @@ declare function __VLS_template(): {
|
|
|
82
83
|
readonly handleReset?: MouseEventHandler | undefined;
|
|
83
84
|
readonly addonBefore?: any;
|
|
84
85
|
readonly addonAfter?: any;
|
|
85
|
-
readonly suffix?: any;
|
|
86
86
|
readonly clearIcon?: any;
|
|
87
87
|
readonly inputPrefixCls?: string | undefined;
|
|
88
88
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
@@ -177,6 +177,9 @@ declare function __VLS_template(): {
|
|
|
177
177
|
'onUpdate:value': {
|
|
178
178
|
type: PropType<(val: string) => void>;
|
|
179
179
|
};
|
|
180
|
+
suffix: {
|
|
181
|
+
type: PropType<any>;
|
|
182
|
+
};
|
|
180
183
|
focused: {
|
|
181
184
|
type: PropType<boolean>;
|
|
182
185
|
};
|
|
@@ -220,9 +223,6 @@ declare function __VLS_template(): {
|
|
|
220
223
|
addonAfter: {
|
|
221
224
|
type: PropType<any>;
|
|
222
225
|
};
|
|
223
|
-
suffix: {
|
|
224
|
-
type: PropType<any>;
|
|
225
|
-
};
|
|
226
226
|
clearIcon: {
|
|
227
227
|
type: PropType<any>;
|
|
228
228
|
};
|
|
@@ -354,6 +354,9 @@ declare function __VLS_template(): {
|
|
|
354
354
|
'onUpdate:value': {
|
|
355
355
|
type: PropType<(val: string) => void>;
|
|
356
356
|
};
|
|
357
|
+
suffix: {
|
|
358
|
+
type: PropType<any>;
|
|
359
|
+
};
|
|
357
360
|
focused: {
|
|
358
361
|
type: PropType<boolean>;
|
|
359
362
|
};
|
|
@@ -397,9 +400,6 @@ declare function __VLS_template(): {
|
|
|
397
400
|
addonAfter: {
|
|
398
401
|
type: PropType<any>;
|
|
399
402
|
};
|
|
400
|
-
suffix: {
|
|
401
|
-
type: PropType<any>;
|
|
402
|
-
};
|
|
403
403
|
clearIcon: {
|
|
404
404
|
type: PropType<any>;
|
|
405
405
|
};
|
|
@@ -553,6 +553,9 @@ declare function __VLS_template(): {
|
|
|
553
553
|
'onUpdate:value': {
|
|
554
554
|
type: PropType<(val: string) => void>;
|
|
555
555
|
};
|
|
556
|
+
suffix: {
|
|
557
|
+
type: PropType<any>;
|
|
558
|
+
};
|
|
556
559
|
focused: {
|
|
557
560
|
type: PropType<boolean>;
|
|
558
561
|
};
|
|
@@ -596,9 +599,6 @@ declare function __VLS_template(): {
|
|
|
596
599
|
addonAfter: {
|
|
597
600
|
type: PropType<any>;
|
|
598
601
|
};
|
|
599
|
-
suffix: {
|
|
600
|
-
type: PropType<any>;
|
|
601
|
-
};
|
|
602
602
|
clearIcon: {
|
|
603
603
|
type: PropType<any>;
|
|
604
604
|
};
|
|
@@ -98,6 +98,9 @@ declare function __VLS_template(): {
|
|
|
98
98
|
'onUpdate:value': {
|
|
99
99
|
type: PropType<(val: string) => void>;
|
|
100
100
|
};
|
|
101
|
+
rows: {
|
|
102
|
+
type: PropType<number>;
|
|
103
|
+
};
|
|
101
104
|
focused: {
|
|
102
105
|
type: PropType<boolean>;
|
|
103
106
|
};
|
|
@@ -142,9 +145,6 @@ declare function __VLS_template(): {
|
|
|
142
145
|
type: PropType<boolean>;
|
|
143
146
|
default: boolean;
|
|
144
147
|
};
|
|
145
|
-
rows: {
|
|
146
|
-
type: PropType<number>;
|
|
147
|
-
};
|
|
148
148
|
autoSize: {
|
|
149
149
|
type: PropType<boolean | AutoSizeType>;
|
|
150
150
|
};
|
|
@@ -248,6 +248,9 @@ declare function __VLS_template(): {
|
|
|
248
248
|
'onUpdate:value': {
|
|
249
249
|
type: PropType<(val: string) => void>;
|
|
250
250
|
};
|
|
251
|
+
rows: {
|
|
252
|
+
type: PropType<number>;
|
|
253
|
+
};
|
|
251
254
|
focused: {
|
|
252
255
|
type: PropType<boolean>;
|
|
253
256
|
};
|
|
@@ -292,9 +295,6 @@ declare function __VLS_template(): {
|
|
|
292
295
|
type: PropType<boolean>;
|
|
293
296
|
default: boolean;
|
|
294
297
|
};
|
|
295
|
-
rows: {
|
|
296
|
-
type: PropType<number>;
|
|
297
|
-
};
|
|
298
298
|
autoSize: {
|
|
299
299
|
type: PropType<boolean | AutoSizeType>;
|
|
300
300
|
};
|
|
@@ -406,6 +406,9 @@ declare function __VLS_template(): {
|
|
|
406
406
|
'onUpdate:value': {
|
|
407
407
|
type: PropType<(val: string) => void>;
|
|
408
408
|
};
|
|
409
|
+
rows: {
|
|
410
|
+
type: PropType<number>;
|
|
411
|
+
};
|
|
409
412
|
focused: {
|
|
410
413
|
type: PropType<boolean>;
|
|
411
414
|
};
|
|
@@ -450,9 +453,6 @@ declare function __VLS_template(): {
|
|
|
450
453
|
type: PropType<boolean>;
|
|
451
454
|
default: boolean;
|
|
452
455
|
};
|
|
453
|
-
rows: {
|
|
454
|
-
type: PropType<number>;
|
|
455
|
-
};
|
|
456
456
|
autoSize: {
|
|
457
457
|
type: PropType<boolean | AutoSizeType>;
|
|
458
458
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as p, computed as u, renderSlot as
|
|
2
|
-
import { FormItemInputContext as
|
|
1
|
+
import { defineComponent as p, computed as u, renderSlot as c, normalizeProps as s, guardReactiveProps as a } from "vue";
|
|
2
|
+
import { FormItemInputContext as m } from "@aplus-frontend/antdv/es/form/FormItemContext";
|
|
3
3
|
const f = /* @__PURE__ */ p({
|
|
4
4
|
name: "ApFormControlRender",
|
|
5
5
|
__name: "control",
|
|
@@ -10,12 +10,12 @@ const f = /* @__PURE__ */ p({
|
|
|
10
10
|
onFocus: { type: Function },
|
|
11
11
|
onBlur: { type: Function }
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
...
|
|
16
|
-
...
|
|
13
|
+
setup(e) {
|
|
14
|
+
const o = e, t = m.useInject(), n = u(() => ({
|
|
15
|
+
...t,
|
|
16
|
+
...o
|
|
17
17
|
}));
|
|
18
|
-
return
|
|
18
|
+
return (r, l) => c(r.$slots, "default", s(a(n.value)));
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
export {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { FormItemStatusContextProps } from '@aplus-frontend/antdv/es/form/FormItemContext';
|
|
2
|
-
import { ApFormControlRenderProps } from '../interface';
|
|
2
|
+
import { ApFormControlRenderProps, ApFormItemSlots } from '../interface';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
4
|
import { ApFormItemProps } from '..';
|
|
5
|
-
type SlotsType = {
|
|
6
|
-
default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
|
|
7
|
-
};
|
|
8
5
|
declare function __VLS_template(): {
|
|
9
|
-
slots: Readonly<
|
|
6
|
+
slots: Readonly<{
|
|
7
|
+
default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
|
|
8
|
+
} & Omit<ApFormItemSlots, "default">> & {
|
|
9
|
+
default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
|
|
10
|
+
} & Omit<ApFormItemSlots, "default">;
|
|
10
11
|
refs: {};
|
|
11
12
|
attrs: Partial<{}>;
|
|
12
13
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { defineComponent as m, useSlots as c, openBlock as B, createBlock 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
|
+
import { omit as g } from "lodash-unified";
|
|
3
|
+
import { ApForm as p } from "../index.mjs";
|
|
4
|
+
const S = /* @__PURE__ */ m({
|
|
4
5
|
name: "ApFormItemRender",
|
|
5
6
|
__name: "item",
|
|
6
7
|
props: {
|
|
@@ -44,21 +45,28 @@ const x = /* @__PURE__ */ s({
|
|
|
44
45
|
_signal: {},
|
|
45
46
|
transform: {}
|
|
46
47
|
},
|
|
47
|
-
setup(
|
|
48
|
-
const
|
|
49
|
-
return
|
|
48
|
+
setup(d) {
|
|
49
|
+
const u = d, i = c();
|
|
50
|
+
return (a, h) => (B(), v(e(p).FormItem, o(l(u)), y({
|
|
50
51
|
default: t(() => [
|
|
51
|
-
|
|
52
|
-
default: t((
|
|
53
|
-
|
|
52
|
+
x(e(p).ControlRender, null, {
|
|
53
|
+
default: t((r) => [
|
|
54
|
+
s(a.$slots, "default", o(l(r)))
|
|
54
55
|
]),
|
|
55
56
|
_: 3
|
|
56
57
|
})
|
|
57
58
|
]),
|
|
58
|
-
_:
|
|
59
|
-
},
|
|
59
|
+
_: 2
|
|
60
|
+
}, [
|
|
61
|
+
_(e(g)(i, "default"), (r, n) => ({
|
|
62
|
+
name: n,
|
|
63
|
+
fn: t((f) => [
|
|
64
|
+
s(a.$slots, n, o(l(f || {})))
|
|
65
|
+
])
|
|
66
|
+
}))
|
|
67
|
+
]), 1040));
|
|
60
68
|
}
|
|
61
69
|
});
|
|
62
70
|
export {
|
|
63
|
-
|
|
71
|
+
S as default
|
|
64
72
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -24,13 +24,21 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
24
24
|
empty?(_: {
|
|
25
25
|
loading: boolean;
|
|
26
26
|
}): any;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
renderItem?(_: {
|
|
28
|
+
item: RecordType;
|
|
29
|
+
index: number;
|
|
30
|
+
}): any;
|
|
31
|
+
renderItem?(_: {
|
|
32
|
+
item: RecordType;
|
|
33
|
+
index: number;
|
|
29
34
|
}): any;
|
|
30
35
|
renderItem?(_: {
|
|
31
36
|
item: RecordType;
|
|
32
37
|
index: number;
|
|
33
38
|
}): any;
|
|
39
|
+
renderContent?(_: {
|
|
40
|
+
dataSource: RecordType[];
|
|
41
|
+
}): any;
|
|
34
42
|
};
|
|
35
43
|
emit: {};
|
|
36
44
|
}>) => VNode<RendererNode, RendererElement, {
|