@aplus-frontend/ui 7.19.0-beta.1 → 7.19.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 +2 -4
- package/es/src/ag-grid/editable/form-item.vue.mjs +88 -77
- package/es/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ag-grid/editable/index.vue.mjs +9 -8
- package/es/src/ag-grid/editable/interface.d.ts +15 -1
- package/es/src/ag-grid/hooks/use-columns.mjs +31 -23
- package/es/src/ag-grid/hooks/use-pinned-row.mjs +2 -2
- package/es/src/ag-grid/index.vue.d.ts +2 -4
- package/es/src/ag-grid/index.vue.mjs +353 -335
- package/es/src/ag-grid/interface.d.ts +40 -1
- package/es/src/ag-grid/utils.d.ts +18 -0
- package/es/src/ag-grid/utils.mjs +39 -18
- package/es/src/ap-field/cascader/use-options.d.ts +4 -4
- package/es/src/ap-field/date/index.vue.d.ts +0 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +0 -1
- 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 +1 -2
- package/es/src/ap-form/ap-form.vue2.mjs +63 -61
- package/es/src/ap-form/context.mjs +1 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/interface.d.ts +4 -0
- 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 +9 -11
- package/es/src/ap-form/items/date-range/index.vue.d.ts +13 -15
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/provider/context.mjs +1 -1
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/utils/table.mjs +2 -2
- package/es/src/ap-list/index.vue.d.ts +2 -4
- 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 +2 -4
- package/es/src/ap-table/components/setting/context.d.ts +1 -1
- package/es/src/ap-table/components/setting/context.mjs +1 -1
- package/es/src/ap-table/components/setting/modal/index.vue.mjs +127 -117
- 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 +2 -3
- package/es/src/ap-table/constants.d.ts +20 -22
- package/es/src/ap-table/context.mjs +1 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +9 -9
- package/es/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
- package/es/src/ap-table/hooks/use-table-template-storage.mjs +102 -95
- 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 +1 -3
- package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- 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 +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-table-modal/index.d.ts +17 -5
- package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +128 -112
- package/es/src/business/ap-value-select-card/index.vue.d.ts +2 -4
- package/es/src/business/ap-view/ap-view.vue.d.ts +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +87 -81
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
- package/es/src/business/ap-view/hooks/use-send-to-url.mjs +46 -30
- package/es/src/business/ap-view/hooks/use-view-provide.mjs +1 -1
- package/es/src/business/ap-view/index.d.ts +3 -3
- package/es/src/business/ap-view/interface.d.ts +7 -1
- 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 +5 -1
- 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 +2 -4
- package/es/src/editable-table/index.vue.d.ts +2 -4
- 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/type.d.ts +1 -0
- 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 +2 -4
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/editable/interface.d.ts +15 -1
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -1
- package/lib/src/ag-grid/index.vue.d.ts +2 -4
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +40 -1
- package/lib/src/ag-grid/utils.d.ts +18 -0
- package/lib/src/ag-grid/utils.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 +0 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +0 -1
- 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 +1 -2
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/interface.d.ts +4 -0
- package/lib/src/ap-form/item/index.vue.d.ts +6 -6
- package/lib/src/ap-form/items/date/index.vue.d.ts +9 -11
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +13 -15
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/components/setting/context.d.ts +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -1
- package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
- package/lib/src/ap-table/constants.d.ts +20 -22
- 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/ap-table/hooks/use-table-template-storage.js +1 -1
- 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 +2 -4
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/business/ap-table-modal/index.d.ts +17 -5
- 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 +2 -4
- package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -1
- 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 +2 -3
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/lib/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
- package/lib/src/business/ap-view/hooks/use-send-to-url.js +1 -1
- package/lib/src/business/ap-view/index.d.ts +3 -3
- package/lib/src/business/ap-view/interface.d.ts +7 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- 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/type.d.ts +1 -0
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -149,6 +149,10 @@ export type ApFormInternalInstance = {
|
|
|
149
149
|
* 更新表单的初始值(仅用于某些组件内部调用的情况)
|
|
150
150
|
*/
|
|
151
151
|
updateInitialModel: (name: FormItemProps['name'], val: any) => void;
|
|
152
|
+
/**
|
|
153
|
+
* 表单校验
|
|
154
|
+
*/
|
|
155
|
+
validateFields: ApFormExpose['validateFields'];
|
|
152
156
|
};
|
|
153
157
|
export type ApFormItemExpose = FormItemExpose & {
|
|
154
158
|
/**
|
|
@@ -446,7 +446,7 @@ declare function __VLS_template(): {
|
|
|
446
446
|
default: string | number | ColSize;
|
|
447
447
|
};
|
|
448
448
|
xxl: {
|
|
449
|
-
type: PropType<string | number | ColSize>;
|
|
449
|
+
type: PropType<string | number | ** @type { [typeof __VLS_components.Render, typeof __VLS_components.Render, ] } */).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 | ColSize>;
|
|
551
|
+
type: PropType<string | number | ** @type { [typeof __VLS_components.Render, typeof __VLS_components.Render, ] } */).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 | ColSize>;
|
|
707
|
+
type: PropType<string | number | ** @type { [typeof __VLS_components.Render, typeof __VLS_components.Render, ] } */).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 | ColSize>;
|
|
1244
|
+
type: PropType<string | number | ** @type { [typeof __VLS_components.Render, typeof __VLS_components.Render, ] } */).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 | ColSize>;
|
|
1346
|
+
type: PropType<string | number | ** @type { [typeof __VLS_components.Render, typeof __VLS_components.Render, ] } */).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 | ColSize>;
|
|
1502
|
+
type: PropType<string | number | ** @type { [typeof __VLS_components.Render, typeof __VLS_components.Render, ] } */).ColSize>;
|
|
1503
1503
|
default: string | number | ColSize;
|
|
1504
1504
|
};
|
|
1505
1505
|
prefixCls: StringConstructor;
|
|
@@ -11,13 +11,11 @@ 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, CustomFormat, DisabledTimes, DisabledTime, 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';
|
|
19
18
|
import { ZoneAlias } from '@aplus-frontend/utils';
|
|
20
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
21
19
|
import { OnCleanup } from '@vue/reactivity';
|
|
22
20
|
declare function __VLS_template(): {
|
|
23
21
|
attrs: Partial<{}>;
|
|
@@ -69,7 +67,7 @@ declare function __VLS_template(): {
|
|
|
69
67
|
readonly onSelect?: ((value: Dayjs) => void) | undefined;
|
|
70
68
|
readonly open?: boolean | undefined;
|
|
71
69
|
readonly disabled?: boolean | undefined;
|
|
72
|
-
readonly direction?:
|
|
70
|
+
readonly direction?: "ltr" | "rtl" | undefined;
|
|
73
71
|
readonly placeholder?: string | undefined;
|
|
74
72
|
readonly id?: string | undefined;
|
|
75
73
|
readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
@@ -106,19 +104,19 @@ declare function __VLS_template(): {
|
|
|
106
104
|
readonly showToday?: boolean | undefined;
|
|
107
105
|
readonly showTime?: boolean | SharedTimeProps<Dayjs> | undefined;
|
|
108
106
|
readonly valueFormat?: string | undefined;
|
|
109
|
-
readonly value?:
|
|
107
|
+
readonly value?: number | null | undefined;
|
|
110
108
|
readonly defaultValue?: number | undefined;
|
|
111
109
|
readonly 'onUpdate:value'?: (((ts: number | null) => void) & ((...args: any[]) => any)) | undefined;
|
|
112
110
|
readonly onChange?: ((ts: number | null, dayStr: string) => void) | undefined;
|
|
113
111
|
readonly onOk?: ((ts: number | null) => void) | undefined;
|
|
114
112
|
readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
|
|
115
|
-
readonly shownFormat?:
|
|
113
|
+
readonly shownFormat?: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[] | undefined;
|
|
116
114
|
readonly formatBegins?: boolean | undefined;
|
|
117
115
|
readonly timezone?: ( ZoneAlias | {
|
|
118
116
|
label?: string;
|
|
119
117
|
value: ZoneAlias;
|
|
120
118
|
}[]) | undefined;
|
|
121
|
-
readonly disabledTime?:
|
|
119
|
+
readonly disabledTime?: ((date: Dayjs) => DisabledTimes) | undefined;
|
|
122
120
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
123
121
|
$attrs: {
|
|
124
122
|
[x: string]: unknown;
|
|
@@ -822,7 +820,7 @@ declare const __VLS_component: DefineComponent<ApFormItemDateProps, {
|
|
|
822
820
|
readonly onSelect?: ((value: Dayjs) => void) | undefined;
|
|
823
821
|
readonly open?: boolean | undefined;
|
|
824
822
|
readonly disabled?: boolean | undefined;
|
|
825
|
-
readonly direction?:
|
|
823
|
+
readonly direction?: "ltr" | "rtl" | undefined;
|
|
826
824
|
readonly placeholder?: string | undefined;
|
|
827
825
|
readonly id?: string | undefined;
|
|
828
826
|
readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
@@ -859,19 +857,19 @@ declare const __VLS_component: DefineComponent<ApFormItemDateProps, {
|
|
|
859
857
|
readonly showToday?: boolean | undefined;
|
|
860
858
|
readonly showTime?: boolean | SharedTimeProps<Dayjs> | undefined;
|
|
861
859
|
readonly valueFormat?: string | undefined;
|
|
862
|
-
readonly value?:
|
|
860
|
+
readonly value?: number | null | undefined;
|
|
863
861
|
readonly defaultValue?: number | undefined;
|
|
864
862
|
readonly 'onUpdate:value'?: (((ts: number | null) => void) & ((...args: any[]) => any)) | undefined;
|
|
865
863
|
readonly onChange?: ((ts: number | null, dayStr: string) => void) | undefined;
|
|
866
864
|
readonly onOk?: ((ts: number | null) => void) | undefined;
|
|
867
865
|
readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
|
|
868
|
-
readonly shownFormat?:
|
|
866
|
+
readonly shownFormat?: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[] | undefined;
|
|
869
867
|
readonly formatBegins?: boolean | undefined;
|
|
870
868
|
readonly timezone?: ( ZoneAlias | {
|
|
871
869
|
label?: string;
|
|
872
870
|
value: ZoneAlias;
|
|
873
871
|
}[]) | undefined;
|
|
874
|
-
readonly disabledTime?:
|
|
872
|
+
readonly disabledTime?: ((date: Dayjs) => DisabledTimes) | undefined;
|
|
875
873
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
876
874
|
$attrs: {
|
|
877
875
|
[x: string]: unknown;
|
|
@@ -9,15 +9,13 @@ 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, PresetDate, PanelMode,
|
|
12
|
+
import { EventValue, DisabledTimes, RangeValue, CustomFormat, PresetDate, PanelMode, 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';
|
|
18
17
|
import { ZoneAlias } from '@aplus-frontend/utils';
|
|
19
18
|
import { SharedTimeProps } from '@aplus-frontend/antdv/es/vc-picker/panels/TimePanel';
|
|
20
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
21
19
|
import { OnCleanup } from '@vue/reactivity';
|
|
22
20
|
declare function __VLS_template(): {
|
|
23
21
|
attrs: Partial<{}>;
|
|
@@ -66,8 +64,8 @@ declare function __VLS_template(): {
|
|
|
66
64
|
readonly onMouseup?: MouseEventHandler | undefined;
|
|
67
65
|
readonly open?: boolean | undefined;
|
|
68
66
|
readonly separator?: VueNode;
|
|
69
|
-
readonly disabled?:
|
|
70
|
-
readonly direction?:
|
|
67
|
+
readonly disabled?: boolean | [boolean, boolean] | undefined;
|
|
68
|
+
readonly direction?: "ltr" | "rtl" | undefined;
|
|
71
69
|
readonly placeholder?: [string, string] | undefined;
|
|
72
70
|
readonly id?: string | undefined;
|
|
73
71
|
readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
@@ -102,7 +100,7 @@ declare function __VLS_template(): {
|
|
|
102
100
|
readonly ranges?: Record<string, [ EventValue<Dayjs>, EventValue<Dayjs>] | (() => [ EventValue<Dayjs>, EventValue<Dayjs>])> | undefined;
|
|
103
101
|
readonly allowEmpty?: [boolean, boolean] | undefined;
|
|
104
102
|
readonly onCalendarChange?: ((values: RangeValue<Dayjs>, formatString: [string, string], info: RangeInfo) => void) | undefined;
|
|
105
|
-
readonly activePickerIndex?:
|
|
103
|
+
readonly activePickerIndex?: 0 | 1 | undefined;
|
|
106
104
|
readonly valueFormat?: string | undefined;
|
|
107
105
|
readonly value?: ( RangeValue<number> | null) | undefined;
|
|
108
106
|
readonly defaultValue?: RangeValue<number> | undefined;
|
|
@@ -110,13 +108,13 @@ declare function __VLS_template(): {
|
|
|
110
108
|
readonly onChange?: ((ts: RangeValue<number> | null, dayStr: [string, string]) => void) | undefined;
|
|
111
109
|
readonly onOk?: ((ts: RangeValue<number>) => void) | undefined;
|
|
112
110
|
readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
|
|
113
|
-
readonly shownFormat?:
|
|
111
|
+
readonly shownFormat?: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[] | undefined;
|
|
114
112
|
readonly timezone?: ( ZoneAlias | {
|
|
115
113
|
label?: string;
|
|
116
114
|
value: ZoneAlias;
|
|
117
115
|
}[]) | undefined;
|
|
118
116
|
readonly readModeSeparator?: any;
|
|
119
|
-
readonly presets?:
|
|
117
|
+
readonly presets?: true | PresetDate<RangeValue<Dayjs>>[] | {
|
|
120
118
|
thisWeek?: boolean;
|
|
121
119
|
lastWeek?: boolean;
|
|
122
120
|
last7Days?: boolean;
|
|
@@ -128,7 +126,7 @@ declare function __VLS_template(): {
|
|
|
128
126
|
lastQuarter?: boolean;
|
|
129
127
|
thisYear?: boolean;
|
|
130
128
|
lastYear?: boolean;
|
|
131
|
-
};
|
|
129
|
+
} | undefined;
|
|
132
130
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
133
131
|
$attrs: {
|
|
134
132
|
[x: string]: unknown;
|
|
@@ -874,8 +872,8 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
874
872
|
readonly onMouseup?: MouseEventHandler | undefined;
|
|
875
873
|
readonly open?: boolean | undefined;
|
|
876
874
|
readonly separator?: VueNode;
|
|
877
|
-
readonly disabled?:
|
|
878
|
-
readonly direction?:
|
|
875
|
+
readonly disabled?: boolean | [boolean, boolean] | undefined;
|
|
876
|
+
readonly direction?: "ltr" | "rtl" | undefined;
|
|
879
877
|
readonly placeholder?: [string, string] | undefined;
|
|
880
878
|
readonly id?: string | undefined;
|
|
881
879
|
readonly getPopupContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
@@ -910,7 +908,7 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
910
908
|
readonly ranges?: Record<string, [ EventValue<Dayjs>, EventValue<Dayjs>] | (() => [ EventValue<Dayjs>, EventValue<Dayjs>])> | undefined;
|
|
911
909
|
readonly allowEmpty?: [boolean, boolean] | undefined;
|
|
912
910
|
readonly onCalendarChange?: ((values: RangeValue<Dayjs>, formatString: [string, string], info: RangeInfo) => void) | undefined;
|
|
913
|
-
readonly activePickerIndex?:
|
|
911
|
+
readonly activePickerIndex?: 0 | 1 | undefined;
|
|
914
912
|
readonly valueFormat?: string | undefined;
|
|
915
913
|
readonly value?: ( RangeValue<number> | null) | undefined;
|
|
916
914
|
readonly defaultValue?: RangeValue<number> | undefined;
|
|
@@ -918,13 +916,13 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
918
916
|
readonly onChange?: ((ts: RangeValue<number> | null, dayStr: [string, string]) => void) | undefined;
|
|
919
917
|
readonly onOk?: ((ts: RangeValue<number>) => void) | undefined;
|
|
920
918
|
readonly format?: LiteralUnion<ApFormatPresetType, string> | undefined;
|
|
921
|
-
readonly shownFormat?:
|
|
919
|
+
readonly shownFormat?: string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[] | undefined;
|
|
922
920
|
readonly timezone?: ( ZoneAlias | {
|
|
923
921
|
label?: string;
|
|
924
922
|
value: ZoneAlias;
|
|
925
923
|
}[]) | undefined;
|
|
926
924
|
readonly readModeSeparator?: any;
|
|
927
|
-
readonly presets?:
|
|
925
|
+
readonly presets?: true | PresetDate<RangeValue<Dayjs>>[] | {
|
|
928
926
|
thisWeek?: boolean;
|
|
929
927
|
lastWeek?: boolean;
|
|
930
928
|
last7Days?: boolean;
|
|
@@ -936,7 +934,7 @@ declare const __VLS_component: DefineComponent<ApFormItemDateRangeProps, {
|
|
|
936
934
|
lastQuarter?: boolean;
|
|
937
935
|
thisYear?: boolean;
|
|
938
936
|
lastYear?: boolean;
|
|
939
|
-
};
|
|
937
|
+
} | undefined;
|
|
940
938
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
941
939
|
$attrs: {
|
|
942
940
|
[x: string]: unknown;
|
|
@@ -4,7 +4,6 @@ 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';
|
|
8
7
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
9
8
|
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
10
9
|
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
@@ -81,7 +80,7 @@ declare function __VLS_template(): {
|
|
|
81
80
|
offset: ValueType;
|
|
82
81
|
type: "up" | "down";
|
|
83
82
|
}) => void) | undefined;
|
|
84
|
-
readonly inputMode?:
|
|
83
|
+
readonly inputMode?: "input" | "spinner" | undefined;
|
|
85
84
|
readonly thousands?: boolean | undefined;
|
|
86
85
|
readonly limitDecimalsRetain?: boolean | undefined;
|
|
87
86
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -603,7 +602,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
603
602
|
offset: ValueType;
|
|
604
603
|
type: "up" | "down";
|
|
605
604
|
}) => void) | undefined;
|
|
606
|
-
readonly inputMode?:
|
|
605
|
+
readonly inputMode?: "input" | "spinner" | undefined;
|
|
607
606
|
readonly thousands?: boolean | undefined;
|
|
608
607
|
readonly limitDecimalsRetain?: boolean | undefined;
|
|
609
608
|
} & 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?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
135
135
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
136
|
-
readonly searchMode?:
|
|
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?:
|
|
141
|
-
readonly addAll?:
|
|
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?: (string | number) | LabeledValue | (string | number)[] | LabeledValue[] | undefined;
|
|
801
801
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
802
|
-
readonly searchMode?:
|
|
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?:
|
|
807
|
-
readonly addAll?:
|
|
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
|
|
1
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } 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,7 +7,6 @@ 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';
|
|
11
10
|
import { SizeType, ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
|
|
@@ -121,7 +120,7 @@ declare function __VLS_template(): {
|
|
|
121
120
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
122
121
|
readonly initialValues?: Recordable | undefined;
|
|
123
122
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
124
|
-
readonly syncToUrl?:
|
|
123
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
125
124
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
126
125
|
readonly autoFocusFirstInput?: boolean | undefined;
|
|
127
126
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -1326,7 +1325,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1326
1325
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1327
1326
|
readonly initialValues?: Recordable | undefined;
|
|
1328
1327
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1329
|
-
readonly syncToUrl?:
|
|
1328
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1330
1329
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1331
1330
|
readonly autoFocusFirstInput?: boolean | undefined;
|
|
1332
1331
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -1,13 +1,12 @@
|
|
|
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,
|
|
4
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, 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';
|
|
11
10
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
12
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
13
12
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSearchFormPopoverSorterItem } from '..';
|
|
@@ -119,7 +118,7 @@ declare function __VLS_template(): {
|
|
|
119
118
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
120
119
|
readonly initialValues?: Recordable | undefined;
|
|
121
120
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
122
|
-
readonly syncToUrl?:
|
|
121
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
123
122
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
124
123
|
readonly autoFocusFirstInput?: boolean | undefined;
|
|
125
124
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -1109,7 +1108,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1109
1108
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1110
1109
|
readonly initialValues?: Recordable | undefined;
|
|
1111
1110
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1112
|
-
readonly syncToUrl?:
|
|
1111
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1113
1112
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1114
1113
|
readonly autoFocusFirstInput?: boolean | undefined;
|
|
1115
1114
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { Recordable } from '../../type';
|
|
2
2
|
import { EditableGridFormItemExpose, EditableGridFormItemProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } 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
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}> & {
|
|
10
|
+
}>) => VNode & {
|
|
13
11
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
12
|
};
|
|
15
13
|
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
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } 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,9 +9,7 @@ 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
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}> & {
|
|
12
|
+
}>) => VNode & {
|
|
15
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
16
14
|
};
|
|
17
15
|
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
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } 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,9 +35,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
35
35
|
}) => any;
|
|
36
36
|
};
|
|
37
37
|
emit: {};
|
|
38
|
-
}>) => VNode
|
|
39
|
-
[key: string]: any;
|
|
40
|
-
}> & {
|
|
38
|
+
}>) => VNode & {
|
|
41
39
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
42
40
|
};
|
|
43
41
|
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"?18:24)+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"?24:18;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
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } 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,9 +35,7 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
35
35
|
}): any;
|
|
36
36
|
};
|
|
37
37
|
emit: {};
|
|
38
|
-
}>) => VNode
|
|
39
|
-
[key: string]: any;
|
|
40
|
-
}> & {
|
|
38
|
+
}>) => VNode & {
|
|
41
39
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
42
40
|
};
|
|
43
41
|
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: any, ...args: any[]) => void;
|
|
9
|
+
destroy: (this: /*elided*/ 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
|
|
5
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode } 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,9 +98,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
98
98
|
}) => void;
|
|
99
99
|
};
|
|
100
100
|
emit: {};
|
|
101
|
-
}>) => VNode
|
|
102
|
-
[key: string]: any;
|
|
103
|
-
}> & {
|
|
101
|
+
}>) => VNode & {
|
|
104
102
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
105
103
|
};
|
|
106
104
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),q=require("@ant-design/icons-vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),q=require("@ant-design/icons-vue"),r=require("@aplus-frontend/antdv");require("../../../../ap-button/index.js");const X=require("../../../../utils/index.js");require("../../../../config-provider/index.js");const Y=require("../../../../utils/slot.js"),Z=require("../../../context.js"),ee=require("../../../hooks/use-table-column-state.js"),te=require("../../../hooks/use-table-template-storage.js"),ne=require("../../../style/setting.js"),ae=require("../context.js");require("../sorter/index.vue.js");require("../template/edit-form.vue.js");require("../template/index.vue.js");require("../tree-select/index.vue.js");const v=require("../utils.js"),le=require("../../../../config-provider/hooks/use-locale.js"),z=require("../../../../config-provider/hooks/use-namespace.js"),oe=require("../template/index.vue2.js"),re=require("../tree-select/index.vue2.js"),ue=require("../sorter/index.vue2.js"),ie=require("../../../../ap-button/ap-button.vue.js"),se=require("../template/edit-form.vue2.js"),ce={style:{"padding-inline":"8px"}},de=e.defineComponent({name:"ApTableSetting",__name:"index",props:{config:{default:()=>({persistenceKey:""})}},setup(B){const i=B,{columnsBackup:A,updateSize:D,updateColumns:K}=Z.useInjectApTable(),c=e.ref(),g=e.computed(()=>i.config.persistenceKey),C=e.ref(!1),{basicTemplate:E,customizeTemplateList:f,addTemplate:I,deleteTemplate:T,updateTemplate:R}=te.useTableTemplateStorage(i.config,g,Q),{columnState:s,setColumnState:k,isAllSelected:L,toggleSelectAll:O}=ee.useTableColumnState([]),y=e.computed(()=>g.value&&`${g.value}__active_key`);function x(n){y.value&&localStorage.setItem(y.value,n)}function h(){if(y.value)return localStorage.getItem(y.value)}const l=e.ref(i.config.defaultActiveKey??h());e.watch(()=>f.value,n=>{n.length&&!l.value&&(l.value=n[0]?.key)},{immediate:!0}),ae.useProvideApColumnSetting({activeKey:l,cacheConfig:e.toRef(i,"config"),deleteTemplate:H});const{t:u}=le.useLocale(),{b:p,be:_}=z.useNamespace("ap-column-setting"),{b:$}=z.useNamespace("ap-table"),P=ne.default("ap-column-setting"),m=e.ref(!1),V=e.ref(!1),M=e.useSlots(),b=Y.getSingleVNode(M.trigger)||e.createVNode(r.Button,{icon:e.createVNode(q.SettingOutlined,null,null),class:$("setting-trigger-button")},null),w=b?e.cloneVNode(b,{onClick:()=>{m.value=!0}}):null;function U(){k(v.customCloneColumnStates(e.unref(E).columnState))}function S(n,t){K?.(v.default(e.unref(A),n)),D?.(t)}function j(){S(e.unref(s),e.unref(c)),m.value=!1;const n=v.customCloneColumnStates(s.value),t=R(l.value,{columnState:n,size:c.value});x(l.value),i.config?.onChange?.(n,t)}function F(n){const t=i.config.getActiveKey?.(n)??X.randomStr(),a={key:t,label:n,columnState:s.value,size:c.value};I(a),C.value=!1,l.value=t,i.config.onChange?.(a.columnState,a)}function G(n,t){const a=[...t].find(o=>o?.key===n);a&&(k(v.customCloneColumnStates(a.columnState)),c.value=a.size)}function H(n){if(n!==l.value){T(n);return}const t=f.value,a=t.findIndex(d=>d.key===n),o=t[a+1]?.key??t[a-1]?.key;T(n),l.value=o,x(o)}function J(n){if(V.value=n,!n){const t=h();t&&t!==l.value&&(l.value=t)}}function Q(n){const t=h()??n[0].key;l.value=t;const a=[...n].find(o=>o?.key===t);a&&S(a.columnState,a.size)}e.watch([l,f],([n,t],[a,o])=>{if(t.length&&!o?.length&&n){const d=[...t].find(W=>W.key===n);if(!d)return;S(d.columnState,d.size)}G(n,t)},{immediate:!0});const N=e.ref(!1);return e.watch([c,s,m],([n,t,a])=>{if(!a)return;const o=f.value.find(d=>d.key===l.value);o&&(o.size!==n||!v.isEqualColumnStateIgnoreLabel(t,o.columnState))?N.value=!0:N.value=!1},{deep:!0}),e.watch(()=>l.value,n=>{i.config.onActiveChange?.(n)},{immediate:!0}),(n,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(w)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(w)),{key:0})):e.createCommentVNode("",!0),e.createVNode(e.unref(r.Modal),{open:m.value,"onUpdate:open":t[4]||(t[4]=a=>m.value=a),title:e.unref(u)("ap.apTable.setting.title"),width:1e3,centered:!0,"body-style":{padding:"0px !important",height:"516px"},"after-open-change":J,"wrap-class-name":`${e.unref(p)()} ${e.unref(P)}`,"ok-text":e.unref(u)("ap.apTable.setting.saveAndApply"),"mask-closable":!1,onOk:j},{footer:e.withCtx(({extra:a})=>[e.createVNode(e.unref(r.Flex),{justify:"space-between"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.Space),{size:12},{default:e.withCtx(()=>[e.createVNode(e.unref(r.Popover),{open:C.value,"onUpdate:open":t[3]||(t[3]=o=>C.value=o),trigger:"click",arrow:!1,placement:"topLeft","destroy-tooltip-on-hide":""},{content:e.withCtx(()=>[e.createVNode(se.default,{onConfirm:F,onCancel:t[2]||(t[2]=()=>C.value=!1)})]),default:e.withCtx(()=>[e.createVNode(e.unref(ie.default),{type:"borderLink",disabled:!n.config.persistenceKey},{icon:e.withCtx(()=>[e.createVNode(e.unref(q.SaveOutlined))]),default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("ap.apTable.setting.saveAsTemplate"))+" ",1)]),_:1},8,["disabled"])]),_:1},8,["open"]),N.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(p)("modify-tip"))},e.toDisplayString(e.unref(u)("ap.apTable.setting.modifyNotification")),3)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.unref(r.Space),{size:10},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.cancelBtn))),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.okBtn)))]),_:2},1024)]),_:2},1024)]),default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("wrapper"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("left"))},[e.createVNode(oe.default,{"customize-template-list":e.unref(f),"persistence-key":g.value},null,8,["customize-template-list","persistence-key"])],2),e.createVNode(e.unref(r.Divider),{type:"vertical",style:{height:"100%",margin:"0px"}}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("center"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(_)("center","header"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(_)("center","tip-wrapper"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(_)("center","header-tips"))},e.toDisplayString(e.unref(u)("ap.apTable.setting.selectAllTip")),3),e.createVNode(e.unref(r.Button),{type:"link",size:"small",onClick:e.unref(O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(L)?e.unref(u)("ap.apTable.setting.unSelectAll"):e.unref(u)("ap.apTable.setting.selectAll")),1)]),_:1},8,["onClick"])],2),e.createVNode(e.unref(r.RadioGroup),{value:c.value,"onUpdate:value":t[0]||(t[0]=a=>c.value=a)},{default:e.withCtx(()=>[e.createVNode(e.unref(r.RadioButton),{value:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("ap.apTable.setting.sizeSmall")),1)]),_:1}),e.createVNode(e.unref(r.RadioButton),{value:"middle"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("ap.apTable.setting.sizeNormal")),1)]),_:1})]),_:1},8,["value"])],2),e.createElementVNode("div",ce,[e.createVNode(e.unref(r.Divider),{dashed:"",style:{margin:"0px"}})]),e.createVNode(re.default,{class:e.normalizeClass(e.unref(_)("center","content")),value:e.unref(s)},null,8,["class","value"])],2),e.createVNode(e.unref(r.Divider),{type:"vertical",style:{height:"100%",margin:"0px"}}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("right"))},[e.createVNode(ue.default,{value:e.unref(s),"onUpdate:value":t[1]||(t[1]=a=>e.isRef(s)?s.value=a:null),onReset:U},null,8,["value"])],2)],2),[[e.vShow,V.value]])]),_:1},8,["open","title","wrap-class-name","ok-text"])],64))}});exports.default=de;
|
|
@@ -1,12 +1,11 @@
|
|
|
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,
|
|
3
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, 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';
|
|
10
9
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
11
10
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
11
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc } from '../../../../ap-form';
|
|
@@ -113,7 +112,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
113
112
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
114
113
|
readonly initialValues?: Recordable | undefined;
|
|
115
114
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
116
|
-
readonly syncToUrl?:
|
|
115
|
+
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
117
116
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
118
117
|
readonly autoFocusFirstInput?: boolean | undefined;
|
|
119
118
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|