@aplus-frontend/ui 6.29.3 → 6.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ag-grid/index.vue.mjs +228 -222
- package/es/src/ag-grid/renderer/select.mjs +8 -11
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +5 -6
- package/es/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/es/src/ap-field/checkbox/read.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.d.ts +4 -4
- package/es/src/ap-field/date/index.vue.mjs +11 -10
- package/es/src/ap-field/date/read.vue.d.ts +1 -1
- package/es/src/ap-field/date/read.vue2.mjs +8 -7
- package/es/src/ap-field/date-range/index.vue.d.ts +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +1 -0
- package/es/src/ap-field/date-range/read.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/read.vue2.mjs +1 -0
- package/es/src/ap-field/index.d.ts +7 -7
- package/es/src/ap-field/number/index.vue.d.ts +90 -50
- package/es/src/ap-field/number/index.vue.mjs +14 -12
- package/es/src/ap-field/number/read.vue2.mjs +8 -6
- package/es/src/ap-field/rate/index.vue.d.ts +6 -6
- package/es/src/ap-field/select/index.vue.d.ts +241 -241
- package/es/src/ap-field/select/index.vue.mjs +27 -27
- package/es/src/ap-field/select/read.vue2.mjs +27 -27
- package/es/src/ap-field/slider/index.vue.d.ts +9 -9
- package/es/src/ap-field/switch/index.vue.d.ts +1 -1
- package/es/src/ap-field/switch/read.vue.d.ts +1 -1
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/index.vue2.mjs +39 -38
- package/es/src/ap-field/text/password.vue.d.ts +1 -1
- package/es/src/ap-field/text/password.vue.mjs +34 -33
- package/es/src/ap-field/text/read-password.vue.d.ts +1 -1
- package/es/src/ap-field/text/read-password.vue2.mjs +31 -30
- package/es/src/ap-field/text/read.vue.d.ts +1 -1
- package/es/src/ap-field/text/read.vue2.mjs +21 -20
- package/es/src/ap-field/text-area/index.vue.d.ts +67 -57
- package/es/src/ap-field/text-area/index.vue.mjs +15 -14
- package/es/src/ap-field/text-area/read.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/read.vue2.mjs +11 -10
- package/es/src/ap-field/tree-select/index.vue.d.ts +326 -326
- package/es/src/ap-field/tree-select/index.vue.mjs +46 -46
- package/es/src/ap-field/tree-select/read.vue2.mjs +45 -45
- package/es/src/ap-form/ap-form.vue.d.ts +71 -67
- package/es/src/ap-form/drawer-form/index.vue.d.ts +65 -65
- package/es/src/ap-form/item/index.vue.d.ts +36 -36
- package/es/src/ap-form/item/index.vue.mjs +10 -10
- package/es/src/ap-form/items/number/index.vue.d.ts +103 -59
- package/es/src/ap-form/items/select/index.vue.d.ts +306 -306
- package/es/src/ap-form/items/text/index.vue.d.ts +19 -17
- package/es/src/ap-form/items/text/password.vue.d.ts +19 -17
- package/es/src/ap-form/items/text-area/index.vue.d.ts +138 -118
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +407 -407
- package/es/src/ap-form/modal-form/index.vue.d.ts +69 -70
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +5 -6
- package/es/src/ap-form/search-form/index.vue.d.ts +67 -67
- package/es/src/ap-form/search-form/index.vue.mjs +40 -40
- package/es/src/ap-grid/constants.d.ts +3 -0
- package/es/src/ap-grid/constants.mjs +6 -3
- package/es/src/ap-grid/index.vue.mjs +221 -214
- package/es/src/ap-grid/utils/table.d.ts +1 -1
- package/es/src/ap-grid/utils/table.mjs +59 -62
- package/es/src/ap-table/constants.d.ts +499 -465
- package/es/src/ap-table/utils.d.ts +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +8 -8
- package/es/src/business/ap-batch-action-group/index.d.ts +7 -8
- package/es/src/business/ap-label/ApLabel.d.ts +4 -4
- package/es/src/business/ap-label/constans.d.ts +1 -1
- package/es/src/business/ap-label/index.d.ts +9 -9
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
- package/es/src/business/ap-radio-group/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -2
- package/es/src/business/ap-view/ap-view.vue2.mjs +80 -80
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +33 -33
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +33 -33
- package/es/src/business/ap-view/interface.d.ts +13 -3
- package/es/src/business/batch-input-group/index.vue.d.ts +11 -10
- package/es/src/business/batch-input-group/index.vue.mjs +20 -19
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +66 -56
- package/es/src/business/hooks/usePageListApTable.d.ts +1 -1
- package/es/src/config-provider/config-provider-props.d.ts +64 -52
- package/es/src/config-provider/config-provider-props.mjs +10 -2
- package/es/src/config-provider/config-provider.d.ts +130 -113
- package/es/src/config-provider/config-provider.mjs +26 -24
- package/es/src/config-provider/hooks/use-global-config.d.ts +60 -49
- package/es/src/config-provider/index.d.ts +214 -197
- package/es/src/mask/utils.d.ts +1 -1
- package/es/src/mask/utils.mjs +29 -13
- package/es/src/text/index.vue.mjs +3 -3
- package/es/src/utils/config-provider-preset.d.ts +36 -49
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +33 -33
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/renderer/select.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +5 -6
- package/lib/src/ap-field/checkbox/index.vue.d.ts +1 -1
- package/lib/src/ap-field/checkbox/read.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +4 -4
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue.d.ts +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +4 -4
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/index.d.ts +7 -7
- package/lib/src/ap-field/number/index.vue.d.ts +90 -50
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/number/read.vue2.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +6 -6
- package/lib/src/ap-field/select/index.vue.d.ts +241 -241
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +9 -9
- package/lib/src/ap-field/switch/index.vue.d.ts +1 -1
- package/lib/src/ap-field/switch/read.vue.d.ts +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +1 -1
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text/read-password.vue.d.ts +1 -1
- package/lib/src/ap-field/text/read-password.vue2.js +1 -1
- package/lib/src/ap-field/text/read.vue.d.ts +1 -1
- package/lib/src/ap-field/text/read.vue2.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +67 -57
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/read.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +326 -326
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +71 -67
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +65 -65
- package/lib/src/ap-form/item/index.vue.d.ts +36 -36
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +103 -59
- package/lib/src/ap-form/items/select/index.vue.d.ts +306 -306
- package/lib/src/ap-form/items/text/index.vue.d.ts +19 -17
- package/lib/src/ap-form/items/text/password.vue.d.ts +19 -17
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +138 -118
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +407 -407
- package/lib/src/ap-form/modal-form/index.vue.d.ts +69 -70
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +5 -6
- package/lib/src/ap-form/search-form/index.vue.d.ts +67 -67
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/constants.d.ts +3 -0
- package/lib/src/ap-grid/constants.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/utils/table.d.ts +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-table/constants.d.ts +499 -465
- package/lib/src/ap-table/utils.d.ts +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +8 -8
- package/lib/src/business/ap-batch-action-group/index.d.ts +7 -8
- package/lib/src/business/ap-label/ApLabel.d.ts +4 -4
- package/lib/src/business/ap-label/constans.d.ts +1 -1
- package/lib/src/business/ap-label/index.d.ts +9 -9
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
- package/lib/src/business/ap-radio-group/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +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 +33 -33
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +33 -33
- package/lib/src/business/ap-view/interface.d.ts +13 -3
- package/lib/src/business/batch-input-group/index.vue.d.ts +11 -10
- package/lib/src/business/batch-input-group/index.vue.js +1 -1
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +66 -56
- package/lib/src/business/hooks/usePageListApTable.d.ts +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +64 -52
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +130 -113
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +60 -49
- package/lib/src/config-provider/index.d.ts +214 -197
- package/lib/src/mask/utils.d.ts +1 -1
- package/lib/src/mask/utils.js +3 -3
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +36 -49
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +33 -33
- package/package.json +3 -3
- package/theme/ag-grid/index.css +0 -6
- package/theme/antdv-override.css +0 -6
- package/theme/antdv-override.less +0 -8
- package/theme/ap-expand-alert/ap-expand-alert.css +0 -4
- package/theme/ap-expand-alert/ap-expand-alert.less +6 -5
- package/theme/ap-form/ap-form-item.css +0 -6
- package/theme/ap-form/ap-form-item.less +0 -6
- package/theme/ap-form/index.css +0 -6
- package/theme/ap-form/search-form.css +0 -6
- package/theme/ap-grid/index.css +0 -6
- package/theme/ap-table/ap-table.css +0 -6
- package/theme/ap-table-modal/index.css +0 -6
- package/theme/ap-view/ap-view.css +4 -0
- package/theme/ap-view/ap-view.less +4 -0
- package/theme/editable-table/index.css +0 -6
- package/theme/index.css +4 -16
|
@@ -60,7 +60,7 @@ export declare function getFieldProps<RecordType = any>(fieldProps: ApColumnType
|
|
|
60
60
|
* @param item
|
|
61
61
|
* @returns
|
|
62
62
|
*/
|
|
63
|
-
export declare function getTableRenderType(item: ApColumnType | EditableColumnType): "number" | "select" | "date" | "checkbox" | "radio" | "text" | "switch" | "
|
|
63
|
+
export declare function getTableRenderType(item: ApColumnType | EditableColumnType): "number" | "select" | "date" | "checkbox" | "radio" | "text" | "switch" | "treeSelect" | "textArea" | "status" | "password" | "index" | "action" | "dateRange";
|
|
64
64
|
export declare function getTableCellRenderNode(renderType: keyof typeof apTableRenderItemMap, renderProps: any, record: any, extraRenderMap?: Record<string, ValueTypeRenderConfig>): any;
|
|
65
65
|
/**
|
|
66
66
|
* 获取查询表单最终渲染的节点
|
|
@@ -190,18 +190,18 @@ declare const _default: DefineComponent<{}, {
|
|
|
190
190
|
disabled: boolean;
|
|
191
191
|
method: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
|
|
192
192
|
locale: UploadLocale;
|
|
193
|
+
removeIcon: (opt: {
|
|
194
|
+
file: UploadFile<any>;
|
|
195
|
+
}) => VueNode;
|
|
193
196
|
action: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
|
|
194
197
|
remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
195
198
|
capture: boolean | "user" | "environment";
|
|
199
|
+
itemRender: ItemRender<any>;
|
|
196
200
|
iconRender: (opt: {
|
|
197
201
|
file: UploadFile<any>;
|
|
198
202
|
listType?: UploadListType;
|
|
199
203
|
}) => VueNode;
|
|
200
204
|
onRemove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
201
|
-
removeIcon: (opt: {
|
|
202
|
-
file: UploadFile<any>;
|
|
203
|
-
}) => VueNode;
|
|
204
|
-
itemRender: ItemRender<any>;
|
|
205
205
|
directory: boolean;
|
|
206
206
|
headers: HttpRequestHeader;
|
|
207
207
|
onReject: (fileList: FileType[]) => void;
|
|
@@ -416,18 +416,18 @@ declare const _default: DefineComponent<{}, {
|
|
|
416
416
|
disabled: boolean;
|
|
417
417
|
method: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
|
|
418
418
|
locale: UploadLocale;
|
|
419
|
+
removeIcon: (opt: {
|
|
420
|
+
file: UploadFile<any>;
|
|
421
|
+
}) => VueNode;
|
|
419
422
|
action: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
|
|
420
423
|
remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
421
424
|
capture: boolean | "user" | "environment";
|
|
425
|
+
itemRender: ItemRender<any>;
|
|
422
426
|
iconRender: (opt: {
|
|
423
427
|
file: UploadFile<any>;
|
|
424
428
|
listType?: UploadListType;
|
|
425
429
|
}) => VueNode;
|
|
426
430
|
onRemove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
427
|
-
removeIcon: (opt: {
|
|
428
|
-
file: UploadFile<any>;
|
|
429
|
-
}) => VueNode;
|
|
430
|
-
itemRender: ItemRender<any>;
|
|
431
431
|
directory: boolean;
|
|
432
432
|
headers: HttpRequestHeader;
|
|
433
433
|
onReject: (fileList: FileType[]) => void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNodeChild, CSSProperties, ComputedRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
|
-
import { ButtonType, ButtonShape } from '@aplus-frontend/antdv/es/button';
|
|
2
|
+
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
3
3
|
import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
4
|
-
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
5
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
6
5
|
import { MouseEventHandler, FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
7
6
|
import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
@@ -27,7 +26,7 @@ declare const ApBatchActionGroup: {
|
|
|
27
26
|
type: PropType<ButtonShape>;
|
|
28
27
|
};
|
|
29
28
|
size: {
|
|
30
|
-
type: PropType<
|
|
29
|
+
type: PropType<ButtonSize>;
|
|
31
30
|
};
|
|
32
31
|
loading: {
|
|
33
32
|
type: PropType<boolean | {
|
|
@@ -68,7 +67,7 @@ declare const ApBatchActionGroup: {
|
|
|
68
67
|
type: PropType<ButtonIconPosition>;
|
|
69
68
|
default: string;
|
|
70
69
|
};
|
|
71
|
-
color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "
|
|
70
|
+
color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
|
|
72
71
|
variant: PropType<ButtonVariantType>;
|
|
73
72
|
}>>, "type" | "onClick"> & {
|
|
74
73
|
type?: ( ButtonType | undefined) | "borderLink";
|
|
@@ -337,7 +336,7 @@ declare const ApBatchActionGroup: {
|
|
|
337
336
|
type: PropType<ButtonShape>;
|
|
338
337
|
};
|
|
339
338
|
size: {
|
|
340
|
-
type: PropType<
|
|
339
|
+
type: PropType<ButtonSize>;
|
|
341
340
|
};
|
|
342
341
|
loading: {
|
|
343
342
|
type: PropType<boolean | {
|
|
@@ -378,7 +377,7 @@ declare const ApBatchActionGroup: {
|
|
|
378
377
|
type: PropType<ButtonIconPosition>;
|
|
379
378
|
default: string;
|
|
380
379
|
};
|
|
381
|
-
color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "
|
|
380
|
+
color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
|
|
382
381
|
variant: PropType<ButtonVariantType>;
|
|
383
382
|
}>>, "type" | "onClick"> & {
|
|
384
383
|
type?: ( ButtonType | undefined) | "borderLink";
|
|
@@ -644,7 +643,7 @@ declare const ApBatchActionGroup: {
|
|
|
644
643
|
type: PropType<ButtonShape>;
|
|
645
644
|
};
|
|
646
645
|
size: {
|
|
647
|
-
type: PropType<
|
|
646
|
+
type: PropType<ButtonSize>;
|
|
648
647
|
};
|
|
649
648
|
loading: {
|
|
650
649
|
type: PropType<boolean | {
|
|
@@ -685,7 +684,7 @@ declare const ApBatchActionGroup: {
|
|
|
685
684
|
type: PropType<ButtonIconPosition>;
|
|
686
685
|
default: string;
|
|
687
686
|
};
|
|
688
|
-
color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "
|
|
687
|
+
color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
|
|
689
688
|
variant: PropType<ButtonVariantType>;
|
|
690
689
|
}>>, "type" | "onClick"> & {
|
|
691
690
|
type?: ButtonProps["type"] | "borderLink";
|
|
@@ -49,7 +49,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
49
49
|
prefixCls: StringConstructor;
|
|
50
50
|
scrollNumberPrefixCls: StringConstructor;
|
|
51
51
|
status: {
|
|
52
|
-
type: PropType<"error" | "default" | "
|
|
52
|
+
type: PropType<"error" | "default" | "warning" | "success" | "processing">;
|
|
53
53
|
};
|
|
54
54
|
size: {
|
|
55
55
|
type: PropType<"default" | "small">;
|
|
@@ -109,7 +109,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
109
109
|
prefixCls: StringConstructor;
|
|
110
110
|
scrollNumberPrefixCls: StringConstructor;
|
|
111
111
|
status: {
|
|
112
|
-
type: PropType<"error" | "default" | "
|
|
112
|
+
type: PropType<"error" | "default" | "warning" | "success" | "processing">;
|
|
113
113
|
};
|
|
114
114
|
size: {
|
|
115
115
|
type: PropType<"default" | "small">;
|
|
@@ -133,10 +133,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
133
133
|
showZero: boolean;
|
|
134
134
|
overflowCount: number;
|
|
135
135
|
numberStyle: CSSProperties;
|
|
136
|
+
iconColor: string;
|
|
137
|
+
iconSize: number;
|
|
136
138
|
helpMessage: string | VNode< RendererNode, RendererElement, {
|
|
137
139
|
[key: string]: any;
|
|
138
140
|
}> | undefined;
|
|
139
|
-
iconColor: string;
|
|
140
|
-
iconSize: number;
|
|
141
141
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
142
142
|
export default _default;
|
|
@@ -67,7 +67,7 @@ export declare const ApLabelProps: () => {
|
|
|
67
67
|
prefixCls: StringConstructor;
|
|
68
68
|
scrollNumberPrefixCls: StringConstructor;
|
|
69
69
|
status: {
|
|
70
|
-
type: PropType<"error" | "default" | "
|
|
70
|
+
type: PropType<"error" | "default" | "warning" | "success" | "processing">;
|
|
71
71
|
};
|
|
72
72
|
size: {
|
|
73
73
|
type: PropType<"default" | "small">;
|
|
@@ -51,7 +51,7 @@ declare const ApLabel: {
|
|
|
51
51
|
prefixCls: StringConstructor;
|
|
52
52
|
scrollNumberPrefixCls: StringConstructor;
|
|
53
53
|
status: {
|
|
54
|
-
type: PropType<"error" | "default" | "
|
|
54
|
+
type: PropType<"error" | "default" | "warning" | "success" | "processing">;
|
|
55
55
|
};
|
|
56
56
|
size: {
|
|
57
57
|
type: PropType<"default" | "small">;
|
|
@@ -75,11 +75,11 @@ declare const ApLabel: {
|
|
|
75
75
|
showZero: boolean;
|
|
76
76
|
overflowCount: number;
|
|
77
77
|
numberStyle: CSSProperties;
|
|
78
|
+
iconColor: string;
|
|
79
|
+
iconSize: number;
|
|
78
80
|
helpMessage: string | VNode<RendererNode, RendererElement, {
|
|
79
81
|
[key: string]: any;
|
|
80
82
|
}> | undefined;
|
|
81
|
-
iconColor: string;
|
|
82
|
-
iconSize: number;
|
|
83
83
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
84
84
|
P: {};
|
|
85
85
|
B: {};
|
|
@@ -133,7 +133,7 @@ declare const ApLabel: {
|
|
|
133
133
|
prefixCls: StringConstructor;
|
|
134
134
|
scrollNumberPrefixCls: StringConstructor;
|
|
135
135
|
status: {
|
|
136
|
-
type: PropType<"error" | "default" | "
|
|
136
|
+
type: PropType<"error" | "default" | "warning" | "success" | "processing">;
|
|
137
137
|
};
|
|
138
138
|
size: {
|
|
139
139
|
type: PropType<"default" | "small">;
|
|
@@ -157,11 +157,11 @@ declare const ApLabel: {
|
|
|
157
157
|
showZero: boolean;
|
|
158
158
|
overflowCount: number;
|
|
159
159
|
numberStyle: CSSProperties;
|
|
160
|
+
iconColor: string;
|
|
161
|
+
iconSize: number;
|
|
160
162
|
helpMessage: string | VNode<RendererNode, RendererElement, {
|
|
161
163
|
[key: string]: any;
|
|
162
164
|
}> | undefined;
|
|
163
|
-
iconColor: string;
|
|
164
|
-
iconSize: number;
|
|
165
165
|
}>;
|
|
166
166
|
__isFragment?: never;
|
|
167
167
|
__isTeleport?: never;
|
|
@@ -212,7 +212,7 @@ declare const ApLabel: {
|
|
|
212
212
|
prefixCls: StringConstructor;
|
|
213
213
|
scrollNumberPrefixCls: StringConstructor;
|
|
214
214
|
status: {
|
|
215
|
-
type: PropType<"error" | "default" | "
|
|
215
|
+
type: PropType<"error" | "default" | "warning" | "success" | "processing">;
|
|
216
216
|
};
|
|
217
217
|
size: {
|
|
218
218
|
type: PropType<"default" | "small">;
|
|
@@ -236,11 +236,11 @@ declare const ApLabel: {
|
|
|
236
236
|
showZero: boolean;
|
|
237
237
|
overflowCount: number;
|
|
238
238
|
numberStyle: CSSProperties;
|
|
239
|
+
iconColor: string;
|
|
240
|
+
iconSize: number;
|
|
239
241
|
helpMessage: string | VNode<RendererNode, RendererElement, {
|
|
240
242
|
[key: string]: any;
|
|
241
243
|
}> | undefined;
|
|
242
|
-
iconColor: string;
|
|
243
|
-
iconSize: number;
|
|
244
244
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
245
245
|
$props: {
|
|
246
246
|
onClick?: () => void;
|
|
@@ -14,8 +14,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
14
14
|
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
value: string | number;
|
|
17
|
-
delay: number;
|
|
18
17
|
options: RadioOptionType[];
|
|
18
|
+
delay: number;
|
|
19
19
|
optionStyle: RadioOptionStyleType;
|
|
20
20
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
21
21
|
export default _default;
|
|
@@ -15,8 +15,8 @@ declare const ApRadioGroup: {
|
|
|
15
15
|
"update:value": (value: string | number) => any;
|
|
16
16
|
}, PublicProps, {
|
|
17
17
|
value: string | number;
|
|
18
|
-
delay: number;
|
|
19
18
|
options: RadioOptionType[];
|
|
19
|
+
delay: number;
|
|
20
20
|
optionStyle: RadioOptionStyleType;
|
|
21
21
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
22
22
|
P: {};
|
|
@@ -35,8 +35,8 @@ declare const ApRadioGroup: {
|
|
|
35
35
|
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
36
36
|
}>, {}, {}, {}, {}, {
|
|
37
37
|
value: string | number;
|
|
38
|
-
delay: number;
|
|
39
38
|
options: RadioOptionType[];
|
|
39
|
+
delay: number;
|
|
40
40
|
optionStyle: RadioOptionStyleType;
|
|
41
41
|
}>;
|
|
42
42
|
__isFragment?: never;
|
|
@@ -55,8 +55,8 @@ declare const ApRadioGroup: {
|
|
|
55
55
|
"update:value": (value: string | number) => any;
|
|
56
56
|
}, string, {
|
|
57
57
|
value: string | number;
|
|
58
|
-
delay: number;
|
|
59
58
|
options: RadioOptionType[];
|
|
59
|
+
delay: number;
|
|
60
60
|
optionStyle: RadioOptionStyleType;
|
|
61
61
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
62
62
|
$props: {
|
|
@@ -20,10 +20,10 @@ export declare function useCreateTableModal(props: UseCreateTableModalProps): {
|
|
|
20
20
|
select: (item: any) => void;
|
|
21
21
|
selectAll: () => void;
|
|
22
22
|
unSelectAll: () => void;
|
|
23
|
-
clearAll: () => void;
|
|
24
23
|
selectedRows: any[];
|
|
25
24
|
unSelect: (item: any) => void;
|
|
26
25
|
isSelected: (item: any) => boolean;
|
|
26
|
+
clearAll: () => void;
|
|
27
27
|
toggleSelect: (item: any) => void;
|
|
28
28
|
selectMulti: (items: any[]) => void;
|
|
29
29
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -18,10 +18,10 @@ export declare function useTableModal<TableRowType = Record<string, any>>(props:
|
|
|
18
18
|
select: (item: any) => void;
|
|
19
19
|
selectAll: () => void;
|
|
20
20
|
unSelectAll: () => void;
|
|
21
|
-
clearAll: () => void;
|
|
22
21
|
selectedRows: any[];
|
|
23
22
|
unSelect: (item: any) => void;
|
|
24
23
|
isSelected: (item: any) => boolean;
|
|
24
|
+
clearAll: () => void;
|
|
25
25
|
toggleSelect: (item: any) => void;
|
|
26
26
|
selectMulti: (items: any[]) => void;
|
|
27
27
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -17,10 +17,10 @@ export declare function useTableSelectModal<TableRowType = Record<string, any>>(
|
|
|
17
17
|
select: (item: any) => void;
|
|
18
18
|
selectAll: () => void;
|
|
19
19
|
unSelectAll: () => void;
|
|
20
|
-
clearAll: () => void;
|
|
21
20
|
selectedRows: any[];
|
|
22
21
|
unSelect: (item: any) => void;
|
|
23
22
|
isSelected: (item: any) => boolean;
|
|
23
|
+
clearAll: () => void;
|
|
24
24
|
toggleSelect: (item: any) => void;
|
|
25
25
|
selectMulti: (items: any[]) => void;
|
|
26
26
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -26,10 +26,10 @@ declare const ApTableModal: {
|
|
|
26
26
|
select: (item: any) => void;
|
|
27
27
|
selectAll: () => void;
|
|
28
28
|
unSelectAll: () => void;
|
|
29
|
-
clearAll: () => void;
|
|
30
29
|
selectedRows: any[];
|
|
31
30
|
unSelect: (item: any) => void;
|
|
32
31
|
isSelected: (item: any) => boolean;
|
|
32
|
+
clearAll: () => void;
|
|
33
33
|
toggleSelect: (item: any) => void;
|
|
34
34
|
selectMulti: (items: any[]) => void;
|
|
35
35
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -137,10 +137,10 @@ declare const ApTableModal: {
|
|
|
137
137
|
select: (item: any) => void;
|
|
138
138
|
selectAll: () => void;
|
|
139
139
|
unSelectAll: () => void;
|
|
140
|
-
clearAll: () => void;
|
|
141
140
|
selectedRows: any[];
|
|
142
141
|
unSelect: (item: any) => void;
|
|
143
142
|
isSelected: (item: any) => boolean;
|
|
143
|
+
clearAll: () => void;
|
|
144
144
|
toggleSelect: (item: any) => void;
|
|
145
145
|
selectMulti: (items: any[]) => void;
|
|
146
146
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -202,10 +202,10 @@ declare const ApTableModal: {
|
|
|
202
202
|
select: (item: any) => void;
|
|
203
203
|
selectAll: () => void;
|
|
204
204
|
unSelectAll: () => void;
|
|
205
|
-
clearAll: () => void;
|
|
206
205
|
selectedRows: any[];
|
|
207
206
|
unSelect: (item: any) => void;
|
|
208
207
|
isSelected: (item: any) => boolean;
|
|
208
|
+
clearAll: () => void;
|
|
209
209
|
toggleSelect: (item: any) => void;
|
|
210
210
|
selectMulti: (items: any[]) => void;
|
|
211
211
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -19,10 +19,10 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
19
19
|
select: (item: any) => void;
|
|
20
20
|
selectAll: () => void;
|
|
21
21
|
unSelectAll: () => void;
|
|
22
|
-
clearAll: () => void;
|
|
23
22
|
selectedRows: any[];
|
|
24
23
|
unSelect: (item: any) => void;
|
|
25
24
|
isSelected: (item: any) => boolean;
|
|
25
|
+
clearAll: () => void;
|
|
26
26
|
toggleSelect: (item: any) => void;
|
|
27
27
|
selectMulti: (items: any[]) => void;
|
|
28
28
|
unSelectMulti: (items: any[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),p=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const O=require("../../ap-table/index.js"),m=require("lodash-unified"),I=require("@aplus-frontend/utils");require("./modal-title.vue.js");const y=require("./interface.js");require("./table-layout/index.vue.js");const A=require("../../config-provider/hooks/use-locale.js"),L=require("./modal-title.vue2.js"),N=require("./table-layout/index.vue2.js"),D=t.defineComponent({__name:"table-modal",props:{columns:{},getRowKey:{},api:{type:Function,default:async()=>({records:[],total:0})},apTableProps:{},maxCount:{default:1/0},isRenderModalTitleSuffix:{type:Boolean,default:!0},renderModalTitleSuffix:{},disabledCheckbox:{type:[Boolean,Function]},rowSelection:{},tableLayoutConfig:{},renderHeader:{},onOk:{},prefixCls:{},confirmLoading:{type:Boolean,default:void 0},title:{},closable:{type:Boolean,default:void 0},closeIcon:{},onCancel:{},"onUpdate:visible":{},"onUpdate:open":{},onChange:{},afterClose:{},centered:{type:Boolean,default:void 0},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean,default:void 0},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function],default:void 0},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:{},focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:{},mousePosition:{}},emits:["finish"],setup(g,{expose:w,emit:k}){const e=g,R=k,s=t.ref(!1),v=t.ref({}),u=t.ref(null),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),p=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const O=require("../../ap-table/index.js"),m=require("lodash-unified"),I=require("@aplus-frontend/utils");require("./modal-title.vue.js");const y=require("./interface.js");require("./table-layout/index.vue.js");const A=require("../../config-provider/hooks/use-locale.js"),L=require("./modal-title.vue2.js"),N=require("./table-layout/index.vue2.js"),D=t.defineComponent({__name:"table-modal",props:{columns:{},getRowKey:{},api:{type:Function,default:async()=>({records:[],total:0})},apTableProps:{},maxCount:{default:1/0},isRenderModalTitleSuffix:{type:Boolean,default:!0},renderModalTitleSuffix:{},disabledCheckbox:{type:[Boolean,Function]},rowSelection:{},tableLayoutConfig:{},renderHeader:{},onOk:{},prefixCls:{},confirmLoading:{type:Boolean,default:void 0},title:{},closable:{type:Boolean,default:void 0},closeIcon:{},onCancel:{},"onUpdate:visible":{},"onUpdate:open":{},onChange:{},afterClose:{},centered:{type:Boolean,default:void 0},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean,default:void 0},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function],default:void 0},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:{},focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:{},mousePosition:{}},emits:["finish"],setup(g,{expose:w,emit:k}){const e=g,R=k,s=t.ref(!1),v=t.ref({}),u=t.ref(null),n=t.ref([]),b=t.ref();let d=null,i=null;const{t:x}=A.useLocale(),h=async(o=[],a={})=>{switch(n.value=[...o],s.value=!0,v.value=a?.extraParams,b.value=a.apTableDataSources||e.apTableProps?.dataSource,a.refreshMode||"reset"){case"reset":u.value?.reset();break;case"submit":u.value?.submit();break;case"none":break}return new Promise((l,r)=>{d=l,i=r})},C=()=>{s.value=!1,d=null,i?.(y.AsyncOpenResultError.ModalCancel),i=null},T=async o=>{o=I.transformTableParams({...o,...v.value});const a=e.api,{records:l,total:r}=await a(o);return{data:l,total:r}},S=async()=>{if(n.value.length>e.maxCount){i?.(y.AsyncOpenResultError.ExceedMaxCount);return}if(e.getRowKey){const o=m.cloneDeep(t.unref(n)),a=o.map(e.getRowKey);if(e.onOk&&await e.onOk({keys:a,rows:o})===!1)return;R("finish",a,o),d?.({keys:a,rows:o})}else{i?.(y.AsyncOpenResultError.NotFineGetRowKey);return}s.value=!1},_=t.computed(()=>{if(!e.getRowKey)return;const o=e.getRowKey;return{fixed:!0,selectedRowKeys:n.value.map(o),columnWidth:50,preserveSelectedRowKeys:!0,onSelectAll(a,l){if(l.length>e.maxCount){p.message.warning(x("ap.apTableModal.messageMaxCount",{maxCount:e.maxCount}));return}const r=u.value?.dataSource;if(a){const c=t.unref(r).filter(f=>!n.value.some(K=>o(K)===o(f)));n.value=n.value.concat(c)}else n.value=n.value?.filter(c=>!r.some(f=>o(f)===o(c)))},onSelect(a,l){if(l){if(n.value.length>=e.maxCount){p.message.warning(x("ap.apTableModal.messageMaxCount",{maxCount:e.maxCount}));return}e.rowSelection?.type==="radio"?n.value=[a]:n.value.push(a)}else{const r=n.value.findIndex(c=>o(a)===o(c));n.value.splice(r,1)}},getCheckboxProps:a=>({disabled:typeof e.disabledCheckbox=="function"?e.disabledCheckbox(a,n.value):e.disabledCheckbox}),...e.rowSelection||{}}}),B=()=>e.isRenderModalTitleSuffix?t.h(L.default,{title:e.title,count:n.value.length||0,maxCount:e.maxCount},{default:e.renderModalTitleSuffix??void 0}):e.title,P=()=>u.value,M=()=>{n.value=[]},q=o=>{const a=e.getRowKey;if(!a)return;const l=n.value.findIndex(r=>a(o)===a(r));n.value.splice(l,1)};return w({open:h,close:C,getApTableInstance:P}),(o,a)=>(t.openBlock(),t.createBlock(t.unref(p.Modal),t.mergeProps({open:s.value,"onUpdate:open":a[0]||(a[0]=l=>s.value=l)},t.unref(m.omit)(e,["api","getRowKey","centered","apTableProps","onOk","maxCount","title","renderModalTitleSuffix","isRenderModalTitleSuffix","rowSelection","disabledCheckbox","tableLayoutConfig"]),{title:B(),centered:e.centered??!0,onOk:S,onCancel:C}),{default:t.withCtx(()=>[e.renderHeader?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderHeader),{key:0})):t.createCommentVNode("",!0),t.createVNode(N.default,t.mergeProps(e.tableLayoutConfig||{},{"selected-list":n.value,onClear:M,onDeleteItem:q}),{default:t.withCtx(()=>[t.createVNode(t.unref(O.ApTable),t.mergeProps({ref_key:"apTableRef",ref:u,scroll:{y:450},style:{padding:"0px"},columns:o.columns,request:T,"row-key":o.getRowKey,"row-selection":_.value,"data-source":b.value,"search-form":{sortable:!1,countPerRow:2}},t.unref(m.omit)(e.apTableProps,"dataSource")),null,16,["columns","row-key","row-selection","data-source"])]),_:1},16,["selected-list"])]),_:1},16,["open","title","centered"]))}});exports.default=D;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("../../config-provider/index.js");const B=require("./icons/line-down.vue.js"),P=require("../ap-batch-action-group/index.js");require("./components/main-button-content.vue.js");require("./components/menu-list-content.vue.js");const j=require("./hooks/use-view-provide.js"),k=require("../../ap-table/context.js"),m=require("./utils/enum.js"),A=require("@aplus-frontend/utils"),G=require("../../config-provider/hooks/use-global-config.js"),U=require("../../config-provider/hooks/use-namespace.js"),z=require("../../config-provider/hooks/use-locale.js"),R=require("./components/main-button-content.vue2.js"),$=require("./components/menu-list-content.vue2.js"),H=t.defineComponent({name:"ApView",__name:"ap-view",props:{tableKey:{},saveDataSource:{},viewCacheOption:{},maxViewNum:{default:20},isDefaultSystemView:{type:Boolean,default:!1},isFirstDefaultSystemView:{type:Boolean,default:!1},manual:{type:Boolean,default:!1}},setup(g,{expose:h}){const o=g,C=G.useGlobalConfig("viewCacheOption"),{b:y}=U.useNamespace("ap-view"),{t:E}=z.useLocale(),d=t.computed(()=>({viewKey:m.SYSTEM_VIEW_KEY,viewName:E("ap.apView.systemView")})),{getSearchFormValues:D,setSearchFormValues:F,submit:q,reset:I,submitWith:N,getSearchFormSorterItems:Y,setSearchFormSorterItems:O,resetSearchFormSorterItems:T}=k.useInjectApTable(),L=t.ref(!1),V=t.ref(!1),w=t.ref("");let v=!1,_=!1;const W={dropdownType:"dropdown",content:t.createVNode(R.default,{maxViewNum:o.maxViewNum},null)},s=t.ref([d.value]),M=t.computed(()=>s.value.map(a=>({id:a.viewKey,content:t.createVNode($.default,{view:a},null)}))),n={getSearchFormValues:D,setSearchFormValues:F,submit:q,reset:I,submitWith:N,getSearchFormSorterItems:Y,setSearchFormSorterItems:O,resetSearchFormSorterItems:T,...o.saveDataSource},p={...C.value,...o.viewCacheOption},K=()=>o.isDefaultSystemView||(o.isFirstDefaultSystemView||_)&&v?m.SYSTEM_VIEW_KEY:s.value.find(i=>i.isDefault)?.viewKey??m.SYSTEM_VIEW_KEY,l=a=>{w.value=a;const i=s.value.find(e=>e.viewKey===w.value);i&&setTimeout(()=>{i.viewKey===m.SYSTEM_VIEW_KEY?v?o.manual||n?.submitWith?.():o.manual||(n?.resetSearchFormSorterItems?.(),n?.reset?.()):(n?.setSearchFormValues?.({...Object.fromEntries(Object.keys(n?.getSearchFormValues?.()??{}).map(e=>[e,void 0]))??{},...n?.getSearchFormSorterItems?.()?.reduce((e,r)=>(i.viewConfig?.searchForm?.[r.name]&&(e[r.name]=i.viewConfig?.searchForm?.[r.name]),e),{})??{}}),n?.setSearchFormSorterItems?.(i.viewConfig?.sorterItems??[]),v?o.manual||n?.submitWith?.():n?.submit?.()),v=!1})},b={getViewList:async a=>{try{const{tableKey:i}=a,e=await p?.getViewList?.({tableKey:i});return s.value=[d.value,...e??[]],l(K()),s.value}catch{return s.value=[d.value],l(m.SYSTEM_VIEW_KEY),s.value}},addView:async a=>{const{tableKey:i,viewKey:e,viewName:r,isDefault:u,viewConfig:f}=a;await p?.addView?.({tableKey:i,viewKey:e,viewName:r,isDefault:u,viewConfig:f}),u&&(s.value=s.value.map(c=>({...c,isDefault:!1}))),s.value=[...s.value,{viewKey:e,viewName:r,isDefault:u,viewConfig:f}],l(e)},changeView:async a=>{const{tableKey:i,viewKey:e,viewName:r,isDefault:u,viewConfig:f}=a;await p?.changeView?.({tableKey:i,viewKey:e,viewName:r,isDefault:u,viewConfig:f}),u&&(s.value=s.value.map(S=>({...S,isDefault:!1})));const c=s.value.find(S=>S.viewKey===e);c&&(c.viewName=r,c.isDefault=u,c.viewConfig=f),l(e)},removeView:async a=>{const{tableKey:i,viewKey:e}=a;await p?.removeView?.({tableKey:i,viewKey:e}),s.value=s.value.filter(r=>r.viewKey!==e),e===w.value&&l(K())}},x={tableKey:o.tableKey,currentViewKey:w,changeCurrentViewKey:l,popoverOpen:L,menuOpen:V,viewList:s,viewListCRUD:b,saveDataSource:n};return j.useViewProvide(x),t.watch(()=>o.tableKey,a=>{A.isValid(a)&&(v=!0,b?.getViewList?.({tableKey:a}))},{immediate:!0}),h({setFirstDefaultSystemView:a=>{_=a}}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(P.ApBatchActionGroup),t.mergeProps({...a.$attrs},{open:V.value,"onUpdate:open":i[0]||(i[0]=e=>V.value=e),class:[t.unref(y)()],"button-props":W,"menu-list":M.value,"overlay-class-name":[t.unref(y)("overlay")],trigger:"click",placement:"bottom"}),{icon:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([t.unref(y)("icon")])},[t.createVNode(B.default)],2)]),_:1},16,["open","class","menu-list","overlay-class-name"]))}});exports.default=H;
|
|
@@ -7,7 +7,7 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/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 {
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
11
11
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
12
|
import { OnCleanup } from '@vue/reactivity';
|
|
13
13
|
type __VLS_Props = {
|
|
@@ -314,8 +314,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
314
314
|
default: string | string[];
|
|
315
315
|
};
|
|
316
316
|
size: {
|
|
317
|
-
type: PropType<
|
|
318
|
-
default:
|
|
317
|
+
type: PropType<SizeType>;
|
|
318
|
+
default: SizeType;
|
|
319
319
|
};
|
|
320
320
|
disabled: {
|
|
321
321
|
type: BooleanConstructor;
|
|
@@ -346,15 +346,15 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
346
346
|
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
347
347
|
};
|
|
348
348
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
349
|
-
size:
|
|
349
|
+
size: SizeType;
|
|
350
350
|
onSubmit: (e: Event) => void;
|
|
351
351
|
disabled: boolean;
|
|
352
352
|
validateTrigger: string | string[];
|
|
353
|
-
|
|
353
|
+
onValuesChange: (changedValues: any, values: any) => void;
|
|
354
|
+
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
354
355
|
onFinish: (values: any) => void;
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
colon: boolean;
|
|
356
|
+
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
357
|
+
onValidate: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
358
358
|
labelCol: Partial< ExtractPropTypes<{
|
|
359
359
|
span: (StringConstructor | NumberConstructor)[];
|
|
360
360
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -388,8 +388,6 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
388
388
|
prefixCls: StringConstructor;
|
|
389
389
|
flex: (StringConstructor | NumberConstructor)[];
|
|
390
390
|
}>> & HTMLAttributes;
|
|
391
|
-
labelAlign: FormLabelAlign;
|
|
392
|
-
labelWrap: boolean;
|
|
393
391
|
wrapperCol: Partial< ExtractPropTypes<{
|
|
394
392
|
span: (StringConstructor | NumberConstructor)[];
|
|
395
393
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -423,19 +421,21 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
423
421
|
prefixCls: StringConstructor;
|
|
424
422
|
flex: (StringConstructor | NumberConstructor)[];
|
|
425
423
|
}>> & HTMLAttributes;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
onValuesChange: (changedValues: any, values: any) => void;
|
|
431
|
-
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
432
|
-
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
424
|
+
colon: boolean;
|
|
425
|
+
labelAlign: FormLabelAlign;
|
|
426
|
+
labelWrap: boolean;
|
|
427
|
+
requiredMark: "" | RequiredMark;
|
|
433
428
|
hideRequiredMark: boolean;
|
|
434
429
|
model: {
|
|
435
430
|
[key: string]: any;
|
|
436
431
|
};
|
|
432
|
+
rules: {
|
|
433
|
+
[k: string]: RuleObject | RuleObject[];
|
|
434
|
+
};
|
|
435
|
+
validateMessages: ValidateMessages;
|
|
437
436
|
validateOnRuleChange: boolean;
|
|
438
437
|
scrollToFirstError: boolean | Options<any>;
|
|
438
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
439
439
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
440
440
|
P: {};
|
|
441
441
|
B: {};
|
|
@@ -639,8 +639,8 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
639
639
|
default: string | string[];
|
|
640
640
|
};
|
|
641
641
|
size: {
|
|
642
|
-
type: PropType<
|
|
643
|
-
default:
|
|
642
|
+
type: PropType<SizeType>;
|
|
643
|
+
default: SizeType;
|
|
644
644
|
};
|
|
645
645
|
disabled: {
|
|
646
646
|
type: BooleanConstructor;
|
|
@@ -671,15 +671,15 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
671
671
|
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
672
672
|
};
|
|
673
673
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
674
|
-
size:
|
|
674
|
+
size: SizeType;
|
|
675
675
|
onSubmit: (e: Event) => void;
|
|
676
676
|
disabled: boolean;
|
|
677
677
|
validateTrigger: string | string[];
|
|
678
|
-
|
|
678
|
+
onValuesChange: (changedValues: any, values: any) => void;
|
|
679
|
+
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
679
680
|
onFinish: (values: any) => void;
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
colon: boolean;
|
|
681
|
+
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
682
|
+
onValidate: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
683
683
|
labelCol: Partial< ExtractPropTypes<{
|
|
684
684
|
span: (StringConstructor | NumberConstructor)[];
|
|
685
685
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -713,8 +713,6 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
713
713
|
prefixCls: StringConstructor;
|
|
714
714
|
flex: (StringConstructor | NumberConstructor)[];
|
|
715
715
|
}>> & HTMLAttributes;
|
|
716
|
-
labelAlign: FormLabelAlign;
|
|
717
|
-
labelWrap: boolean;
|
|
718
716
|
wrapperCol: Partial< ExtractPropTypes<{
|
|
719
717
|
span: (StringConstructor | NumberConstructor)[];
|
|
720
718
|
order: (StringConstructor | NumberConstructor)[];
|
|
@@ -748,19 +746,21 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
748
746
|
prefixCls: StringConstructor;
|
|
749
747
|
flex: (StringConstructor | NumberConstructor)[];
|
|
750
748
|
}>> & HTMLAttributes;
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
onValuesChange: (changedValues: any, values: any) => void;
|
|
756
|
-
onFieldsChange: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
757
|
-
onFinishFailed: (errorInfo: ValidateErrorEntity<any>) => void;
|
|
749
|
+
colon: boolean;
|
|
750
|
+
labelAlign: FormLabelAlign;
|
|
751
|
+
labelWrap: boolean;
|
|
752
|
+
requiredMark: "" | RequiredMark;
|
|
758
753
|
hideRequiredMark: boolean;
|
|
759
754
|
model: {
|
|
760
755
|
[key: string]: any;
|
|
761
756
|
};
|
|
757
|
+
rules: {
|
|
758
|
+
[k: string]: RuleObject | RuleObject[];
|
|
759
|
+
};
|
|
760
|
+
validateMessages: ValidateMessages;
|
|
762
761
|
validateOnRuleChange: boolean;
|
|
763
762
|
scrollToFirstError: boolean | Options<any>;
|
|
763
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
764
764
|
}> | null;
|
|
765
765
|
};
|
|
766
766
|
$slots: Readonly<{
|