vue3-curd 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -0
- package/dist/src/api/app/translation/index.d.ts +9 -0
- package/dist/src/api/app/translation/types.d.ts +24 -0
- package/dist/src/api/system/commonDict/data/index.d.ts +8 -0
- package/dist/src/api/system/commonDict/data/types.d.ts +24 -0
- package/dist/src/api/system/dict/data/index.d.ts +8 -0
- package/dist/src/api/system/dict/data/types.d.ts +24 -0
- package/dist/src/api/system/oss/index.d.ts +6 -0
- package/dist/src/api/system/oss/types.d.ts +21 -0
- package/dist/src/components/CURD/composables/useDictData.d.ts +6 -0
- package/dist/src/components/CURD/composables/useFormData.d.ts +6 -0
- package/dist/src/components/CURD/composables/useTableData.d.ts +30 -0
- package/dist/src/components/CURD/constants.d.ts +20 -0
- package/dist/src/components/CURD/curdEdit.d.ts +55 -0
- package/dist/src/components/CURD/curdSearch.d.ts +17 -0
- package/dist/src/components/CURD/curdTable.d.ts +42 -0
- package/dist/src/components/CURD/index.d.ts +274 -0
- package/dist/src/components/CURD/types.d.ts +165 -0
- package/dist/src/components/CURD/utils.d.ts +15 -0
- package/dist/src/components/DictTag/index.d.ts +24 -0
- package/dist/src/components/Editor/index.d.ts +237 -0
- package/dist/src/components/FileUpload/index.d.ts +63 -0
- package/dist/src/components/ImageUpload/index.d.ts +107 -0
- package/dist/src/components/OssImagePreview/index.d.ts +26 -0
- package/dist/src/components/SvgIcon/index.d.ts +41 -0
- package/dist/src/components/TranslateInput/index.d.ts +27 -0
- package/dist/src/components/ossFile/index.d.ts +34 -0
- package/dist/src/directive/common/copyText.d.ts +5 -0
- package/dist/src/directive/curd-perm.d.ts +9 -0
- package/dist/src/index.d.ts +16 -0
- package/dist/src/plugin.d.ts +14 -0
- package/dist/src/plugins/modal.d.ts +20 -0
- package/dist/src/store/modules/dict.d.ts +56 -0
- package/dist/src/store/modules/translation.d.ts +88 -0
- package/dist/src/utils/dict.d.ts +8 -0
- package/dist/src/utils/download.d.ts +1 -0
- package/dist/src/utils/errorCode.d.ts +2 -0
- package/dist/src/utils/http.d.ts +7 -0
- package/dist/src/utils/index.d.ts +23 -0
- package/dist/src/utils/propTypes.d.ts +12 -0
- package/dist/src/utils/ruoyi.d.ts +15 -0
- package/dist/src/utils/translation.d.ts +5 -0
- package/dist/style.css +1 -0
- package/dist/vue3-curd.es.js +3089 -0
- package/dist/vue3-curd.es.js.map +1 -0
- package/dist/vue3-curd.umd.js +2 -0
- package/dist/vue3-curd.umd.js.map +1 -0
- package/package.json +103 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AxiosPromise, AxiosResponse } from 'axios';
|
|
2
|
+
import { TranslationVO, TranslationForm, TranslationQuery } from './types';
|
|
3
|
+
export declare const listTranslation: (query?: TranslationQuery) => AxiosPromise<TranslationVO[]>;
|
|
4
|
+
export declare const getTranslation: (translationId: string | number) => AxiosPromise<TranslationVO>;
|
|
5
|
+
export declare const getTranslationByName: (name: string) => AxiosPromise<TranslationVO>;
|
|
6
|
+
export declare const addTranslation: (data: TranslationForm) => Promise< AxiosResponse<any, any>>;
|
|
7
|
+
export declare const addTranslationBatch: (data: Array<TranslationForm>) => Promise< AxiosResponse<any, any>>;
|
|
8
|
+
export declare const updateTranslation: (data: TranslationForm) => Promise< AxiosResponse<any, any>>;
|
|
9
|
+
export declare const delTranslation: (translationId: string | number | Array<string | number>) => Promise< AxiosResponse<any, any>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface TranslationVO {
|
|
2
|
+
translationId: string | number;
|
|
3
|
+
name: string;
|
|
4
|
+
zhTw: string;
|
|
5
|
+
zhHk: string;
|
|
6
|
+
zhCn: string;
|
|
7
|
+
enUs: string;
|
|
8
|
+
}
|
|
9
|
+
export interface TranslationForm extends BaseEntity {
|
|
10
|
+
translationId?: string | number;
|
|
11
|
+
name?: string;
|
|
12
|
+
zhTw?: string;
|
|
13
|
+
zhHk?: string;
|
|
14
|
+
zhCn?: string;
|
|
15
|
+
enUs?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface TranslationQuery extends PageQuery {
|
|
18
|
+
name?: string;
|
|
19
|
+
zhTw?: string;
|
|
20
|
+
zhHk?: string;
|
|
21
|
+
zhCn?: string;
|
|
22
|
+
enUs?: string;
|
|
23
|
+
params?: any;
|
|
24
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AxiosPromise, AxiosResponse } from 'axios';
|
|
2
|
+
import { CommonDictDataForm, CommonDictDataQuery, CommonDictDataVO } from './types';
|
|
3
|
+
export declare function getDicts(dictType: string): AxiosPromise<CommonDictDataVO[]>;
|
|
4
|
+
export declare function listData(query: CommonDictDataQuery): AxiosPromise<CommonDictDataVO[]>;
|
|
5
|
+
export declare function getData(dictCode: string | number): AxiosPromise<CommonDictDataVO>;
|
|
6
|
+
export declare function addData(data: CommonDictDataForm): Promise< AxiosResponse<any, any>>;
|
|
7
|
+
export declare function updateData(data: CommonDictDataForm): Promise< AxiosResponse<any, any>>;
|
|
8
|
+
export declare function delData(dictCode: string | number | Array<string | number>): Promise< AxiosResponse<any, any>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface CommonDictDataQuery extends PageQuery {
|
|
2
|
+
dictName: string;
|
|
3
|
+
dictType: string;
|
|
4
|
+
dictLabel: string;
|
|
5
|
+
}
|
|
6
|
+
export interface CommonDictDataVO extends BaseEntity {
|
|
7
|
+
dictCode: string;
|
|
8
|
+
dictLabel: string;
|
|
9
|
+
dictValue: string;
|
|
10
|
+
cssClass: string;
|
|
11
|
+
listClass: ElTagType;
|
|
12
|
+
dictSort: number;
|
|
13
|
+
remark: string;
|
|
14
|
+
}
|
|
15
|
+
export interface CommonDictDataForm {
|
|
16
|
+
dictType?: string;
|
|
17
|
+
dictCode: string | undefined;
|
|
18
|
+
dictLabel: string;
|
|
19
|
+
dictValue: string;
|
|
20
|
+
cssClass: string;
|
|
21
|
+
listClass: ElTagType;
|
|
22
|
+
dictSort: number;
|
|
23
|
+
remark: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AxiosPromise, AxiosResponse } from 'axios';
|
|
2
|
+
import { DictDataForm, DictDataQuery, DictDataVO } from './types';
|
|
3
|
+
export declare function getDicts(dictType: string): AxiosPromise<DictDataVO[]>;
|
|
4
|
+
export declare function listData(query: DictDataQuery): AxiosPromise<DictDataVO[]>;
|
|
5
|
+
export declare function getData(dictCode: string | number): AxiosPromise<DictDataVO>;
|
|
6
|
+
export declare function addData(data: DictDataForm): Promise< AxiosResponse<any, any>>;
|
|
7
|
+
export declare function updateData(data: DictDataForm): Promise< AxiosResponse<any, any>>;
|
|
8
|
+
export declare function delData(dictCode: string | number | Array<string | number>): Promise< AxiosResponse<any, any>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface DictDataQuery extends PageQuery {
|
|
2
|
+
dictName: string;
|
|
3
|
+
dictType: string;
|
|
4
|
+
dictLabel: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DictDataVO extends BaseEntity {
|
|
7
|
+
dictCode: string;
|
|
8
|
+
dictLabel: string;
|
|
9
|
+
dictValue: string;
|
|
10
|
+
cssClass: string;
|
|
11
|
+
listClass: ElTagType;
|
|
12
|
+
dictSort: number;
|
|
13
|
+
remark: string;
|
|
14
|
+
}
|
|
15
|
+
export interface DictDataForm {
|
|
16
|
+
dictType?: string;
|
|
17
|
+
dictCode: string | undefined;
|
|
18
|
+
dictLabel: string;
|
|
19
|
+
dictValue: string;
|
|
20
|
+
cssClass: string;
|
|
21
|
+
listClass: ElTagType;
|
|
22
|
+
dictSort: number;
|
|
23
|
+
remark: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OssQuery, OssVO } from './types';
|
|
2
|
+
import { AxiosPromise, AxiosResponse } from 'axios';
|
|
3
|
+
export declare function listOss(query: OssQuery): AxiosPromise<OssVO[]>;
|
|
4
|
+
export declare function listByIds(ossId: string | number): AxiosPromise<OssVO[]>;
|
|
5
|
+
export declare function delOss(ossId: string | number | Array<string | number>): Promise< AxiosResponse<any, any>>;
|
|
6
|
+
export declare function uploadOss(fileData: any, fileName: any): Promise< AxiosResponse<any, any>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface OssVO extends BaseEntity {
|
|
2
|
+
ossId: string | number;
|
|
3
|
+
fileName: string;
|
|
4
|
+
originalName: string;
|
|
5
|
+
fileSuffix: string;
|
|
6
|
+
url: string;
|
|
7
|
+
createByName: string;
|
|
8
|
+
service: string;
|
|
9
|
+
}
|
|
10
|
+
export interface OssQuery extends PageQuery {
|
|
11
|
+
fileName: string;
|
|
12
|
+
originalName: string;
|
|
13
|
+
fileSuffix: string;
|
|
14
|
+
createTime: string;
|
|
15
|
+
service: string;
|
|
16
|
+
orderByColumn: string;
|
|
17
|
+
isAsc: string;
|
|
18
|
+
}
|
|
19
|
+
export interface OssForm {
|
|
20
|
+
file: undefined | string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DataSourceConfig } from '../types';
|
|
2
|
+
export declare function useFormData(dataSource: DataSourceConfig, editData: any): {
|
|
3
|
+
formData: globalThis.Ref<any, any>;
|
|
4
|
+
initFormData: (currentEditData?: any) => Promise<void>;
|
|
5
|
+
prepareSaveData: (saveParams: any) => Promise<any>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DataSourceConfig, PageOptions } from '../types';
|
|
2
|
+
export declare function useTableData(dataSource: DataSourceConfig): {
|
|
3
|
+
listData: globalThis.Ref<any[], any[]>;
|
|
4
|
+
loading: globalThis.Ref<boolean, boolean>;
|
|
5
|
+
multipleSelection: globalThis.Ref<any[], any[]>;
|
|
6
|
+
pageOptions: globalThis.Ref<{
|
|
7
|
+
pageSize: number;
|
|
8
|
+
pageNum: number;
|
|
9
|
+
total: number;
|
|
10
|
+
orderByColumn?: string;
|
|
11
|
+
isAsc?: string;
|
|
12
|
+
}, PageOptions | {
|
|
13
|
+
pageSize: number;
|
|
14
|
+
pageNum: number;
|
|
15
|
+
total: number;
|
|
16
|
+
orderByColumn?: string;
|
|
17
|
+
isAsc?: string;
|
|
18
|
+
}>;
|
|
19
|
+
listSize: globalThis.Ref<number[], number[]>;
|
|
20
|
+
pagingLayout: globalThis.Ref<string, string>;
|
|
21
|
+
defaultSort: globalThis.Ref<any, any>;
|
|
22
|
+
executeQuery: () => Promise<void>;
|
|
23
|
+
getQueryParams: (params: any) => Promise<Record<string, any>>;
|
|
24
|
+
refreshTable: (params?: any) => void;
|
|
25
|
+
handlePageChange: (pageNum: number) => void;
|
|
26
|
+
handleSizeChange: (pageSize: number) => void;
|
|
27
|
+
handleSortChange: (data: any) => void;
|
|
28
|
+
handleSelectionChange: (val: any[]) => void;
|
|
29
|
+
initData: () => Promise<void>;
|
|
30
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DictItem } from './types';
|
|
2
|
+
export declare const LOCAL_DICTS: Record<string, DictItem[]>;
|
|
3
|
+
export declare const FIXED_WIDTH_FIELDS: {
|
|
4
|
+
prop: string;
|
|
5
|
+
width: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const PAGE_SIZES: number[];
|
|
8
|
+
export declare const DEFAULT_PAGE_OPTIONS: {
|
|
9
|
+
pageSize: number;
|
|
10
|
+
pageNum: number;
|
|
11
|
+
total: number;
|
|
12
|
+
orderByColumn: string;
|
|
13
|
+
isAsc: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const PAGING_LAYOUT: {
|
|
16
|
+
FULL: string;
|
|
17
|
+
SIMPLE: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const MIN_TOOLBAR_WIDTH = 30;
|
|
20
|
+
export declare const TOOLBAR_BUTTON_WIDTH = 28;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { DataSourceConfig } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
dataSource: DataSourceConfig;
|
|
5
|
+
editData: any;
|
|
6
|
+
action: any;
|
|
7
|
+
modelValue: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
actionEvent: (...args: any[]) => void;
|
|
11
|
+
close: (...args: any[]) => void;
|
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onActionEvent?: (...args: any[]) => any;
|
|
14
|
+
onClose?: (...args: any[]) => any;
|
|
15
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
16
|
+
curdFormRef: unknown;
|
|
17
|
+
translateInputRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
18
|
+
modelValue?: any;
|
|
19
|
+
type?: any;
|
|
20
|
+
disabled?: any;
|
|
21
|
+
placeholder?: any;
|
|
22
|
+
rows?: any;
|
|
23
|
+
showWordLimit?: any;
|
|
24
|
+
maxlength?: any;
|
|
25
|
+
}> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
27
|
+
onFocus?: (...args: any[]) => any;
|
|
28
|
+
}>, {
|
|
29
|
+
getTranslate: () => any;
|
|
30
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
31
|
+
"update:modelValue": (...args: any[]) => void;
|
|
32
|
+
focus: (...args: any[]) => void;
|
|
33
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
34
|
+
P: {};
|
|
35
|
+
B: {};
|
|
36
|
+
D: {};
|
|
37
|
+
C: {};
|
|
38
|
+
M: {};
|
|
39
|
+
Defaults: {};
|
|
40
|
+
}, Readonly<{
|
|
41
|
+
modelValue?: any;
|
|
42
|
+
type?: any;
|
|
43
|
+
disabled?: any;
|
|
44
|
+
placeholder?: any;
|
|
45
|
+
rows?: any;
|
|
46
|
+
showWordLimit?: any;
|
|
47
|
+
maxlength?: any;
|
|
48
|
+
}> & Readonly<{
|
|
49
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
50
|
+
onFocus?: (...args: any[]) => any;
|
|
51
|
+
}>, {
|
|
52
|
+
getTranslate: () => any;
|
|
53
|
+
}, {}, {}, {}, {}>[];
|
|
54
|
+
}, any>;
|
|
55
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DataSourceConfig } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
dataSource: DataSourceConfig;
|
|
5
|
+
selectedCount?: number;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: DefineComponent<__VLS_Props, {
|
|
8
|
+
initData: () => Promise<void>;
|
|
9
|
+
getQueryParams: () => Record<string, any>;
|
|
10
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
|
+
actionEvent: (...args: any[]) => void;
|
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onActionEvent?: (...args: any[]) => any;
|
|
14
|
+
}>, {
|
|
15
|
+
selectedCount: number;
|
|
16
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DataSourceConfig, ColumnConfig } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
dataSource: DataSourceConfig;
|
|
5
|
+
maxHeight?: number | string;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: Partial<Record<string, (_: {
|
|
10
|
+
row: any;
|
|
11
|
+
column: ColumnConfig;
|
|
12
|
+
value: any;
|
|
13
|
+
}) => any>>;
|
|
14
|
+
refs: {
|
|
15
|
+
curdTableRef: unknown;
|
|
16
|
+
};
|
|
17
|
+
rootEl: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
21
|
+
refreshTable: (params?: any) => void;
|
|
22
|
+
getSelection: () => any[];
|
|
23
|
+
initData: () => Promise<void>;
|
|
24
|
+
getQueryParams: (params: any) => Promise<Record<string, any>>;
|
|
25
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
26
|
+
actionEvent: (...args: any[]) => void;
|
|
27
|
+
selectionChange: (...args: any[]) => void;
|
|
28
|
+
rowClick: (...args: any[]) => void;
|
|
29
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
|
+
onActionEvent?: (...args: any[]) => any;
|
|
31
|
+
onSelectionChange?: (...args: any[]) => any;
|
|
32
|
+
onRowClick?: (...args: any[]) => any;
|
|
33
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
34
|
+
curdTableRef: unknown;
|
|
35
|
+
}, HTMLDivElement>;
|
|
36
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { DataSourceConfig, ActionEvent, ColumnConfig } from './types';
|
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
|
|
3
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
dataSource: DataSourceConfig;
|
|
6
|
+
showCard?: boolean;
|
|
7
|
+
showToolbar?: boolean;
|
|
8
|
+
showPadding?: boolean;
|
|
9
|
+
maxHeight?: number | string;
|
|
10
|
+
};
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: Partial<Record<string, (_: {
|
|
14
|
+
row: any;
|
|
15
|
+
column: ColumnConfig;
|
|
16
|
+
value: any;
|
|
17
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
18
|
+
row: any;
|
|
19
|
+
column: ColumnConfig;
|
|
20
|
+
value: any;
|
|
21
|
+
}) => any>>;
|
|
22
|
+
refs: {
|
|
23
|
+
curdSearchRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
24
|
+
dataSource: DataSourceConfig;
|
|
25
|
+
selectedCount?: number;
|
|
26
|
+
}> & Readonly<{
|
|
27
|
+
onActionEvent?: (...args: any[]) => any;
|
|
28
|
+
}>, {
|
|
29
|
+
initData: () => Promise<void>;
|
|
30
|
+
getQueryParams: () => Record<string, any>;
|
|
31
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
32
|
+
actionEvent: (...args: any[]) => void;
|
|
33
|
+
}, PublicProps, {
|
|
34
|
+
selectedCount: number;
|
|
35
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
36
|
+
P: {};
|
|
37
|
+
B: {};
|
|
38
|
+
D: {};
|
|
39
|
+
C: {};
|
|
40
|
+
M: {};
|
|
41
|
+
Defaults: {};
|
|
42
|
+
}, Readonly<{
|
|
43
|
+
dataSource: DataSourceConfig;
|
|
44
|
+
selectedCount?: number;
|
|
45
|
+
}> & Readonly<{
|
|
46
|
+
onActionEvent?: (...args: any[]) => any;
|
|
47
|
+
}>, {
|
|
48
|
+
initData: () => Promise<void>;
|
|
49
|
+
getQueryParams: () => Record<string, any>;
|
|
50
|
+
}, {}, {}, {}, {
|
|
51
|
+
selectedCount: number;
|
|
52
|
+
}>;
|
|
53
|
+
curdTableRef: {
|
|
54
|
+
$: ComponentInternalInstance;
|
|
55
|
+
$data: {};
|
|
56
|
+
$props: {
|
|
57
|
+
readonly dataSource: DataSourceConfig;
|
|
58
|
+
readonly maxHeight?: number | string;
|
|
59
|
+
readonly onActionEvent?: (...args: any[]) => any;
|
|
60
|
+
readonly onSelectionChange?: (...args: any[]) => any;
|
|
61
|
+
readonly onRowClick?: (...args: any[]) => any;
|
|
62
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
63
|
+
$attrs: {
|
|
64
|
+
[x: string]: unknown;
|
|
65
|
+
};
|
|
66
|
+
$refs: {
|
|
67
|
+
[x: string]: unknown;
|
|
68
|
+
} & {
|
|
69
|
+
curdTableRef: unknown;
|
|
70
|
+
};
|
|
71
|
+
$slots: Readonly<{
|
|
72
|
+
[name: string]: globalThis.Slot;
|
|
73
|
+
}>;
|
|
74
|
+
$root: ComponentPublicInstance | null;
|
|
75
|
+
$parent: ComponentPublicInstance | null;
|
|
76
|
+
$host: Element | null;
|
|
77
|
+
$emit: ((event: "actionEvent", ...args: any[]) => void) & ((event: "selectionChange", ...args: any[]) => void) & ((event: "rowClick", ...args: any[]) => void);
|
|
78
|
+
$el: HTMLDivElement;
|
|
79
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
80
|
+
dataSource: DataSourceConfig;
|
|
81
|
+
maxHeight?: number | string;
|
|
82
|
+
}> & Readonly<{
|
|
83
|
+
onActionEvent?: (...args: any[]) => any;
|
|
84
|
+
onSelectionChange?: (...args: any[]) => any;
|
|
85
|
+
onRowClick?: (...args: any[]) => any;
|
|
86
|
+
}>, {
|
|
87
|
+
refreshTable: (params?: any) => void;
|
|
88
|
+
getSelection: () => any[];
|
|
89
|
+
initData: () => Promise<void>;
|
|
90
|
+
getQueryParams: (params: any) => Promise<Record<string, any>>;
|
|
91
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
92
|
+
actionEvent: (...args: any[]) => void;
|
|
93
|
+
selectionChange: (...args: any[]) => void;
|
|
94
|
+
rowClick: (...args: any[]) => void;
|
|
95
|
+
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
96
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
97
|
+
created?: (() => void) | (() => void)[];
|
|
98
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
99
|
+
mounted?: (() => void) | (() => void)[];
|
|
100
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
101
|
+
updated?: (() => void) | (() => void)[];
|
|
102
|
+
activated?: (() => void) | (() => void)[];
|
|
103
|
+
deactivated?: (() => void) | (() => void)[];
|
|
104
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
105
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
106
|
+
destroyed?: (() => void) | (() => void)[];
|
|
107
|
+
unmounted?: (() => void) | (() => void)[];
|
|
108
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
109
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
110
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
111
|
+
};
|
|
112
|
+
$forceUpdate: () => void;
|
|
113
|
+
$nextTick: nextTick;
|
|
114
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
115
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
116
|
+
dataSource: DataSourceConfig;
|
|
117
|
+
maxHeight?: number | string;
|
|
118
|
+
}> & Readonly<{
|
|
119
|
+
onActionEvent?: (...args: any[]) => any;
|
|
120
|
+
onSelectionChange?: (...args: any[]) => any;
|
|
121
|
+
onRowClick?: (...args: any[]) => any;
|
|
122
|
+
}>, "refreshTable" | "initData" | "getQueryParams" | "getSelection"> & ShallowUnwrapRef<{
|
|
123
|
+
refreshTable: (params?: any) => void;
|
|
124
|
+
getSelection: () => any[];
|
|
125
|
+
initData: () => Promise<void>;
|
|
126
|
+
getQueryParams: (params: any) => Promise<Record<string, any>>;
|
|
127
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
128
|
+
$slots: Partial<Record<string, (_: {
|
|
129
|
+
row: any;
|
|
130
|
+
column: ColumnConfig;
|
|
131
|
+
value: any;
|
|
132
|
+
}) => any>>;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
rootEl: HTMLDivElement;
|
|
136
|
+
};
|
|
137
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
138
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {
|
|
139
|
+
refreshTable: () => any;
|
|
140
|
+
initSearch: () => any;
|
|
141
|
+
initTable: () => Promise<any>;
|
|
142
|
+
openCreate: (options?: any) => Promise<void>;
|
|
143
|
+
getQueryParams: () => any;
|
|
144
|
+
getSelection: () => any;
|
|
145
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
146
|
+
actionEvent: (ev: ActionEvent, data: any) => any;
|
|
147
|
+
beforeQuery: (params: any) => any;
|
|
148
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
149
|
+
onActionEvent?: (ev: ActionEvent, data: any) => any;
|
|
150
|
+
onBeforeQuery?: (params: any) => any;
|
|
151
|
+
}>, {
|
|
152
|
+
showCard: boolean;
|
|
153
|
+
showToolbar: boolean;
|
|
154
|
+
showPadding: boolean;
|
|
155
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
156
|
+
curdSearchRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
157
|
+
dataSource: DataSourceConfig;
|
|
158
|
+
selectedCount?: number;
|
|
159
|
+
}> & Readonly<{
|
|
160
|
+
onActionEvent?: (...args: any[]) => any;
|
|
161
|
+
}>, {
|
|
162
|
+
initData: () => Promise<void>;
|
|
163
|
+
getQueryParams: () => Record<string, any>;
|
|
164
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
165
|
+
actionEvent: (...args: any[]) => void;
|
|
166
|
+
}, PublicProps, {
|
|
167
|
+
selectedCount: number;
|
|
168
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
169
|
+
P: {};
|
|
170
|
+
B: {};
|
|
171
|
+
D: {};
|
|
172
|
+
C: {};
|
|
173
|
+
M: {};
|
|
174
|
+
Defaults: {};
|
|
175
|
+
}, Readonly<{
|
|
176
|
+
dataSource: DataSourceConfig;
|
|
177
|
+
selectedCount?: number;
|
|
178
|
+
}> & Readonly<{
|
|
179
|
+
onActionEvent?: (...args: any[]) => any;
|
|
180
|
+
}>, {
|
|
181
|
+
initData: () => Promise<void>;
|
|
182
|
+
getQueryParams: () => Record<string, any>;
|
|
183
|
+
}, {}, {}, {}, {
|
|
184
|
+
selectedCount: number;
|
|
185
|
+
}>;
|
|
186
|
+
curdTableRef: {
|
|
187
|
+
$: ComponentInternalInstance;
|
|
188
|
+
$data: {};
|
|
189
|
+
$props: {
|
|
190
|
+
readonly dataSource: DataSourceConfig;
|
|
191
|
+
readonly maxHeight?: number | string;
|
|
192
|
+
readonly onActionEvent?: (...args: any[]) => any;
|
|
193
|
+
readonly onSelectionChange?: (...args: any[]) => any;
|
|
194
|
+
readonly onRowClick?: (...args: any[]) => any;
|
|
195
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
196
|
+
$attrs: {
|
|
197
|
+
[x: string]: unknown;
|
|
198
|
+
};
|
|
199
|
+
$refs: {
|
|
200
|
+
[x: string]: unknown;
|
|
201
|
+
} & {
|
|
202
|
+
curdTableRef: unknown;
|
|
203
|
+
};
|
|
204
|
+
$slots: Readonly<{
|
|
205
|
+
[name: string]: globalThis.Slot;
|
|
206
|
+
}>;
|
|
207
|
+
$root: ComponentPublicInstance | null;
|
|
208
|
+
$parent: ComponentPublicInstance | null;
|
|
209
|
+
$host: Element | null;
|
|
210
|
+
$emit: ((event: "actionEvent", ...args: any[]) => void) & ((event: "selectionChange", ...args: any[]) => void) & ((event: "rowClick", ...args: any[]) => void);
|
|
211
|
+
$el: HTMLDivElement;
|
|
212
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
213
|
+
dataSource: DataSourceConfig;
|
|
214
|
+
maxHeight?: number | string;
|
|
215
|
+
}> & Readonly<{
|
|
216
|
+
onActionEvent?: (...args: any[]) => any;
|
|
217
|
+
onSelectionChange?: (...args: any[]) => any;
|
|
218
|
+
onRowClick?: (...args: any[]) => any;
|
|
219
|
+
}>, {
|
|
220
|
+
refreshTable: (params?: any) => void;
|
|
221
|
+
getSelection: () => any[];
|
|
222
|
+
initData: () => Promise<void>;
|
|
223
|
+
getQueryParams: (params: any) => Promise<Record<string, any>>;
|
|
224
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
225
|
+
actionEvent: (...args: any[]) => void;
|
|
226
|
+
selectionChange: (...args: any[]) => void;
|
|
227
|
+
rowClick: (...args: any[]) => void;
|
|
228
|
+
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
229
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
230
|
+
created?: (() => void) | (() => void)[];
|
|
231
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
232
|
+
mounted?: (() => void) | (() => void)[];
|
|
233
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
234
|
+
updated?: (() => void) | (() => void)[];
|
|
235
|
+
activated?: (() => void) | (() => void)[];
|
|
236
|
+
deactivated?: (() => void) | (() => void)[];
|
|
237
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
238
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
239
|
+
destroyed?: (() => void) | (() => void)[];
|
|
240
|
+
unmounted?: (() => void) | (() => void)[];
|
|
241
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
242
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
243
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
244
|
+
};
|
|
245
|
+
$forceUpdate: () => void;
|
|
246
|
+
$nextTick: nextTick;
|
|
247
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
248
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
249
|
+
dataSource: DataSourceConfig;
|
|
250
|
+
maxHeight?: number | string;
|
|
251
|
+
}> & Readonly<{
|
|
252
|
+
onActionEvent?: (...args: any[]) => any;
|
|
253
|
+
onSelectionChange?: (...args: any[]) => any;
|
|
254
|
+
onRowClick?: (...args: any[]) => any;
|
|
255
|
+
}>, "refreshTable" | "initData" | "getQueryParams" | "getSelection"> & ShallowUnwrapRef<{
|
|
256
|
+
refreshTable: (params?: any) => void;
|
|
257
|
+
getSelection: () => any[];
|
|
258
|
+
initData: () => Promise<void>;
|
|
259
|
+
getQueryParams: (params: any) => Promise<Record<string, any>>;
|
|
260
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
261
|
+
$slots: Partial<Record<string, (_: {
|
|
262
|
+
row: any;
|
|
263
|
+
column: ColumnConfig;
|
|
264
|
+
value: any;
|
|
265
|
+
}) => any>>;
|
|
266
|
+
};
|
|
267
|
+
}, HTMLDivElement>;
|
|
268
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
269
|
+
export default _default;
|
|
270
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
271
|
+
new (): {
|
|
272
|
+
$slots: S;
|
|
273
|
+
};
|
|
274
|
+
};
|