@aplus-frontend/ui 7.17.0 → 7.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-field/cascader/index.vue.mjs +86 -131
- 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 +7 -22
- 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.mjs +90 -92
- package/es/src/ap-field/select/read.vue2.mjs +1 -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/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 +2 -2
- package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
- 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 +593 -31
- 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/version.d.ts +1 -1
- package/es/src/version.mjs +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 +7 -22
- 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.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/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 +2 -2
- package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
- 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 +593 -31
- 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/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -33,6 +33,7 @@ declare function __VLS_template(): {
|
|
|
33
33
|
readonly mode?: FieldMode | undefined;
|
|
34
34
|
readonly class?: unknown;
|
|
35
35
|
readonly style?: unknown;
|
|
36
|
+
readonly emptyText?: string | undefined;
|
|
36
37
|
readonly size?: "small" | "large" | "middle" | undefined;
|
|
37
38
|
readonly type?: string | undefined;
|
|
38
39
|
readonly step?: ValueType | undefined;
|
|
@@ -79,7 +80,6 @@ declare function __VLS_template(): {
|
|
|
79
80
|
type: "up" | "down";
|
|
80
81
|
}) => void) | undefined;
|
|
81
82
|
readonly inputMode?: "input" | "spinner" | undefined;
|
|
82
|
-
readonly emptyText?: string | undefined;
|
|
83
83
|
readonly thousands?: boolean | undefined;
|
|
84
84
|
readonly limitDecimalsRetain?: boolean | undefined;
|
|
85
85
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -554,6 +554,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
554
554
|
readonly mode?: FieldMode | undefined;
|
|
555
555
|
readonly class?: unknown;
|
|
556
556
|
readonly style?: unknown;
|
|
557
|
+
readonly emptyText?: string | undefined;
|
|
557
558
|
readonly size?: "small" | "large" | "middle" | undefined;
|
|
558
559
|
readonly type?: string | undefined;
|
|
559
560
|
readonly step?: ValueType | undefined;
|
|
@@ -600,7 +601,6 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
600
601
|
type: "up" | "down";
|
|
601
602
|
}) => void) | undefined;
|
|
602
603
|
readonly inputMode?: "input" | "spinner" | undefined;
|
|
603
|
-
readonly emptyText?: string | undefined;
|
|
604
604
|
readonly thousands?: boolean | undefined;
|
|
605
605
|
readonly limitDecimalsRetain?: boolean | undefined;
|
|
606
606
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -49,6 +49,7 @@ declare function __VLS_template(): {
|
|
|
49
49
|
readonly mode?: FieldMode | undefined;
|
|
50
50
|
readonly class?: unknown;
|
|
51
51
|
readonly style?: unknown;
|
|
52
|
+
readonly emptyText?: string | undefined;
|
|
52
53
|
readonly size?: "small" | "large" | "middle" | undefined;
|
|
53
54
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
54
55
|
readonly onChange?: ((value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void) | undefined;
|
|
@@ -127,7 +128,6 @@ declare function __VLS_template(): {
|
|
|
127
128
|
readonly showAction?: ("click" | "focus")[] | undefined;
|
|
128
129
|
readonly onPopupScroll?: ((e: UIEvent) => void) | undefined;
|
|
129
130
|
readonly onInputKeyDown?: ((e: KeyboardEvent) => void) | undefined;
|
|
130
|
-
readonly emptyText?: string | undefined;
|
|
131
131
|
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
132
132
|
readonly multiple?: boolean | undefined;
|
|
133
133
|
readonly value?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
@@ -713,6 +713,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
713
713
|
readonly mode?: FieldMode | undefined;
|
|
714
714
|
readonly class?: unknown;
|
|
715
715
|
readonly style?: unknown;
|
|
716
|
+
readonly emptyText?: string | undefined;
|
|
716
717
|
readonly size?: "small" | "large" | "middle" | undefined;
|
|
717
718
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
718
719
|
readonly onChange?: ((value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void) | undefined;
|
|
@@ -791,7 +792,6 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
791
792
|
readonly showAction?: ("click" | "focus")[] | undefined;
|
|
792
793
|
readonly onPopupScroll?: ((e: UIEvent) => void) | undefined;
|
|
793
794
|
readonly onInputKeyDown?: ((e: KeyboardEvent) => void) | undefined;
|
|
794
|
-
readonly emptyText?: string | undefined;
|
|
795
795
|
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
796
796
|
readonly multiple?: boolean | undefined;
|
|
797
797
|
readonly value?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
@@ -25,6 +25,7 @@ declare function __VLS_template(): {
|
|
|
25
25
|
readonly mode?: FieldMode | undefined;
|
|
26
26
|
readonly class?: unknown;
|
|
27
27
|
readonly style?: unknown;
|
|
28
|
+
readonly emptyText?: string | undefined;
|
|
28
29
|
readonly size?: "small" | "default" | undefined;
|
|
29
30
|
readonly onBlur?: FocusEventHandler | undefined;
|
|
30
31
|
readonly onChange?: ((checked: string | number | boolean, e: Event) => void) | undefined;
|
|
@@ -43,7 +44,6 @@ declare function __VLS_template(): {
|
|
|
43
44
|
readonly checkedValue?: string | number | boolean | undefined;
|
|
44
45
|
readonly unCheckedValue?: string | number | boolean | undefined;
|
|
45
46
|
readonly 'onUpdate:checked'?: (((checked: string | number | boolean) => void) & ((...args: any[]) => any)) | undefined;
|
|
46
|
-
readonly emptyText?: string | undefined;
|
|
47
47
|
readonly onAction?: ((checked: string | boolean | number, e?: Event) => boolean | Promise<boolean>) | undefined;
|
|
48
48
|
readonly confirm?: ( ApFieldSwitchConfirmConfig | ((checked: string | number | boolean) => ApFieldSwitchConfirmConfig)) | undefined;
|
|
49
49
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -253,6 +253,7 @@ declare const __VLS_component: DefineComponent<ApFormItemSwitchProps, {
|
|
|
253
253
|
readonly mode?: FieldMode | undefined;
|
|
254
254
|
readonly class?: unknown;
|
|
255
255
|
readonly style?: unknown;
|
|
256
|
+
readonly emptyText?: string | undefined;
|
|
256
257
|
readonly size?: "small" | "default" | undefined;
|
|
257
258
|
readonly onBlur?: FocusEventHandler | undefined;
|
|
258
259
|
readonly onChange?: ((checked: string | number | boolean, e: Event) => void) | undefined;
|
|
@@ -271,7 +272,6 @@ declare const __VLS_component: DefineComponent<ApFormItemSwitchProps, {
|
|
|
271
272
|
readonly checkedValue?: string | number | boolean | undefined;
|
|
272
273
|
readonly unCheckedValue?: string | number | boolean | undefined;
|
|
273
274
|
readonly 'onUpdate:checked'?: (((checked: string | number | boolean) => void) & ((...args: any[]) => any)) | undefined;
|
|
274
|
-
readonly emptyText?: string | undefined;
|
|
275
275
|
readonly onAction?: ((checked: string | boolean | number, e?: Event) => boolean | Promise<boolean>) | undefined;
|
|
276
276
|
readonly confirm?: ( ApFieldSwitchConfirmConfig | ((checked: string | number | boolean) => ApFieldSwitchConfirmConfig)) | undefined;
|
|
277
277
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|