@aplus-frontend/ui 7.18.0 → 7.19.0-beta.0
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/context.mjs +1 -1
- 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/hooks/use-pinned-row.mjs +2 -2
- package/es/src/ag-grid/index.vue.d.ts +4 -2
- package/es/src/ag-grid/index.vue.mjs +1 -1
- package/es/src/ap-field/cascader/use-options.d.ts +4 -4
- package/es/src/ap-field/date/index.vue.d.ts +1 -0
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -0
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/text/password.vue.d.ts +4 -4
- 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/context.mjs +1 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/item/index.vue.d.ts +6 -6
- package/es/src/ap-form/item-group/helper.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.d.ts +11 -9
- package/es/src/ap-form/items/date-range/index.vue.d.ts +15 -13
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/provider/context.mjs +1 -1
- 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-grid/utils/table.mjs +2 -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-pro-card/components/card/index.vue2.mjs +2 -2
- package/es/src/ap-table/ap-table.vue.d.ts +4 -2
- package/es/src/ap-table/components/setting/context.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/context.mjs +1 -1
- package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +3 -2
- package/es/src/ap-table/constants.d.ts +22 -20
- package/es/src/ap-table/context.mjs +1 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +7 -7
- package/es/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
- package/es/src/ap-table/utils.mjs +1 -1
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-instance.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-download/hooks/index.mjs +1 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +3 -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-keep-alive/hook.mjs +1 -1
- package/es/src/business/ap-keep-alive/utils.mjs +1 -1
- 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/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/business/ap-value-select-card/index.vue.d.ts +4 -2
- package/es/src/business/ap-view/ap-view.vue.d.ts +5 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +142 -122
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +3 -2
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
- package/es/src/business/ap-view/hooks/use-send-to-url.d.ts +11 -0
- package/es/src/business/ap-view/hooks/use-send-to-url.mjs +38 -0
- package/es/src/business/ap-view/hooks/use-view-provide.mjs +1 -1
- package/es/src/business/ap-view/index.d.ts +13 -0
- package/es/src/business/ap-view/interface.d.ts +10 -0
- package/es/src/business/ap-view/utils/query.d.ts +4 -0
- package/es/src/business/ap-view/utils/query.mjs +26 -0
- package/es/src/check-card/context.mjs +1 -1
- package/es/src/config-provider/constants.mjs +1 -1
- package/es/src/config-provider/hooks/use-locale.mjs +1 -1
- package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/es/src/config-provider/hooks/use-namespace.mjs +1 -1
- package/es/src/config-provider/hooks/use-token.mjs +1 -1
- 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/editable-table/utils.mjs +1 -1
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/context.mjs +1 -1
- package/es/src/time-ago/useTimeAgo.mjs +1 -1
- package/es/src/utils/slot.mjs +1 -1
- 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/hooks/use-pinned-row.js +1 -1
- 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/cascader/use-options.d.ts +4 -4
- package/lib/src/ap-field/date/index.vue.d.ts +1 -0
- package/lib/src/ap-field/date-range/index.vue.d.ts +1 -0
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/text/password.vue.d.ts +4 -4
- 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/item/index.vue.d.ts +6 -6
- package/lib/src/ap-form/items/date/index.vue.d.ts +11 -9
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +15 -13
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- 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-grid/utils/table.js +1 -1
- 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/components/setting/template/edit-form.vue.d.ts +3 -2
- package/lib/src/ap-table/constants.d.ts +22 -20
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
- 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/ApDraggableGrid.vue2.js +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/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/business/ap-value-select-card/index.vue.d.ts +4 -2
- package/lib/src/business/ap-view/ap-view.vue.d.ts +5 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +3 -2
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
- package/lib/src/business/ap-view/hooks/use-send-to-url.d.ts +11 -0
- package/lib/src/business/ap-view/hooks/use-send-to-url.js +1 -0
- package/lib/src/business/ap-view/index.d.ts +13 -0
- package/lib/src/business/ap-view/interface.d.ts +10 -0
- package/lib/src/business/ap-view/utils/query.d.ts +4 -0
- package/lib/src/business/ap-view/utils/query.js +1 -0
- 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/time-ago/useTimeAgo.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -446,7 +446,7 @@ declare function __VLS_template(): {
|
|
|
446
446
|
default: string | number | ColSize;
|
|
447
447
|
};
|
|
448
448
|
xxl: {
|
|
449
|
-
type: PropType<string | number |
|
|
449
|
+
type: PropType<string | number | ColSize>;
|
|
450
450
|
default: string | number | ColSize;
|
|
451
451
|
};
|
|
452
452
|
prefixCls: StringConstructor;
|
|
@@ -548,7 +548,7 @@ declare function __VLS_template(): {
|
|
|
548
548
|
default: string | number | ColSize;
|
|
549
549
|
};
|
|
550
550
|
xxl: {
|
|
551
|
-
type: PropType<string | number |
|
|
551
|
+
type: PropType<string | number | ColSize>;
|
|
552
552
|
default: string | number | ColSize;
|
|
553
553
|
};
|
|
554
554
|
prefixCls: StringConstructor;
|
|
@@ -704,7 +704,7 @@ declare function __VLS_template(): {
|
|
|
704
704
|
default: string | number | ColSize;
|
|
705
705
|
};
|
|
706
706
|
xxl: {
|
|
707
|
-
type: PropType<string | number |
|
|
707
|
+
type: PropType<string | number | ColSize>;
|
|
708
708
|
default: string | number | ColSize;
|
|
709
709
|
};
|
|
710
710
|
prefixCls: StringConstructor;
|
|
@@ -1241,7 +1241,7 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1241
1241
|
default: string | number | ColSize;
|
|
1242
1242
|
};
|
|
1243
1243
|
xxl: {
|
|
1244
|
-
type: PropType<string | number |
|
|
1244
|
+
type: PropType<string | number | ColSize>;
|
|
1245
1245
|
default: string | number | ColSize;
|
|
1246
1246
|
};
|
|
1247
1247
|
prefixCls: StringConstructor;
|
|
@@ -1343,7 +1343,7 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1343
1343
|
default: string | number | ColSize;
|
|
1344
1344
|
};
|
|
1345
1345
|
xxl: {
|
|
1346
|
-
type: PropType<string | number |
|
|
1346
|
+
type: PropType<string | number | ColSize>;
|
|
1347
1347
|
default: string | number | ColSize;
|
|
1348
1348
|
};
|
|
1349
1349
|
prefixCls: StringConstructor;
|
|
@@ -1499,7 +1499,7 @@ declare const __VLS_component: DefineComponent<ApFormItemProps, {
|
|
|
1499
1499
|
default: string | number | ColSize;
|
|
1500
1500
|
};
|
|
1501
1501
|
xxl: {
|
|
1502
|
-
type: PropType<string | number |
|
|
1502
|
+
type: PropType<string | number | ColSize>;
|
|
1503
1503
|
default: string | number | ColSize;
|
|
1504
1504
|
};
|
|
1505
1505
|
prefixCls: StringConstructor;
|
|
@@ -11,11 +11,13 @@ import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
|
11
11
|
import { AlignType } from '@aplus-frontend/antdv/es/vc-align/interface';
|
|
12
12
|
import { DateRender } from '@aplus-frontend/antdv/es/vc-picker/panels/DatePanel/DateBody';
|
|
13
13
|
import { MonthCellRender } from '@aplus-frontend/antdv/es/vc-picker/panels/MonthPanel/MonthBody';
|
|
14
|
-
import { PanelMode, RangeValue, OnPanelChange, PresetDate,
|
|
14
|
+
import { PanelMode, RangeValue, OnPanelChange, PresetDate, DisabledTime, CustomFormat, PickerMode } from '@aplus-frontend/antdv/es/vc-picker/interface';
|
|
15
15
|
import { SharedTimeProps } from '@aplus-frontend/antdv/es/vc-picker/panels/TimePanel';
|
|
16
16
|
import { LiteralUnion } from '../../../type';
|
|
17
17
|
import { ApFormatPresetType } from '../../../ap-field/date/interface';
|
|
18
|
+
import { DatePickerProps } from '@aplus-frontend/antdv';
|
|
18
19
|
import { ZoneAlias } from '@aplus-frontend/utils';
|
|
20
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
19
21
|
import { OnCleanup } from '@vue/reactivity';
|
|
20
22
|
declare function __VLS_template(): {
|
|
21
23
|
attrs: Partial<{}>;
|
|
@@ -67,7 +69,7 @@ declare function __VLS_template(): {
|
|
|
67
69
|
readonly onSelect?: ((value: Dayjs) => void) | undefined;
|
|
68
70
|
readonly open?: boolean | undefined;
|
|
69
71
|
readonly disabled?: boolean | undefined;
|
|
70
|
-
readonly direction?: "ltr" | "rtl" | undefined;
|
|
72
|
+
readonly direction?: ("ltr" | "rtl") | undefined;
|
|
71
73
|
readonly placeholder?: string | undefined;
|
|
72
74
|
readonly id?: string | undefined;
|
|
73
75
|
readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
@@ -104,19 +106,19 @@ declare function __VLS_template(): {
|
|
|
104
106
|
readonly showToday?: boolean | undefined;
|
|
105
107
|
readonly showTime?: boolean | SharedTimeProps<Dayjs> | undefined;
|
|
106
108
|
readonly valueFormat?: string | undefined;
|
|
107
|
-
readonly value?: number | null | undefined;
|
|
109
|
+
readonly value?: (number | null) | undefined;
|
|
108
110
|
readonly defaultValue?: number | undefined;
|
|
109
111
|
readonly 'onUpdate:value'?: (((ts: number | null) => void) & ((...args: any[]) => any)) | undefined;
|
|
110
112
|
readonly onChange?: ((ts: number | null, dayStr: string) => void) | undefined;
|
|
111
113
|
readonly onOk?: ((ts: number | null) => void) | undefined;
|
|
112
114
|
readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
|
|
113
|
-
readonly shownFormat?:
|
|
115
|
+
readonly shownFormat?: DatePickerProps["format"];
|
|
114
116
|
readonly formatBegins?: boolean | undefined;
|
|
115
117
|
readonly timezone?: ( ZoneAlias | {
|
|
116
118
|
label?: string;
|
|
117
119
|
value: ZoneAlias;
|
|
118
120
|
}[]) | undefined;
|
|
119
|
-
readonly disabledTime?:
|
|
121
|
+
readonly disabledTime?: SharedTimeProps<Dayjs>["disabledTime"];
|
|
120
122
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
121
123
|
$attrs: {
|
|
122
124
|
[x: string]: unknown;
|
|
@@ -820,7 +822,7 @@ declare const __VLS_component: DefineComponent<ApFormItemDateProps, {
|
|
|
820
822
|
readonly onSelect?: ((value: Dayjs) => void) | undefined;
|
|
821
823
|
readonly open?: boolean | undefined;
|
|
822
824
|
readonly disabled?: boolean | undefined;
|
|
823
|
-
readonly direction?: "ltr" | "rtl" | undefined;
|
|
825
|
+
readonly direction?: ("ltr" | "rtl") | undefined;
|
|
824
826
|
readonly placeholder?: string | undefined;
|
|
825
827
|
readonly id?: string | undefined;
|
|
826
828
|
readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
@@ -857,19 +859,19 @@ declare const __VLS_component: DefineComponent<ApFormItemDateProps, {
|
|
|
857
859
|
readonly showToday?: boolean | undefined;
|
|
858
860
|
readonly showTime?: boolean | SharedTimeProps<Dayjs> | undefined;
|
|
859
861
|
readonly valueFormat?: string | undefined;
|
|
860
|
-
readonly value?: number | null | undefined;
|
|
862
|
+
readonly value?: (number | null) | undefined;
|
|
861
863
|
readonly defaultValue?: number | undefined;
|
|
862
864
|
readonly 'onUpdate:value'?: (((ts: number | null) => void) & ((...args: any[]) => any)) | undefined;
|
|
863
865
|
readonly onChange?: ((ts: number | null, dayStr: string) => void) | undefined;
|
|
864
866
|
readonly onOk?: ((ts: number | null) => void) | undefined;
|
|
865
867
|
readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
|
|
866
|
-
readonly shownFormat?:
|
|
868
|
+
readonly shownFormat?: DatePickerProps["format"];
|
|
867
869
|
readonly formatBegins?: boolean | undefined;
|
|
868
870
|
readonly timezone?: ( ZoneAlias | {
|
|
869
871
|
label?: string;
|
|
870
872
|
value: ZoneAlias;
|
|
871
873
|
}[]) | undefined;
|
|
872
|
-
readonly disabledTime?:
|
|
874
|
+
readonly disabledTime?: SharedTimeProps<Dayjs>["disabledTime"];
|
|
873
875
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
874
876
|
$attrs: {
|
|
875
877
|
[x: string]: unknown;
|
|
@@ -9,13 +9,15 @@ import { PickerLocale } from '@aplus-frontend/antdv/es/date-picker/generatePicke
|
|
|
9
9
|
import { Variant } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
10
10
|
import { AlignType } from '@aplus-frontend/antdv/es/vc-align/interface';
|
|
11
11
|
import { Dayjs } from 'dayjs';
|
|
12
|
-
import { EventValue, DisabledTimes, RangeValue,
|
|
12
|
+
import { EventValue, DisabledTimes, RangeValue, PresetDate, PanelMode, CustomFormat, PickerMode } from '@aplus-frontend/antdv/es/vc-picker/interface';
|
|
13
13
|
import { RangeDateRender, RangeType, RangeInfo } from '@aplus-frontend/antdv/es/vc-picker/RangePicker';
|
|
14
14
|
import { MonthCellRender } from '@aplus-frontend/antdv/es/vc-picker/panels/MonthPanel/MonthBody';
|
|
15
15
|
import { LiteralUnion } from '../../../type';
|
|
16
16
|
import { ApFormatPresetType } from '../../../ap-field/date/interface';
|
|
17
|
+
import { RangePickerProps } from '@aplus-frontend/antdv/es/date-picker';
|
|
17
18
|
import { ZoneAlias } from '@aplus-frontend/utils';
|
|
18
19
|
import { SharedTimeProps } from '@aplus-frontend/antdv/es/vc-picker/panels/TimePanel';
|
|
20
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
19
21
|
import { OnCleanup } from '@vue/reactivity';
|
|
20
22
|
declare function __VLS_template(): {
|
|
21
23
|
attrs: Partial<{}>;
|
|
@@ -64,8 +66,8 @@ declare function __VLS_template(): {
|
|
|
64
66
|
readonly onMouseup?: MouseEventHandler | undefined;
|
|
65
67
|
readonly open?: boolean | undefined;
|
|
66
68
|
readonly separator?: VueNode;
|
|
67
|
-
readonly disabled?: boolean | [boolean, boolean] | undefined;
|
|
68
|
-
readonly direction?: "ltr" | "rtl" | undefined;
|
|
69
|
+
readonly disabled?: (boolean | [boolean, boolean]) | undefined;
|
|
70
|
+
readonly direction?: ("ltr" | "rtl") | undefined;
|
|
69
71
|
readonly placeholder?: [string, string] | undefined;
|
|
70
72
|
readonly id?: string | undefined;
|
|
71
73
|
readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
@@ -100,7 +102,7 @@ declare function __VLS_template(): {
|
|
|
100
102
|
readonly ranges?: Record<string, [ EventValue<Dayjs>, EventValue<Dayjs>] | (() => [ EventValue<Dayjs>, EventValue<Dayjs>])> | undefined;
|
|
101
103
|
readonly allowEmpty?: [boolean, boolean] | undefined;
|
|
102
104
|
readonly onCalendarChange?: ((values: RangeValue<Dayjs>, formatString: [string, string], info: RangeInfo) => void) | undefined;
|
|
103
|
-
readonly activePickerIndex?: 0 | 1 | undefined;
|
|
105
|
+
readonly activePickerIndex?: (0 | 1) | undefined;
|
|
104
106
|
readonly valueFormat?: string | undefined;
|
|
105
107
|
readonly value?: ( RangeValue<number> | null) | undefined;
|
|
106
108
|
readonly defaultValue?: RangeValue<number> | undefined;
|
|
@@ -108,13 +110,13 @@ declare function __VLS_template(): {
|
|
|
108
110
|
readonly onChange?: ((ts: RangeValue<number> | null, dayStr: [string, string]) => void) | undefined;
|
|
109
111
|
readonly onOk?: ((ts: RangeValue<number>) => void) | undefined;
|
|
110
112
|
readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
|
|
111
|
-
readonly shownFormat?:
|
|
113
|
+
readonly shownFormat?: RangePickerProps["format"];
|
|
112
114
|
readonly timezone?: ( ZoneAlias | {
|
|
113
115
|
label?: string;
|
|
114
116
|
value: ZoneAlias;
|
|
115
117
|
}[]) | undefined;
|
|
116
118
|
readonly readModeSeparator?: any;
|
|
117
|
-
readonly presets?:
|
|
119
|
+
readonly presets?: RangePickerProps["presets"] | true | {
|
|
118
120
|
thisWeek?: boolean;
|
|
119
121
|
lastWeek?: boolean;
|
|
120
122
|
last7Days?: boolean;
|
|
@@ -126,7 +128,7 @@ declare function __VLS_template(): {
|
|
|
126
128
|
lastQuarter?: boolean;
|
|
127
129
|
thisYear?: boolean;
|
|
128
130
|
lastYear?: boolean;
|
|
129
|
-
}
|
|
131
|
+
};
|
|
130
132
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
131
133
|
$attrs: {
|
|
132
134
|
[x: string]: unknown;
|
|
@@ -872,8 +874,8 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
872
874
|
readonly onMouseup?: MouseEventHandler | undefined;
|
|
873
875
|
readonly open?: boolean | undefined;
|
|
874
876
|
readonly separator?: VueNode;
|
|
875
|
-
readonly disabled?: boolean | [boolean, boolean] | undefined;
|
|
876
|
-
readonly direction?: "ltr" | "rtl" | undefined;
|
|
877
|
+
readonly disabled?: (boolean | [boolean, boolean]) | undefined;
|
|
878
|
+
readonly direction?: ("ltr" | "rtl") | undefined;
|
|
877
879
|
readonly placeholder?: [string, string] | undefined;
|
|
878
880
|
readonly id?: string | undefined;
|
|
879
881
|
readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
@@ -908,7 +910,7 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
908
910
|
readonly ranges?: Record<string, [ EventValue<Dayjs>, EventValue<Dayjs>] | (() => [ EventValue<Dayjs>, EventValue<Dayjs>])> | undefined;
|
|
909
911
|
readonly allowEmpty?: [boolean, boolean] | undefined;
|
|
910
912
|
readonly onCalendarChange?: ((values: RangeValue<Dayjs>, formatString: [string, string], info: RangeInfo) => void) | undefined;
|
|
911
|
-
readonly activePickerIndex?: 0 | 1 | undefined;
|
|
913
|
+
readonly activePickerIndex?: (0 | 1) | undefined;
|
|
912
914
|
readonly valueFormat?: string | undefined;
|
|
913
915
|
readonly value?: ( RangeValue<number> | null) | undefined;
|
|
914
916
|
readonly defaultValue?: RangeValue<number> | undefined;
|
|
@@ -916,13 +918,13 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
916
918
|
readonly onChange?: ((ts: RangeValue<number> | null, dayStr: [string, string]) => void) | undefined;
|
|
917
919
|
readonly onOk?: ((ts: RangeValue<number>) => void) | undefined;
|
|
918
920
|
readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
|
|
919
|
-
readonly shownFormat?:
|
|
921
|
+
readonly shownFormat?: RangePickerProps["format"];
|
|
920
922
|
readonly timezone?: ( ZoneAlias | {
|
|
921
923
|
label?: string;
|
|
922
924
|
value: ZoneAlias;
|
|
923
925
|
}[]) | undefined;
|
|
924
926
|
readonly readModeSeparator?: any;
|
|
925
|
-
readonly presets?:
|
|
927
|
+
readonly presets?: RangePickerProps["presets"] | true | {
|
|
926
928
|
thisWeek?: boolean;
|
|
927
929
|
lastWeek?: boolean;
|
|
928
930
|
last7Days?: boolean;
|
|
@@ -934,7 +936,7 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
934
936
|
lastQuarter?: boolean;
|
|
935
937
|
thisYear?: boolean;
|
|
936
938
|
lastYear?: boolean;
|
|
937
|
-
}
|
|
939
|
+
};
|
|
938
940
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
939
941
|
$attrs: {
|
|
940
942
|
[x: string]: unknown;
|
|
@@ -4,6 +4,7 @@ import { ComponentInternalInstance, VNode, VNodeProps, AllowedComponentProps, Co
|
|
|
4
4
|
import { FieldMode, ApFieldNumberProps } from '../../..';
|
|
5
5
|
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
6
6
|
import { KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
7
|
+
import { InputNumberProps } from '@aplus-frontend/antdv';
|
|
7
8
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
8
9
|
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
9
10
|
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
@@ -80,7 +81,7 @@ declare function __VLS_template(): {
|
|
|
80
81
|
offset: ValueType;
|
|
81
82
|
type: "up" | "down";
|
|
82
83
|
}) => void) | undefined;
|
|
83
|
-
readonly inputMode?: "
|
|
84
|
+
readonly inputMode?: InputNumberProps["mode"];
|
|
84
85
|
readonly thousands?: boolean | undefined;
|
|
85
86
|
readonly limitDecimalsRetain?: boolean | undefined;
|
|
86
87
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -602,7 +603,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
602
603
|
offset: ValueType;
|
|
603
604
|
type: "up" | "down";
|
|
604
605
|
}) => void) | undefined;
|
|
605
|
-
readonly inputMode?: "
|
|
606
|
+
readonly inputMode?: InputNumberProps["mode"];
|
|
606
607
|
readonly thousands?: boolean | undefined;
|
|
607
608
|
readonly limitDecimalsRetain?: boolean | undefined;
|
|
608
609
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -131,14 +131,14 @@ declare function __VLS_template(): {
|
|
|
131
131
|
readonly onInputKeyDown?: ((e: KeyboardEvent) => void) | undefined;
|
|
132
132
|
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
133
133
|
readonly multiple?: boolean | undefined;
|
|
134
|
-
readonly value?:
|
|
134
|
+
readonly value?: SelectProps["value"];
|
|
135
135
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
136
|
-
readonly searchMode?: "filter" | "request" | undefined;
|
|
136
|
+
readonly searchMode?: ("filter" | "request") | undefined;
|
|
137
137
|
readonly refetchOnFocus?: boolean | undefined;
|
|
138
138
|
readonly fetchOnFocus?: boolean | undefined;
|
|
139
139
|
readonly fetchOnOpen?: boolean | undefined;
|
|
140
|
-
readonly lazy?: boolean | "first-focus" | "first-open" | undefined;
|
|
141
|
-
readonly addAll?: boolean | number | undefined;
|
|
140
|
+
readonly lazy?: (boolean | "first-focus" | "first-open") | undefined;
|
|
141
|
+
readonly addAll?: (boolean | number) | undefined;
|
|
142
142
|
readonly params?: Recordable | undefined;
|
|
143
143
|
readonly searchDelay?: number | undefined;
|
|
144
144
|
readonly allowOnlySelect?: boolean | undefined;
|
|
@@ -797,14 +797,14 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
797
797
|
readonly onInputKeyDown?: ((e: KeyboardEvent) => void) | undefined;
|
|
798
798
|
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
799
799
|
readonly multiple?: boolean | undefined;
|
|
800
|
-
readonly value?:
|
|
800
|
+
readonly value?: SelectProps["value"];
|
|
801
801
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
802
|
-
readonly searchMode?: "filter" | "request" | undefined;
|
|
802
|
+
readonly searchMode?: ("filter" | "request") | undefined;
|
|
803
803
|
readonly refetchOnFocus?: boolean | undefined;
|
|
804
804
|
readonly fetchOnFocus?: boolean | undefined;
|
|
805
805
|
readonly fetchOnOpen?: boolean | undefined;
|
|
806
|
-
readonly lazy?: boolean | "first-focus" | "first-open" | undefined;
|
|
807
|
-
readonly addAll?: boolean | number | undefined;
|
|
806
|
+
readonly lazy?: (boolean | "first-focus" | "first-open") | undefined;
|
|
807
|
+
readonly addAll?: (boolean | number) | undefined;
|
|
808
808
|
readonly params?: Recordable | undefined;
|
|
809
809
|
readonly searchDelay?: number | undefined;
|
|
810
810
|
readonly allowOnlySelect?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
1
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, RuleObject } from '@aplus-frontend/antdv/es/form/interface';
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, RendererNode, RendererElement, CSSProperties } from 'vue';
|
|
3
3
|
import { Recordable } from '../../type';
|
|
4
4
|
import { ApFormModalFormProps } from '../interface';
|
|
@@ -7,6 +7,7 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
|
7
7
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
8
8
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
10
11
|
import { SizeType, ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
|
|
@@ -120,7 +121,7 @@ declare function __VLS_template(): {
|
|
|
120
121
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
121
122
|
readonly initialValues?: Recordable | undefined;
|
|
122
123
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
123
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
124
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
124
125
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
125
126
|
readonly autoFocusFirstInput?: boolean | undefined;
|
|
126
127
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -1325,7 +1326,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1325
1326
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1326
1327
|
readonly initialValues?: Recordable | undefined;
|
|
1327
1328
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1328
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1329
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
1329
1330
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1330
1331
|
readonly autoFocusFirstInput?: boolean | undefined;
|
|
1331
1332
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ApFormExpose, ApFormSearchFormProps } from '../interface';
|
|
2
2
|
import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } 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, ApFormSearchFormPopoverSorterItem } from '..';
|
|
@@ -118,7 +119,7 @@ declare function __VLS_template(): {
|
|
|
118
119
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
119
120
|
readonly initialValues?: Recordable | undefined;
|
|
120
121
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
121
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
122
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
122
123
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
123
124
|
readonly autoFocusFirstInput?: boolean | undefined;
|
|
124
125
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -1108,7 +1109,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1108
1109
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1109
1110
|
readonly initialValues?: Recordable | undefined;
|
|
1110
1111
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1111
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1112
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
1112
1113
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1113
1114
|
readonly autoFocusFirstInput?: boolean | undefined;
|
|
1114
1115
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { Recordable } from '../../type';
|
|
2
2
|
import { EditableGridFormItemExpose, EditableGridFormItemProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
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<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableGridFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<EditableGridFormItemExpose>): void;
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
9
9
|
emit: {};
|
|
10
|
-
}>) => VNode
|
|
10
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}> & {
|
|
11
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
12
14
|
};
|
|
13
15
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Recordable } from '../../type';
|
|
2
2
|
import { EditableGridExpose, EditableGridProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
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<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9,7 +9,9 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
11
11
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
12
|
-
}>) => VNode
|
|
12
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}> & {
|
|
13
15
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
16
|
};
|
|
15
17
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeTableSlots } from 'vxe-table';
|
|
2
2
|
import { ApGridColumnType, ApGridExpose, ApGridProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
declare const _default: <RecordType>(__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<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApGridProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<ApGridExpose>): void;
|
|
@@ -35,7 +35,9 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
35
35
|
}) => any;
|
|
36
36
|
};
|
|
37
37
|
emit: {};
|
|
38
|
-
}>) => VNode
|
|
38
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}> & {
|
|
39
41
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
40
42
|
};
|
|
41
43
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("lodash-unified");require("../../utils/index.js");const c=require("../../utils/is.js"),g=20,m=50,C=e=>e.some(i=>!!i.html);function b(e,i){const t={...u.omit(e,["columns","request","searchForm","dataSource","rowKey","value","round"])};return t.rowConfig={isHover:!0,keyField:e.rowKey,isCurrent:!!e.rowHighlightable},t.columnConfig={},C(e.columns||[])&&(t.rowConfig.useKey=!0,t.columnConfig.useKey=!0),e.adaptive&&(t.autoResize=!0,t.height="100%"),e.columnResizable&&(t.columnConfig.resizable=!0),i&&(i.type==="radio"?t.radioConfig={highlight:!0,checkMethod({row:r}){return i.disabled?!i.disabled(r):!0},visibleMethod({row:r}){return i.shown?i.shown(r):!0},checkRowKey:i.defaultSelectedRowKeys?.[0],reserve:i.preserveSelectedRowKeys||u.isUndefined(e.dataSource)}:t.checkboxConfig={highlight:!0,checkMethod({row:r}){return i.disabled?!i.disabled(r):!0},visibleMethod({row:r}){return i.shown?i.shown(r):!0},reserve:i.preserveSelectedRowKeys||u.isUndefined(e.dataSource),range:i.range||!1}),t.border=e.bordered===!1?"inner":!0,e.expandable&&(t.expandConfig=u.omit(e.expandable,["renderContent","width","title"])),e.footer&&(t.showFooter=!0,u.isFunction(e.footer)?t.footerMethod=e.footer:t.footerData=e.footer),e.virtual===!1?(t.virtualXConfig={enabled:!1},t.virtualYConfig={enabled:!1}):(f(t,"X",e.virtual),f(t,"Y",e.virtual)),t.round=c.isDef(e.round)?e.round:!e.card,t.headerCellConfig={height:36,...t.headerCellConfig||{}},t.treeConfig&&(t.treeConfig={...t.treeConfig||{},transform:!0}),t.resizableConfig={minWidth({cell:r}){return R(r,e.size)}},t}function f(e,i,t){const n=i==="X",r=n?"x":"y",d=n?"virtualXConfig":"virtualYConfig",o=t?.[r],a=o!==!1,s=n?g:m,h=u.isNumber(o)&&o>=0?o:s;e[d]={enabled:a,gt:h,oSize:t?.oSize||0}}function y(e){return e===!0?"left":e}function v(e,i,t){const n=e===!0||!e.type?"checkbox":e.type,r=(t==="mini"?
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("lodash-unified");require("../../utils/index.js");const c=require("../../utils/is.js"),g=20,m=50,C=e=>e.some(i=>!!i.html);function b(e,i){const t={...u.omit(e,["columns","request","searchForm","dataSource","rowKey","value","round"])};return t.rowConfig={isHover:!0,keyField:e.rowKey,isCurrent:!!e.rowHighlightable},t.columnConfig={},C(e.columns||[])&&(t.rowConfig.useKey=!0,t.columnConfig.useKey=!0),e.adaptive&&(t.autoResize=!0,t.height="100%"),e.columnResizable&&(t.columnConfig.resizable=!0),i&&(i.type==="radio"?t.radioConfig={highlight:!0,checkMethod({row:r}){return i.disabled?!i.disabled(r):!0},visibleMethod({row:r}){return i.shown?i.shown(r):!0},checkRowKey:i.defaultSelectedRowKeys?.[0],reserve:i.preserveSelectedRowKeys||u.isUndefined(e.dataSource)}:t.checkboxConfig={highlight:!0,checkMethod({row:r}){return i.disabled?!i.disabled(r):!0},visibleMethod({row:r}){return i.shown?i.shown(r):!0},reserve:i.preserveSelectedRowKeys||u.isUndefined(e.dataSource),range:i.range||!1}),t.border=e.bordered===!1?"inner":!0,e.expandable&&(t.expandConfig=u.omit(e.expandable,["renderContent","width","title"])),e.footer&&(t.showFooter=!0,u.isFunction(e.footer)?t.footerMethod=e.footer:t.footerData=e.footer),e.virtual===!1?(t.virtualXConfig={enabled:!1},t.virtualYConfig={enabled:!1}):(f(t,"X",e.virtual),f(t,"Y",e.virtual)),t.round=c.isDef(e.round)?e.round:!e.card,t.headerCellConfig={height:36,...t.headerCellConfig||{}},t.treeConfig&&(t.treeConfig={...t.treeConfig||{},transform:!0}),t.resizableConfig={minWidth({cell:r}){return R(r,e.size)}},t}function f(e,i,t){const n=i==="X",r=n?"x":"y",d=n?"virtualXConfig":"virtualYConfig",o=t?.[r],a=o!==!1,s=n?g:m,h=u.isNumber(o)&&o>=0?o:s;e[d]={enabled:a,gt:h,oSize:t?.oSize||0}}function y(e){return e===!0?"left":e}function v(e,i,t){const n=e===!0||!e.type?"checkbox":e.type,r=(t==="mini"?9*2:12*2)+16,d=e===!0?r:e.columnWidth||r;let o=e===!0?void 0:y(e.fixed);return o||(o===!1?o=void 0:o=i.some(a=>a.fixed==="left"||a.fixed===!0)?"left":void 0),{type:n,width:d,fixed:o}}function x(e){const i=e?.width||"auto";return{type:"expand",title:e?.title,width:i}}function l(e){if(!e)return 0;const i=getComputedStyle(e);return e.offsetWidth+(Number.parseFloat(i.marginLeft)||0)+Number.parseFloat(i.marginRight)||0}function R(e,i){if(!e)return"auto";const t=getComputedStyle(e);let n=i==="medium"?12*2:9*2;const r=(Number.parseFloat(t.fontSize)||14)*1.6;return n+=r,e.querySelector("span.anticon-question-circle")&&(n+=20),n+=l(e.querySelector(".vxe-cell--sort"))+l(e.querySelector(".vxe-cell--filter")),Math.ceil(n)}exports.getRowExpandProps=x;exports.getRowSelectionProps=v;exports.toVxeProps=b;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Recordable } from '../type';
|
|
2
2
|
import { ApListExpose, ApListProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
import { ApFormSearchFormExpose } from '..';
|
|
5
5
|
declare const _default: <RecordType extends Recordable>(__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
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
|
|
@@ -35,7 +35,9 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
35
35
|
}): any;
|
|
36
36
|
};
|
|
37
37
|
emit: {};
|
|
38
|
-
}>) => VNode
|
|
38
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}> & {
|
|
39
41
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
40
42
|
};
|
|
41
43
|
export default _default;
|
|
@@ -6,7 +6,7 @@ export type ModalFunc = (props: ModalFuncProps) => {
|
|
|
6
6
|
update: (configUpdate: ConfigUpdate) => void;
|
|
7
7
|
};
|
|
8
8
|
declare const confirm: (config: ModalFuncProps) => {
|
|
9
|
-
destroy: (this:
|
|
9
|
+
destroy: (this: any, ...args: any[]) => void;
|
|
10
10
|
update: (configUpdate: ConfigUpdate) => void;
|
|
11
11
|
};
|
|
12
12
|
export default confirm;
|
|
@@ -2,7 +2,7 @@ import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
|
|
|
2
2
|
import { ApFormSearchFormPopoverSorterItem } from '../ap-form';
|
|
3
3
|
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
4
4
|
import { ApColumnType, ApTableProps } from './interface';
|
|
5
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode } from 'vue';
|
|
5
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
6
6
|
declare const _default: <RecordType>(__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<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
|
|
8
8
|
expose(exposed: ShallowUnwrapRef<{
|
|
@@ -98,7 +98,9 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
98
98
|
}) => void;
|
|
99
99
|
};
|
|
100
100
|
emit: {};
|
|
101
|
-
}>) => VNode
|
|
101
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
}> & {
|
|
102
104
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
103
105
|
};
|
|
104
106
|
export default _default;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
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';
|
|
2
2
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
3
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
3
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
5
5
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
6
6
|
import { Options } from '../../../../../node_modules/scroll-into-view-if-needed';
|
|
7
7
|
import { Recordable } from '../../../../type';
|
|
8
8
|
import { VueTypeDef, VueTypeValidableDef } from '../../../../../node_modules/vue-types';
|
|
9
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
9
10
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
10
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
11
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../../ap-form';
|
|
@@ -112,7 +113,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
112
113
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
113
114
|
readonly initialValues?: Recordable | undefined;
|
|
114
115
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
115
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
116
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
116
117
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
117
118
|
readonly autoFocusFirstInput?: boolean | undefined;
|
|
118
119
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|