@aplus-frontend/ui 7.17.1-beta.0 → 7.17.2
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 +29 -31
- package/es/src/ag-grid/editable/form-item.vue.mjs +48 -48
- package/es/src/ap-field/cascader/index.vue.mjs +82 -130
- package/es/src/ap-field/cascader/read.vue2.mjs +36 -35
- package/es/src/ap-field/checkbox/index.vue.d.ts +18 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +42 -43
- package/es/src/ap-field/checkbox/read.vue2.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +48 -48
- package/es/src/ap-field/date/read.vue2.mjs +1 -1
- package/es/src/ap-field/date-range/index.vue.mjs +31 -31
- package/es/src/ap-field/date-range/read.vue2.mjs +1 -1
- package/es/src/ap-field/interface.d.ts +13 -23
- package/es/src/ap-field/number/index.vue.mjs +36 -34
- package/es/src/ap-field/number/read.vue2.mjs +1 -1
- package/es/src/ap-field/radio/index.vue.mjs +34 -42
- package/es/src/ap-field/radio/read.vue2.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.mjs +23 -23
- package/es/src/ap-field/second/index.vue.mjs +27 -29
- package/es/src/ap-field/second/read.vue2.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +37 -37
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.mjs +147 -136
- package/es/src/ap-field/select/read.vue2.mjs +2 -1
- package/es/src/ap-field/slider/index.vue.mjs +35 -37
- package/es/src/ap-field/switch/index.vue.mjs +38 -38
- package/es/src/ap-field/switch/read.vue2.mjs +3 -3
- package/es/src/ap-field/text/index.vue.d.ts +478 -3
- package/es/src/ap-field/text/index.vue2.mjs +47 -46
- package/es/src/ap-field/text/password.vue.d.ts +549 -3
- package/es/src/ap-field/text/password.vue.mjs +61 -56
- package/es/src/ap-field/text/read-password.vue2.mjs +16 -16
- package/es/src/ap-field/text/read.vue2.mjs +1 -1
- package/es/src/ap-field/text-area/index.vue.mjs +29 -31
- package/es/src/ap-field/text-area/read.vue2.mjs +1 -1
- package/es/src/ap-field/tree-select/index.vue.mjs +47 -47
- package/es/src/ap-field/tree-select/read.vue2.mjs +3 -3
- package/es/src/ap-form/drawer-form/index.vue.mjs +99 -90
- package/es/src/ap-form/hooks/use-regist-form.d.ts +7 -0
- package/es/src/ap-form/hooks/use-regist-form.mjs +24 -0
- package/es/src/ap-form/interface.d.ts +18 -0
- package/es/src/ap-form/item/index.vue.d.ts +6 -6
- package/es/src/ap-form/item/index.vue.mjs +85 -94
- package/es/src/ap-form/item-group/index.vue.mjs +14 -14
- package/es/src/ap-form/items/cascader/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +159 -47
- package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +10 -8
- package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +476 -4
- package/es/src/ap-form/items/text/password.vue.d.ts +547 -4
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/es/src/ap-form/list/index.vue.mjs +29 -34
- package/es/src/ap-form/modal-form/index.vue.mjs +77 -68
- package/es/src/ap-form/set/index.vue.d.ts +2 -4
- package/es/src/ap-form/set/index.vue.mjs +23 -18
- package/es/src/ap-grid/index.vue.mjs +1 -1
- package/es/src/ap-table/constants.d.ts +600 -37
- package/es/src/ap-table/utils.d.ts +1 -1
- package/es/src/business/batch-input-group/index.vue.d.ts +240 -3
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/check-card/index.vue2.mjs +61 -64
- package/es/src/hooks/index.d.ts +0 -1
- package/es/src/hooks/index.mjs +10 -12
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-field/cascader/index.vue.js +1 -1
- package/lib/src/ap-field/cascader/read.vue2.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.d.ts +18 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/interface.d.ts +13 -23
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/number/read.vue2.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/radio/read.vue2.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/second/index.vue.js +1 -1
- package/lib/src/ap-field/second/read.vue2.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/switch/read.vue2.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +478 -3
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +549 -3
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text/read-password.vue2.js +1 -1
- package/lib/src/ap-field/text/read.vue2.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-regist-form.d.ts +7 -0
- package/lib/src/ap-form/hooks/use-regist-form.js +1 -0
- package/lib/src/ap-form/interface.d.ts +18 -0
- package/lib/src/ap-form/item/index.vue.d.ts +6 -6
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-group/index.vue.js +1 -1
- package/lib/src/ap-form/items/cascader/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +159 -47
- package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +10 -8
- package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +476 -4
- package/lib/src/ap-form/items/text/password.vue.d.ts +547 -4
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
- package/lib/src/ap-form/list/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/set/index.vue.d.ts +2 -4
- package/lib/src/ap-form/set/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +600 -37
- package/lib/src/ap-table/utils.d.ts +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +240 -3
- package/lib/src/business/batch-input-group/index.vue.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/hooks/index.d.ts +0 -1
- package/lib/src/hooks/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
- package/es/src/hooks/useMessage.d.ts +0 -62
- package/es/src/hooks/useMessage.mjs +0 -86
- package/lib/src/hooks/useMessage.d.ts +0 -62
- package/lib/src/hooks/useMessage.js +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as L, useSlots as _, ref as $, shallowRef as j,
|
|
2
|
-
import { QuestionCircleOutlined as
|
|
3
|
-
import { Form as
|
|
4
|
-
import { useToken as
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent as L, computed as c, useSlots as _, ref as $, shallowRef as j, unref as r, cloneVNode as E, createBlock as O, openBlock as q, mergeProps as D, createSlots as K, withCtx as n, createVNode as u, renderSlot as b, renderList as M, createElementVNode as Q, normalizeClass as U, normalizeStyle as Y, normalizeProps as G, guardReactiveProps as H } from "vue";
|
|
2
|
+
import { QuestionCircleOutlined as J } from "@ant-design/icons-vue";
|
|
3
|
+
import { Form as W, Tooltip as X, TypographyText as Z } from "@aplus-frontend/antdv";
|
|
4
|
+
import { useToken as ee } from "@aplus-frontend/antdv/es/theme/internal";
|
|
5
|
+
import { omit as y, isArray as oe, isFunction as te } from "lodash-unified";
|
|
6
6
|
import "../../render/index.mjs";
|
|
7
|
-
import { isPromise as ae } from "../../utils/is.mjs";
|
|
8
7
|
import "../../config-provider/index.mjs";
|
|
9
|
-
import { getValidVNodeList as
|
|
10
|
-
import { apFormItemColPropKeys as
|
|
11
|
-
import { useInjectForm as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
8
|
+
import { getValidVNodeList as re } from "../../utils/slot.mjs";
|
|
9
|
+
import { apFormItemColPropKeys as le } from "../constant.mjs";
|
|
10
|
+
import { useInjectForm as ae } from "../context.mjs";
|
|
11
|
+
import ne from "../hooks/use-regist-form.mjs";
|
|
12
|
+
import se from "../style/item.mjs";
|
|
13
|
+
import { useNamespace as ie } from "../../config-provider/hooks/use-namespace.mjs";
|
|
14
|
+
import ue from "../../render/render.mjs";
|
|
15
|
+
const Ce = /* @__PURE__ */ L({
|
|
16
16
|
name: "ApFormItem",
|
|
17
17
|
__name: "index",
|
|
18
18
|
props: {
|
|
@@ -61,120 +61,111 @@ const Ne = /* @__PURE__ */ L({
|
|
|
61
61
|
autoFocus: { type: Boolean, default: void 0 }
|
|
62
62
|
},
|
|
63
63
|
setup(v, { expose: F }) {
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
|
|
64
|
+
const e = v, h = c(
|
|
65
|
+
() => y(e, [
|
|
66
|
+
...le,
|
|
67
|
+
"tooltip",
|
|
68
|
+
"label",
|
|
69
|
+
"description",
|
|
70
|
+
"autoFocus"
|
|
71
|
+
])
|
|
72
|
+
), g = _(), { model: p, updateModel: B } = ae(), { m: d, b: V } = ie("ap-form-item"), k = se("ap-form-item"), f = $(!1), s = j(), [, C] = ee();
|
|
73
|
+
ne(e);
|
|
74
|
+
const m = c(() => e.name ? oe(e.name) ? e.name.reduce((o, t) => o?.[t], r(p)) : p?.value[e.name] : null);
|
|
75
|
+
function P(o, t) {
|
|
75
76
|
const l = Object.keys(t), a = { ...t };
|
|
76
|
-
return l.forEach((
|
|
77
|
-
|
|
77
|
+
return l.forEach((i) => {
|
|
78
|
+
i in o || delete a[i];
|
|
78
79
|
}), a;
|
|
79
80
|
}
|
|
80
|
-
function N(
|
|
81
|
-
if (!
|
|
82
|
-
return
|
|
83
|
-
const t =
|
|
81
|
+
function N(o) {
|
|
82
|
+
if (!e.name)
|
|
83
|
+
return o[0];
|
|
84
|
+
const t = re(o)[0];
|
|
84
85
|
if (!t)
|
|
85
86
|
return null;
|
|
86
87
|
const l = t?.type?.props ?? {}, a = {
|
|
87
|
-
autofocus:
|
|
88
|
-
variant:
|
|
89
|
-
bordered:
|
|
90
|
-
onFocus:
|
|
91
|
-
onBlur:
|
|
88
|
+
autofocus: e.autoFocus ?? t?.props?.autofocus,
|
|
89
|
+
variant: e.bordered ? "borderless" : t?.props?.variant,
|
|
90
|
+
bordered: e.bordered ? !1 : t?.props?.bordered,
|
|
91
|
+
onFocus: S,
|
|
92
|
+
onBlur: I
|
|
92
93
|
};
|
|
93
|
-
return
|
|
94
|
+
return E(t, {
|
|
94
95
|
...P(l, a),
|
|
95
|
-
[
|
|
96
|
-
[`onUpdate:${
|
|
96
|
+
[e.valuePropName]: r(m),
|
|
97
|
+
[`onUpdate:${e.valuePropName}`]: x
|
|
97
98
|
});
|
|
98
99
|
}
|
|
99
|
-
function x(
|
|
100
|
-
|
|
100
|
+
function x(o) {
|
|
101
|
+
B?.(e.name, o);
|
|
101
102
|
}
|
|
102
|
-
function
|
|
103
|
+
function S() {
|
|
103
104
|
f.value = !0;
|
|
104
105
|
}
|
|
105
|
-
function
|
|
106
|
+
function I() {
|
|
106
107
|
f.value = !1;
|
|
107
108
|
}
|
|
109
|
+
function R() {
|
|
110
|
+
s.value?.onFieldBlur();
|
|
111
|
+
}
|
|
108
112
|
function T() {
|
|
109
|
-
|
|
113
|
+
s.value?.onFieldChange();
|
|
110
114
|
}
|
|
111
115
|
function w() {
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
function R() {
|
|
115
|
-
i.value?.clearValidate();
|
|
116
|
+
s.value?.clearValidate();
|
|
116
117
|
}
|
|
117
118
|
function z() {
|
|
118
|
-
|
|
119
|
+
s.value?.resetField();
|
|
119
120
|
}
|
|
120
|
-
function A(
|
|
121
|
+
function A(o = !1) {
|
|
121
122
|
const t = r(m);
|
|
122
|
-
if (!
|
|
123
|
+
if (!o || !e.transform)
|
|
123
124
|
return t;
|
|
124
|
-
const l =
|
|
125
|
-
return
|
|
125
|
+
const l = te(e.transform) ? e.transform : e.transform.transformer;
|
|
126
|
+
return e.transform ? l(t) : t;
|
|
126
127
|
}
|
|
127
128
|
return F({
|
|
128
|
-
onFieldBlur:
|
|
129
|
-
onFieldChange:
|
|
130
|
-
clearValidate:
|
|
129
|
+
onFieldBlur: R,
|
|
130
|
+
onFieldChange: T,
|
|
131
|
+
clearValidate: w,
|
|
131
132
|
resetField: z,
|
|
132
133
|
getFieldValue: A
|
|
133
|
-
}), (
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
}), (o, t) => (q(), O(r(W).Item, D({
|
|
135
|
+
ref_key: "formItemRef",
|
|
136
|
+
ref: s
|
|
137
|
+
}, h.value, {
|
|
138
|
+
class: {
|
|
139
|
+
[r(d)("bordered")]: o.bordered,
|
|
140
|
+
[r(d)("focused")]: o.bordered && f.value,
|
|
141
|
+
[r(d)("disabled")]: o.bordered && o.disabled,
|
|
142
|
+
[r(V)()]: !0,
|
|
143
|
+
[r(k)]: !0
|
|
137
144
|
},
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
"tooltip",
|
|
141
|
-
"label",
|
|
142
|
-
"description",
|
|
143
|
-
"autoFocus"
|
|
144
|
-
]),
|
|
145
|
-
{
|
|
146
|
-
class: {
|
|
147
|
-
[r(d)("bordered")]: e.bordered,
|
|
148
|
-
[r(d)("focused")]: e.bordered && f.value,
|
|
149
|
-
[r(d)("disabled")]: e.bordered && e.disabled,
|
|
150
|
-
[r(B)()]: !0,
|
|
151
|
-
[r(k)]: !0
|
|
152
|
-
},
|
|
153
|
-
colon: e.bordered ? !1 : o.colon
|
|
154
|
-
}
|
|
155
|
-
), Q({
|
|
145
|
+
colon: o.bordered ? !1 : e.colon
|
|
146
|
+
}), K({
|
|
156
147
|
default: n(() => [
|
|
157
|
-
u(r(
|
|
148
|
+
u(r(ue), { renderer: N }, {
|
|
158
149
|
default: n(() => [
|
|
159
|
-
|
|
150
|
+
b(o.$slots, "default")
|
|
160
151
|
]),
|
|
161
152
|
_: 3
|
|
162
153
|
})
|
|
163
154
|
]),
|
|
164
155
|
_: 2
|
|
165
156
|
}, [
|
|
166
|
-
|
|
157
|
+
e.tooltip ? {
|
|
167
158
|
name: "tooltip",
|
|
168
159
|
fn: n(({ class: l }) => [
|
|
169
|
-
|
|
170
|
-
class:
|
|
160
|
+
Q("span", {
|
|
161
|
+
class: U(l)
|
|
171
162
|
}, [
|
|
172
|
-
u(r(
|
|
173
|
-
title:
|
|
163
|
+
u(r(X), {
|
|
164
|
+
title: e.tooltip
|
|
174
165
|
}, {
|
|
175
166
|
default: n(() => [
|
|
176
|
-
u(r(
|
|
177
|
-
style:
|
|
167
|
+
u(r(J), {
|
|
168
|
+
style: Y({
|
|
178
169
|
color: r(C).colorTextTertiary,
|
|
179
170
|
fontSize: "14px",
|
|
180
171
|
transform: "translateY(1px)"
|
|
@@ -187,26 +178,26 @@ const Ne = /* @__PURE__ */ L({
|
|
|
187
178
|
]),
|
|
188
179
|
key: "0"
|
|
189
180
|
} : void 0,
|
|
190
|
-
|
|
181
|
+
o.label ? {
|
|
191
182
|
name: "label",
|
|
192
183
|
fn: n(() => [
|
|
193
|
-
u(r(
|
|
194
|
-
content:
|
|
195
|
-
ellipsis: { tooltip:
|
|
184
|
+
u(r(Z), {
|
|
185
|
+
content: o.label,
|
|
186
|
+
ellipsis: { tooltip: o.label },
|
|
196
187
|
style: { "min-width": "0px", flex: "1" }
|
|
197
188
|
}, null, 8, ["content", "ellipsis"])
|
|
198
189
|
]),
|
|
199
190
|
key: "1"
|
|
200
191
|
} : void 0,
|
|
201
|
-
|
|
192
|
+
M(r(y)(g, "default"), (l, a) => ({
|
|
202
193
|
name: a,
|
|
203
|
-
fn: n((
|
|
204
|
-
|
|
194
|
+
fn: n((i) => [
|
|
195
|
+
b(o.$slots, a, G(H(i || {})))
|
|
205
196
|
])
|
|
206
197
|
}))
|
|
207
198
|
]), 1040, ["class", "colon"]));
|
|
208
199
|
}
|
|
209
200
|
});
|
|
210
201
|
export {
|
|
211
|
-
|
|
202
|
+
Ce as default
|
|
212
203
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as _, defineComponent as P,
|
|
1
|
+
import { isVNode as _, defineComponent as P, createVNode as s, mergeProps as a, createBlock as y, openBlock as S, unref as r, withCtx as c, renderSlot as h } from "vue";
|
|
2
2
|
import { Col as w, Row as C } from "@aplus-frontend/antdv";
|
|
3
3
|
import { pick as R, isBoolean as b, omit as N } from "lodash-unified";
|
|
4
4
|
import "../../render/index.mjs";
|
|
@@ -10,8 +10,8 @@ import { buildColSpan as x, getStringName as B } from "./helper.mjs";
|
|
|
10
10
|
import { useNamespace as I } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
11
|
import { isDef as $ } from "../../utils/is.mjs";
|
|
12
12
|
import F from "../../render/render.mjs";
|
|
13
|
-
function O(
|
|
14
|
-
return typeof
|
|
13
|
+
function O(o) {
|
|
14
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !_(o);
|
|
15
15
|
}
|
|
16
16
|
const M = /* @__PURE__ */ P({
|
|
17
17
|
name: "ApFormItemGroup",
|
|
@@ -31,25 +31,25 @@ const M = /* @__PURE__ */ P({
|
|
|
31
31
|
default: 3
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
setup(
|
|
35
|
-
const p =
|
|
34
|
+
setup(o) {
|
|
35
|
+
const p = o, {
|
|
36
36
|
b: m
|
|
37
37
|
} = I("ap-form-item-group"), f = k("ap-form-item-group");
|
|
38
38
|
function u(n) {
|
|
39
|
-
return
|
|
40
|
-
const
|
|
39
|
+
return n.map((e, d) => {
|
|
40
|
+
const t = e.props, i = R(t, j), l = i?.span ? {} : x(p.countPerRow), g = b(t.hidden) ? !!t.hidden : $(t.hidden);
|
|
41
41
|
return s(w, a(l, i, {
|
|
42
|
-
key: `${d}-${B(
|
|
42
|
+
key: `${d}-${B(t.name)}`,
|
|
43
43
|
class: g ? m("col-hidden") : ""
|
|
44
|
-
}), O(
|
|
45
|
-
default: () => [
|
|
44
|
+
}), O(e) ? e : {
|
|
45
|
+
default: () => [e]
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
return (n,
|
|
50
|
-
class: [
|
|
51
|
-
},
|
|
52
|
-
default: c(() => [s(
|
|
49
|
+
return (n, e) => (S(), y(r(C), a({
|
|
50
|
+
class: [r(m)(), r(f)]
|
|
51
|
+
}, r(N)(p, ["countPerRow"])), {
|
|
52
|
+
default: c(() => [s(r(F), {
|
|
53
53
|
renderer: u
|
|
54
54
|
}, {
|
|
55
55
|
default: c(() => [h(n.$slots, "default")]),
|
|
@@ -47,6 +47,7 @@ declare function __VLS_template(): {
|
|
|
47
47
|
readonly mode?: FieldMode | undefined;
|
|
48
48
|
readonly class?: unknown;
|
|
49
49
|
readonly style?: unknown;
|
|
50
|
+
readonly emptyText?: string | undefined;
|
|
50
51
|
readonly size?: ButtonSize;
|
|
51
52
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
52
53
|
readonly onChange?: ((value: ValueType, selectOptions: DefaultOptionType[] | DefaultOptionType[][]) => void) | undefined;
|
|
@@ -125,7 +126,6 @@ declare function __VLS_template(): {
|
|
|
125
126
|
readonly dropdownPrefixCls?: string | undefined;
|
|
126
127
|
readonly dropdownMenuColumnStyle?: CSSProperties | undefined;
|
|
127
128
|
readonly loadingIcon?: any;
|
|
128
|
-
readonly emptyText?: string | undefined;
|
|
129
129
|
readonly request?: ((selectOptions?: DefaultOptionType[], extraParams?: Recordable) => Promise< CascaderProps["options"]>) | undefined;
|
|
130
130
|
readonly lazy?: boolean | undefined;
|
|
131
131
|
readonly params?: Recordable | undefined;
|
|
@@ -248,6 +248,7 @@ declare const __VLS_component: DefineComponent<ApFormItemCascaderProps, {
|
|
|
248
248
|
readonly mode?: FieldMode | undefined;
|
|
249
249
|
readonly class?: unknown;
|
|
250
250
|
readonly style?: unknown;
|
|
251
|
+
readonly emptyText?: string | undefined;
|
|
251
252
|
readonly size?: ButtonSize;
|
|
252
253
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
253
254
|
readonly onChange?: ((value: ValueType, selectOptions: DefaultOptionType[] | DefaultOptionType[][]) => void) | undefined;
|
|
@@ -326,7 +327,6 @@ declare const __VLS_component: DefineComponent<ApFormItemCascaderProps, {
|
|
|
326
327
|
readonly dropdownPrefixCls?: string | undefined;
|
|
327
328
|
readonly dropdownMenuColumnStyle?: CSSProperties | undefined;
|
|
328
329
|
readonly loadingIcon?: any;
|
|
329
|
-
readonly emptyText?: string | undefined;
|
|
330
330
|
readonly request?: ((selectOptions?: DefaultOptionType[], extraParams?: Recordable) => Promise< CascaderProps["options"]>) | undefined;
|
|
331
331
|
readonly lazy?: boolean | undefined;
|
|
332
332
|
readonly params?: Recordable | undefined;
|
|
@@ -1,41 +1,98 @@
|
|
|
1
1
|
import { ApFormItemSlots } from '../../interface';
|
|
2
2
|
import { ApFormItemCheckboxProps } from '../interface';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, PublicProps } from 'vue';
|
|
4
|
+
import { FieldMode, ApFieldCheckboxProps } from '../../..';
|
|
5
|
+
import { CheckboxValueType } from '@aplus-frontend/antdv/es/checkbox/interface';
|
|
6
|
+
import { CheckboxOptionType, CheckboxGroupProps } from '@aplus-frontend/antdv';
|
|
7
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
6
8
|
type ApFormItemCheckboxSlots = Omit<ApFormItemSlots, 'default'>;
|
|
7
9
|
declare function __VLS_template(): {
|
|
8
10
|
attrs: Partial<{}>;
|
|
9
11
|
slots: Readonly<ApFormItemCheckboxSlots> & ApFormItemCheckboxSlots;
|
|
10
12
|
refs: {
|
|
11
|
-
checkboxRef:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
checkboxRef: ({
|
|
14
|
+
$: ComponentInternalInstance;
|
|
15
|
+
$data: {};
|
|
16
|
+
$props: {
|
|
17
|
+
readonly mode?: FieldMode | undefined;
|
|
18
|
+
readonly class?: unknown;
|
|
19
|
+
readonly style?: unknown;
|
|
20
|
+
readonly emptyText?: string | undefined;
|
|
21
|
+
readonly onChange?: ((checkedValue: Array< CheckboxValueType>) => void) | undefined;
|
|
22
|
+
readonly value?: CheckboxValueType[] | undefined;
|
|
23
|
+
readonly disabled?: boolean | undefined;
|
|
24
|
+
readonly 'onUpdate:value'?: (((checkedValue: Array< CheckboxValueType>) => void) & ((...args: any[]) => any)) | undefined;
|
|
25
|
+
readonly defaultValue?: CheckboxValueType[] | undefined;
|
|
26
|
+
readonly options?: (string | number | CheckboxOptionType)[] | undefined;
|
|
27
|
+
readonly id?: string | undefined;
|
|
28
|
+
readonly prefixCls?: string | undefined;
|
|
29
|
+
readonly name?: string | undefined;
|
|
30
|
+
readonly request?: (() => Promise< CheckboxGroupProps["options"]>) | undefined;
|
|
31
|
+
readonly vertical?: boolean | undefined;
|
|
32
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
33
|
+
$attrs: {
|
|
34
|
+
[x: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
$refs: {
|
|
37
|
+
[x: string]: unknown;
|
|
38
|
+
};
|
|
39
|
+
$slots: Readonly<{
|
|
40
|
+
[name: string]: Slot<any> | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
$root: ComponentPublicInstance | null;
|
|
43
|
+
$parent: ComponentPublicInstance | null;
|
|
44
|
+
$host: Element | null;
|
|
45
|
+
$emit: (event: "update:value", ...args: any[]) => void;
|
|
46
|
+
$el: any;
|
|
47
|
+
$options: ComponentOptionsBase<Readonly< ApFieldCheckboxProps> & Readonly<{
|
|
48
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
request: () => void;
|
|
51
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
52
|
+
"update:value": (...args: any[]) => void;
|
|
53
|
+
}, string, {
|
|
54
|
+
mode: FieldMode;
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
options: (string | number | CheckboxOptionType)[];
|
|
57
|
+
emptyText: string;
|
|
58
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
59
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
60
|
+
created?: (() => void) | (() => void)[];
|
|
61
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
62
|
+
mounted?: (() => void) | (() => void)[];
|
|
63
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
64
|
+
updated?: (() => void) | (() => void)[];
|
|
65
|
+
activated?: (() => void) | (() => void)[];
|
|
66
|
+
deactivated?: (() => void) | (() => void)[];
|
|
67
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
68
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
69
|
+
destroyed?: (() => void) | (() => void)[];
|
|
70
|
+
unmounted?: (() => void) | (() => void)[];
|
|
71
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
72
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
73
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
74
|
+
};
|
|
75
|
+
$forceUpdate: () => void;
|
|
76
|
+
$nextTick: nextTick;
|
|
77
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
78
|
+
} & Readonly<{
|
|
18
79
|
mode: FieldMode;
|
|
19
80
|
disabled: boolean;
|
|
20
81
|
options: (string | number | CheckboxOptionType)[];
|
|
21
82
|
emptyText: string;
|
|
22
|
-
}
|
|
23
|
-
P: {};
|
|
24
|
-
B: {};
|
|
25
|
-
D: {};
|
|
26
|
-
C: {};
|
|
27
|
-
M: {};
|
|
28
|
-
Defaults: {};
|
|
29
|
-
}, Readonly< ApFieldCheckboxProps> & Readonly<{
|
|
83
|
+
}> & Omit<Readonly< ApFieldCheckboxProps> & Readonly<{
|
|
30
84
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
31
|
-
}>, {
|
|
85
|
+
}>, "request" | ("mode" | "disabled" | "options" | "emptyText")> & ShallowUnwrapRef<{
|
|
32
86
|
request: () => void;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
87
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
88
|
+
$slots: Readonly<{
|
|
89
|
+
label?: any;
|
|
90
|
+
default?: any;
|
|
91
|
+
}> & {
|
|
92
|
+
label?: any;
|
|
93
|
+
default?: any;
|
|
94
|
+
};
|
|
95
|
+
}) | null;
|
|
39
96
|
};
|
|
40
97
|
rootEl: any;
|
|
41
98
|
};
|
|
@@ -51,34 +108,89 @@ declare const __VLS_component: DefineComponent<ApFormItemCheckboxProps, {
|
|
|
51
108
|
validateFirst: boolean;
|
|
52
109
|
field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
|
|
53
110
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
54
|
-
checkboxRef:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
111
|
+
checkboxRef: ({
|
|
112
|
+
$: ComponentInternalInstance;
|
|
113
|
+
$data: {};
|
|
114
|
+
$props: {
|
|
115
|
+
readonly mode?: FieldMode | undefined;
|
|
116
|
+
readonly class?: unknown;
|
|
117
|
+
readonly style?: unknown;
|
|
118
|
+
readonly emptyText?: string | undefined;
|
|
119
|
+
readonly onChange?: ((checkedValue: Array< CheckboxValueType>) => void) | undefined;
|
|
120
|
+
readonly value?: CheckboxValueType[] | undefined;
|
|
121
|
+
readonly disabled?: boolean | undefined;
|
|
122
|
+
readonly 'onUpdate:value'?: (((checkedValue: Array< CheckboxValueType>) => void) & ((...args: any[]) => any)) | undefined;
|
|
123
|
+
readonly defaultValue?: CheckboxValueType[] | undefined;
|
|
124
|
+
readonly options?: (string | number | CheckboxOptionType)[] | undefined;
|
|
125
|
+
readonly id?: string | undefined;
|
|
126
|
+
readonly prefixCls?: string | undefined;
|
|
127
|
+
readonly name?: string | undefined;
|
|
128
|
+
readonly request?: (() => Promise< CheckboxGroupProps["options"]>) | undefined;
|
|
129
|
+
readonly vertical?: boolean | undefined;
|
|
130
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
131
|
+
$attrs: {
|
|
132
|
+
[x: string]: unknown;
|
|
133
|
+
};
|
|
134
|
+
$refs: {
|
|
135
|
+
[x: string]: unknown;
|
|
136
|
+
};
|
|
137
|
+
$slots: Readonly<{
|
|
138
|
+
[name: string]: Slot<any> | undefined;
|
|
139
|
+
}>;
|
|
140
|
+
$root: ComponentPublicInstance | null;
|
|
141
|
+
$parent: ComponentPublicInstance | null;
|
|
142
|
+
$host: Element | null;
|
|
143
|
+
$emit: (event: "update:value", ...args: any[]) => void;
|
|
144
|
+
$el: any;
|
|
145
|
+
$options: ComponentOptionsBase<Readonly< ApFieldCheckboxProps> & Readonly<{
|
|
146
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
147
|
+
}>, {
|
|
148
|
+
request: () => void;
|
|
149
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
150
|
+
"update:value": (...args: any[]) => void;
|
|
151
|
+
}, string, {
|
|
152
|
+
mode: FieldMode;
|
|
153
|
+
disabled: boolean;
|
|
154
|
+
options: (string | number | CheckboxOptionType)[];
|
|
155
|
+
emptyText: string;
|
|
156
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
157
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
158
|
+
created?: (() => void) | (() => void)[];
|
|
159
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
160
|
+
mounted?: (() => void) | (() => void)[];
|
|
161
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
162
|
+
updated?: (() => void) | (() => void)[];
|
|
163
|
+
activated?: (() => void) | (() => void)[];
|
|
164
|
+
deactivated?: (() => void) | (() => void)[];
|
|
165
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
166
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
167
|
+
destroyed?: (() => void) | (() => void)[];
|
|
168
|
+
unmounted?: (() => void) | (() => void)[];
|
|
169
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
170
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
171
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
172
|
+
};
|
|
173
|
+
$forceUpdate: () => void;
|
|
174
|
+
$nextTick: nextTick;
|
|
175
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
176
|
+
} & Readonly<{
|
|
61
177
|
mode: FieldMode;
|
|
62
178
|
disabled: boolean;
|
|
63
179
|
options: (string | number | CheckboxOptionType)[];
|
|
64
180
|
emptyText: string;
|
|
65
|
-
}
|
|
66
|
-
P: {};
|
|
67
|
-
B: {};
|
|
68
|
-
D: {};
|
|
69
|
-
C: {};
|
|
70
|
-
M: {};
|
|
71
|
-
Defaults: {};
|
|
72
|
-
}, Readonly< ApFieldCheckboxProps> & Readonly<{
|
|
181
|
+
}> & Omit<Readonly< ApFieldCheckboxProps> & Readonly<{
|
|
73
182
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
74
|
-
}>, {
|
|
183
|
+
}>, "request" | ("mode" | "disabled" | "options" | "emptyText")> & ShallowUnwrapRef<{
|
|
75
184
|
request: () => void;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
185
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
186
|
+
$slots: Readonly<{
|
|
187
|
+
label?: any;
|
|
188
|
+
default?: any;
|
|
189
|
+
}> & {
|
|
190
|
+
label?: any;
|
|
191
|
+
default?: any;
|
|
192
|
+
};
|
|
193
|
+
}) | null;
|
|
82
194
|
}, any>;
|
|
83
195
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
84
196
|
export default _default;
|
|
@@ -52,6 +52,7 @@ declare function __VLS_template(): {
|
|
|
52
52
|
readonly mode?: FieldMode | undefined;
|
|
53
53
|
readonly class?: unknown;
|
|
54
54
|
readonly style?: unknown;
|
|
55
|
+
readonly emptyText?: string | undefined;
|
|
55
56
|
readonly size?: ButtonSize;
|
|
56
57
|
readonly onBlur?: FocusEventHandler | undefined;
|
|
57
58
|
readonly onClick?: MouseEventHandler | undefined;
|
|
@@ -102,7 +103,6 @@ declare function __VLS_template(): {
|
|
|
102
103
|
readonly showToday?: boolean | undefined;
|
|
103
104
|
readonly showTime?: boolean | SharedTimeProps<Dayjs> | undefined;
|
|
104
105
|
readonly valueFormat?: string | undefined;
|
|
105
|
-
readonly emptyText?: string | undefined;
|
|
106
106
|
readonly value?: number | null | undefined;
|
|
107
107
|
readonly defaultValue?: number | undefined;
|
|
108
108
|
readonly 'onUpdate:value'?: (((ts: number | null) => void) & ((...args: any[]) => any)) | undefined;
|
|
@@ -804,6 +804,7 @@ declare const __VLS_component: DefineComponent<ApFormItemDateProps, {
|
|
|
804
804
|
readonly mode?: FieldMode | undefined;
|
|
805
805
|
readonly class?: unknown;
|
|
806
806
|
readonly style?: unknown;
|
|
807
|
+
readonly emptyText?: string | undefined;
|
|
807
808
|
readonly size?: ButtonSize;
|
|
808
809
|
readonly onBlur?: FocusEventHandler | undefined;
|
|
809
810
|
readonly onClick?: MouseEventHandler | undefined;
|
|
@@ -854,7 +855,6 @@ declare const __VLS_component: DefineComponent<ApFormItemDateProps, {
|
|
|
854
855
|
readonly showToday?: boolean | undefined;
|
|
855
856
|
readonly showTime?: boolean | SharedTimeProps<Dayjs> | undefined;
|
|
856
857
|
readonly valueFormat?: string | undefined;
|
|
857
|
-
readonly emptyText?: string | undefined;
|
|
858
858
|
readonly value?: number | null | undefined;
|
|
859
859
|
readonly defaultValue?: number | undefined;
|
|
860
860
|
readonly 'onUpdate:value'?: (((ts: number | null) => void) & ((...args: any[]) => any)) | undefined;
|
|
@@ -50,6 +50,7 @@ declare function __VLS_template(): {
|
|
|
50
50
|
readonly mode?: FieldMode | undefined;
|
|
51
51
|
readonly class?: unknown;
|
|
52
52
|
readonly style?: unknown;
|
|
53
|
+
readonly emptyText?: string | undefined;
|
|
53
54
|
readonly size?: ButtonSize;
|
|
54
55
|
readonly onBlur?: FocusEventHandler | undefined;
|
|
55
56
|
readonly onClick?: MouseEventHandler | undefined;
|
|
@@ -100,7 +101,6 @@ declare function __VLS_template(): {
|
|
|
100
101
|
readonly onCalendarChange?: ((values: RangeValue<Dayjs>, formatString: [string, string], info: RangeInfo) => void) | undefined;
|
|
101
102
|
readonly activePickerIndex?: 0 | 1 | undefined;
|
|
102
103
|
readonly valueFormat?: string | undefined;
|
|
103
|
-
readonly emptyText?: string | undefined;
|
|
104
104
|
readonly value?: ( RangeValue<number> | null) | undefined;
|
|
105
105
|
readonly defaultValue?: RangeValue<number> | undefined;
|
|
106
106
|
readonly 'onUpdate:value'?: (((ts: RangeValue<number> | null) => void) & ((...args: any[]) => any)) | undefined;
|
|
@@ -857,6 +857,7 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
857
857
|
readonly mode?: FieldMode | undefined;
|
|
858
858
|
readonly class?: unknown;
|
|
859
859
|
readonly style?: unknown;
|
|
860
|
+
readonly emptyText?: string | undefined;
|
|
860
861
|
readonly size?: ButtonSize;
|
|
861
862
|
readonly onBlur?: FocusEventHandler | undefined;
|
|
862
863
|
readonly onClick?: MouseEventHandler | undefined;
|
|
@@ -907,7 +908,6 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
907
908
|
readonly onCalendarChange?: ((values: RangeValue<Dayjs>, formatString: [string, string], info: RangeInfo) => void) | undefined;
|
|
908
909
|
readonly activePickerIndex?: 0 | 1 | undefined;
|
|
909
910
|
readonly valueFormat?: string | undefined;
|
|
910
|
-
readonly emptyText?: string | undefined;
|
|
911
911
|
readonly value?: ( RangeValue<number> | null) | undefined;
|
|
912
912
|
readonly defaultValue?: RangeValue<number> | undefined;
|
|
913
913
|
readonly 'onUpdate:value'?: (((ts: RangeValue<number> | null) => void) & ((...args: any[]) => any)) | undefined;
|