@aplus-frontend/ui 0.0.1-beta.1 → 0.0.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.mjs +124 -118
- package/es/src/ap-field/checkbox/helper.d.ts +6 -0
- package/es/src/ap-field/date/constant.d.ts +1 -0
- package/es/src/ap-field/index.d.ts +5 -0
- package/es/src/ap-field/interface.d.ts +29 -0
- package/es/src/ap-form/ap-form-item-group/helper.d.ts +8 -0
- package/es/src/ap-form/ap-form-item-group/helper.mjs +14 -0
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +45 -0
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +58 -0
- package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +4 -0
- package/es/src/ap-form/ap-form-item.vue.d.ts +47 -0
- package/es/src/ap-form/ap-form-item.vue.mjs +76 -0
- package/es/src/ap-form/ap-form-item.vue2.mjs +4 -0
- package/es/src/ap-form/ap-form.d.ts +1681 -0
- package/es/src/ap-form/ap-form.mjs +5 -0
- package/es/src/ap-form/constant.d.ts +3 -0
- package/es/src/ap-form/constant.mjs +17 -0
- package/es/src/ap-form/index.d.ts +2593 -0
- package/es/src/ap-form/index.mjs +10 -0
- package/es/src/ap-form/interface.d.ts +7 -0
- package/es/src/ap-form/style/ap-form-item-group.css +9 -0
- package/es/src/base-button/button.vue.d.ts +5 -5
- package/es/src/base-button/index.d.ts +53 -48
- package/es/src/base-button/modal-button.vue.d.ts +8 -6
- package/es/src/base-button/pop-confirm-button.vue.d.ts +4 -3
- package/es/src/basic/arrow.vue.d.ts +4 -3
- package/es/src/basic/help.vue.d.ts +6 -6
- package/es/src/basic/index.d.ts +196 -70
- package/es/src/basic/title.vue.d.ts +5 -4
- package/es/src/button/index.d.ts +20 -15
- package/es/src/config-provider/config-provider-props.d.ts +28 -16
- package/es/src/config-provider/config-provider-props.mjs +8 -4
- package/es/src/config-provider/config-provider.d.ts +92 -68
- package/es/src/config-provider/constants.d.ts +3 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +47 -32
- package/es/src/config-provider/hooks/use-namespace.d.ts +3 -3
- package/es/src/config-provider/index.d.ts +532 -156
- package/es/src/container/collapse/header.vue.d.ts +3 -3
- package/es/src/container/collapse/index.vue.d.ts +4 -4
- package/es/src/container/index.d.ts +119 -38
- package/es/src/container/scroll-container.vue.d.ts +5 -4
- package/es/src/count-down/button.vue.d.ts +5 -4
- package/es/src/count-down/index.d.ts +88 -41
- package/es/src/count-down/input.vue.d.ts +5 -4
- package/es/src/cropper/cropper-avatar.vue.d.ts +6 -5
- package/es/src/cropper/cropper-image.vue.d.ts +7 -7
- package/es/src/cropper/cropper-modal.vue.d.ts +4 -4
- package/es/src/cropper/index.d.ts +308 -93
- package/es/src/description/description.vue.d.ts +6 -6
- package/es/src/description/index.d.ts +169 -48
- package/es/src/dropdown/dropdown.vue.d.ts +6 -5
- package/es/src/dropdown/index.d.ts +35 -28
- package/es/src/hooks/index.d.ts +1 -0
- package/es/src/hooks/useControllableValue.d.ts +13 -0
- package/es/src/hooks/useControllableValue.mjs +24 -0
- package/es/src/hooks/useMessage.d.ts +9 -7
- package/es/src/icon/icon.vue.d.ts +5 -4
- package/es/src/icon/index.d.ts +175 -52
- package/es/src/icon/svg-icon.vue.d.ts +5 -4
- package/es/src/icon-picker/icon-picker.vue.d.ts +9 -8
- package/es/src/icon-picker/index.d.ts +160 -51
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +79 -75
- package/es/src/modal/basic.vue.d.ts +70 -64
- package/es/src/modal/components/modal-close.vue.d.ts +6 -5
- package/es/src/modal/components/modal-footer.vue.d.ts +69 -64
- package/es/src/modal/components/modal-header.vue.d.ts +4 -3
- package/es/src/modal/components/modal-wrapper.vue.d.ts +5 -4
- package/es/src/modal/components/modal.d.ts +69 -63
- package/es/src/modal/hooks/use-moda-full-screen.d.ts +2 -2
- package/es/src/modal/index.d.ts +144 -134
- package/es/src/modal/props.d.ts +19 -16
- package/es/src/pro-form/component-map.d.ts +2 -2
- package/es/src/pro-form/components/api-cascader.vue.d.ts +6 -5
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +7 -6
- package/es/src/pro-form/components/api-select.vue.d.ts +8 -7
- package/es/src/pro-form/components/api-transfer.vue.d.ts +6 -5
- package/es/src/pro-form/components/api-tree-select.vue.d.ts +6 -5
- package/es/src/pro-form/components/api-tree.vue.d.ts +7 -6
- package/es/src/pro-form/components/form-action.vue.d.ts +6 -5
- package/es/src/pro-form/components/form-item.vue.d.ts +3 -3
- package/es/src/pro-form/components/radio-button-group.vue.d.ts +5 -4
- package/es/src/pro-form/hooks/use-advanced.d.ts +2 -2
- package/es/src/pro-form/hooks/use-break-point.d.ts +4 -3
- package/es/src/pro-form/hooks/use-label-width.d.ts +51 -50
- package/es/src/pro-form/pro-form.vue.d.ts +16 -13
- package/es/src/pro-table/component-map.d.ts +2 -2
- package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +3 -2
- package/es/src/pro-table/components/editable/cell-component.d.ts +2 -1
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +19 -18
- package/es/src/pro-table/components/editable/index.d.ts +2 -2
- package/es/src/pro-table/components/header-cell.vue.d.ts +3 -3
- package/es/src/pro-table/components/settings/column-setting.vue.d.ts +3 -2
- package/es/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -1
- package/es/src/pro-table/components/settings/index.vue.d.ts +4 -4
- package/es/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -1
- package/es/src/pro-table/components/settings/size-setting.vue.d.ts +2 -1
- package/es/src/pro-table/components/table-action.vue.d.ts +3 -3
- package/es/src/pro-table/components/table-footer.vue.d.ts +7 -5
- package/es/src/pro-table/components/table-header.vue.d.ts +4 -4
- package/es/src/pro-table/components/table-image.vue.d.ts +5 -4
- package/es/src/pro-table/components/table-selection-bar.vue.d.ts +5 -4
- package/es/src/pro-table/components/table-title.vue.d.ts +3 -3
- package/es/src/pro-table/const.d.ts +3 -0
- package/es/src/pro-table/const.mjs +10 -4
- package/es/src/pro-table/hooks/use-data-source.d.ts +2 -1
- package/es/src/pro-table/interface.d.ts +4 -0
- package/es/src/pro-table/pro-table.vue.d.ts +45 -36
- package/es/src/pro-table/pro-table.vue.mjs +221 -211
- package/es/src/pro-table/style/pro-table.css +10 -5
- package/es/src/prompt/dialog.vue.d.ts +4 -3
- package/es/src/prompt/index.d.ts +2 -2
- package/es/src/scroll-bar/bar-item.d.ts +4 -3
- package/es/src/scroll-bar/index.d.ts +52 -53
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +8 -9
- package/es/src/scroll-bar/scroll-bar.vue.mjs +44 -44
- package/es/src/strength-meter/index.d.ts +26 -21
- package/es/src/strength-meter/strength-meter.vue.d.ts +6 -5
- package/es/src/theme/ap-form/ap-form-item-group.css +9 -0
- package/es/src/theme/pro-table/pro-table.css +10 -5
- package/es/src/transition/collapse-transition.vue.d.ts +2 -1
- package/es/src/transition/create-transition.d.ts +5 -5
- package/es/src/transition/index.d.ts +97 -96
- package/es/src/utils/slot.d.ts +2 -2
- package/lib/index.js +1 -1
- package/lib/src/ap-field/checkbox/helper.d.ts +6 -0
- package/lib/src/ap-field/date/constant.d.ts +1 -0
- package/lib/src/ap-field/index.d.ts +5 -0
- package/lib/src/ap-field/interface.d.ts +29 -0
- package/lib/src/ap-form/ap-form-item-group/helper.d.ts +8 -0
- package/lib/src/ap-form/ap-form-item-group/helper.js +1 -0
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +45 -0
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -0
- package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -0
- package/lib/src/ap-form/ap-form-item.vue.d.ts +47 -0
- package/lib/src/ap-form/ap-form-item.vue.js +1 -0
- package/lib/src/ap-form/ap-form-item.vue2.js +1 -0
- package/lib/src/ap-form/ap-form.d.ts +1681 -0
- package/lib/src/ap-form/ap-form.js +1 -0
- package/lib/src/ap-form/constant.d.ts +3 -0
- package/lib/src/ap-form/constant.js +1 -0
- package/lib/src/ap-form/index.d.ts +2593 -0
- package/lib/src/ap-form/index.js +1 -0
- package/lib/src/ap-form/interface.d.ts +7 -0
- package/lib/src/ap-form/style/ap-form-item-group.css +9 -0
- package/lib/src/base-button/button.vue.d.ts +5 -5
- package/lib/src/base-button/index.d.ts +53 -48
- package/lib/src/base-button/modal-button.vue.d.ts +8 -6
- package/lib/src/base-button/pop-confirm-button.vue.d.ts +4 -3
- package/lib/src/basic/arrow.vue.d.ts +4 -3
- package/lib/src/basic/help.vue.d.ts +6 -6
- package/lib/src/basic/index.d.ts +196 -70
- package/lib/src/basic/title.vue.d.ts +5 -4
- package/lib/src/button/index.d.ts +20 -15
- package/lib/src/config-provider/config-provider-props.d.ts +28 -16
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +92 -68
- package/lib/src/config-provider/constants.d.ts +3 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +47 -32
- package/lib/src/config-provider/hooks/use-namespace.d.ts +3 -3
- package/lib/src/config-provider/index.d.ts +532 -156
- package/lib/src/container/collapse/header.vue.d.ts +3 -3
- package/lib/src/container/collapse/index.vue.d.ts +4 -4
- package/lib/src/container/index.d.ts +119 -38
- package/lib/src/container/scroll-container.vue.d.ts +5 -4
- package/lib/src/count-down/button.vue.d.ts +5 -4
- package/lib/src/count-down/index.d.ts +88 -41
- package/lib/src/count-down/input.vue.d.ts +5 -4
- package/lib/src/cropper/cropper-avatar.vue.d.ts +6 -5
- package/lib/src/cropper/cropper-image.vue.d.ts +7 -7
- package/lib/src/cropper/cropper-modal.vue.d.ts +4 -4
- package/lib/src/cropper/index.d.ts +308 -93
- package/lib/src/description/description.vue.d.ts +6 -6
- package/lib/src/description/index.d.ts +169 -48
- package/lib/src/dropdown/dropdown.vue.d.ts +6 -5
- package/lib/src/dropdown/index.d.ts +35 -28
- package/lib/src/hooks/index.d.ts +1 -0
- package/lib/src/hooks/useControllableValue.d.ts +13 -0
- package/lib/src/hooks/useControllableValue.js +1 -0
- package/lib/src/hooks/useMessage.d.ts +9 -7
- package/lib/src/icon/icon.vue.d.ts +5 -4
- package/lib/src/icon/index.d.ts +175 -52
- package/lib/src/icon/svg-icon.vue.d.ts +5 -4
- package/lib/src/icon-picker/icon-picker.vue.d.ts +9 -8
- package/lib/src/icon-picker/index.d.ts +160 -51
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +70 -64
- package/lib/src/modal/components/modal-close.vue.d.ts +6 -5
- package/lib/src/modal/components/modal-footer.vue.d.ts +69 -64
- package/lib/src/modal/components/modal-header.vue.d.ts +4 -3
- package/lib/src/modal/components/modal-wrapper.vue.d.ts +5 -4
- package/lib/src/modal/components/modal.d.ts +69 -63
- package/lib/src/modal/hooks/use-moda-full-screen.d.ts +2 -2
- package/lib/src/modal/index.d.ts +144 -134
- package/lib/src/modal/props.d.ts +19 -16
- package/lib/src/pro-form/component-map.d.ts +2 -2
- package/lib/src/pro-form/components/api-cascader.vue.d.ts +6 -5
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +7 -6
- package/lib/src/pro-form/components/api-select.vue.d.ts +8 -7
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +6 -5
- package/lib/src/pro-form/components/api-tree-select.vue.d.ts +6 -5
- package/lib/src/pro-form/components/api-tree.vue.d.ts +7 -6
- package/lib/src/pro-form/components/form-action.vue.d.ts +6 -5
- package/lib/src/pro-form/components/form-item.vue.d.ts +3 -3
- package/lib/src/pro-form/components/radio-button-group.vue.d.ts +5 -4
- package/lib/src/pro-form/hooks/use-advanced.d.ts +2 -2
- package/lib/src/pro-form/hooks/use-break-point.d.ts +4 -3
- package/lib/src/pro-form/hooks/use-label-width.d.ts +51 -50
- package/lib/src/pro-form/pro-form.vue.d.ts +16 -13
- package/lib/src/pro-table/component-map.d.ts +2 -2
- package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +3 -2
- package/lib/src/pro-table/components/editable/cell-component.d.ts +2 -1
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +19 -18
- package/lib/src/pro-table/components/editable/index.d.ts +2 -2
- package/lib/src/pro-table/components/header-cell.vue.d.ts +3 -3
- package/lib/src/pro-table/components/settings/column-setting.vue.d.ts +3 -2
- package/lib/src/pro-table/components/settings/full-screen-setting.vue.d.ts +2 -1
- package/lib/src/pro-table/components/settings/index.vue.d.ts +4 -4
- package/lib/src/pro-table/components/settings/redo-setting.vue.d.ts +2 -1
- package/lib/src/pro-table/components/settings/size-setting.vue.d.ts +2 -1
- package/lib/src/pro-table/components/table-action.vue.d.ts +3 -3
- package/lib/src/pro-table/components/table-footer.vue.d.ts +7 -5
- package/lib/src/pro-table/components/table-header.vue.d.ts +4 -4
- package/lib/src/pro-table/components/table-image.vue.d.ts +5 -4
- package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +5 -4
- package/lib/src/pro-table/components/table-title.vue.d.ts +3 -3
- package/lib/src/pro-table/const.d.ts +3 -0
- package/lib/src/pro-table/const.js +1 -1
- package/lib/src/pro-table/hooks/use-data-source.d.ts +2 -1
- package/lib/src/pro-table/interface.d.ts +4 -0
- package/lib/src/pro-table/pro-table.vue.d.ts +45 -36
- package/lib/src/pro-table/pro-table.vue.js +1 -1
- package/lib/src/pro-table/style/pro-table.css +10 -5
- package/lib/src/prompt/dialog.vue.d.ts +4 -3
- package/lib/src/prompt/index.d.ts +2 -2
- package/lib/src/scroll-bar/bar-item.d.ts +4 -3
- package/lib/src/scroll-bar/index.d.ts +52 -53
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +8 -9
- package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
- package/lib/src/strength-meter/index.d.ts +26 -21
- package/lib/src/strength-meter/strength-meter.vue.d.ts +6 -5
- package/lib/src/theme/ap-form/ap-form-item-group.css +9 -0
- package/lib/src/theme/pro-table/pro-table.css +10 -5
- package/lib/src/transition/collapse-transition.vue.d.ts +2 -1
- package/lib/src/transition/create-transition.d.ts +5 -5
- package/lib/src/transition/index.d.ts +97 -96
- package/lib/src/utils/slot.d.ts +2 -2
- package/package.json +2 -2
- package/es/src/constants/component-setting.d.ts +0 -74
- package/es/src/constants/component-setting.mjs +0 -90
- package/lib/src/constants/component-setting.d.ts +0 -74
- package/lib/src/constants/component-setting.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
2
|
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: DefineComponent<{
|
|
4
4
|
title: {
|
|
5
5
|
type: PropType<string | ((data: any) => string)>;
|
|
6
6
|
};
|
|
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
10
10
|
helpMessage: {
|
|
11
11
|
type: PropType<string | string[]>;
|
|
12
12
|
};
|
|
13
|
-
}, {}, unknown, {}, {},
|
|
13
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
14
14
|
title: {
|
|
15
15
|
type: PropType<string | ((data: any) => string)>;
|
|
16
16
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { SizeType } from './types/table';
|
|
2
|
+
|
|
1
3
|
export declare const ROW_KEY = "key";
|
|
2
4
|
export declare const DEFAULT_ALIGN = "left";
|
|
3
5
|
export declare const INDEX_COLUMN_FLAG = "INDEX";
|
|
4
6
|
export declare const ACTION_COLUMN_FLAG = "ACTION";
|
|
7
|
+
export declare const formTableDivideSpaceMap: Record<SizeType, number>;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = "key", t = "left", l = "INDEX", o = "ACTION", N = {
|
|
2
|
+
default: 16,
|
|
3
|
+
small: 8,
|
|
4
|
+
middle: 12,
|
|
5
|
+
large: 16
|
|
6
|
+
};
|
|
2
7
|
export {
|
|
3
|
-
|
|
8
|
+
o as ACTION_COLUMN_FLAG,
|
|
4
9
|
t as DEFAULT_ALIGN,
|
|
5
|
-
|
|
6
|
-
|
|
10
|
+
l as INDEX_COLUMN_FLAG,
|
|
11
|
+
e as ROW_KEY,
|
|
12
|
+
N as formTableDivideSpaceMap
|
|
7
13
|
};
|
|
@@ -3,6 +3,7 @@ import { PaginationProps } from '../types/pagination';
|
|
|
3
3
|
import { ComputedRef, Ref } from 'vue';
|
|
4
4
|
import { Key } from 'ant-design-vue/lib/table/interface';
|
|
5
5
|
import { EmitType, Recordable } from '../../type';
|
|
6
|
+
import { GetRowKey } from 'ant-design-vue/es/vc-table/interface';
|
|
6
7
|
|
|
7
8
|
interface ActionType {
|
|
8
9
|
getPaginationInfo: ComputedRef<boolean | PaginationProps>;
|
|
@@ -16,7 +17,7 @@ export declare function useDataSource(propsRef: ComputedRef<BasicTableProps>, {
|
|
|
16
17
|
getDataSourceRef: ComputedRef<Recordable<any>[]>;
|
|
17
18
|
getDataSource: <T = Recordable<any>>() => T[];
|
|
18
19
|
getRawDataSource: <T_1 = Recordable<any>>() => T_1;
|
|
19
|
-
getRowKey: ComputedRef<string |
|
|
20
|
+
getRowKey: ComputedRef<string | GetRowKey<any> | undefined>;
|
|
20
21
|
setTableData: <T_2 = Recordable<any>>(values: T_2[]) => void;
|
|
21
22
|
getAutoCreateKey: ComputedRef<boolean | undefined>;
|
|
22
23
|
fetch: (opt?: FetchParams) => Promise<any>;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { BasicTableProps, SizeType } from './types/table';
|
|
1
|
+
import { BasicTableProps, SizeType, FetchParams, GetColumnsParams, BasicColumn, TableRowSelection, TableSetting } from './types/table';
|
|
2
2
|
import { ProTableProps } from './interface';
|
|
3
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
import { Recordable } from '../type';
|
|
5
|
+
import { Key } from 'ant-design-vue/es/table/interface';
|
|
6
|
+
import { PaginationProps } from '.';
|
|
7
|
+
import { GetRowKey } from 'ant-design-vue/es/vc-table/interface';
|
|
8
|
+
import { TableColumnType } from 'ant-design-vue';
|
|
3
9
|
|
|
4
10
|
type ProTableSlots = 'emptyText' | 'expandIcon' | 'title' | 'footer' | 'summary' | 'bodyCell' | 'expandColumnTitle' | 'headerCell' | 'customFilterIcon' | 'customFilterDropdown';
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProTableProps>, {
|
|
6
12
|
clickToRowSelect: boolean;
|
|
7
13
|
tableSetting: () => {};
|
|
8
14
|
autoCreateKey: boolean;
|
|
@@ -18,44 +24,45 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
18
24
|
canResize: boolean;
|
|
19
25
|
resizeHeightOffset: number;
|
|
20
26
|
rowKey: string;
|
|
27
|
+
divideSpace: string;
|
|
21
28
|
}>, {
|
|
22
|
-
reload: (opt?:
|
|
23
|
-
setSelectedRows: (rows:
|
|
24
|
-
getSelectRows: <T =
|
|
29
|
+
reload: (opt?: FetchParams | undefined) => Promise< Recordable<any>[] | undefined>;
|
|
30
|
+
setSelectedRows: (rows: Recordable<any>[]) => void;
|
|
31
|
+
getSelectRows: <T = Recordable<any>>() => T[];
|
|
25
32
|
clearSelectedRowKeys: () => void;
|
|
26
33
|
expandAll: () => void;
|
|
27
34
|
collapseAll: () => void;
|
|
28
|
-
expandRows: (keyValues:
|
|
29
|
-
collapseRows: (keyValues:
|
|
35
|
+
expandRows: (keyValues: Key[]) => void;
|
|
36
|
+
collapseRows: (keyValues: Key[]) => void;
|
|
30
37
|
scrollTo: (pos: string) => void;
|
|
31
|
-
getSelectRowKeys: () =>
|
|
32
|
-
deleteSelectRowByKey: (keyValue:
|
|
33
|
-
setPagination: (info: Partial<
|
|
34
|
-
setTableData: <T_1 =
|
|
35
|
-
updateTableDataRecord: (keyValue:
|
|
36
|
-
deleteTableDataRecord: (keyValues:
|
|
37
|
-
insertTableDataRecord: (record:
|
|
38
|
-
findTableDataRecord: (keyValue:
|
|
39
|
-
getColumns: (opt?:
|
|
40
|
-
setColumns: (columns: string[] |
|
|
41
|
-
getDataSource: <T_2 =
|
|
42
|
-
getRawDataSource: <T_3 =
|
|
38
|
+
getSelectRowKeys: () => Key[];
|
|
39
|
+
deleteSelectRowByKey: (keyValue: Key) => void;
|
|
40
|
+
setPagination: (info: Partial< PaginationProps>) => void;
|
|
41
|
+
setTableData: <T_1 = Recordable<any>>(values: T_1[]) => void;
|
|
42
|
+
updateTableDataRecord: (keyValue: Key, record: Recordable<any>) => void | Recordable<any>;
|
|
43
|
+
deleteTableDataRecord: (keyValues: Key | Key[]) => void;
|
|
44
|
+
insertTableDataRecord: (record: Recordable<any> | Recordable<any>[], index?: number | undefined) => void | Recordable<any>[];
|
|
45
|
+
findTableDataRecord: (keyValue: Key) => void | Recordable<any>;
|
|
46
|
+
getColumns: (opt?: GetColumnsParams | undefined) => BasicColumn[];
|
|
47
|
+
setColumns: (columns: string[] | BasicColumn[]) => void;
|
|
48
|
+
getDataSource: <T_2 = Recordable<any>>() => T_2[];
|
|
49
|
+
getRawDataSource: <T_3 = Recordable<any>>() => T_3;
|
|
43
50
|
setLoading: (loading: boolean) => void;
|
|
44
51
|
setProps: (props: Partial<BasicTableProps<any>>) => void;
|
|
45
52
|
redoHeight: () => void;
|
|
46
|
-
setSelectedRowKeys: (keyValues:
|
|
47
|
-
getPaginationRef: () => boolean |
|
|
53
|
+
setSelectedRowKeys: (keyValues: Key[]) => void;
|
|
54
|
+
getPaginationRef: () => boolean | PaginationProps;
|
|
48
55
|
getSize: () => SizeType;
|
|
49
|
-
getRowSelection: () =>
|
|
50
|
-
getCacheColumns: () =>
|
|
56
|
+
getRowSelection: () => TableRowSelection<Recordable<any>>;
|
|
57
|
+
getCacheColumns: () => BasicColumn[];
|
|
51
58
|
emit?: ((...args: any[]) => any) | ((evt: string, ...args: any[]) => void) | undefined;
|
|
52
|
-
updateTableData: (index: number, key: string, value: any) =>
|
|
59
|
+
updateTableData: (index: number, key: string, value: any) => Recordable<any>;
|
|
53
60
|
setShowPagination: (show: boolean) => Promise<void>;
|
|
54
61
|
getShowPagination: () => boolean;
|
|
55
|
-
setCacheColumnsByField?: ((dataIndex: string | undefined, value:
|
|
56
|
-
setCacheColumns?: ((columns:
|
|
57
|
-
tableElRef:
|
|
58
|
-
}, unknown, {}, {},
|
|
62
|
+
setCacheColumnsByField?: ((dataIndex: string | undefined, value: BasicColumn) => void) | undefined;
|
|
63
|
+
setCacheColumns?: ((columns: BasicColumn[]) => void) | undefined;
|
|
64
|
+
tableElRef: Ref<null>;
|
|
65
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
59
66
|
change: (...args: any[]) => void;
|
|
60
67
|
register: (...args: any[]) => void;
|
|
61
68
|
"edit-change": (...args: any[]) => void;
|
|
@@ -72,7 +79,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
72
79
|
"row-mouseleave": (...args: any[]) => void;
|
|
73
80
|
"columns-change": (...args: any[]) => void;
|
|
74
81
|
"expanded-rows-change": (...args: any[]) => void;
|
|
75
|
-
}, string,
|
|
82
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProTableProps>, {
|
|
76
83
|
clickToRowSelect: boolean;
|
|
77
84
|
tableSetting: () => {};
|
|
78
85
|
autoCreateKey: boolean;
|
|
@@ -88,6 +95,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
88
95
|
canResize: boolean;
|
|
89
96
|
resizeHeightOffset: number;
|
|
90
97
|
rowKey: string;
|
|
98
|
+
divideSpace: string;
|
|
91
99
|
}>>> & {
|
|
92
100
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
93
101
|
onRegister?: ((...args: any[]) => any) | undefined;
|
|
@@ -107,9 +115,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
107
115
|
"onExpanded-rows-change"?: ((...args: any[]) => any) | undefined;
|
|
108
116
|
}, {
|
|
109
117
|
immediate: boolean;
|
|
110
|
-
columns:
|
|
118
|
+
columns: BasicColumn[];
|
|
111
119
|
ellipsis: boolean;
|
|
112
|
-
rowKey: string |
|
|
120
|
+
rowKey: string | GetRowKey<any>;
|
|
113
121
|
indentSize: number;
|
|
114
122
|
showIndexColumn: boolean;
|
|
115
123
|
canResize: boolean;
|
|
@@ -117,29 +125,30 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
117
125
|
resizeHeightOffset: number;
|
|
118
126
|
clickToRowSelect: boolean;
|
|
119
127
|
striped: boolean;
|
|
120
|
-
tableSetting:
|
|
128
|
+
tableSetting: TableSetting;
|
|
121
129
|
autoCreateKey: boolean;
|
|
122
130
|
canColDrag: boolean;
|
|
123
131
|
emptyDataIsShowTable: boolean;
|
|
132
|
+
divideSpace: number | SizeType;
|
|
124
133
|
}, {}>, Partial<Record<string, (_: any) => any>> & Partial<Record<NonNullable<ProTableSlots>, (_: any) => any>> & {
|
|
125
134
|
headerCell?(_: {
|
|
126
|
-
column:
|
|
135
|
+
column: TableColumnType<any>;
|
|
127
136
|
}): any;
|
|
128
137
|
bodyCell?(_: {
|
|
129
138
|
text: any;
|
|
130
139
|
value: any;
|
|
131
140
|
record: Record<string, any>;
|
|
132
141
|
index: number;
|
|
133
|
-
column:
|
|
142
|
+
column: TableColumnType<any>;
|
|
134
143
|
}): any;
|
|
135
144
|
}>;
|
|
136
145
|
export default _default;
|
|
137
146
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
138
147
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
139
148
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
140
|
-
type:
|
|
149
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
141
150
|
} : {
|
|
142
|
-
type:
|
|
151
|
+
type: PropType<T[K]>;
|
|
143
152
|
required: true;
|
|
144
153
|
};
|
|
145
154
|
};
|