@aplus-frontend/ui 0.0.31 → 0.0.33
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/ap-action/group/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.d.ts +8 -8
- package/es/src/ap-field/date-range/index.vue.d.ts +6 -6
- package/es/src/ap-field/rate/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/password.vue.d.ts +3 -3
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
- package/es/src/ap-form/ap-form-item-group/helper.mjs +30 -25
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +20 -22
- package/es/src/ap-form/ap-form-item.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form.vue.d.ts +2 -2
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/modal-form/index.vue.mjs +43 -39
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -4
- package/es/src/ap-list/hooks/use-offline-list.d.ts +1 -1
- package/es/src/ap-list/index.vue.d.ts +15 -15
- package/es/src/ap-table/ap-table.vue.d.ts +60 -60
- package/es/src/ap-table/constants.d.ts +2778 -2778
- package/es/src/ap-table/utils.d.ts +2 -8474
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
- package/es/src/ap-tag/ap-tag-group.vue.mjs +81 -61
- package/es/src/ap-tag/interface.d.ts +24 -0
- package/es/src/ap-tag/style/ap-tag-group.css +8 -0
- package/es/src/ap-upload/styles/multiple-file.css +4 -0
- package/es/src/ap-upload/styles/picture.css +1 -1
- package/es/src/base-button/index.d.ts +17 -17
- package/es/src/basic/index.d.ts +3 -3
- package/es/src/business/index.d.ts +40 -40
- package/es/src/button/index.d.ts +1 -1
- package/es/src/check-card/group.vue.d.ts +3 -0
- package/es/src/check-card/group.vue.mjs +17 -16
- package/es/src/check-card/index.vue.d.ts +1 -1
- package/es/src/config-provider/config-provider.d.ts +1 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/es/src/config-provider/index.d.ts +4 -3
- package/es/src/container/collapse/header.vue.d.ts +1 -1
- package/es/src/container/collapse/index.vue.d.ts +1 -1
- package/es/src/container/index.d.ts +5 -5
- package/es/src/count-down/index.d.ts +2 -2
- package/es/src/cropper/cropper-image.vue.d.ts +1 -1
- package/es/src/cropper/index.d.ts +34 -34
- package/es/src/description/index.d.ts +2 -2
- package/es/src/design-token/index.mjs +6 -2
- package/es/src/dropdown/index.d.ts +2 -2
- package/es/src/editable-table/form-item.vue.d.ts +23 -23
- package/es/src/editable-table/index.vue.d.ts +27 -27
- package/es/src/icon/index.d.ts +2 -2
- package/es/src/icon-picker/index.d.ts +1 -1
- package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/es/src/modal/components/modal.d.ts +1 -1
- package/es/src/modal/index.d.ts +1 -1
- package/es/src/pro-form/component-map.d.ts +2 -2
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-transfer.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/es/src/pro-form/hooks/use-advanced.d.ts +1 -1
- package/es/src/pro-form/hooks/use-form-values.d.ts +1 -1
- package/es/src/pro-form/hooks/use-label-width.d.ts +27 -27
- package/es/src/pro-form/pro-form.vue.d.ts +4 -4
- package/es/src/pro-table/component-map.d.ts +2 -2
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -2
- package/es/src/pro-table/components/table-action.vue.d.ts +1 -1
- package/es/src/pro-table/components/table-footer.vue.d.ts +2 -2
- package/es/src/pro-table/components/table-image.vue.d.ts +1 -1
- package/es/src/pro-table/hooks/use-data-source.d.ts +5 -5
- package/es/src/pro-table/hooks/use-row-selection.d.ts +1 -1
- package/es/src/pro-table/hooks/use-table-footer.d.ts +1 -1
- package/es/src/pro-table/hooks/use-table-header.d.ts +1 -1
- package/es/src/pro-table/pro-table.vue.d.ts +12 -12
- package/es/src/prompt/utils.d.ts +2 -2
- package/es/src/scroll-bar/index.d.ts +21 -21
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +2 -2
- package/es/src/strength-meter/index.d.ts +1 -1
- package/es/src/theme/ap-tag/ap-tag-group.css +8 -0
- package/es/src/theme/ap-upload/multiple-file.css +4 -0
- package/es/src/theme/ap-upload/picture.css +1 -1
- package/es/src/transition/create-transition.d.ts +1 -1
- package/es/src/transition/index.d.ts +11 -11
- package/es/src/work-order-modal/interfaces.d.ts +2 -2
- package/lib/src/ap-action/group/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +8 -8
- package/lib/src/ap-field/date-range/index.vue.d.ts +6 -6
- package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +3 -3
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
- package/lib/src/ap-form/ap-form-item-group/helper.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +2 -2
- package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -4
- package/lib/src/ap-list/hooks/use-offline-list.d.ts +1 -1
- package/lib/src/ap-list/index.vue.d.ts +15 -15
- package/lib/src/ap-table/ap-table.vue.d.ts +60 -60
- package/lib/src/ap-table/constants.d.ts +2778 -2778
- package/lib/src/ap-table/utils.d.ts +2 -8474
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +24 -0
- package/lib/src/ap-tag/style/ap-tag-group.css +8 -0
- package/lib/src/ap-upload/styles/multiple-file.css +4 -0
- package/lib/src/ap-upload/styles/picture.css +1 -1
- package/lib/src/base-button/index.d.ts +17 -17
- package/lib/src/basic/index.d.ts +3 -3
- package/lib/src/business/index.d.ts +40 -40
- package/lib/src/button/index.d.ts +1 -1
- package/lib/src/check-card/group.vue.d.ts +3 -0
- package/lib/src/check-card/group.vue.js +1 -1
- package/lib/src/check-card/index.vue.d.ts +1 -1
- package/lib/src/config-provider/config-provider.d.ts +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/lib/src/config-provider/index.d.ts +4 -3
- package/lib/src/container/collapse/header.vue.d.ts +1 -1
- package/lib/src/container/collapse/index.vue.d.ts +1 -1
- package/lib/src/container/index.d.ts +5 -5
- package/lib/src/count-down/index.d.ts +2 -2
- package/lib/src/cropper/cropper-image.vue.d.ts +1 -1
- package/lib/src/cropper/index.d.ts +34 -34
- package/lib/src/description/index.d.ts +2 -2
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/dropdown/index.d.ts +2 -2
- package/lib/src/editable-table/form-item.vue.d.ts +23 -23
- package/lib/src/editable-table/index.vue.d.ts +27 -27
- package/lib/src/icon/index.d.ts +2 -2
- package/lib/src/icon-picker/index.d.ts +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/lib/src/modal/components/modal.d.ts +1 -1
- package/lib/src/modal/index.d.ts +1 -1
- package/lib/src/pro-form/component-map.d.ts +2 -2
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-advanced.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-form-values.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +27 -27
- package/lib/src/pro-form/pro-form.vue.d.ts +4 -4
- package/lib/src/pro-table/component-map.d.ts +2 -2
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -2
- package/lib/src/pro-table/components/table-action.vue.d.ts +1 -1
- package/lib/src/pro-table/components/table-footer.vue.d.ts +2 -2
- package/lib/src/pro-table/components/table-image.vue.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-data-source.d.ts +5 -5
- package/lib/src/pro-table/hooks/use-row-selection.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-table-footer.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-table-header.d.ts +1 -1
- package/lib/src/pro-table/pro-table.vue.d.ts +12 -12
- package/lib/src/prompt/utils.d.ts +2 -2
- package/lib/src/scroll-bar/index.d.ts +21 -21
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +2 -2
- package/lib/src/strength-meter/index.d.ts +1 -1
- package/lib/src/theme/ap-tag/ap-tag-group.css +8 -0
- package/lib/src/theme/ap-upload/multiple-file.css +4 -0
- package/lib/src/theme/ap-upload/picture.css +1 -1
- package/lib/src/transition/create-transition.d.ts +1 -1
- package/lib/src/transition/index.d.ts +11 -11
- package/lib/src/work-order-modal/interfaces.d.ts +2 -2
- package/package.json +2 -2
|
@@ -5,11 +5,11 @@ import { ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, CSSPr
|
|
|
5
5
|
import { SpinSize } from 'ant-design-vue/es/spin/Spin';
|
|
6
6
|
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
7
7
|
import { GetPopupContainer, FilterValue, SorterResult, TableCurrentDataSource, TableLocale, SortOrder, TableRowSelection } from 'ant-design-vue/es/table/interface';
|
|
8
|
-
import { RenderExpandIcon, PanelRender, TableComponents, TransformCellText, TableLayout, TableSticky,
|
|
8
|
+
import { RenderExpandIcon, PanelRender, TableComponents, TransformCellText, TableLayout, GetRowKey, TableSticky, DataIndex, RowClassName, GetComponentProps, ColumnType, Key, ExpandedRowRender } from 'ant-design-vue/es/vc-table/interface';
|
|
9
9
|
import { ButtonSize } from 'ant-design-vue/es/button';
|
|
10
10
|
import { TablePaginationConfig, TableColumnType } from 'ant-design-vue';
|
|
11
11
|
import { EllipsisConfig } from 'ant-design-vue/es/typography/Base';
|
|
12
|
-
import { ValueEnum } from '
|
|
12
|
+
import { ValueEnum } from 'src';
|
|
13
13
|
import { TriggerType } from 'ant-design-vue/es/tooltip/abstractTooltipProps';
|
|
14
14
|
import { TooltipPlacement, AdjustOverflow } from 'ant-design-vue/es/tooltip';
|
|
15
15
|
import { LiteralUnion } from 'ant-design-vue/es/_util/type';
|
|
@@ -17,7 +17,7 @@ import { PresetColorType } from 'ant-design-vue/es/_util/colors';
|
|
|
17
17
|
import { AlignType, BuildInPlacements } from 'ant-design-vue/es/vc-trigger/interface';
|
|
18
18
|
import { UnwrapRefSimple } from '@vue/reactivity';
|
|
19
19
|
|
|
20
|
-
declare const _default: <RecordType extends Recordable
|
|
20
|
+
declare const _default: <RecordType extends Recordable = any>(__VLS_props: {
|
|
21
21
|
loading?: boolean | Partial< ExtractPropTypes<{
|
|
22
22
|
prefixCls: StringConstructor;
|
|
23
23
|
spinning: {
|
|
@@ -51,10 +51,6 @@ declare const _default: <RecordType extends Recordable<any> = any>(__VLS_props:
|
|
|
51
51
|
pagination?: false | TablePaginationConfig | undefined;
|
|
52
52
|
value?: RecordType[] | undefined;
|
|
53
53
|
name?: any;
|
|
54
|
-
'onUpdate:value'?: (((...args: any[]) => any) & ((value: RecordType[]) => void)) | undefined;
|
|
55
|
-
defaultValue?: RecordType[] | undefined;
|
|
56
|
-
bordered?: boolean | undefined;
|
|
57
|
-
onExpand?: ((expanded: boolean, record: RecordType) => void) | undefined;
|
|
58
54
|
tableLayout?: TableLayout | undefined;
|
|
59
55
|
columns?: (Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & {
|
|
60
56
|
children?: (Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & any) | undefined;
|
|
@@ -79,8 +75,14 @@ declare const _default: <RecordType extends Recordable<any> = any>(__VLS_props:
|
|
|
79
75
|
}> | undefined;
|
|
80
76
|
}) => any) | undefined;
|
|
81
77
|
})[] | undefined;
|
|
82
|
-
sticky?: boolean | TableSticky | undefined;
|
|
83
78
|
rowKey?: string | GetRowKey<RecordType> | undefined;
|
|
79
|
+
sticky?: boolean | TableSticky | undefined;
|
|
80
|
+
bordered?: boolean | undefined;
|
|
81
|
+
defaultValue?: RecordType[] | undefined;
|
|
82
|
+
onFieldChange?: ((rowIndex: number, fieldName: DataIndex, newValue: any) => void) | undefined;
|
|
83
|
+
'onUpdate:value'?: (((...args: any[]) => any) & ((value: RecordType[]) => void)) | undefined;
|
|
84
|
+
maxLength?: number | undefined;
|
|
85
|
+
onExpand?: ((expanded: boolean, record: RecordType) => void) | undefined;
|
|
84
86
|
dropdownPrefixCls?: string | undefined;
|
|
85
87
|
sortDirections?: SortOrder[] | undefined;
|
|
86
88
|
showSorterTooltip?: boolean | Partial< ExtractPropTypes<{
|
|
@@ -165,8 +167,6 @@ declare const _default: <RecordType extends Recordable<any> = any>(__VLS_props:
|
|
|
165
167
|
rowExpandable?: ((record: RecordType) => boolean) | undefined;
|
|
166
168
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
167
169
|
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
168
|
-
onFieldChange?: ((rowIndex: number, fieldName: DataIndex, newValue: any) => void) | undefined;
|
|
169
|
-
maxLength?: number | undefined;
|
|
170
170
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, __VLS_ctx?: {
|
|
171
171
|
attrs: any;
|
|
172
172
|
slots: Readonly<{
|
|
@@ -204,7 +204,7 @@ declare const _default: <RecordType extends Recordable<any> = any>(__VLS_props:
|
|
|
204
204
|
} | undefined, __VLS_expose?: ((exposed: ShallowUnwrapRef<{
|
|
205
205
|
resetFields: () => void;
|
|
206
206
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
207
|
-
add: (defaultValue?: Partial<RecordType
|
|
207
|
+
add: (defaultValue?: Partial<RecordType>, insertIndex?: number) => void;
|
|
208
208
|
remove: (index: number | number[]) => void;
|
|
209
209
|
getRowData: (index: number) => UnwrapRefSimple<RecordType>;
|
|
210
210
|
getRowsData: () => UnwrapRefSimple<RecordType>[];
|
|
@@ -245,10 +245,6 @@ declare const _default: <RecordType extends Recordable<any> = any>(__VLS_props:
|
|
|
245
245
|
pagination?: false | TablePaginationConfig | undefined;
|
|
246
246
|
value?: RecordType[] | undefined;
|
|
247
247
|
name?: any;
|
|
248
|
-
'onUpdate:value'?: (((...args: any[]) => any) & ((value: RecordType[]) => void)) | undefined;
|
|
249
|
-
defaultValue?: RecordType[] | undefined;
|
|
250
|
-
bordered?: boolean | undefined;
|
|
251
|
-
onExpand?: ((expanded: boolean, record: RecordType) => void) | undefined;
|
|
252
248
|
tableLayout?: TableLayout | undefined;
|
|
253
249
|
columns?: (Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & {
|
|
254
250
|
children?: (Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & any) | undefined;
|
|
@@ -273,8 +269,14 @@ declare const _default: <RecordType extends Recordable<any> = any>(__VLS_props:
|
|
|
273
269
|
}> | undefined;
|
|
274
270
|
}) => any) | undefined;
|
|
275
271
|
})[] | undefined;
|
|
276
|
-
sticky?: boolean | TableSticky | undefined;
|
|
277
272
|
rowKey?: string | GetRowKey<RecordType> | undefined;
|
|
273
|
+
sticky?: boolean | TableSticky | undefined;
|
|
274
|
+
bordered?: boolean | undefined;
|
|
275
|
+
defaultValue?: RecordType[] | undefined;
|
|
276
|
+
onFieldChange?: ((rowIndex: number, fieldName: DataIndex, newValue: any) => void) | undefined;
|
|
277
|
+
'onUpdate:value'?: (((...args: any[]) => any) & ((value: RecordType[]) => void)) | undefined;
|
|
278
|
+
maxLength?: number | undefined;
|
|
279
|
+
onExpand?: ((expanded: boolean, record: RecordType) => void) | undefined;
|
|
278
280
|
dropdownPrefixCls?: string | undefined;
|
|
279
281
|
sortDirections?: SortOrder[] | undefined;
|
|
280
282
|
showSorterTooltip?: boolean | Partial< ExtractPropTypes<{
|
|
@@ -359,13 +361,11 @@ declare const _default: <RecordType extends Recordable<any> = any>(__VLS_props:
|
|
|
359
361
|
rowExpandable?: ((record: RecordType) => boolean) | undefined;
|
|
360
362
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
361
363
|
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
362
|
-
onFieldChange?: ((rowIndex: number, fieldName: DataIndex, newValue: any) => void) | undefined;
|
|
363
|
-
maxLength?: number | undefined;
|
|
364
364
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
365
365
|
expose(exposed: ShallowUnwrapRef<{
|
|
366
366
|
resetFields: () => void;
|
|
367
367
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
368
|
-
add: (defaultValue?: Partial<RecordType
|
|
368
|
+
add: (defaultValue?: Partial<RecordType>, insertIndex?: number) => void;
|
|
369
369
|
remove: (index: number | number[]) => void;
|
|
370
370
|
getRowData: (index: number) => UnwrapRefSimple<RecordType>;
|
|
371
371
|
getRowsData: () => UnwrapRefSimple<RecordType>[];
|
|
@@ -443,10 +443,6 @@ declare const _default: <RecordType extends Recordable<any> = any>(__VLS_props:
|
|
|
443
443
|
pagination?: false | TablePaginationConfig | undefined;
|
|
444
444
|
value?: RecordType[] | undefined;
|
|
445
445
|
name?: any;
|
|
446
|
-
'onUpdate:value'?: (((...args: any[]) => any) & ((value: RecordType[]) => void)) | undefined;
|
|
447
|
-
defaultValue?: RecordType[] | undefined;
|
|
448
|
-
bordered?: boolean | undefined;
|
|
449
|
-
onExpand?: ((expanded: boolean, record: RecordType) => void) | undefined;
|
|
450
446
|
tableLayout?: TableLayout | undefined;
|
|
451
447
|
columns?: (Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & {
|
|
452
448
|
children?: (Omit< TableColumnType<RecordType>, "children" | "ellipsis" | "customRender"> & any) | undefined;
|
|
@@ -471,8 +467,14 @@ declare const _default: <RecordType extends Recordable<any> = any>(__VLS_props:
|
|
|
471
467
|
}> | undefined;
|
|
472
468
|
}) => any) | undefined;
|
|
473
469
|
})[] | undefined;
|
|
474
|
-
sticky?: boolean | TableSticky | undefined;
|
|
475
470
|
rowKey?: string | GetRowKey<RecordType> | undefined;
|
|
471
|
+
sticky?: boolean | TableSticky | undefined;
|
|
472
|
+
bordered?: boolean | undefined;
|
|
473
|
+
defaultValue?: RecordType[] | undefined;
|
|
474
|
+
onFieldChange?: ((rowIndex: number, fieldName: DataIndex, newValue: any) => void) | undefined;
|
|
475
|
+
'onUpdate:value'?: (((...args: any[]) => any) & ((value: RecordType[]) => void)) | undefined;
|
|
476
|
+
maxLength?: number | undefined;
|
|
477
|
+
onExpand?: ((expanded: boolean, record: RecordType) => void) | undefined;
|
|
476
478
|
dropdownPrefixCls?: string | undefined;
|
|
477
479
|
sortDirections?: SortOrder[] | undefined;
|
|
478
480
|
showSorterTooltip?: boolean | Partial< ExtractPropTypes<{
|
|
@@ -557,13 +559,11 @@ declare const _default: <RecordType extends Recordable<any> = any>(__VLS_props:
|
|
|
557
559
|
rowExpandable?: ((record: RecordType) => boolean) | undefined;
|
|
558
560
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
559
561
|
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
560
|
-
onFieldChange?: ((rowIndex: number, fieldName: DataIndex, newValue: any) => void) | undefined;
|
|
561
|
-
maxLength?: number | undefined;
|
|
562
562
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
563
563
|
expose(exposed: ShallowUnwrapRef<{
|
|
564
564
|
resetFields: () => void;
|
|
565
565
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
566
|
-
add: (defaultValue?: Partial<RecordType
|
|
566
|
+
add: (defaultValue?: Partial<RecordType>, insertIndex?: number) => void;
|
|
567
567
|
remove: (index: number | number[]) => void;
|
|
568
568
|
getRowData: (index: number) => UnwrapRefSimple<RecordType>;
|
|
569
569
|
getRowsData: () => UnwrapRefSimple<RecordType>[];
|
package/es/src/icon/index.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ export declare const Icon: {
|
|
|
104
104
|
size: string | number;
|
|
105
105
|
prefix: string;
|
|
106
106
|
spin: boolean;
|
|
107
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin
|
|
107
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
|
|
108
108
|
$props: {
|
|
109
109
|
onClick?: (() => void) | undefined;
|
|
110
110
|
};
|
|
@@ -201,7 +201,7 @@ export declare const SvgIcon: {
|
|
|
201
201
|
size: string | number;
|
|
202
202
|
prefix: string;
|
|
203
203
|
spin: boolean;
|
|
204
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin
|
|
204
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
|
|
205
205
|
$props: {
|
|
206
206
|
onClick?: (() => void) | undefined;
|
|
207
207
|
};
|
|
@@ -182,7 +182,7 @@ export declare const IconPicker: {
|
|
|
182
182
|
readonly: boolean;
|
|
183
183
|
allowClear: boolean;
|
|
184
184
|
pageSize: number;
|
|
185
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin
|
|
185
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
|
|
186
186
|
$props: {
|
|
187
187
|
onClick?: (() => void) | undefined;
|
|
188
188
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonType, ButtonShape, ButtonSize } from 'ant-design-vue/es/button';
|
|
2
2
|
import { DefineComponent, PropType, VNodeChild, VNode, RendererNode, RendererElement, CSSProperties, ExtractPropTypes, ComponentOptionsMixin, PublicProps } from 'vue';
|
|
3
|
-
import { ModalWrapperProps } from '
|
|
3
|
+
import { ModalWrapperProps } from 'src';
|
|
4
4
|
import { ButtonHTMLType } from 'ant-design-vue/es/button/buttonTypes';
|
|
5
5
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
6
6
|
import { MouseEventHandler } from 'ant-design-vue/es/_util/EventInterface';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefineComponent, PropType, VNodeChild, VNode, RendererNode, RendererElement, CSSProperties, ExtractPropTypes, ComponentOptionsMixin, PublicProps } from 'vue';
|
|
2
|
-
import { ModalWrapperProps } from '
|
|
2
|
+
import { ModalWrapperProps } from 'src';
|
|
3
3
|
import { ButtonType, ButtonShape, ButtonSize } from 'ant-design-vue/es/button';
|
|
4
4
|
import { ButtonHTMLType } from 'ant-design-vue/es/button/buttonTypes';
|
|
5
5
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
package/es/src/modal/index.d.ts
CHANGED
|
@@ -953,7 +953,7 @@ export declare const BaseModal: {
|
|
|
953
953
|
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
954
954
|
default?(_: {}): any;
|
|
955
955
|
};
|
|
956
|
-
}) & Plugin
|
|
956
|
+
}) & Plugin & (new (...args: any[]) => {
|
|
957
957
|
$props: {
|
|
958
958
|
onClick?: (() => void) | undefined;
|
|
959
959
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Component
|
|
1
|
+
import { Component } from 'vue';
|
|
2
2
|
import { ComponentType } from './types';
|
|
3
3
|
|
|
4
|
-
declare const componentMap: Map<string, Component
|
|
4
|
+
declare const componentMap: Map<string, Component>;
|
|
5
5
|
export declare function add<T extends string, R extends Component>(compName: ComponentType | T, component: R): void;
|
|
6
6
|
export declare function del<T extends string>(compName: ComponentType | T): void;
|
|
7
7
|
export { componentMap };
|
|
@@ -21,8 +21,8 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
21
21
|
immediate: boolean;
|
|
22
22
|
}>>> & {
|
|
23
23
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
24
|
-
"onOptions-change"?: ((...args: any[]) => any) | undefined;
|
|
25
24
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
"onOptions-change"?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
immediate: boolean;
|
|
28
28
|
params: string | Record<string, any>;
|
|
@@ -37,8 +37,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
37
37
|
options: () => never[];
|
|
38
38
|
}>>> & {
|
|
39
39
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
40
|
-
"onOptions-change"?: ((...args: any[]) => any) | undefined;
|
|
41
40
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
"onOptions-change"?: ((...args: any[]) => any) | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
immediate: boolean;
|
|
44
44
|
options: ApiSelectOption[];
|
|
@@ -28,12 +28,12 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
28
28
|
}, {
|
|
29
29
|
disabled: boolean;
|
|
30
30
|
immediate: boolean;
|
|
31
|
+
showSearch: boolean;
|
|
32
|
+
showSelectAll: boolean;
|
|
31
33
|
resultField: string;
|
|
32
34
|
labelField: string;
|
|
33
35
|
valueField: string;
|
|
34
36
|
alwaysLoad: boolean;
|
|
35
|
-
showSearch: boolean;
|
|
36
|
-
showSelectAll: boolean;
|
|
37
37
|
}, {}>;
|
|
38
38
|
export default _default;
|
|
39
39
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -14,8 +14,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
14
14
|
resultField: string;
|
|
15
15
|
}>>> & {
|
|
16
16
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
17
|
-
"onOptions-change"?: ((...args: any[]) => any) | undefined;
|
|
18
17
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
"onOptions-change"?: ((...args: any[]) => any) | undefined;
|
|
19
19
|
}, {
|
|
20
20
|
immediate: boolean;
|
|
21
21
|
resultField: string;
|
|
@@ -13,6 +13,6 @@ interface UseAdvancedContext {
|
|
|
13
13
|
}
|
|
14
14
|
export default function ({ advanceState, emit, getProps, getSchema, formModel, defaultValueRef }: UseAdvancedContext): {
|
|
15
15
|
handleToggleAdvanced: () => void;
|
|
16
|
-
fieldsIsAdvancedMap: ShallowReactive<Recordable
|
|
16
|
+
fieldsIsAdvancedMap: ShallowReactive<Recordable>;
|
|
17
17
|
};
|
|
18
18
|
export {};
|
|
@@ -9,7 +9,7 @@ interface UseFormValuesContext {
|
|
|
9
9
|
formModel: Recordable;
|
|
10
10
|
}
|
|
11
11
|
export declare function useFormValues({ defaultValueRef, getSchema, formModel, getProps }: UseFormValuesContext): {
|
|
12
|
-
handleFormValues: (values: Recordable) => Recordable
|
|
12
|
+
handleFormValues: (values: Recordable) => Recordable;
|
|
13
13
|
initDefault: () => void;
|
|
14
14
|
};
|
|
15
15
|
export {};
|
|
@@ -71,30 +71,30 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
71
71
|
}>>;
|
|
72
72
|
} | {
|
|
73
73
|
labelCol: {
|
|
74
|
-
|
|
74
|
+
xs?: ColSize | (string | number) | {
|
|
75
75
|
span: string | number;
|
|
76
76
|
offset: string | number;
|
|
77
|
-
} |
|
|
78
|
-
|
|
77
|
+
} | undefined;
|
|
78
|
+
sm?: ColSize | (string | number) | {
|
|
79
79
|
span: string | number;
|
|
80
80
|
offset: string | number;
|
|
81
|
-
} |
|
|
82
|
-
|
|
81
|
+
} | undefined;
|
|
82
|
+
md?: ColSize | (string | number) | {
|
|
83
83
|
span: string | number;
|
|
84
84
|
offset: string | number;
|
|
85
|
-
} |
|
|
86
|
-
|
|
85
|
+
} | undefined;
|
|
86
|
+
lg?: ColSize | (string | number) | {
|
|
87
87
|
span: string | number;
|
|
88
88
|
offset: string | number;
|
|
89
|
-
} |
|
|
90
|
-
|
|
89
|
+
} | undefined;
|
|
90
|
+
xl?: ColSize | (string | number) | {
|
|
91
91
|
span: string | number;
|
|
92
92
|
offset: string | number;
|
|
93
|
-
} |
|
|
94
|
-
|
|
93
|
+
} | undefined;
|
|
94
|
+
xxl?: ColSize | (string | number) | {
|
|
95
95
|
span: string | number;
|
|
96
96
|
offset: string | number;
|
|
97
|
-
} |
|
|
97
|
+
} | undefined;
|
|
98
98
|
prefixCls?: string | undefined;
|
|
99
99
|
span?: (string | number) | undefined;
|
|
100
100
|
push?: (string | number) | undefined;
|
|
@@ -141,7 +141,7 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
141
141
|
results?: (string | number) | undefined;
|
|
142
142
|
security?: string | undefined;
|
|
143
143
|
unselectable?: "on" | "off" | undefined;
|
|
144
|
-
inputmode?: "text" | "search" | "none" | "
|
|
144
|
+
inputmode?: "text" | "search" | "none" | "url" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
|
145
145
|
is?: string | undefined;
|
|
146
146
|
'aria-activedescendant'?: string | undefined;
|
|
147
147
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -156,7 +156,7 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
156
156
|
'aria-describedby'?: string | undefined;
|
|
157
157
|
'aria-details'?: string | undefined;
|
|
158
158
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
159
|
-
'aria-dropeffect'?: "link" | "copy" | "none" | "
|
|
159
|
+
'aria-dropeffect'?: "link" | "copy" | "none" | "popup" | "move" | "execute" | undefined;
|
|
160
160
|
'aria-errormessage'?: string | undefined;
|
|
161
161
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
162
162
|
'aria-flowto'?: string | undefined;
|
|
@@ -172,7 +172,7 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
172
172
|
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
173
173
|
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
174
174
|
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
175
|
-
'aria-orientation'?: "
|
|
175
|
+
'aria-orientation'?: "vertical" | "horizontal" | undefined;
|
|
176
176
|
'aria-owns'?: string | undefined;
|
|
177
177
|
'aria-placeholder'?: string | undefined;
|
|
178
178
|
'aria-posinset'?: (string | number) | undefined;
|
|
@@ -276,30 +276,30 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
276
276
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
277
277
|
};
|
|
278
278
|
wrapperCol: {
|
|
279
|
-
|
|
279
|
+
xs?: ColSize | (string | number) | {
|
|
280
280
|
span: string | number;
|
|
281
281
|
offset: string | number;
|
|
282
|
-
} |
|
|
283
|
-
|
|
282
|
+
} | undefined;
|
|
283
|
+
sm?: ColSize | (string | number) | {
|
|
284
284
|
span: string | number;
|
|
285
285
|
offset: string | number;
|
|
286
|
-
} |
|
|
287
|
-
|
|
286
|
+
} | undefined;
|
|
287
|
+
md?: ColSize | (string | number) | {
|
|
288
288
|
span: string | number;
|
|
289
289
|
offset: string | number;
|
|
290
|
-
} |
|
|
291
|
-
|
|
290
|
+
} | undefined;
|
|
291
|
+
lg?: ColSize | (string | number) | {
|
|
292
292
|
span: string | number;
|
|
293
293
|
offset: string | number;
|
|
294
|
-
} |
|
|
295
|
-
|
|
294
|
+
} | undefined;
|
|
295
|
+
xl?: ColSize | (string | number) | {
|
|
296
296
|
span: string | number;
|
|
297
297
|
offset: string | number;
|
|
298
|
-
} |
|
|
299
|
-
|
|
298
|
+
} | undefined;
|
|
299
|
+
xxl?: ColSize | (string | number) | {
|
|
300
300
|
span: string | number;
|
|
301
301
|
offset: string | number;
|
|
302
|
-
} |
|
|
302
|
+
} | undefined;
|
|
303
303
|
prefixCls?: string | undefined;
|
|
304
304
|
span?: (string | number) | undefined;
|
|
305
305
|
push?: (string | number) | undefined;
|
|
@@ -23,8 +23,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
23
23
|
showSubmitButton: boolean;
|
|
24
24
|
layout: string;
|
|
25
25
|
}>, {
|
|
26
|
-
getFieldsValue: () => Recordable
|
|
27
|
-
setFieldsValue: (values: Recordable
|
|
26
|
+
getFieldsValue: () => Recordable;
|
|
27
|
+
setFieldsValue: (values: Recordable) => Promise<void>;
|
|
28
28
|
resetFields: () => Promise<void>;
|
|
29
29
|
updateSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => Promise<void>;
|
|
30
30
|
resetSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => Promise<void>;
|
|
@@ -67,11 +67,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
67
67
|
"onField-value-change"?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
size: "default" | "small" | "large";
|
|
70
|
-
layout: "inline" | "
|
|
70
|
+
layout: "inline" | "vertical" | "horizontal";
|
|
71
|
+
model: Record<string, any>;
|
|
71
72
|
labelWidth: string | number;
|
|
72
73
|
rulesMessageJoinLabel: boolean;
|
|
73
74
|
autoSetPlaceHolder: boolean;
|
|
74
|
-
model: Record<string, any>;
|
|
75
75
|
showActionButtonGroup: boolean;
|
|
76
76
|
showResetButton: boolean;
|
|
77
77
|
showSubmitButton: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Component
|
|
1
|
+
import { Component } from 'vue';
|
|
2
2
|
|
|
3
3
|
export type ComponentType = 'Input' | 'InputNumber' | 'Select' | 'ApiSelect' | 'AutoComplete' | 'ApiTreeSelect' | 'Checkbox' | 'Switch' | 'DatePicker' | 'TimePicker' | 'RadioGroup' | 'RadioButtonGroup' | 'ApiRadioGroup';
|
|
4
|
-
declare const componentMap: Map<ComponentType, Component
|
|
4
|
+
declare const componentMap: Map<ComponentType, Component>;
|
|
5
5
|
export declare function add(compName: ComponentType, component: Component): void;
|
|
6
6
|
export declare function del(compName: ComponentType): void;
|
|
7
7
|
export { componentMap };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, PropType, DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
2
|
import { BasicColumn } from '../../types/table';
|
|
3
3
|
import { Recordable } from '../../../type';
|
|
4
|
-
import { ComponentType } from '
|
|
4
|
+
import { ComponentType } from 'src/pro-table/component-map';
|
|
5
5
|
|
|
6
6
|
declare const _default: DefineComponent<{
|
|
7
7
|
value: {
|
|
@@ -46,7 +46,7 @@ declare const _default: DefineComponent<{
|
|
|
46
46
|
handleCancel: () => void;
|
|
47
47
|
elRef: Ref<any>;
|
|
48
48
|
getComponent: ComputedRef<ComponentType>;
|
|
49
|
-
getRule: ComputedRef<boolean | ((text: string, record: Recordable
|
|
49
|
+
getRule: ComputedRef<boolean | ((text: string, record: Recordable) => Promise<string>) | undefined>;
|
|
50
50
|
onClickOutside: () => void;
|
|
51
51
|
ruleMessage: Ref<string>;
|
|
52
52
|
getRuleVisible: ComputedRef<boolean | "">;
|
|
@@ -42,8 +42,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
42
42
|
default: boolean;
|
|
43
43
|
};
|
|
44
44
|
}>>, {
|
|
45
|
-
outside: boolean;
|
|
46
45
|
actions: ActionItem[];
|
|
46
|
+
outside: boolean;
|
|
47
47
|
dropDownActions: ActionItem[];
|
|
48
48
|
divider: boolean;
|
|
49
49
|
stopButtonPropagation: boolean;
|
|
@@ -5,7 +5,7 @@ import { GetRowKey } from 'ant-design-vue/es/vc-table/interface';
|
|
|
5
5
|
|
|
6
6
|
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
7
7
|
summaryFunc?: Fn<any, any> | null | undefined;
|
|
8
|
-
summaryData?: Recordable
|
|
8
|
+
summaryData?: Recordable[] | null | undefined;
|
|
9
9
|
scroll?: BasicTableProps['scroll'];
|
|
10
10
|
rowKey?: BasicTableProps['rowKey'];
|
|
11
11
|
}>, {
|
|
@@ -14,7 +14,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
14
14
|
rowKey: string;
|
|
15
15
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
16
|
summaryFunc?: Fn<any, any> | null | undefined;
|
|
17
|
-
summaryData?: Recordable
|
|
17
|
+
summaryData?: Recordable[] | null | undefined;
|
|
18
18
|
scroll?: BasicTableProps['scroll'];
|
|
19
19
|
rowKey?: BasicTableProps['rowKey'];
|
|
20
20
|
}>, {
|
|
@@ -24,9 +24,9 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
24
24
|
}>>>, {
|
|
25
25
|
size: number;
|
|
26
26
|
margin: number;
|
|
27
|
+
fallback: string;
|
|
27
28
|
showBadge: boolean;
|
|
28
29
|
srcPrefix: string;
|
|
29
|
-
fallback: string;
|
|
30
30
|
}, {}>;
|
|
31
31
|
export default _default;
|
|
32
32
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -14,15 +14,15 @@ interface ActionType {
|
|
|
14
14
|
tableData: Ref<Recordable[]>;
|
|
15
15
|
}
|
|
16
16
|
export declare function useDataSource(propsRef: ComputedRef<BasicTableProps>, { getPaginationInfo, setPagination, setLoading, getFieldsValue, clearSelectedRowKeys, tableData }: ActionType, emit: EmitType): {
|
|
17
|
-
getDataSourceRef: ComputedRef<Recordable
|
|
18
|
-
getDataSource: <T = Recordable
|
|
19
|
-
getRawDataSource: <T_1 = Recordable
|
|
17
|
+
getDataSourceRef: ComputedRef<Recordable[]>;
|
|
18
|
+
getDataSource: <T = Recordable>() => T[];
|
|
19
|
+
getRawDataSource: <T_1 = Recordable>() => T_1;
|
|
20
20
|
getRowKey: ComputedRef<string | GetRowKey<any> | undefined>;
|
|
21
|
-
setTableData: <
|
|
21
|
+
setTableData: <T = Recordable>(values: T[]) => void;
|
|
22
22
|
getAutoCreateKey: ComputedRef<boolean | undefined>;
|
|
23
23
|
fetch: (opt?: FetchParams) => Promise<any>;
|
|
24
24
|
reload: (opt?: FetchParams) => Promise<any>;
|
|
25
|
-
updateTableData: (index: number, key: Key, value: any) => Promise<Recordable
|
|
25
|
+
updateTableData: (index: number, key: Key, value: any) => Promise<Recordable>;
|
|
26
26
|
updateTableDataRecord: (keyValue: Key, record: Recordable) => Recordable | undefined;
|
|
27
27
|
deleteTableDataRecord: (keyValues: Key | Key[]) => void;
|
|
28
28
|
insertTableDataRecord: (record: Recordable | Recordable[], index?: number) => Recordable[] | undefined;
|
|
@@ -6,7 +6,7 @@ import { EmitType, Recordable } from '../../type';
|
|
|
6
6
|
export declare function useRowSelection(propsRef: ComputedRef<BasicTableProps>, tableData: Ref<Recordable[]>, emit: EmitType): {
|
|
7
7
|
getRowSelection: () => TableRowSelection<any>;
|
|
8
8
|
getRowSelectionRef: ComputedRef<TableRowSelection<any> | null>;
|
|
9
|
-
getSelectRows: <T = Recordable
|
|
9
|
+
getSelectRows: <T = Recordable>() => T[];
|
|
10
10
|
getSelectRowKeys: () => Key[];
|
|
11
11
|
setSelectedRowKeys: (keyValues?: Key[]) => void;
|
|
12
12
|
clearSelectedRowKeys: () => void;
|
|
@@ -3,5 +3,5 @@ import { BasicTableProps } from '../types/table';
|
|
|
3
3
|
import { ComponentRef, Recordable } from '../../type';
|
|
4
4
|
|
|
5
5
|
export declare function useTableFooter(propsRef: ComputedRef<BasicTableProps>, scrollRef: ComputedRef<BasicTableProps['scroll']>, tableElRef: Ref<ComponentRef>, getDataSourceRef: ComputedRef<Recordable>): {
|
|
6
|
-
getFooterProps: ComputedRef<Recordable
|
|
6
|
+
getFooterProps: ComputedRef<Recordable | undefined>;
|
|
7
7
|
};
|
|
@@ -3,5 +3,5 @@ import { BasicTableProps, InnerHandlers, InnerMethods } from '../types/table';
|
|
|
3
3
|
import { Recordable } from '../../type';
|
|
4
4
|
|
|
5
5
|
export declare function useTableHeader(propsRef: ComputedRef<BasicTableProps>, slots: Slots, handlers: InnerHandlers, methods: InnerMethods): {
|
|
6
|
-
getHeaderProps: ComputedRef<Recordable
|
|
6
|
+
getHeaderProps: ComputedRef<Recordable>;
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BasicTableProps, SizeType, FetchParams, GetColumnsParams, BasicColumn, TableRowSelection, TableSetting } from './types/table';
|
|
2
2
|
import { ProTableProps } from './interface';
|
|
3
3
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
-
import { Recordable } from '
|
|
4
|
+
import { Recordable } from 'src/type';
|
|
5
5
|
import { Key } from 'ant-design-vue/es/table/interface';
|
|
6
|
-
import { PaginationProps } from '
|
|
6
|
+
import { PaginationProps } from 'src';
|
|
7
7
|
import { GetRowKey } from 'ant-design-vue/es/vc-table/interface';
|
|
8
8
|
import { TableColumnType } from 'ant-design-vue';
|
|
9
9
|
|
|
@@ -28,8 +28,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
28
28
|
pagination: null;
|
|
29
29
|
}>, {
|
|
30
30
|
reload: (opt?: FetchParams | undefined) => Promise< Recordable<any>[] | undefined>;
|
|
31
|
-
setSelectedRows: (rows: Recordable
|
|
32
|
-
getSelectRows: <T = Recordable
|
|
31
|
+
setSelectedRows: (rows: Recordable[]) => void;
|
|
32
|
+
getSelectRows: <T = Recordable>() => T[];
|
|
33
33
|
clearSelectedRowKeys: () => void;
|
|
34
34
|
expandAll: () => void;
|
|
35
35
|
collapseAll: () => void;
|
|
@@ -39,25 +39,25 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
39
39
|
getSelectRowKeys: () => Key[];
|
|
40
40
|
deleteSelectRowByKey: (keyValue: Key) => void;
|
|
41
41
|
setPagination: (info: Partial< PaginationProps>) => void;
|
|
42
|
-
setTableData: <T_1 = Recordable
|
|
43
|
-
updateTableDataRecord: (keyValue: Key, record: Recordable
|
|
42
|
+
setTableData: <T_1 = Recordable>(values: T_1[]) => void;
|
|
43
|
+
updateTableDataRecord: (keyValue: Key, record: Recordable) => void | Recordable;
|
|
44
44
|
deleteTableDataRecord: (keyValues: Key | Key[]) => void;
|
|
45
|
-
insertTableDataRecord: (record: Recordable
|
|
46
|
-
findTableDataRecord: (keyValue: Key) => void | Recordable
|
|
45
|
+
insertTableDataRecord: (record: Recordable | Recordable[], index?: number | undefined) => void | Recordable[];
|
|
46
|
+
findTableDataRecord: (keyValue: Key) => void | Recordable;
|
|
47
47
|
getColumns: (opt?: GetColumnsParams | undefined) => BasicColumn[];
|
|
48
48
|
setColumns: (columns: string[] | BasicColumn[]) => void;
|
|
49
|
-
getDataSource: <T_2 = Recordable
|
|
50
|
-
getRawDataSource: <T_3 = Recordable
|
|
49
|
+
getDataSource: <T_2 = Recordable>() => T_2[];
|
|
50
|
+
getRawDataSource: <T_3 = Recordable>() => T_3;
|
|
51
51
|
setLoading: (loading: boolean) => void;
|
|
52
52
|
setProps: (props: Partial<BasicTableProps<any>>) => void;
|
|
53
53
|
redoHeight: () => void;
|
|
54
54
|
setSelectedRowKeys: (keyValues: Key[]) => void;
|
|
55
55
|
getPaginationRef: () => boolean | PaginationProps;
|
|
56
56
|
getSize: () => SizeType;
|
|
57
|
-
getRowSelection: () => TableRowSelection<Recordable
|
|
57
|
+
getRowSelection: () => TableRowSelection<Recordable>;
|
|
58
58
|
getCacheColumns: () => BasicColumn[];
|
|
59
59
|
emit?: ((...args: any[]) => any) | ((evt: string, ...args: any[]) => void) | undefined;
|
|
60
|
-
updateTableData: (index: number, key: string, value: any) => Recordable
|
|
60
|
+
updateTableData: (index: number, key: string, value: any) => Recordable;
|
|
61
61
|
setShowPagination: (show: boolean) => Promise<void>;
|
|
62
62
|
getShowPagination: () => boolean;
|
|
63
63
|
setCacheColumnsByField?: ((dataIndex: string | undefined, value: BasicColumn) => void) | undefined;
|
package/es/src/prompt/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentFormSchema } from '
|
|
2
|
-
import { ComponentProps } from '
|
|
1
|
+
import { ComponentFormSchema } from 'src/pro-form/types/form';
|
|
2
|
+
import { ComponentProps } from 'src/pro-form/types';
|
|
3
3
|
type InputType = 'InputTextArea' | 'InputNumber' | 'Input';
|
|
4
4
|
interface GenFormSchemasOptions {
|
|
5
5
|
label?: string;
|