@aplus-frontend/ui 7.12.3 → 7.12.5
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/ag-grid/editable/form-item.vue.d.ts +4 -2
- package/es/src/ag-grid/editable/index.vue.d.ts +4 -2
- package/es/src/ag-grid/index.vue.d.ts +4 -2
- package/es/src/ag-grid/index.vue.mjs +33 -31
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +2 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/es/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/es/src/ap-grid/index.vue.d.ts +4 -2
- package/es/src/ap-list/index.vue.d.ts +4 -2
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +4 -2
- package/es/src/ap-table/constants.d.ts +6 -6
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/es/src/business/ap-select-layout/index.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/es/src/business/ap-table-modal/index.d.ts +5 -17
- package/es/src/business/ap-upload/apUpload.vue.d.ts +19 -0
- package/es/src/business/ap-upload/apUpload.vue.mjs +38 -30
- package/es/src/business/ap-upload/apUploadTypes.d.ts +9 -0
- package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +101 -101
- package/es/src/business/ap-value-select-card/index.vue.d.ts +4 -2
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +4 -3
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
- package/es/src/business/batch-input-group/index.vue.mjs +67 -72
- package/es/src/business/batch-input-group/interface.d.ts +3 -0
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +65 -43
- package/es/src/business/batch-input-group/style/index.mjs +9 -9
- package/es/src/check-card/style/index.mjs +1 -1
- package/es/src/config-provider/config-provider.mjs +33 -32
- package/es/src/config-provider/hooks/use-global-config.mjs +40 -37
- package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/es/src/editable-table/form-item.vue.d.ts +4 -2
- package/es/src/editable-table/index.vue.d.ts +4 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/utils/cssinjs/utils.d.ts +1 -0
- package/es/src/utils/cssinjs/utils.mjs +9 -9
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ag-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ag-grid/index.vue.d.ts +4 -2
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/index.vue.d.ts +4 -2
- package/lib/src/ap-list/index.vue.d.ts +4 -2
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
- package/lib/src/ap-table/constants.d.ts +6 -6
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/lib/src/business/ap-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/lib/src/business/ap-table-modal/index.d.ts +5 -17
- package/lib/src/business/ap-upload/apUpload.vue.d.ts +19 -0
- package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/business/ap-upload/apUploadTypes.d.ts +9 -0
- package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue.d.ts +4 -2
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +4 -3
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/interface.d.ts +3 -0
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +3 -3
- package/lib/src/business/batch-input-group/style/index.js +1 -1
- package/lib/src/check-card/style/index.js +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.js +1 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/lib/src/editable-table/form-item.vue.d.ts +4 -2
- package/lib/src/editable-table/index.vue.d.ts +4 -2
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/utils/cssinjs/utils.d.ts +1 -0
- package/lib/src/utils/cssinjs/utils.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
|
@@ -5,13 +5,13 @@ import { ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, FieldMode,
|
|
|
5
5
|
import { ApFormItemSlots, ApFormItemTextPassword, ApActionGroupProps, GroupActionTypes } from '..';
|
|
6
6
|
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
7
7
|
import { KeyboardEventHandler, FocusEventHandler, ChangeEventHandler, CompositionEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
8
|
+
import { InputNumberProps, RadioChangeEvent, SelectProps, TreeSelectProps, CheckboxOptionType } from '@aplus-frontend/antdv';
|
|
8
9
|
import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
|
|
9
10
|
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
10
11
|
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
11
12
|
import { OnCleanup } from '@vue/reactivity';
|
|
12
13
|
import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
|
|
13
14
|
import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
|
|
14
|
-
import { RadioChangeEvent, TreeSelectProps, CheckboxOptionType } from '@aplus-frontend/antdv';
|
|
15
15
|
import { SelectValue, DefaultOptionType, LabeledValue, BaseOptionType } from '@aplus-frontend/antdv/es/select';
|
|
16
16
|
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
17
17
|
import { RenderDOMFunc, CustomTagProps, DropdownRender, DisplayValueType } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
@@ -221,7 +221,7 @@ export declare const apTableFormItemMap: {
|
|
|
221
221
|
offset: ValueType;
|
|
222
222
|
type: "up" | "down";
|
|
223
223
|
}) => void) | undefined;
|
|
224
|
-
readonly inputMode?: "
|
|
224
|
+
readonly inputMode?: InputNumberProps["mode"];
|
|
225
225
|
readonly emptyText?: string | undefined;
|
|
226
226
|
readonly thousands?: boolean | undefined;
|
|
227
227
|
readonly limitDecimalsRetain?: boolean | undefined;
|
|
@@ -1016,14 +1016,14 @@ export declare const apTableFormItemMap: {
|
|
|
1016
1016
|
readonly onPopupScroll?: ((e: UIEvent) => void) | undefined;
|
|
1017
1017
|
readonly onInputKeyDown?: ((e: KeyboardEvent) => void) | undefined;
|
|
1018
1018
|
readonly emptyText?: string | undefined;
|
|
1019
|
-
readonly request?: ((value?: string, extraParams?: Recordable) => Promise<
|
|
1019
|
+
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
1020
1020
|
readonly multiple?: boolean | undefined;
|
|
1021
|
-
readonly value?:
|
|
1021
|
+
readonly value?: SelectProps["value"];
|
|
1022
1022
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
1023
|
-
readonly searchMode?: "filter" | "request" | undefined;
|
|
1023
|
+
readonly searchMode?: ("filter" | "request") | undefined;
|
|
1024
1024
|
readonly refetchOnFocus?: boolean | undefined;
|
|
1025
1025
|
readonly lazy?: boolean | undefined;
|
|
1026
|
-
readonly addAll?: boolean | number | undefined;
|
|
1026
|
+
readonly addAll?: (boolean | number) | undefined;
|
|
1027
1027
|
readonly params?: Recordable | undefined;
|
|
1028
1028
|
readonly searchDelay?: number | undefined;
|
|
1029
1029
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -4,18 +4,18 @@ export declare const useTableColumnState: (columnSetting: ApTableSettingType, pe
|
|
|
4
4
|
columnState: Ref<{
|
|
5
5
|
key: string | number;
|
|
6
6
|
show?: boolean | undefined;
|
|
7
|
-
fixed?: "left" | "right" | undefined;
|
|
7
|
+
fixed?: ("left" | "right") | undefined;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
label?: any;
|
|
10
|
-
children?:
|
|
10
|
+
children?: any[] | undefined;
|
|
11
11
|
order?: number | undefined;
|
|
12
12
|
}[], ApColumnState[] | {
|
|
13
13
|
key: string | number;
|
|
14
14
|
show?: boolean | undefined;
|
|
15
|
-
fixed?: "left" | "right" | undefined;
|
|
15
|
+
fixed?: ("left" | "right") | undefined;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
17
|
label?: any;
|
|
18
|
-
children?:
|
|
18
|
+
children?: any[] | undefined;
|
|
19
19
|
order?: number | undefined;
|
|
20
20
|
}[]>;
|
|
21
21
|
selectAll: () => void;
|
|
@@ -3,8 +3,8 @@ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/bu
|
|
|
3
3
|
import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
4
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
5
|
import { MouseEventHandler, FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
|
+
import { ButtonProps, ItemType, MenuTheme, MenuMode, TableColumnsType } from '@aplus-frontend/antdv';
|
|
6
7
|
import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
7
|
-
import { ItemType, MenuTheme, MenuMode, TableColumnsType, ButtonProps } from '@aplus-frontend/antdv';
|
|
8
8
|
import { Key } from '@aplus-frontend/antdv/es/_util/type';
|
|
9
9
|
import { CSSMotionProps } from '@aplus-frontend/antdv/es/_util/transition';
|
|
10
10
|
import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler, PopupRender } from '@aplus-frontend/antdv/es/menu/src/interface';
|
|
@@ -72,7 +72,7 @@ declare const ApBatchActionGroup: {
|
|
|
72
72
|
color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
|
|
73
73
|
variant: PropType<ButtonVariantType>;
|
|
74
74
|
}>>, "type" | "onClick"> & {
|
|
75
|
-
type?:
|
|
75
|
+
type?: ButtonProps["type"] | "borderLink";
|
|
76
76
|
borderLinkColor?: string;
|
|
77
77
|
minWidth?: boolean | number | string;
|
|
78
78
|
lazy?: boolean | number;
|
|
@@ -394,7 +394,7 @@ declare const ApBatchActionGroup: {
|
|
|
394
394
|
color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
|
|
395
395
|
variant: PropType<ButtonVariantType>;
|
|
396
396
|
}>>, "type" | "onClick"> & {
|
|
397
|
-
type?:
|
|
397
|
+
type?: ButtonProps["type"] | "borderLink";
|
|
398
398
|
borderLinkColor?: string;
|
|
399
399
|
minWidth?: boolean | number | string;
|
|
400
400
|
lazy?: boolean | number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApExpandAlertProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, 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<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
|
|
@@ -24,7 +24,9 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
24
24
|
}): any;
|
|
25
25
|
};
|
|
26
26
|
emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
27
|
-
}>) => VNode
|
|
27
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}> & {
|
|
28
30
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
29
31
|
};
|
|
30
32
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApSelectItem } from './interface';
|
|
2
|
-
import { PublicProps, ShallowUnwrapRef, VNode, Plugin } from 'vue';
|
|
2
|
+
import { PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement, Plugin } from 'vue';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
5
5
|
attrs: any;
|
|
@@ -38,7 +38,9 @@ declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable
|
|
|
38
38
|
(event: "afterEnter", el: Element): void;
|
|
39
39
|
(event: "afterLeave", el: Element): void;
|
|
40
40
|
};
|
|
41
|
-
}>) => VNode
|
|
41
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
}> & {
|
|
42
44
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
43
45
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
44
46
|
$props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApSelectItem, ApSelectLayoutProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
3
3
|
declare const _default: <T extends ApSelectItem>(__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<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onOnSelect?: ((value: T) => any) | undefined;
|
|
@@ -19,7 +19,9 @@ declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaite
|
|
|
19
19
|
(event: "afterEnter", el: Element): void;
|
|
20
20
|
(event: "afterLeave", el: Element): void;
|
|
21
21
|
};
|
|
22
|
-
}>) => VNode
|
|
22
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}> & {
|
|
23
25
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
26
|
};
|
|
25
27
|
export default _default;
|
|
@@ -4,9 +4,9 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
|
|
|
4
4
|
import { ApTableModalProps, OpenOptions, OpenReturnType } from './interface';
|
|
5
5
|
import { Recordable } from '../../type';
|
|
6
6
|
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
7
|
+
import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
|
|
7
8
|
import { ApFormSearchFormPopoverSorterItem } from '../..';
|
|
8
9
|
import { MaskType } from '@aplus-frontend/antdv/es/_util/hooks/useMergedMask';
|
|
9
|
-
import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
@@ -44,14 +44,8 @@ declare const ApTableModal: {
|
|
|
44
44
|
};
|
|
45
45
|
y: undefined;
|
|
46
46
|
};
|
|
47
|
-
getPaging: () =>
|
|
48
|
-
|
|
49
|
-
pageSize: number;
|
|
50
|
-
}>;
|
|
51
|
-
setPaging: (nextPaging: Partial<{
|
|
52
|
-
current: number;
|
|
53
|
-
pageSize: number;
|
|
54
|
-
}>, refreshImmediately?: boolean) => void;
|
|
47
|
+
getPaging: () => InternalPagingType;
|
|
48
|
+
setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
|
|
55
49
|
getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
|
|
56
50
|
setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
|
|
57
51
|
resetSearchFormSorterItems: () => void;
|
|
@@ -156,14 +150,8 @@ declare const ApTableModal: {
|
|
|
156
150
|
};
|
|
157
151
|
y: undefined;
|
|
158
152
|
};
|
|
159
|
-
getPaging: () =>
|
|
160
|
-
|
|
161
|
-
pageSize: number;
|
|
162
|
-
}>;
|
|
163
|
-
setPaging: (nextPaging: Partial<{
|
|
164
|
-
current: number;
|
|
165
|
-
pageSize: number;
|
|
166
|
-
}>, refreshImmediately?: boolean) => void;
|
|
153
|
+
getPaging: () => InternalPagingType;
|
|
154
|
+
setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
|
|
167
155
|
getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
|
|
168
156
|
setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
|
|
169
157
|
resetSearchFormSorterItems: () => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UploadFile } from '@aplus-frontend/antdv';
|
|
1
2
|
import { PropType, VNode, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, RendererNode, RendererElement, ComponentProvideOptions } from 'vue';
|
|
2
3
|
import { FileUploadType, BeforeUpload, CustomRequest, ApUploadSlots } from './apUploadTypes';
|
|
3
4
|
import { GetOssAccess } from './hooks/useOss';
|
|
@@ -93,6 +94,14 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
93
94
|
type: StringConstructor;
|
|
94
95
|
default: undefined;
|
|
95
96
|
};
|
|
97
|
+
showDownload: {
|
|
98
|
+
type: PropType<boolean | ((file: UploadFile) => boolean)>;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
showPreview: {
|
|
102
|
+
type: PropType<boolean | ((file: UploadFile) => boolean)>;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
96
105
|
}>, {
|
|
97
106
|
done: ComputedRef<boolean>;
|
|
98
107
|
clear: typeof clear;
|
|
@@ -180,6 +189,14 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
180
189
|
type: StringConstructor;
|
|
181
190
|
default: undefined;
|
|
182
191
|
};
|
|
192
|
+
showDownload: {
|
|
193
|
+
type: PropType<boolean | ((file: UploadFile) => boolean)>;
|
|
194
|
+
default: boolean;
|
|
195
|
+
};
|
|
196
|
+
showPreview: {
|
|
197
|
+
type: PropType<boolean | ((file: UploadFile) => boolean)>;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
183
200
|
}>> & Readonly<{
|
|
184
201
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
185
202
|
}>, {
|
|
@@ -205,6 +222,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
205
222
|
baseDirName: string;
|
|
206
223
|
maxCountErrorMsg: string;
|
|
207
224
|
showUploadErrorMsg: boolean;
|
|
225
|
+
showDownload: boolean | ((file: UploadFile) => boolean);
|
|
226
|
+
showPreview: boolean | ((file: UploadFile) => boolean);
|
|
208
227
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
209
228
|
uploadRef: unknown;
|
|
210
229
|
}, HTMLDivElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),q=require("@aplus-frontend/antdv");require("../../config-provider/index.js");require("./components/MultipleFile.vue.js");require("./components/Picture.vue.js");require("./components/SingleFile.vue.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),q=require("@aplus-frontend/antdv");require("../../config-provider/index.js");require("./components/MultipleFile.vue.js");require("./components/Picture.vue.js");require("./components/SingleFile.vue.js");const h=require("./hooks/useOss.js"),F=require("./style/index.js"),w=require("./utils/accept.js"),M=require("../../config-provider/hooks/use-locale.js"),x=require("../../config-provider/hooks/use-namespace.js"),N=require("./components/Picture.vue2.js"),E=require("./components/MultipleFile.vue2.js"),O=require("./components/SingleFile.vue2.js"),U=require("../../config-provider/hooks/use-global-config.js"),j=["id"],k=e.defineComponent({name:"AplusFileUpload",__name:"apUpload",props:{dirName:{type:String,default:void 0},type:{type:String,default:"singleFile"},value:{type:[String,Object,Array],default:void 0},needName:{type:[Boolean,Object],default:void 0},accept:{type:String,default:void 0},maxSize:{type:Number,default:void 0},title:{type:String,default:""},subTitle:{type:[String,Object,null],default:""},maxCount:{type:Number,default:void 0},beforeUpload:{type:Function,default:void 0},customRequest:{type:Function,default:void 0},getOssAccess:{type:Function,default:void 0},onChange:{type:Function,default:void 0},maxSizeErrorMsg:{type:String,default:void 0},maxCountErrorMsg:{type:String,default:void 0},acceptErrorMsg:{type:String,default:void 0},onRemove:{type:Function,default:void 0},showUploadErrorMsg:{type:Boolean,default:!0},baseDirName:{type:String,default:"Frontend-Upload"},bucket:{type:String,default:void 0},showDownload:{type:[Boolean,Object],default:!0},showPreview:{type:[Boolean,Object],default:!0}},emits:["update:value"],setup(d,{expose:p,emit:c}){const{t:a,lang:v}=M.useLocale();w.injectLocaleToAccept(a),h.injectLocaleToOss(a,v);const{b:m}=x.useNamespace("ap-upload"),f=F.default("ap-upload"),u=e.ref(null),t=d,g=c,y={singleFile:O.default,multipleFile:E.default,picture:N.default},i=q.Form.useInjectFormItemContext(),_=e.computed({get(){return t.value},set(o){g("update:value",o),i?.onFieldChange(),t.onChange?.(o)}}),r=U.useGlobalConfig("apUpload");e.provide("value",_),e.provide("dirName",t.dirName??r.value?.dirName),e.provide("needName",t.needName??r.value?.needName??!1),e.provide("accept",t.accept??r.value?.accept??""),e.provide("maxSize",t.maxSize),e.provide("title",t.title),e.provide("subTitle",t.subTitle),e.provide("maxCount",t.maxCount),e.provide("beforeUpload",t.beforeUpload),e.provide("customRequest",t.customRequest),e.provide("baseDirName",t.baseDirName??"Frontend-Upload"),e.provide("getOssAccess",t.getOssAccess??r.value?.getOssAccess),e.provide("maxSizeErrorMsg",t.maxSizeErrorMsg),e.provide("maxCountErrorMsg",t.maxCountErrorMsg),e.provide("acceptErrorMsg",t.acceptErrorMsg),e.provide("onRemove",t.onRemove),e.provide("showUploadErrorMsg",t.showUploadErrorMsg),e.provide("bucket",t.bucket),e.provide("showDownload",t.showDownload),e.provide("showPreview",t.showPreview);const b=e.computed(()=>n.value===0),n=e.ref(0);e.provide("uploadingCount",n);function S(){s(void 0)}function s(o){u?.value?.setValue?.(o)}return p({done:b,clear:S,setValue:s}),(o,R)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i)?.id.value,class:e.normalizeClass([e.unref(m)(),e.unref(f)])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y[t.type]),e.mergeProps(o.$attrs,{ref_key:"uploadRef",ref:u}),e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),l=>({name:l,fn:e.withCtx(C=>[e.renderSlot(o.$slots,l,e.normalizeProps(e.guardReactiveProps(C||{})))])}))]),1040))],10,j))}});exports.default=k;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UploadFile } from '@aplus-frontend/antdv';
|
|
1
2
|
import { ComputedRef, VNode } from 'vue';
|
|
2
3
|
export type FileUploadType = 'picture' | 'singleFile' | 'multipleFile';
|
|
3
4
|
/**
|
|
@@ -85,6 +86,14 @@ export type MultipleFileProps = FileUploadProps & {
|
|
|
85
86
|
* 限制上传数量
|
|
86
87
|
*/
|
|
87
88
|
maxCount?: number;
|
|
89
|
+
/**
|
|
90
|
+
* 是否开启下载
|
|
91
|
+
*/
|
|
92
|
+
showDownload?: boolean | ((file: UploadFile) => boolean);
|
|
93
|
+
/**
|
|
94
|
+
* 是否开启预览
|
|
95
|
+
*/
|
|
96
|
+
showPreview?: boolean | ((file: UploadFile) => boolean);
|
|
88
97
|
};
|
|
89
98
|
export type PictureProps = FileUploadProps & {
|
|
90
99
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
-
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
|
|
3
|
+
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadChangeParam, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
|
|
4
4
|
import { AcceptConfig, UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
|
|
5
5
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
6
6
|
declare function setValue(val: (string | Record<string, any>)[]): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),K=require("@ant-design/icons-vue"),i=require("@aplus-frontend/antdv"),Q=require("@aplus-frontend/icon"),X=require("../../ap-file-preview/index.js");require("../../../config-provider/index.js");const b=require("../hooks/useOss.js"),Y=require("../style/index.js"),I=require("../utils/accept.js"),x=require("../utils/returnData.js"),Z=require("../../../config-provider/hooks/use-global-config.js"),ee=require("../../../config-provider/hooks/use-locale.js"),te=require("../../../config-provider/hooks/use-namespace.js"),oe={class:"multiple-file-context"},ne={key:0},se={key:1},ae=e.defineComponent({__name:"MultipleFile",setup(re,{expose:P}){const C=Z.useGlobalConfig("downloadCenterTriggerConfig"),{t:r}=ee.useLocale(),{b:T}=te.useNamespace("ap-upload-multiple-file"),D=Y.default("ap-upload"),{put:M}=b.useOss(),R=e.inject("dirName"),S=e.inject("baseDirName"),k=e.inject("accept")||"*",j=e.inject("maxSize")??500,B=e.inject("title")||r("ap.apUpload.uploadFile"),m=e.inject("subTitle"),c=e.inject("maxCount")??10,p=e.inject("uploadingCount"),N=e.inject("beforeUpload"),E=e.inject("customRequest"),f=e.inject("getOssAccess"),L=e.inject("maxSizeErrorMsg"),O=e.inject("maxCountErrorMsg"),V=e.inject("acceptErrorMsg"),U=e.inject("onRemove"),y=e.inject("showUploadErrorMsg"),_=e.inject("bucket"),z=e.inject("showDownload")??!0,g=e.inject("showPreview")??!0,a=e.inject("value"),u=[],w=e.inject("needName"),d=e.ref(null);e.watch(()=>a?.value,function(t){!d?.value?.fileList?.length&&t&&q(t)},{immediate:!0});function q(t){if(!t){l=[],d.value.fileList=[],a.value=void 0,u.splice(0,u.length);return}e.nextTick(()=>{const o=t.map(n=>{const s=x.getPath(w,n),A=x.getName(w,n),v=new File([n],A,{});return v.response=s,v.uid=s,v.status="done",v});if(c&&o.length>c){i.message.warning(r("ap.apUpload.fileInitializationException",{maxCount:c}));return}o.forEach(n=>{l.push(n),u.push({uid:n.uid,path:n.response})}),d.value.fileList=o,a.value=t})}P({setValue:q});let l=[],F;function h(t){setTimeout(()=>{const o=d.value.fileList.findIndex(n=>n.uid===t.uid);o>=0&&d.value.fileList.splice(o,1)})}async function $(t){if(c&&c>1&&l.length>=c)return clearTimeout(F),F=setTimeout(()=>{i.message.warning(O||r("ap.apUpload.maxUploadFiles",{maxCount:c}))}),h(t),!1;if(t.size>j*1024*1024)return i.message.warning(L||r("ap.apUpload.maxUploadFileSize",{maxSize:j})),h(t),!1;if(!I.fileMatchesAccept(t,k))return i.message.warning(V||r("ap.apUpload.fileFormatNotSupported")),h(t),!1;if(typeof N=="function"&&await N(t)===!1)return h(t),!1;c&&c===1&&(l=[],a.value=void 0),l.push(t)}async function G(t){if(p.value++,typeof E=="function"){E({onProgress:o=>{setTimeout(()=>{t.onProgress({percent:o})})},onError:o=>{y&&i.message.warning(o||r("ap.apUpload.networkAnomaly")),setTimeout(()=>{t.onError({name:o,message:o})}),p.value--},onSuccess:o=>{setTimeout(()=>{t.onSuccess(o)}),a.value=[...a.value||[],x.getReturnData(w,o,t.file.name)],u.push({uid:t.file.uid,path:o}),p.value--},file:t.file});return}try{const o=await(_?f(_):f()),n=await b.getOssInstance(async()=>o);t.file.oss=n,M({file:t.file,dirName:R,oss:n,successCallBack(s){t.onSuccess(s),a.value=[...a.value||[],x.getReturnData(w,s,t.file.name)],u.push({uid:t.file.uid,path:s}),p.value--},errorCallBack(s){y&&i.message.warning(s||r("ap.apUpload.networkAnomaly")),t.onError({name:s,message:s}),p.value--},progressCallBack(s){t.onProgress({percent:s})},baseDirName:S,bucket:o?.bucket})}catch(o){y&&i.message.warning(typeof o?.message=="string"?o.message:r("ap.apUpload.networkAnomaly")),t.onError({name:o?.message||r("ap.apUpload.networkAnomaly"),message:o?.message||r("ap.apUpload.networkAnomaly")}),p.value--}}function W(t){if(U&&U?.(t),t.response){if(Array.isArray(a.value)){const n=u.findIndex(s=>s.uid===t.uid);n>=0&&(a?.value.splice(n,1),u.splice(n,1)),a.value.length===0&&(a.value=void 0)}}else t?.oss?.pauseUpload();const o=l.findIndex(n=>n.uid===t.uid);return l.splice(o,1),Promise.resolve(!0)}const H=async t=>{if(C.value?.trigger){let o=[t].map(n=>({objectName:n.response,fileName:n.name}));C.value?.trigger?.(o)}else{const o=t.response?.match(/^([^:]+):(.*)$/),n=o?.[1],s=o?.[2]??t.response;(await b.getOssInstance(()=>n?f?.(n):f?.())).downloadFile([{path:s,fileName:t.name}])}},J=t=>{(typeof g=="function"?g(t):g)&&X.ApFilePreview.createFilePreviewModal({src:t.response,fileName:t.name})};return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(T)()]:!0,[e.unref(D)??""]:!0})},[e.createVNode(e.unref(i.Upload),{ref_key:"uploadRef",ref:d,accept:e.unref(k),multiple:"","max-count":e.unref(c),progress:{strokeWidth:3,showInfo:!1,strokeColor:"#0070FF"},"before-upload":$,"custom-request":G,"show-upload-list":{showDownloadIcon:e.unref(z),showRemoveIcon:!0,showPreviewIcon:e.unref(g)},onPreview:J,onRemove:W,onDownload:H},{downloadIcon:e.withCtx(()=>[e.createVNode(e.unref(Q.IconApAdLineDownload),{class:"anticon anticon-vertical-align-bottom"})]),default:e.withCtx(()=>[e.createElementVNode("div",oe,[e.createVNode(e.unref(i.Button),{class:"file-btn"},{default:e.withCtx(()=>[e.createVNode(e.unref(K.UploadOutlined)),e.createTextVNode(" "+e.toDisplayString(e.unref(B)),1)]),_:1}),e.createElementVNode("div",{class:"sub-title",onClick:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},[typeof e.unref(m)=="string"?(e.openBlock(),e.createElementBlock("div",ne,e.toDisplayString(e.unref(m)||`${e.unref(r)("ap.apUpload.supportExtension")}:${e.unref(I.getAcceptText)(e.unref(k))}`),1)):e.unref(m)?(e.openBlock(),e.createElementBlock("div",se,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(m))))])):e.createCommentVNode("",!0)])])]),_:1},8,["accept","max-count","show-upload-list"])],2))}});exports.default=ae;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApValueSelectCardProps, ApValueSelectCardOption } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode } from 'vue';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, any> = Record<string, 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<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onChange?: ((keys: (string | number)[]) => any) | undefined;
|
|
@@ -45,7 +45,9 @@ declare const _default: <T extends Record<string, any> = Record<string, any>>(__
|
|
|
45
45
|
(e: "remove", key: string | number): void;
|
|
46
46
|
(e: "highlight", keys: (string | number)[]): void;
|
|
47
47
|
};
|
|
48
|
-
}>) => VNode
|
|
48
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}> & {
|
|
49
51
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
50
52
|
};
|
|
51
53
|
export default _default;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../ap-form';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
4
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
7
|
import { Options } from '../../../../node_modules/scroll-into-view-if-needed';
|
|
8
8
|
import { Recordable } from '../../../type';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
10
11
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -109,7 +110,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
109
110
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
110
111
|
readonly initialValues?: Recordable | undefined;
|
|
111
112
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
112
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
113
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
113
114
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
114
115
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
115
116
|
$attrs: {
|
|
@@ -242,7 +243,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
242
243
|
};
|
|
243
244
|
lg: {
|
|
244
245
|
type: PropType<string | number | ColSize>;
|
|
245
|
-
default: string | number |
|
|
246
|
+
default: string | number | ColSize;
|
|
246
247
|
};
|
|
247
248
|
xl: {
|
|
248
249
|
type: PropType<string | number | ColSize>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ViewListModel } from '../interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
3
3
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
4
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
7
|
import { Options } from '../../../../node_modules/scroll-into-view-if-needed';
|
|
8
8
|
import { Recordable } from '../../../type';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
10
11
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../ap-form';
|
|
@@ -110,7 +111,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
110
111
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
111
112
|
readonly initialValues?: Recordable | undefined;
|
|
112
113
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
113
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
114
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
114
115
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
115
116
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
116
117
|
$attrs: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@aplus-frontend/antdv"),
|
|
2
|
-
`):""),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("@aplus-frontend/antdv"),w=require("lodash-unified");require("../../ap-field/index.js");const N=require("../../ap-field/hooks/use-default-placeholder.js");require("../../config-provider/index.js");require("../../hooks/index.js");require("../../utils/index.js");require("./popover-input/index.vue.js");const j=require("./style/index.js"),R=require("./utils.js"),L=require("../../hooks/useControllableValue.js"),O=require("../../config-provider/hooks/use-locale.js"),z=require("../../config-provider/hooks/use-namespace.js"),E=require("../../utils/is.js"),T=require("../../ap-field/select/index.vue.js"),M=require("../../ap-field/text/index.js"),D=require("./popover-input/index.vue2.js"),c="GROUP_SEARCH_ALL",K=e.defineComponent({name:"BatchInputGroup",__name:"index",props:{style:{type:[Boolean,null,String,Object,Array]},inputStyle:{type:[Boolean,null,String,Object,Array]},options:{},hasAll:{type:Boolean,default:!0},value:{},"onUpdate:value":{},popoverPlacement:{default:"left"},maxNum:{default:200},getPopupContainer:{},mode:{default:"edit"},class:{},variant:{},size:{},name:{},type:{default:"text"},onCompositionend:{},onCompositionstart:{},onFocus:{},onBlur:{},onChange:{},onInput:{},onKeydown:{},onKeyup:{},onMousedown:{},focused:{type:Boolean},hidden:{type:Boolean},disabled:{type:Boolean},prefixCls:{},id:{},readonly:{type:Boolean},autofocus:{type:Boolean},autocomplete:{},placeholder:{},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onMouseUp:{},onRawInput:{},valueModifiers:{},status:{},defaultValue:{},inputElement:{},triggerFocus:{},handleReset:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"},beforeInput:{}},emits:["update:value"],setup(h,{emit:g}){const n=h,B=N.useDefaultPlaceholder("Text",n),C=g,{value:u,updateValue:a}=L.useControllableValue(n,C),i=e.ref(),d=e.ref(),{t:b}=O.useLocale(),{b:q}=z.useNamespace("batch-input-group"),f=j.default("batch-input-group"),r=y.Form.useInjectFormItemContext(),A=e.computed(()=>n.options?n.options.length>1&&n.hasAll?[{value:c,label:b("ap.common.all")},...n.options]:n.options:[]),V=e.computed(()=>n.options?n.options.map(t=>t.value):[]),x=e.computed(()=>e.unref(u)?.value?.length?e.unref(u).value.join(","):""),_=e.computed(()=>e.unref(u)?.value?.length?e.unref(u).value.join(`
|
|
2
|
+
`):""),I=e.computed(()=>{const t=e.unref(u)?.key;if(t?.length)return t.length===1||!n.hasAll?t[0]:c}),S=e.computed(()=>{const t=e.unref(u)?.key;return!t||t?.length<=1||n.hasAll===!1?e.unref(B):(n.options||[]).filter(o=>t.includes(o.value)).map(o=>o.label).join("/")});function k(t){const l=e.unref(u)||{},o=t===c?e.unref(V):E.isDef(t)?[t]:[];a({...l,key:o}),r.onFieldChange()}function F(t){const l=e.unref(u)||{},o=t.target.value||"";let p=R.splitValue(o,",",",",n.maxNum);if(o!==p){const v=d.value?.$el?.querySelector("input");v&&(v.value=p)}let s=p.split(",");s.length===1&&s[0]===""&&(s=[]),a({...l,value:s}),r.onFieldChange()}function P(t){const l=e.unref(u)||{};let o=t.split(/,|\n/);a({...l,value:o}),r.onFieldChange()}function m(){const t=e.unref(u)||{},l=t.value?.filter(Boolean);a({...t,value:l}),r.onFieldChange()}function U(t){m(),n.onBlur?.(t)}return(t,l)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:i,class:e.normalizeClass([e.unref(q)(),e.unref(f)]),onFocus:l[0]||(l[0]=(...o)=>t.onFocus&&t.onFocus(...o)),onBlur:l[1]||(l[1]=(...o)=>t.onBlur&&t.onBlur(...o))},[e.createVNode(e.unref(y.Space).Compact,{block:""},{default:e.withCtx(()=>[t.options?.length?(e.openBlock(),e.createBlock(e.unref(T.default),{key:0,style:e.normalizeStyle(t.style),options:A.value,value:I.value,"allow-clear":!1,"dropdown-match-select-width":!1,disabled:t.disabled,"get-popup-container":()=>i.value,"onUpdate:value":k},null,8,["style","options","value","disabled","get-popup-container"])):e.createCommentVNode("",!0),e.createVNode(e.unref(M.ApFieldText),e.mergeProps(e.unref(w.omit)(n,["style","value","onUpdate:value","inputStyle","hasAll","options","onBlur"]),{ref_key:"inputRef",ref:d,style:t.inputStyle,value:x.value,placeholder:S.value,onInput:F,onBlur:U}),{suffix:e.withCtx(()=>[e.createVNode(D.default,{_parent:i.value,value:_.value,disabled:t.disabled,placement:n.popoverPlacement,"max-num":t.maxNum,class:e.normalizeClass(e.unref(f)),"get-popup-container":t.getPopupContainer,"onUpdate:value":P,onClose:m},null,8,["_parent","value","disabled","placement","max-num","class","get-popup-container"])]),_:1},16,["style","value","placeholder"])]),_:1})],34))}});exports.default=K;
|
|
@@ -36,12 +36,15 @@ export interface BatchInputGroupProps extends Omit<ApFieldTextProps, 'value' | '
|
|
|
36
36
|
* 最大输入条数,默认为200
|
|
37
37
|
*/
|
|
38
38
|
maxNum?: number;
|
|
39
|
+
getPopupContainer?: BatchInputGroupPopoverInputProps['getPopupContainer'];
|
|
39
40
|
}
|
|
40
41
|
export interface BatchInputGroupPopoverInputProps extends Pick<ApFieldTextAreaProps, 'value' | 'onUpdate:value'> {
|
|
41
42
|
_parent?: HTMLElement;
|
|
42
43
|
onClose?: () => void;
|
|
43
44
|
disabled?: boolean;
|
|
44
45
|
maxNum?: number;
|
|
46
|
+
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
|
|
47
|
+
placement?: BatchInputGroupProps['popoverPlacement'];
|
|
45
48
|
}
|
|
46
49
|
export type ApFormItemBatchInputProps = ApFormItemProps & {
|
|
47
50
|
field?: Omit<BatchInputGroupProps, 'value' | 'onUpdate:value'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@aplus-frontend/antdv"),R=require("@aplus-frontend/icon"),B=require("lodash-unified");require("../../../config-provider/index.js");require("../../../hooks/index.js");const w=require("../utils.js"),A=require("../../../hooks/useControllableValue.js"),O=require("../../../config-provider/hooks/use-locale.js"),f=require("../../../config-provider/hooks/use-namespace.js"),k=e.defineComponent({name:"BatchInputGroupPopoverInput",inheritAttrs:!1,__name:"index",props:{_parent:{},onClose:{type:Function},disabled:{type:Boolean},maxNum:{},getPopupContainer:{type:Function},placement:{},value:{},"onUpdate:value":{type:Function}},emits:["update:value"],setup(d,{emit:v}){const a=d,m=v,{value:g,updateValue:h}=A.useControllableValue(a,m),u=e.ref(!1),s=e.ref(),c=e.ref(),l=e.ref({left:0,right:0}),C=t=>a._parent||t,{t:b}=O.useLocale();function y(t){const o=t.target.value||"";let n=w.splitValue(o,`
|
|
2
2
|
,`,`
|
|
3
|
-
`,
|
|
4
|
-
`),
|
|
3
|
+
`,a.maxNum);if(n=n.replace(/\\n/g,`
|
|
4
|
+
`),n!==o){const r=s.value?.$el||s.value;r&&(r.value=n)}h(n)}const x=()=>{if(a.getPopupContainer){const t=a._parent,o=a.getPopupContainer(),n=t?.getBoundingClientRect(),r=o?.getBoundingClientRect();c.value=t?.offsetWidth,l.value.left=(n?.left||0)-(r.left||0),l.value.right=(n?.right||0)-(r.right||0)}};function N(t){x(),a.disabled?u.value=!1:u.value=t,!t&&a.onClose?.()}const{b:p,e:V,em:q,bm:P}=f.useNamespace("batch-input-group-popover-input"),{cssVar:_}=f.useNamespace("batch-input-group-popover"),I=e.computed(()=>{const t=a.placement,o=B.isNumber(t)?`${t}px`:t==="left"?`${l.value.left}px`:"unset",n=t==="right"?`${-l.value.right}px`:"unset";return{left:o,right:n}}),$=e.computed(()=>_({...I.value,width:c.value?`${c.value}px`:"100%"}));return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p)())},[e.createVNode(e.unref(i.Popover),{"overlay-class-name":`${e.unref(V)("popover")} ${t.$attrs.class}`,"get-popup-container":t.getPopupContainer??C,trigger:"click",placement:"bottomLeft",open:u.value,"overlay-style":$.value,onOpenChange:N},{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(q)("popover","content"))},[e.createVNode(e.unref(i.Textarea),{ref_key:"textAreaRef",ref:s,placeholder:e.unref(b)("ap.batchInputGroup.popoverInputPlaceholder",{maxNum:t.maxNum+""}),bordered:!1,rows:10,value:e.unref(g),"allow-clear":!1,"auto-size":!1,onInput:y},null,8,["placeholder","value"])],2)]),default:e.withCtx(()=>[e.createVNode(e.unref(R.IconApAdLineScreen),{class:e.normalizeClass([e.unref(p)("trigger-icon"),t.disabled?e.unref(P)("trigger-icon","disabled"):null])},null,8,["class"])]),_:1},8,["overlay-class-name","get-popup-container","open","overlay-style"])],2))}});exports.default=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../../utils/cssinjs/index.js"),l=o=>{const{componentCls:t,namespace:e}=o,r=`${t}-popover-input`,p=`--${e}-batch-input-group-popover-left`,n=`--${e}-batch-input-group-popover-right`,i=`--${e}-batch-input-group-popover-width`;return{[t]:{position:"relative",[r]:{display:"inline-flex",alignItems:"center",[`${r}-trigger-icon`]:{cursor:"pointer",fontSize:o.fontSizeXL,color:o.textColor2,lineHeight:0,"&:hover":{color:o.colorPrimary},"&--disabled":{cursor:"not-allowed",color:o.batchInputGroupTriggerColorDisabled,"&:hover":{color:o.batchInputGroupTriggerColorDisabled}}}}},[`${r}__popover`]:{width:`var(${i})`,minWidth:"300px",left:`var(${p}) !important`,right:`var(${n}) !important`,".ant-popover-arrow":{display:"none"},".ant-popover-inner":{padding:0},[`${r}__popover--content`]:{padding:o.spaceLG,textarea:{padding:0,resize:"none"}}}}},c=a.genComponentStyleHook("BatchInputGroup",o=>[l(o)],{batchInputGroupTriggerColorDisabled:"rgba(24, 41, 72, 0.25)"});exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../style/index.js"),n=require("../../utils/cssinjs/index.js"),s=e=>{const{componentCls:i,checkCardDisabledOutlineColor:l,checkCardIndicatorSize:t,checkCardOutlineWidth:r,checkCardIndicatorOffset:d}=e,a=e.calc(t).mul(2).equal();return{[`${i}`]:{...o.resetComponent(e),borderRadius:e.borderRadius,position:"relative","&--disabled":{backgroundColor:e.checkCardDisabledBg,cursor:"not-allowed !important"},"&--bordered":{outline:`${e.lineWidth} ${e.lineType} ${e.borderColorBase}`},[`&:hover:not(${i}--disabled)`]:{cursor:"pointer",outline:`${e.lineWidth} ${e.lineType} ${e.colorPrimary}`},"&::after":{content:'""',position:"absolute",width:0,height:0,insetBlockStart:0,insetInlineEnd:0,clipPath:"polygon(100% 0, 100% 100%, 0 0)",background:e.colorPrimary,
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../style/index.js"),n=require("../../utils/cssinjs/index.js"),s=e=>{const{componentCls:i,checkCardDisabledOutlineColor:l,checkCardIndicatorSize:t,checkCardOutlineWidth:r,checkCardIndicatorOffset:d}=e,a=e.calc(t).mul(2).equal();return{[`${i}`]:{...o.resetComponent(e),borderRadius:e.borderRadius,position:"relative","&--disabled":{backgroundColor:e.checkCardDisabledBg,cursor:"not-allowed !important"},"&--bordered":{outline:`${e.lineWidth} ${e.lineType} ${e.borderColorBase}`},[`&:hover:not(${i}--disabled)`]:{cursor:"pointer",outline:`${e.lineWidth} ${e.lineType} ${e.colorPrimary}`},"&::after":{content:'""',position:"absolute",width:0,height:0,insetBlockStart:0,insetInlineEnd:0,clipPath:"polygon(100% 0, 100% 100%, 0 0)",background:e.colorPrimary,borderTopRightRadius:e.calc(e.borderRadius).add("2px").equal()},"&--checked":{outline:`${r} ${e.lineType} ${e.colorPrimary}`,[`&:hover:not(${i}--disabled)`]:{outline:`${r} ${e.lineType} ${e.colorPrimary}`},"&::after":{width:a,height:a,insetBlockStart:d,insetInlineEnd:d,transition:["width","height","inset"].map(c=>`${c} ${e.motionDurationSlow} cubic-bezier(0.645, 0.045, 0.355, 1)`).join(", ")},[`&${i}--disabled`]:{outlineColor:l,"&::after":{backgroundColor:l}}},"&--middle":{padding:e.spaceLG},"&--small":{padding:`${e.spaceSM} ${e.spaceLG}`},[`${i}__title`]:{...o.resetComponent(e),marginBottom:e.spaceXS,color:e.textColor1,fontWeight:"bold","&--disabled":{color:e.textColor4}},[`${i}__content`]:{...o.resetComponent(e),color:e.textColor1,"&--disabled":{color:e.textColor4}},[`${i}__checked-icon`]:{position:"absolute",top:0,right:0,zIndex:1,lineHeight:1,userSelect:"none","& > img":{width:e.calc(t).sub(r).equal(),verticalAlign:"top"}}}}},u=n.genComponentStyleHook("CheckCard",e=>[s(e)],{checkCardDisabledBg:"#F9F9FA",checkCardDisabledOutlineColor:"#E9EDF3",checkCardIndicatorSize:14,checkCardOutlineWidth:2,checkCardIndicatorOffset:-2});exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),v=require("@aplus-frontend/antdv"),u=require("lodash-unified"),C=require("../utils/warning.js"),a=require("../utils/config-provider-preset.js"),m=require("./config-provider-props.js"),P=require("./constants.js"),c=require("./hooks/use-global-config.js");function h(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const n=i.ref({}),b=i.defineComponent({name:"AplusConfigProvider",props:m.configProviderProps(),setup(e,{slots:d}){C.useDevWarning("ConfigProvider")(!e.uiMode,"breaking","uiMode has been remove, see migrate guild https://aplus.aplnk.com/aplus-ui/guild/migrate-7.2.html");function o(r,p){return e[r]??t.value?.[r]??p}const t=c.useGlobalConfig(),g=i.computed(()=>u.merge(u.cloneDeep(t.value?.aplusToken||{}),e.aplusToken)),s=i.computed(()=>({namespace:o("namespace",P.DEFAULT_NAMESPACE),apGrid:o("apGrid"),agGrid:o("agGrid"),apProCard:o("apProCard"),apImage:o("apImage"),apTitle:o("apTitle"),searchForm:o("searchForm"),apUpload:o("apUpload"),apDescriptions:o("apDescriptions"),apFilePreview:o("apFilePreview"),aplusLocale:e.aplusLocale,aplusToken:g.value,api:e.api,valueTypeMap:e.valueTypeMap,downloadCenterTriggerConfig:e.downloadCenterTriggerConfig,exportField:e.exportField,scrollYDomName:e.scrollYDomName,viewCacheOption:e.viewCacheOption})),f=c.provideGlobalConfig(s);let l=!0;return i.watch(()=>e,r=>{n.value=a.mergeAntdProviderConfigWithCache(a.mergeAntdProvideConfig(r),n.value)},{deep:!0,immediate:!0}),i.onActivated(()=>{if(l){l=!1;return}n.value=a.mergeAntdProviderConfigWithCache(a.mergeAntdProvideConfig(e),n.value)}),()=>{let r;return i.createVNode(v.ConfigProvider,n.value,h(r=i.renderSlot(d,"default",{config:f?.value}))?r:{default:()=>[r]})}}});exports.ConfigProvider=b;exports.globalConfigCached=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("@emotion/css"),f=require("lodash-unified"),e=require("vue"),k=require("../../design-token/constants.js"),y=require("../../utils/cssinjs/utils.js"),g=require("../constants.js"),q=require("./use-locale.js"),b=require("./use-namespace.js"),x=require("./use-token.js"),d=o=>Object.keys(o),a=e.ref();function p(o,n=void 0){const r=e.getCurrentInstance()?e.inject(g.configProviderContextKey,a):a;return o?e.computed(()=>r.value?.[o]??n):r}const T=(o,n,r=!1)=>{const c=!!e.getCurrentInstance(),t=c?p():void 0,u=n?.provide??(c?e.provide:void 0);if(!u)return;const s=e.computed(()=>{const i=e.unref(o);return t?.value?K(t.value,i):i});u(g.configProviderContextKey,s),u(q.localeContextKey,e.computed(()=>s.value.aplusLocale)),u(b.namespaceContextKey,s.value.namespace);const l=e.computed(()=>({...f.merge(f.cloneDeep(k.defaultToken),s.value.aplusToken||{})})),v=e.ref();return e.watch(()=>l.value,()=>{const i=f.omit(l.value,["components"]),C=y.generateCssVar(i,{uniqueId:!0,skipUnit:[]});v.value=m.css(C)},{deep:!0,immediate:!0}),u(x.designTokenContextKey,{token:l,rootCls:v}),(r||!a.value)&&(a.value=s.value),s},K=(o,n)=>{const r=[...new Set([...d(o),...d(n)])],c={};for(const t of r)c[t]=n[t]!==void 0?n[t]:o[t];return c};exports.keysOf=d;exports.provideGlobalConfig=T;exports.useGlobalConfig=p;
|
|
@@ -2,11 +2,7 @@ import { InjectionKey, Ref, ComputedRef } from 'vue';
|
|
|
2
2
|
export declare const defaultNamespace = "aplus";
|
|
3
3
|
export declare const namespaceContextKey: InjectionKey<Ref<string | undefined>>;
|
|
4
4
|
export declare const useGetDerivedNamespace: (namespaceOverrides?: Ref<string | undefined>) => ComputedRef<string>;
|
|
5
|
-
export declare const useNamespace: (
|
|
6
|
-
/**
|
|
7
|
-
* 块 一般是指组件名
|
|
8
|
-
*/
|
|
9
|
-
block: string, namespaceOverrides?: Ref<string | undefined>) => {
|
|
5
|
+
export declare const useNamespace: (block: string, namespaceOverrides?: Ref<string | undefined>) => {
|
|
10
6
|
namespace: ComputedRef<string>;
|
|
11
7
|
b: (blockSuffix?: string) => string;
|
|
12
8
|
e: (element?: string) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditableColumnType, EditableTableFormItemExpose, EditableTableFormItemProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
3
3
|
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<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
5
5
|
expose(exposed: ShallowUnwrapRef<EditableTableFormItemExpose>): void;
|
|
@@ -36,7 +36,9 @@ declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<type
|
|
|
36
36
|
}) => void;
|
|
37
37
|
};
|
|
38
38
|
emit: {};
|
|
39
|
-
}>) => VNode
|
|
39
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}> & {
|
|
40
42
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
41
43
|
};
|
|
42
44
|
export default _default;
|