@aplus-frontend/ui 0.4.1 → 0.4.3
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/date/helper.d.ts +1 -1
- package/es/src/ap-field/date/helper.mjs +9 -9
- package/es/src/ap-field/date/index.vue.mjs +33 -25
- package/es/src/ap-field/date-range/index.vue.mjs +44 -43
- package/es/src/ap-field/interface.d.ts +0 -6
- package/es/src/ap-field/number/index.vue.d.ts +322 -1
- package/es/src/ap-field/radio/index.vue.d.ts +98 -2
- package/es/src/ap-field/rate/index.vue.d.ts +82 -1
- package/es/src/ap-field/select/index.vue.d.ts +407 -1
- package/es/src/ap-field/select/index.vue.mjs +14 -13
- package/es/src/ap-field/slider/index.vue.d.ts +257 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/es/src/ap-form/ap-form.vue.d.ts +636 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/es/src/ap-form/item/index.vue.d.ts +777 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +139 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/es/src/ap-form/modal-form/index.vue.mjs +64 -66
- package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/es/src/ap-list/index.vue.d.ts +1 -1
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/es/src/ap-scroll-bar/index.d.ts +3 -1
- package/es/src/ap-table/ap-table.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +98 -97
- package/es/src/ap-table/constants.d.ts +2263 -13
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +11 -10
- package/es/src/ap-table/utils.d.ts +1180 -8
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +45 -55
- package/es/src/business/ap-batch-action/index.d.ts +5 -3
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +9 -8
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
- package/es/src/business/ap-group-search/index.d.ts +418 -4
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -14
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +22 -2
- package/es/src/business/ap-table-modal/interface.d.ts +2 -2
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +146 -3
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/es/src/business/hooks/usePageListApTable.mjs +20 -18
- package/es/src/editable-table/form-item.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/lib/src/ap-field/date/helper.d.ts +1 -1
- package/lib/src/ap-field/date/helper.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +0 -6
- package/lib/src/ap-field/number/index.vue.d.ts +322 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
- package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
- package/lib/src/ap-field/select/index.vue.d.ts +407 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/lib/src/ap-form/item/index.vue.d.ts +777 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +139 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/lib/src/ap-list/index.vue.d.ts +1 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/lib/src/ap-scroll-bar/index.d.ts +3 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2263 -13
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +1180 -8
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action/index.d.ts +5 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +418 -4
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +22 -2
- package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/lib/src/business/batch-input-group/index.vue.d.ts +146 -3
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/package.json +5 -5
- package/theme/ap-form/index.css +3 -4
- package/theme/ap-form/modal-form.css +3 -4
- package/theme/ap-form/modal-form.less +3 -4
- package/theme/ap-table/ap-table.css +3 -4
- package/theme/ap-table-modal/index.css +3 -4
- package/theme/editable-table/index.css +3 -4
- package/theme/index.css +3 -4
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { BatchInputGroupProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
import { FieldMode } from '../../ap-field';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
|
+
import { FieldMode, ApFieldTextProps } from '../../ap-field';
|
|
4
|
+
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
5
|
+
import { FocusEventHandler, ChangeEventHandler, CompositionEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
|
+
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
|
|
7
|
+
import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
|
|
8
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
4
9
|
declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
5
10
|
"update:value": (...args: any[]) => void;
|
|
6
11
|
}, string, PublicProps, Readonly<BatchInputGroupProps> & Readonly<{
|
|
@@ -13,5 +18,143 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
13
18
|
allowClear: boolean;
|
|
14
19
|
emptyText: string;
|
|
15
20
|
hasAll: boolean;
|
|
16
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
21
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
22
|
+
containerRef: HTMLDivElement;
|
|
23
|
+
inputRef: ({
|
|
24
|
+
$: ComponentInternalInstance;
|
|
25
|
+
$data: {};
|
|
26
|
+
$props: {
|
|
27
|
+
readonly mode?: FieldMode | undefined;
|
|
28
|
+
readonly class?: unknown;
|
|
29
|
+
readonly style?: unknown;
|
|
30
|
+
readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password" | undefined;
|
|
31
|
+
readonly lazy?: boolean | undefined;
|
|
32
|
+
readonly size?: ButtonSize;
|
|
33
|
+
readonly hidden?: boolean | undefined;
|
|
34
|
+
readonly onBlur?: FocusEventHandler | undefined;
|
|
35
|
+
readonly onChange?: ChangeEventHandler | undefined;
|
|
36
|
+
readonly onCompositionend?: CompositionEventHandler | undefined;
|
|
37
|
+
readonly onCompositionstart?: CompositionEventHandler | undefined;
|
|
38
|
+
readonly onFocus?: FocusEventHandler | undefined;
|
|
39
|
+
readonly onInput?: ChangeEventHandler | undefined;
|
|
40
|
+
readonly onKeydown?: KeyboardEventHandler | undefined;
|
|
41
|
+
readonly onKeyup?: KeyboardEventHandler | undefined;
|
|
42
|
+
readonly onMousedown?: MouseEventHandler | undefined;
|
|
43
|
+
readonly value?: string | number | undefined;
|
|
44
|
+
readonly disabled?: boolean | undefined;
|
|
45
|
+
readonly bordered?: boolean | undefined;
|
|
46
|
+
readonly prefixCls?: string | undefined;
|
|
47
|
+
readonly name?: string | undefined;
|
|
48
|
+
readonly autocomplete?: string | undefined;
|
|
49
|
+
readonly status?: "" | "error" | "warning" | undefined;
|
|
50
|
+
readonly id?: string | undefined;
|
|
51
|
+
readonly placeholder?: string | number | undefined;
|
|
52
|
+
readonly prefix?: any;
|
|
53
|
+
readonly loading?: boolean | undefined;
|
|
54
|
+
readonly autofocus?: boolean | undefined;
|
|
55
|
+
readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
56
|
+
readonly suffix?: any;
|
|
57
|
+
readonly focused?: boolean | undefined;
|
|
58
|
+
readonly defaultValue?: string | number | undefined;
|
|
59
|
+
readonly maxlength?: number | undefined;
|
|
60
|
+
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
61
|
+
readonly htmlSize?: number | undefined;
|
|
62
|
+
readonly onPressEnter?: KeyboardEventHandler | undefined;
|
|
63
|
+
readonly onMouseUp?: MouseEventHandler | undefined;
|
|
64
|
+
readonly onRawInput?: ChangeEventHandler | undefined;
|
|
65
|
+
readonly valueModifiers?: Record<string, any> | undefined;
|
|
66
|
+
readonly inputElement?: any;
|
|
67
|
+
readonly triggerFocus?: (() => void) | undefined;
|
|
68
|
+
readonly readonly?: boolean | undefined;
|
|
69
|
+
readonly handleReset?: MouseEventHandler | undefined;
|
|
70
|
+
readonly addonBefore?: any;
|
|
71
|
+
readonly addonAfter?: any;
|
|
72
|
+
readonly clearIcon?: any;
|
|
73
|
+
readonly allowClear?: boolean | undefined;
|
|
74
|
+
readonly emptyText?: string | undefined;
|
|
75
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
76
|
+
$attrs: {
|
|
77
|
+
[x: string]: unknown;
|
|
78
|
+
};
|
|
79
|
+
$refs: {
|
|
80
|
+
[x: string]: unknown;
|
|
81
|
+
};
|
|
82
|
+
$slots: Readonly<{
|
|
83
|
+
[name: string]: Slot<any> | undefined;
|
|
84
|
+
}>;
|
|
85
|
+
$root: ComponentPublicInstance | null;
|
|
86
|
+
$parent: ComponentPublicInstance | null;
|
|
87
|
+
$host: Element | null;
|
|
88
|
+
$emit: (event: "update:value", ...args: any[]) => void;
|
|
89
|
+
$el: any;
|
|
90
|
+
$options: ComponentOptionsBase<Readonly< ApFieldTextProps> & Readonly<{
|
|
91
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
92
|
+
}>, {
|
|
93
|
+
focus: (options?: InputFocusOptions) => void;
|
|
94
|
+
blur: () => void;
|
|
95
|
+
input: any;
|
|
96
|
+
setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
|
|
97
|
+
select: () => void;
|
|
98
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
99
|
+
"update:value": (...args: any[]) => void;
|
|
100
|
+
}, string, {
|
|
101
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
102
|
+
mode: FieldMode;
|
|
103
|
+
disabled: boolean;
|
|
104
|
+
bordered: boolean;
|
|
105
|
+
lazy: boolean;
|
|
106
|
+
allowClear: boolean;
|
|
107
|
+
emptyText: string;
|
|
108
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
109
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
110
|
+
created?: (() => void) | (() => void)[];
|
|
111
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
112
|
+
mounted?: (() => void) | (() => void)[];
|
|
113
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
114
|
+
updated?: (() => void) | (() => void)[];
|
|
115
|
+
activated?: (() => void) | (() => void)[];
|
|
116
|
+
deactivated?: (() => void) | (() => void)[];
|
|
117
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
118
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
119
|
+
destroyed?: (() => void) | (() => void)[];
|
|
120
|
+
unmounted?: (() => void) | (() => void)[];
|
|
121
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
122
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
123
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
124
|
+
};
|
|
125
|
+
$forceUpdate: () => void;
|
|
126
|
+
$nextTick: nextTick;
|
|
127
|
+
$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;
|
|
128
|
+
} & Readonly<{
|
|
129
|
+
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
|
|
130
|
+
mode: FieldMode;
|
|
131
|
+
disabled: boolean;
|
|
132
|
+
bordered: boolean;
|
|
133
|
+
lazy: boolean;
|
|
134
|
+
allowClear: boolean;
|
|
135
|
+
emptyText: string;
|
|
136
|
+
}> & Omit<Readonly< ApFieldTextProps> & Readonly<{
|
|
137
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
138
|
+
}>, "blur" | "focus" | "input" | "select" | ("type" | "mode" | "disabled" | "bordered" | "lazy" | "allowClear" | "emptyText") | "setSelectionRange"> & ShallowUnwrapRef<{
|
|
139
|
+
focus: (options?: InputFocusOptions) => void;
|
|
140
|
+
blur: () => void;
|
|
141
|
+
input: any;
|
|
142
|
+
setSelectionRange: (start: number, end: number, direction?: "forward" | "backward" | "none") => void;
|
|
143
|
+
select: () => void;
|
|
144
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
145
|
+
$slots: Readonly<{
|
|
146
|
+
addonAfter?: any;
|
|
147
|
+
addonBefore?: any;
|
|
148
|
+
prefix?: any;
|
|
149
|
+
suffix?: any;
|
|
150
|
+
clearIcon?: any;
|
|
151
|
+
}> & {
|
|
152
|
+
addonAfter?: any;
|
|
153
|
+
addonBefore?: any;
|
|
154
|
+
prefix?: any;
|
|
155
|
+
suffix?: any;
|
|
156
|
+
clearIcon?: any;
|
|
157
|
+
};
|
|
158
|
+
}) | null;
|
|
159
|
+
}, HTMLDivElement>;
|
|
17
160
|
export default _default;
|
|
@@ -1,8 +1,273 @@
|
|
|
1
1
|
import { BatchInputGroupPopoverInputProps } from '../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
+
import { AutoSizeType } from '@aplus-frontend/antdv/es/input/inputProps';
|
|
4
|
+
import { CompositionEventHandler, FocusEventHandler, ChangeEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
5
|
+
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
6
|
+
import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
|
|
7
|
+
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
8
|
+
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
3
9
|
declare const _default: DefineComponent<BatchInputGroupPopoverInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
10
|
"update:value": (...args: any[]) => void;
|
|
5
11
|
}, string, PublicProps, Readonly<BatchInputGroupPopoverInputProps> & Readonly<{
|
|
6
12
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
13
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
14
|
+
textAreaRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
15
|
+
rows: NumberConstructor;
|
|
16
|
+
autosize: {
|
|
17
|
+
type: PropType<boolean | AutoSizeType>;
|
|
18
|
+
default: any;
|
|
19
|
+
};
|
|
20
|
+
autoSize: {
|
|
21
|
+
type: PropType<boolean | AutoSizeType>;
|
|
22
|
+
default: any;
|
|
23
|
+
};
|
|
24
|
+
onResize: {
|
|
25
|
+
type: PropType<(size: {
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
}) => void>;
|
|
29
|
+
};
|
|
30
|
+
onCompositionstart: {
|
|
31
|
+
type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
|
|
32
|
+
};
|
|
33
|
+
onCompositionend: {
|
|
34
|
+
type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
|
|
35
|
+
};
|
|
36
|
+
valueModifiers: ObjectConstructor;
|
|
37
|
+
size: {
|
|
38
|
+
type: PropType<SizeType>;
|
|
39
|
+
};
|
|
40
|
+
value: {
|
|
41
|
+
type: PropType<string | number>;
|
|
42
|
+
default: any;
|
|
43
|
+
};
|
|
44
|
+
name: StringConstructor;
|
|
45
|
+
type: {
|
|
46
|
+
type: PropType<"number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel">;
|
|
47
|
+
default: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
48
|
+
};
|
|
49
|
+
onFocus: PropType<FocusEventHandler>;
|
|
50
|
+
onBlur: PropType<FocusEventHandler>;
|
|
51
|
+
onChange: PropType<ChangeEventHandler>;
|
|
52
|
+
onInput: PropType<ChangeEventHandler>;
|
|
53
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
54
|
+
onKeyup: PropType<KeyboardEventHandler>;
|
|
55
|
+
onMousedown: {
|
|
56
|
+
type: PropType<MouseEventHandler>;
|
|
57
|
+
default: any;
|
|
58
|
+
};
|
|
59
|
+
focused: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: any;
|
|
62
|
+
};
|
|
63
|
+
hidden: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: any;
|
|
66
|
+
};
|
|
67
|
+
disabled: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: any;
|
|
70
|
+
};
|
|
71
|
+
prefixCls: StringConstructor;
|
|
72
|
+
id: StringConstructor;
|
|
73
|
+
autofocus: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: any;
|
|
76
|
+
};
|
|
77
|
+
autocomplete: StringConstructor;
|
|
78
|
+
readonly: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: any;
|
|
81
|
+
};
|
|
82
|
+
status: PropType<"" | "error" | "warning">;
|
|
83
|
+
defaultValue: {
|
|
84
|
+
type: PropType<string | number>;
|
|
85
|
+
default: any;
|
|
86
|
+
};
|
|
87
|
+
'onUpdate:value': PropType<(val: string) => void>;
|
|
88
|
+
loading: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: any;
|
|
91
|
+
};
|
|
92
|
+
placeholder: {
|
|
93
|
+
type: PropType<string | number>;
|
|
94
|
+
};
|
|
95
|
+
lazy: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
maxlength: NumberConstructor;
|
|
100
|
+
bordered: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: any;
|
|
103
|
+
};
|
|
104
|
+
showCount: {
|
|
105
|
+
type: PropType<boolean | ShowCountProps>;
|
|
106
|
+
};
|
|
107
|
+
htmlSize: NumberConstructor;
|
|
108
|
+
onPressEnter: PropType<KeyboardEventHandler>;
|
|
109
|
+
onMouseUp: {
|
|
110
|
+
type: PropType<MouseEventHandler>;
|
|
111
|
+
default: any;
|
|
112
|
+
};
|
|
113
|
+
onRawInput: PropType<ChangeEventHandler>;
|
|
114
|
+
inputElement: VueTypeValidableDef<any>;
|
|
115
|
+
triggerFocus: PropType<() => void>;
|
|
116
|
+
handleReset: PropType<MouseEventHandler>;
|
|
117
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
118
|
+
allowClear: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: any;
|
|
121
|
+
};
|
|
122
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
123
|
+
value: string | number;
|
|
124
|
+
type: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
125
|
+
onMousedown: MouseEventHandler;
|
|
126
|
+
focused: boolean;
|
|
127
|
+
hidden: boolean;
|
|
128
|
+
disabled: boolean;
|
|
129
|
+
autofocus: boolean;
|
|
130
|
+
readonly: boolean;
|
|
131
|
+
defaultValue: string | number;
|
|
132
|
+
loading: boolean;
|
|
133
|
+
lazy: boolean;
|
|
134
|
+
bordered: boolean;
|
|
135
|
+
onMouseUp: MouseEventHandler;
|
|
136
|
+
allowClear: boolean;
|
|
137
|
+
autosize: any;
|
|
138
|
+
autoSize: any;
|
|
139
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
140
|
+
P: {};
|
|
141
|
+
B: {};
|
|
142
|
+
D: {};
|
|
143
|
+
C: {};
|
|
144
|
+
M: {};
|
|
145
|
+
Defaults: {};
|
|
146
|
+
}, Readonly< ExtractPropTypes<{
|
|
147
|
+
rows: NumberConstructor;
|
|
148
|
+
autosize: {
|
|
149
|
+
type: PropType<boolean | AutoSizeType>;
|
|
150
|
+
default: any;
|
|
151
|
+
};
|
|
152
|
+
autoSize: {
|
|
153
|
+
type: PropType<boolean | AutoSizeType>;
|
|
154
|
+
default: any;
|
|
155
|
+
};
|
|
156
|
+
onResize: {
|
|
157
|
+
type: PropType<(size: {
|
|
158
|
+
width: number;
|
|
159
|
+
height: number;
|
|
160
|
+
}) => void>;
|
|
161
|
+
};
|
|
162
|
+
onCompositionstart: {
|
|
163
|
+
type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
|
|
164
|
+
};
|
|
165
|
+
onCompositionend: {
|
|
166
|
+
type: PropType< CompositionEventHandler | CompositionEventHandler[]>;
|
|
167
|
+
};
|
|
168
|
+
valueModifiers: ObjectConstructor;
|
|
169
|
+
size: {
|
|
170
|
+
type: PropType<SizeType>;
|
|
171
|
+
};
|
|
172
|
+
value: {
|
|
173
|
+
type: PropType<string | number>;
|
|
174
|
+
default: any;
|
|
175
|
+
};
|
|
176
|
+
name: StringConstructor;
|
|
177
|
+
type: {
|
|
178
|
+
type: PropType<"number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel">;
|
|
179
|
+
default: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
180
|
+
};
|
|
181
|
+
onFocus: PropType<FocusEventHandler>;
|
|
182
|
+
onBlur: PropType<FocusEventHandler>;
|
|
183
|
+
onChange: PropType<ChangeEventHandler>;
|
|
184
|
+
onInput: PropType<ChangeEventHandler>;
|
|
185
|
+
onKeydown: PropType<KeyboardEventHandler>;
|
|
186
|
+
onKeyup: PropType<KeyboardEventHandler>;
|
|
187
|
+
onMousedown: {
|
|
188
|
+
type: PropType<MouseEventHandler>;
|
|
189
|
+
default: any;
|
|
190
|
+
};
|
|
191
|
+
focused: {
|
|
192
|
+
type: BooleanConstructor;
|
|
193
|
+
default: any;
|
|
194
|
+
};
|
|
195
|
+
hidden: {
|
|
196
|
+
type: BooleanConstructor;
|
|
197
|
+
default: any;
|
|
198
|
+
};
|
|
199
|
+
disabled: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
default: any;
|
|
202
|
+
};
|
|
203
|
+
prefixCls: StringConstructor;
|
|
204
|
+
id: StringConstructor;
|
|
205
|
+
autofocus: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: any;
|
|
208
|
+
};
|
|
209
|
+
autocomplete: StringConstructor;
|
|
210
|
+
readonly: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: any;
|
|
213
|
+
};
|
|
214
|
+
status: PropType<"" | "error" | "warning">;
|
|
215
|
+
defaultValue: {
|
|
216
|
+
type: PropType<string | number>;
|
|
217
|
+
default: any;
|
|
218
|
+
};
|
|
219
|
+
'onUpdate:value': PropType<(val: string) => void>;
|
|
220
|
+
loading: {
|
|
221
|
+
type: BooleanConstructor;
|
|
222
|
+
default: any;
|
|
223
|
+
};
|
|
224
|
+
placeholder: {
|
|
225
|
+
type: PropType<string | number>;
|
|
226
|
+
};
|
|
227
|
+
lazy: {
|
|
228
|
+
type: BooleanConstructor;
|
|
229
|
+
default: boolean;
|
|
230
|
+
};
|
|
231
|
+
maxlength: NumberConstructor;
|
|
232
|
+
bordered: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
default: any;
|
|
235
|
+
};
|
|
236
|
+
showCount: {
|
|
237
|
+
type: PropType<boolean | ShowCountProps>;
|
|
238
|
+
};
|
|
239
|
+
htmlSize: NumberConstructor;
|
|
240
|
+
onPressEnter: PropType<KeyboardEventHandler>;
|
|
241
|
+
onMouseUp: {
|
|
242
|
+
type: PropType<MouseEventHandler>;
|
|
243
|
+
default: any;
|
|
244
|
+
};
|
|
245
|
+
onRawInput: PropType<ChangeEventHandler>;
|
|
246
|
+
inputElement: VueTypeValidableDef<any>;
|
|
247
|
+
triggerFocus: PropType<() => void>;
|
|
248
|
+
handleReset: PropType<MouseEventHandler>;
|
|
249
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
250
|
+
allowClear: {
|
|
251
|
+
type: BooleanConstructor;
|
|
252
|
+
default: any;
|
|
253
|
+
};
|
|
254
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
255
|
+
value: string | number;
|
|
256
|
+
type: "number" | "reset" | "submit" | "button" | "time" | "image" | "text" | "search" | "hidden" | "color" | "checkbox" | "radio" | "range" | "date" | "url" | "email" | "week" | "month" | "datetime-local" | "file" | "password" | "tel";
|
|
257
|
+
onMousedown: MouseEventHandler;
|
|
258
|
+
focused: boolean;
|
|
259
|
+
hidden: boolean;
|
|
260
|
+
disabled: boolean;
|
|
261
|
+
autofocus: boolean;
|
|
262
|
+
readonly: boolean;
|
|
263
|
+
defaultValue: string | number;
|
|
264
|
+
loading: boolean;
|
|
265
|
+
lazy: boolean;
|
|
266
|
+
bordered: boolean;
|
|
267
|
+
onMouseUp: MouseEventHandler;
|
|
268
|
+
allowClear: boolean;
|
|
269
|
+
autosize: any;
|
|
270
|
+
autoSize: any;
|
|
271
|
+
}> | null;
|
|
272
|
+
}, HTMLDivElement>;
|
|
8
273
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { merge as
|
|
1
|
+
import { merge as p, cloneDeep as h } from "lodash-unified";
|
|
2
2
|
import { ref as S } from "vue";
|
|
3
3
|
import { useTableRefresh as b } from "./useTableRefresh.mjs";
|
|
4
4
|
function g(s) {
|
|
@@ -7,10 +7,10 @@ function g(s) {
|
|
|
7
7
|
} : s;
|
|
8
8
|
}
|
|
9
9
|
function I(s) {
|
|
10
|
-
const
|
|
10
|
+
const a = S(null), {
|
|
11
11
|
isShowRowSelection: u = !0,
|
|
12
12
|
clearSelectionOnRequest: i = !0,
|
|
13
|
-
transformSearchFormValues:
|
|
13
|
+
transformSearchFormValues: o,
|
|
14
14
|
api: l,
|
|
15
15
|
tableRefresh: f = !1,
|
|
16
16
|
...m
|
|
@@ -18,12 +18,12 @@ function I(s) {
|
|
|
18
18
|
let n = null;
|
|
19
19
|
const c = () => {
|
|
20
20
|
var e, r;
|
|
21
|
-
(r = (e =
|
|
21
|
+
(r = (e = a.value) == null ? void 0 : e.rowSelection) == null || r.clearAll();
|
|
22
22
|
};
|
|
23
23
|
return b({
|
|
24
24
|
...g(f),
|
|
25
|
-
apTableRef:
|
|
26
|
-
}), [
|
|
25
|
+
apTableRef: a
|
|
26
|
+
}), [p(
|
|
27
27
|
{
|
|
28
28
|
// scroll,tableLayout,columnResizable设置表格可拖动
|
|
29
29
|
scroll: { x: "100%", y: "100%" },
|
|
@@ -33,13 +33,13 @@ function I(s) {
|
|
|
33
33
|
class: "ap-table--sticky",
|
|
34
34
|
request: l ? async (e) => {
|
|
35
35
|
n = e.sort;
|
|
36
|
-
const r =
|
|
36
|
+
const r = o ? o(e) : e;
|
|
37
37
|
try {
|
|
38
38
|
if (!l) throw new Error("api is not defined");
|
|
39
|
-
const { records: t, total:
|
|
39
|
+
const { records: t, total: d } = await l(r);
|
|
40
40
|
return i && c(), {
|
|
41
41
|
data: t,
|
|
42
|
-
total:
|
|
42
|
+
total: d
|
|
43
43
|
};
|
|
44
44
|
} catch (t) {
|
|
45
45
|
return console.error(t), {
|
|
@@ -54,29 +54,31 @@ function I(s) {
|
|
|
54
54
|
columnWidth: 50
|
|
55
55
|
} : void 0,
|
|
56
56
|
ref(e) {
|
|
57
|
-
|
|
58
|
-
}
|
|
57
|
+
a.value = e;
|
|
58
|
+
},
|
|
59
|
+
// 新UI规范,需要都添加分割线
|
|
60
|
+
card: !0
|
|
59
61
|
},
|
|
60
62
|
m
|
|
61
63
|
), {
|
|
62
64
|
reload: () => {
|
|
63
65
|
var e;
|
|
64
|
-
(e =
|
|
66
|
+
(e = a.value) == null || e.submit();
|
|
65
67
|
},
|
|
66
68
|
reset: () => {
|
|
67
69
|
var e;
|
|
68
|
-
(e =
|
|
70
|
+
(e = a.value) == null || e.reset();
|
|
69
71
|
},
|
|
70
72
|
getSearchFormValues: (e) => {
|
|
71
73
|
var t;
|
|
72
|
-
const r = ((t =
|
|
73
|
-
return
|
|
74
|
+
const r = ((t = a.value) == null ? void 0 : t.getSearchFormValues(e)) || {};
|
|
75
|
+
return o ? o(r) : r;
|
|
74
76
|
},
|
|
75
|
-
getApTableInstance: () =>
|
|
77
|
+
getApTableInstance: () => a.value,
|
|
76
78
|
getSearchFormValuesAndSorted: (e) => {
|
|
77
79
|
var t;
|
|
78
|
-
const r = ((t =
|
|
79
|
-
return r.sort = n && h(n),
|
|
80
|
+
const r = ((t = a.value) == null ? void 0 : t.getSearchFormValues(e)) || {};
|
|
81
|
+
return r.sort = n && h(n), o ? o(r) : r;
|
|
80
82
|
},
|
|
81
83
|
clearSelection: c
|
|
82
84
|
}];
|
|
@@ -3,7 +3,7 @@ import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-
|
|
|
3
3
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
4
4
|
import { UnwrapRefSimple } from '@vue/reactivity';
|
|
5
5
|
declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> &
|
|
6
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
7
7
|
expose(exposed: ShallowUnwrapRef<{
|
|
8
8
|
add: (defaultValue?: any, insertIndex?: number) => void;
|
|
9
9
|
remove: (index: number | number[]) => void;
|
|
@@ -6,7 +6,7 @@ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, S
|
|
|
6
6
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
8
8
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
9
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:value"> &
|
|
9
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:value"> & EditableTableProps<RecordType> & Partial<{}>> & PublicProps;
|
|
10
10
|
expose(exposed: ShallowUnwrapRef<{
|
|
11
11
|
resetFields: () => void;
|
|
12
12
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|