tutor-pro-ui-vue 1.3.86 → 1.3.90
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.css +1 -1
- package/dist/index.css.gz +0 -0
- package/dist/index.js +4661 -4603
- package/dist/index.js.gz +0 -0
- package/dist/index.umd.cjs +18 -18
- package/dist/src/components/CommonTable/src/setting/content/index.vue.d.ts +9 -0
- package/dist/src/components/CommonTable/src/types.d.ts +7 -2
- package/dist/src/service/dialog/content/index.vue.d.ts +3 -1
- package/dist/src/service/dialog/index.d.ts +11 -1
- package/package.json +1 -1
|
@@ -9,6 +9,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
9
9
|
type: StringConstructor;
|
|
10
10
|
default: string;
|
|
11
11
|
};
|
|
12
|
+
close: {
|
|
13
|
+
type: FunctionConstructor;
|
|
14
|
+
default: () => void;
|
|
15
|
+
};
|
|
12
16
|
}>, {
|
|
13
17
|
handleOk: () => void;
|
|
14
18
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -20,7 +24,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
20
24
|
type: StringConstructor;
|
|
21
25
|
default: string;
|
|
22
26
|
};
|
|
27
|
+
close: {
|
|
28
|
+
type: FunctionConstructor;
|
|
29
|
+
default: () => void;
|
|
30
|
+
};
|
|
23
31
|
}>> & Readonly<{}>, {
|
|
32
|
+
close: Function;
|
|
24
33
|
formData: FormData;
|
|
25
34
|
saveKey: string;
|
|
26
35
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -3,12 +3,17 @@ import { CommonButtonProps, CommonFormProps, GroupBtn } from '../../types';
|
|
|
3
3
|
import { ElTooltipProps, PaginationProps, TableColumnCtx } from 'element-plus';
|
|
4
4
|
import { ExtractPropTypes, PropType, VNode } from 'vue';
|
|
5
5
|
import { DefaultRow } from 'element-plus/es/components/table/src/table/defaults';
|
|
6
|
-
export type
|
|
6
|
+
export type HeaderTooltip = VNode | string;
|
|
7
|
+
export type CommonTableColumn<T extends DefaultRow = any> = Partial<Omit<TableColumnCtx<T>, 'renderCell' | 'renderHeader'>> & {
|
|
7
8
|
isHidden?: () => boolean;
|
|
8
9
|
renderCell?: (record: T) => VNode | any;
|
|
9
|
-
headerTooltip?:
|
|
10
|
+
headerTooltip?: HeaderTooltip;
|
|
10
11
|
tooltipConfig?: Partial<ElTooltipProps>;
|
|
11
12
|
columnChildren?: CommonTableColumn<T>[];
|
|
13
|
+
renderHeader?: (scope?: {
|
|
14
|
+
column: CommonTableColumn<T>;
|
|
15
|
+
$index: number;
|
|
16
|
+
}) => VNode | any;
|
|
12
17
|
};
|
|
13
18
|
export type ToggleBtn = {
|
|
14
19
|
toggleText?: [string, string];
|
|
@@ -43,7 +43,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
43
43
|
type: import('vue').PropType<(done: (cancel?: boolean) => void, contentRef?: any) => void>;
|
|
44
44
|
default: undefined;
|
|
45
45
|
};
|
|
46
|
-
}>, {
|
|
46
|
+
}>, {
|
|
47
|
+
close: () => void;
|
|
48
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
47
49
|
closed: (...args: any[]) => void;
|
|
48
50
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
49
51
|
content: {
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { CommonDialogProps } from './types';
|
|
2
|
+
type DialogServiceConfig = CommonDialogProps & {
|
|
3
|
+
closedCallback?: () => void;
|
|
4
|
+
id: string;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* 获取弹窗服务
|
|
8
|
+
* - 弹窗服务的id默认是时间戳
|
|
9
|
+
* - 弹窗服务的关闭回调会自动删除弹窗服务
|
|
4
10
|
* @param config
|
|
5
11
|
* @returns
|
|
6
12
|
*/
|
|
7
|
-
export declare const getDialogService: (config
|
|
13
|
+
export declare const getDialogService: (config?: DialogServiceConfig) => {
|
|
14
|
+
closeAllDialog: () => void;
|
|
15
|
+
closeDialog: (id: string) => void;
|
|
16
|
+
};
|
|
17
|
+
export {};
|