@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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="key",t="left",L="INDEX",N="ACTION",_={default:16,small:8,middle:12,large:16};exports.ACTION_COLUMN_FLAG=N;exports.DEFAULT_ALIGN=t;exports.INDEX_COLUMN_FLAG=L;exports.ROW_KEY=e;exports.formTableDivideSpaceMap=_;
|
|
@@ -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
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Ke=require("ant-design-vue"),R=require("lodash-unified");require("@ant-design/icons-vue");require("../config-provider/index.js");require("@fruits-chain/utils");require("@aplus-frontend/hooks");const He=require("../pro-form/pro-form.vue.js"),Ne=require("../pro-form/hooks/use-form.js"),Ve=require("./components/header-cell.vue.js"),Ae=require("./hooks/use-pagination.js"),Ie=require("./hooks/use-columns.js"),Le=require("./hooks/use-data-source.js"),Oe=require("./hooks/use-loading.js"),We=require("./hooks/use-row-selection.js"),$e=require("./hooks/use-table-scroll.js"),je=require("./hooks/use-scroll-to.js"),Me=require("./hooks/use-custom-row.js"),Ge=require("./hooks/use-table-style.js"),Ue=require("./hooks/use-table-header.js"),Je=require("./hooks/use-table-expand.js"),Qe=require("./hooks/use-table-context.js"),Xe=require("./hooks/use-table-footer.js"),Ye=require("./hooks/use-table-form.js");require("./style/pro-table.css");const Ze=require("./const.js"),et=require("../config-provider/hooks/use-global-config.js"),tt=require("../config-provider/hooks/use-namespace.js"),ot="PageWrapperFixedHeight",nt=e.defineComponent({name:"BasicTable",__name:"pro-table",props:{clickToRowSelect:{type:Boolean,default:!0},isTreeTable:{type:Boolean},tableSetting:{default:()=>({})},inset:{type:Boolean},sortFn:{},filterFn:{},showTableSetting:{type:Boolean},autoCreateKey:{type:Boolean,default:!0},striped:{type:Boolean,default:!0},showSummary:{type:Boolean},summaryFunc:{},summaryData:{},indentSize:{default:24},canColDrag:{type:Boolean,default:!0},api:{},beforeFetch:{},afterFetch:{},handleSearchInfoFn:{},fetchSetting:{},immediate:{type:Boolean,default:!0},emptyDataIsShowTable:{type:Boolean,default:!0},searchInfo:{},defSort:{},useSearchForm:{type:Boolean},formConfig:{},columns:{default:()=>[]},showIndexColumn:{type:Boolean,default:!0},indexColumnProps:{},actionColumn:{},ellipsis:{type:Boolean,default:!0},isCanResizeParent:{type:Boolean,default:!1},canResize:{type:Boolean,default:!0},clearSelectOnPageChange:{type:Boolean},resizeHeightOffset:{default:0},rowSelection:{},showSelectionBar:{type:Boolean},title:{},titleHelpMessage:{},maxHeight:{},dataSource:{},rowKey:{default:""},bordered:{type:Boolean},pagination:{type:[Object,Boolean]},loading:{type:Boolean},rowClassName:{},scroll:{},beforeEditSubmit:{},size:{},divideSpace:{default:"default"}},emits:["fetch-success","fetch-error","selection-change","register","row-click","row-dbClick","row-contextmenu","row-mouseenter","row-mouseleave","edit-end","edit-cancel","edit-row-end","edit-change","expanded-rows-change","change","columns-change"],setup(E,{expose:K,emit:H}){const f=et.useGlobalConfig().value.table,r=E,s=H,T=e.useAttrs(),v=e.useSlots(),l=e.ref(null),m=e.ref([]),h=e.ref(null),F=e.ref(null),S=e.ref(),{b:u,m:N}=tt.useNamespace("pro-table"),[V,P]=Ne.useForm(),C=e.computed(()=>R.isString(r.divideSpace)?Ze.formTableDivideSpaceMap[r.divideSpace]:r.divideSpace),n=e.computed(()=>({...r,sortFn:r.sortFn||f.defaultSortFn,filterFn:r.filterFn||f.defaultFilterFn,fetchSetting:r.fetchSetting||f.fetchSetting,size:r.size||f.defaultSize,...e.unref(S)})),A=e.inject(ot,!1);e.watchEffect(()=>{e.unref(A)&&r.canResize&&console.warn("'canResize' of BasicTable may not work in PageWrapper with 'fixedHeight' (especially in hot updates)")});const{getLoading:B,setLoading:q}=Oe.useLoading(n),{getPaginationInfo:b,getPagination:I,setPagination:z,setShowPagination:L,getShowPagination:O}=Ae.usePagination(n),{getRowSelection:W,getRowSelectionRef:x,getSelectRows:$,setSelectedRows:j,clearSelectedRowKeys:g,getSelectRowKeys:y,deleteSelectRowByKey:M,setSelectedRowKeys:D}=We.useRowSelection(n,m,s),{handleTableChange:G,getDataSourceRef:i,getDataSource:U,getRawDataSource:J,setTableData:Q,updateTableDataRecord:X,deleteTableDataRecord:Y,insertTableDataRecord:Z,findTableDataRecord:ee,fetch:te,getRowKey:oe,reload:ne,getAutoCreateKey:ae,updateTableData:re}=Le.useDataSource(n,{tableData:m,getPaginationInfo:b,setLoading:q,setPagination:z,getFieldsValue:P.getFieldsValue,clearSelectedRowKeys:g},s);function se(t,a,o,d){G(t,a,o),s("change",t,a,o);const{onChange:w}=e.unref(n);w&&R.isFunction(w)&&w(t,a,o,d)}const{getViewColumns:le,getColumns:ue,setCacheColumnsByField:ie,setCacheColumns:ce,setColumnWidth:de,setColumns:fe,getColumnsRef:ge,getCacheColumns:pe}=Ie.useColumns(n,b),{getScrollRef:_,redoHeight:k}=$e.useTableScroll(n,l,ge,x,i,h,F),{scrollTo:me}=je.useTableScrollTo(l,i),{customRow:he}=Me.useCustomRow(n,{setSelectedRowKeys:D,getSelectRowKeys:y,clearSelectedRowKeys:g,getAutoCreateKey:ae,emit:s}),{getRowClassName:Se}=Ge.useTableStyle(n,u()),{getExpandOption:Ce,expandAll:be,expandRows:ye,collapseRows:we,collapseAll:Re,handleTableExpand:Te}=Je.useTableExpand(n,m,s),ve={onColumnsChange:t=>{var a,o;s("columns-change",t),(o=(a=e.unref(n)).onColumnsChange)==null||o.call(a,t)}},Fe={clearSelectedRowKeys:g,getSelectRowKeys:y},{getHeaderProps:Pe}=Ue.useTableHeader(n,v,ve,Fe),{getFooterProps:Be}=Xe.useTableFooter(n,_,l,i),{getFormProps:qe,replaceFormSlotKey:ze,getFormSlotKeys:xe,handleSearchInfoChange:De}=Ye.useTableForm(n,v,te,B),c=e.computed(()=>{const t=e.unref(i);let a={...T,customRow:he,...e.unref(n),...e.unref(Pe),scroll:e.unref(_),loading:e.unref(B),tableLayout:"fixed",rowSelection:e.unref(x),rowKey:e.unref(oe),columns:e.toRaw(e.unref(le)),pagination:e.toRaw(e.unref(b)),dataSource:t,footer:e.unref(Be),...e.unref(Ce)};return a=R.omit(a,["class","style","onChange"]),a}),_e=e.computed(()=>{const t=e.unref(c);return[u(),T.class,{[N("inset")]:t.inset,[u("no-divide")]:C.value===0}]}),ke=e.computed(()=>{const{emptyDataIsShowTable:t,useSearchForm:a}=e.unref(n);return t||!a?!0:!!e.unref(i).length});function Ee(t){S.value={...e.unref(S),...t}}const p={reload:ne,getSelectRows:$,setSelectedRows:j,clearSelectedRowKeys:g,getSelectRowKeys:y,deleteSelectRowByKey:M,setPagination:z,setTableData:Q,updateTableDataRecord:X,deleteTableDataRecord:Y,insertTableDataRecord:Z,findTableDataRecord:ee,redoHeight:k,setSelectedRowKeys:D,setColumns:fe,setLoading:q,getDataSource:U,getRawDataSource:J,setProps:Ee,getRowSelection:W,getPaginationRef:I,getColumns:ue,getCacheColumns:pe,emit:s,updateTableData:re,setShowPagination:L,getShowPagination:O,setCacheColumnsByField:ie,expandAll:be,collapseAll:Re,expandRows:ye,collapseRows:we,scrollTo:me,getSize:()=>e.unref(c).size,setCacheColumns:ce};return Qe.createTableContext({...p,wrapRef:h,getBindValues:c}),s("register",p,P),K({tableElRef:l,...p}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapRef",ref:h,class:e.normalizeClass(_e.value)},[c.value.useSearchForm?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(u)("form-container"),C.value===0?e.unref(u)("form-container-no-divide"):""]),style:e.normalizeStyle({marginBottom:C.value+"px"})},[e.createVNode(e.unref(He.default),e.mergeProps({ref_key:"formRef",ref:F,submitOnReset:""},e.unref(qe),{tableAction:p,onRegister:e.unref(V),onSubmit:e.unref(De),onAdvancedChange:e.unref(k)}),e.createSlots({_:2},[e.renderList(e.unref(xe),o=>({name:e.unref(ze)(o),fn:e.withCtx(d=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(d||{})))])}))]),1040,["onRegister","onSubmit","onAdvancedChange"])],6)):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(e.unref(Ke.Table),e.mergeProps({ref_key:"tableElRef",ref:l},c.value,{rowClassName:e.unref(Se),onChange:se,onResizeColumn:e.unref(de),onExpand:e.unref(Te)}),e.createSlots({headerCell:e.withCtx(({column:o})=>[e.renderSlot(t.$slots,"headerCell",e.normalizeProps(e.guardReactiveProps({column:o})),()=>[e.createVNode(Ve.default,{column:o},null,8,["column"])])]),bodyCell:e.withCtx(o=>[e.renderSlot(t.$slots,"bodyCell",e.normalizeProps(e.guardReactiveProps(o||{})))]),_:2},[e.renderList(Object.keys(t.$slots),o=>({name:o,fn:e.withCtx(d=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(d||{})))])}))]),1040,["rowClassName","onResizeColumn","onExpand"]),[[e.vShow,ke.value]])],2))}});exports.default=nt;
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
.aplus-pro-table {
|
|
2
2
|
max-width: 100%;
|
|
3
3
|
height: 100%;
|
|
4
|
+
padding: 16px;
|
|
5
|
+
}
|
|
6
|
+
.aplus-pro-table-no-divide .ant-table-wrapper {
|
|
7
|
+
border-top-left-radius: 0 !important;
|
|
8
|
+
border-top-right-radius: 0 !important;
|
|
4
9
|
}
|
|
5
10
|
.aplus-pro-table-row__striped td {
|
|
6
11
|
background-color: #fafafa !important;
|
|
7
12
|
}
|
|
8
|
-
.aplus-pro-table-form-container {
|
|
9
|
-
padding: 16px;
|
|
10
|
-
}
|
|
11
13
|
.aplus-pro-table-form-container .ant-form {
|
|
12
14
|
width: 100%;
|
|
13
|
-
|
|
14
|
-
padding: 16px 16px 4px;
|
|
15
|
+
padding: 16px 16px 8px;
|
|
15
16
|
border-radius: 2px;
|
|
16
17
|
background-color: #fff;
|
|
17
18
|
}
|
|
19
|
+
.aplus-pro-table-form-container-no-divide .ant-form {
|
|
20
|
+
border-bottom-left-radius: 0 !important;
|
|
21
|
+
border-bottom-right-radius: 0 !important;
|
|
22
|
+
}
|
|
18
23
|
.aplus-pro-table .ant-table-cell .ant-tag {
|
|
19
24
|
margin-right: 0;
|
|
20
25
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { PromptDialogProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
3
|
|
|
3
|
-
declare const _default:
|
|
4
|
+
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<PromptDialogProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PromptDialogProps>>>, {}, {}>;
|
|
4
5
|
export default _default;
|
|
5
6
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
6
7
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
7
8
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
8
|
-
type:
|
|
9
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
9
10
|
} : {
|
|
10
|
-
type:
|
|
11
|
+
type: PropType<T[K]>;
|
|
11
12
|
required: true;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { VNode } from 'vue';
|
|
1
|
+
import { VNode, RendererNode, RendererElement } from 'vue';
|
|
2
2
|
import { PromptProps } from './interface';
|
|
3
3
|
|
|
4
4
|
export declare function createPrompt(props: PromptProps): {
|
|
5
|
-
vm: VNode<
|
|
5
|
+
vm: VNode< RendererNode, RendererElement, {
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
}>;
|
|
8
8
|
close: () => void;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { DefineComponent, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
1
2
|
|
|
2
|
-
declare const _default:
|
|
3
|
+
declare const _default: DefineComponent<{
|
|
3
4
|
vertical: BooleanConstructor;
|
|
4
5
|
size: StringConstructor;
|
|
5
6
|
move: NumberConstructor;
|
|
6
|
-
}, () =>
|
|
7
|
+
}, () => VNode<RendererNode, RendererElement, {
|
|
7
8
|
[key: string]: any;
|
|
8
|
-
}>, unknown, {}, {},
|
|
9
|
+
}>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
9
10
|
vertical: BooleanConstructor;
|
|
10
11
|
size: StringConstructor;
|
|
11
12
|
move: NumberConstructor;
|
|
@@ -1,75 +1,74 @@
|
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
|
+
import { StyleValue } from '../type';
|
|
1
3
|
export * from './interface';
|
|
2
|
-
export declare const Scrollbar:
|
|
3
|
-
new (...args: any[]):
|
|
4
|
+
export declare const Scrollbar: {
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
4
6
|
native: {
|
|
5
|
-
type:
|
|
6
|
-
default: boolean;
|
|
7
|
+
type: PropType<boolean>;
|
|
7
8
|
};
|
|
8
9
|
scrollHeight: {
|
|
9
|
-
type:
|
|
10
|
+
type: PropType<number>;
|
|
10
11
|
default: number;
|
|
11
12
|
};
|
|
12
13
|
wrapStyle: {
|
|
13
|
-
type:
|
|
14
|
+
type: PropType<StyleValue>;
|
|
14
15
|
default: string;
|
|
15
16
|
};
|
|
16
17
|
wrapClass: {
|
|
17
|
-
type:
|
|
18
|
+
type: PropType<string | string[]>;
|
|
18
19
|
default: string;
|
|
19
20
|
};
|
|
20
21
|
viewClass: {
|
|
21
|
-
type:
|
|
22
|
+
type: PropType<string | string[]>;
|
|
22
23
|
default: string;
|
|
23
24
|
};
|
|
24
25
|
viewStyle: {
|
|
25
|
-
type:
|
|
26
|
+
type: PropType<string | string[]>;
|
|
26
27
|
default: string;
|
|
27
28
|
};
|
|
28
29
|
noresize: {
|
|
29
|
-
type:
|
|
30
|
+
type: PropType<boolean>;
|
|
30
31
|
};
|
|
31
32
|
tag: {
|
|
32
|
-
type:
|
|
33
|
+
type: PropType<string>;
|
|
33
34
|
default: string;
|
|
34
35
|
};
|
|
35
36
|
}>>, {
|
|
36
|
-
wrap:
|
|
37
|
-
}, unknown, {}, {},
|
|
37
|
+
wrap: Ref<any>;
|
|
38
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
38
39
|
native: {
|
|
39
|
-
type:
|
|
40
|
-
default: boolean;
|
|
40
|
+
type: PropType<boolean>;
|
|
41
41
|
};
|
|
42
42
|
scrollHeight: {
|
|
43
|
-
type:
|
|
43
|
+
type: PropType<number>;
|
|
44
44
|
default: number;
|
|
45
45
|
};
|
|
46
46
|
wrapStyle: {
|
|
47
|
-
type:
|
|
47
|
+
type: PropType<StyleValue>;
|
|
48
48
|
default: string;
|
|
49
49
|
};
|
|
50
50
|
wrapClass: {
|
|
51
|
-
type:
|
|
51
|
+
type: PropType<string | string[]>;
|
|
52
52
|
default: string;
|
|
53
53
|
};
|
|
54
54
|
viewClass: {
|
|
55
|
-
type:
|
|
55
|
+
type: PropType<string | string[]>;
|
|
56
56
|
default: string;
|
|
57
57
|
};
|
|
58
58
|
viewStyle: {
|
|
59
|
-
type:
|
|
59
|
+
type: PropType<string | string[]>;
|
|
60
60
|
default: string;
|
|
61
61
|
};
|
|
62
62
|
noresize: {
|
|
63
|
-
type:
|
|
63
|
+
type: PropType<boolean>;
|
|
64
64
|
};
|
|
65
65
|
tag: {
|
|
66
|
-
type:
|
|
66
|
+
type: PropType<string>;
|
|
67
67
|
default: string;
|
|
68
68
|
};
|
|
69
69
|
}>>, {
|
|
70
|
-
native: boolean;
|
|
71
70
|
scrollHeight: number;
|
|
72
|
-
wrapStyle:
|
|
71
|
+
wrapStyle: StyleValue;
|
|
73
72
|
wrapClass: string | string[];
|
|
74
73
|
viewClass: string | string[];
|
|
75
74
|
viewStyle: string | string[];
|
|
@@ -81,44 +80,42 @@ export declare const Scrollbar: import('@aplus-frontend/utils/src/vue/install').
|
|
|
81
80
|
C: {};
|
|
82
81
|
M: {};
|
|
83
82
|
Defaults: {};
|
|
84
|
-
}, Readonly<
|
|
83
|
+
}, Readonly< ExtractPropTypes<{
|
|
85
84
|
native: {
|
|
86
|
-
type:
|
|
87
|
-
default: boolean;
|
|
85
|
+
type: PropType<boolean>;
|
|
88
86
|
};
|
|
89
87
|
scrollHeight: {
|
|
90
|
-
type:
|
|
88
|
+
type: PropType<number>;
|
|
91
89
|
default: number;
|
|
92
90
|
};
|
|
93
91
|
wrapStyle: {
|
|
94
|
-
type:
|
|
92
|
+
type: PropType<StyleValue>;
|
|
95
93
|
default: string;
|
|
96
94
|
};
|
|
97
95
|
wrapClass: {
|
|
98
|
-
type:
|
|
96
|
+
type: PropType<string | string[]>;
|
|
99
97
|
default: string;
|
|
100
98
|
};
|
|
101
99
|
viewClass: {
|
|
102
|
-
type:
|
|
100
|
+
type: PropType<string | string[]>;
|
|
103
101
|
default: string;
|
|
104
102
|
};
|
|
105
103
|
viewStyle: {
|
|
106
|
-
type:
|
|
104
|
+
type: PropType<string | string[]>;
|
|
107
105
|
default: string;
|
|
108
106
|
};
|
|
109
107
|
noresize: {
|
|
110
|
-
type:
|
|
108
|
+
type: PropType<boolean>;
|
|
111
109
|
};
|
|
112
110
|
tag: {
|
|
113
|
-
type:
|
|
111
|
+
type: PropType<string>;
|
|
114
112
|
default: string;
|
|
115
113
|
};
|
|
116
114
|
}>>, {
|
|
117
|
-
wrap:
|
|
115
|
+
wrap: Ref<any>;
|
|
118
116
|
}, {}, {}, {}, {
|
|
119
|
-
native: boolean;
|
|
120
117
|
scrollHeight: number;
|
|
121
|
-
wrapStyle:
|
|
118
|
+
wrapStyle: StyleValue;
|
|
122
119
|
wrapClass: string | string[];
|
|
123
120
|
viewClass: string | string[];
|
|
124
121
|
viewStyle: string | string[];
|
|
@@ -127,51 +124,53 @@ export declare const Scrollbar: import('@aplus-frontend/utils/src/vue/install').
|
|
|
127
124
|
__isFragment?: undefined;
|
|
128
125
|
__isTeleport?: undefined;
|
|
129
126
|
__isSuspense?: undefined;
|
|
130
|
-
} &
|
|
127
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
131
128
|
native: {
|
|
132
|
-
type:
|
|
133
|
-
default: boolean;
|
|
129
|
+
type: PropType<boolean>;
|
|
134
130
|
};
|
|
135
131
|
scrollHeight: {
|
|
136
|
-
type:
|
|
132
|
+
type: PropType<number>;
|
|
137
133
|
default: number;
|
|
138
134
|
};
|
|
139
135
|
wrapStyle: {
|
|
140
|
-
type:
|
|
136
|
+
type: PropType<StyleValue>;
|
|
141
137
|
default: string;
|
|
142
138
|
};
|
|
143
139
|
wrapClass: {
|
|
144
|
-
type:
|
|
140
|
+
type: PropType<string | string[]>;
|
|
145
141
|
default: string;
|
|
146
142
|
};
|
|
147
143
|
viewClass: {
|
|
148
|
-
type:
|
|
144
|
+
type: PropType<string | string[]>;
|
|
149
145
|
default: string;
|
|
150
146
|
};
|
|
151
147
|
viewStyle: {
|
|
152
|
-
type:
|
|
148
|
+
type: PropType<string | string[]>;
|
|
153
149
|
default: string;
|
|
154
150
|
};
|
|
155
151
|
noresize: {
|
|
156
|
-
type:
|
|
152
|
+
type: PropType<boolean>;
|
|
157
153
|
};
|
|
158
154
|
tag: {
|
|
159
|
-
type:
|
|
155
|
+
type: PropType<string>;
|
|
160
156
|
default: string;
|
|
161
157
|
};
|
|
162
158
|
}>>, {
|
|
163
|
-
wrap:
|
|
164
|
-
}, unknown, {}, {},
|
|
165
|
-
native: boolean;
|
|
159
|
+
wrap: Ref<any>;
|
|
160
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
166
161
|
scrollHeight: number;
|
|
167
|
-
wrapStyle:
|
|
162
|
+
wrapStyle: StyleValue;
|
|
168
163
|
wrapClass: string | string[];
|
|
169
164
|
viewClass: string | string[];
|
|
170
165
|
viewStyle: string | string[];
|
|
171
166
|
tag: string;
|
|
172
|
-
}, {}, string, {}> &
|
|
167
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
173
168
|
$slots: {
|
|
174
169
|
default?(_: {}): any;
|
|
175
170
|
};
|
|
176
|
-
})
|
|
171
|
+
}) & Plugin<any[]> & (new (...args: any[]) => {
|
|
172
|
+
$props: {
|
|
173
|
+
onClick?: (() => void) | undefined;
|
|
174
|
+
};
|
|
175
|
+
});
|
|
177
176
|
export default Scrollbar;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ScrollbarProps } from './interface';
|
|
2
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { StyleValue } from '../type';
|
|
2
4
|
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<
|
|
4
|
-
native: boolean;
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ScrollbarProps>, {
|
|
5
6
|
wrapStyle: string;
|
|
6
7
|
wrapClass: string;
|
|
7
8
|
viewStyle: string;
|
|
@@ -9,9 +10,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
9
10
|
tag: string;
|
|
10
11
|
scrollHeight: number;
|
|
11
12
|
}>, {
|
|
12
|
-
wrap:
|
|
13
|
-
}, unknown, {}, {},
|
|
14
|
-
native: boolean;
|
|
13
|
+
wrap: Ref<any>;
|
|
14
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ScrollbarProps>, {
|
|
15
15
|
wrapStyle: string;
|
|
16
16
|
wrapClass: string;
|
|
17
17
|
viewStyle: string;
|
|
@@ -19,9 +19,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
19
19
|
tag: string;
|
|
20
20
|
scrollHeight: number;
|
|
21
21
|
}>>>, {
|
|
22
|
-
native: boolean;
|
|
23
22
|
scrollHeight: number;
|
|
24
|
-
wrapStyle:
|
|
23
|
+
wrapStyle: StyleValue;
|
|
25
24
|
wrapClass: string | string[];
|
|
26
25
|
viewClass: string | string[];
|
|
27
26
|
viewStyle: string | string[];
|
|
@@ -33,9 +32,9 @@ export default _default;
|
|
|
33
32
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
33
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
35
34
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
-
type:
|
|
35
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
36
|
} : {
|
|
38
|
-
type:
|
|
37
|
+
type: PropType<T[K]>;
|
|
39
38
|
required: true;
|
|
40
39
|
};
|
|
41
40
|
};
|