zhihao-ui 1.2.18 → 1.2.20
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/es/{Button-OpzeoolK.js → Button-CYr52jII.js} +14 -11
- package/dist/es/{DetailHeader-Dy_GLl1j.js → DetailHeader-oqCdup4q.js} +1 -1
- package/dist/es/{Dialog-DsjDYguS.js → Dialog-stUaKQ4m.js} +1 -1
- package/dist/es/{DiyDataTable-BzYgTozd.js → DiyDataTable-A1P5k0Eh.js} +1 -1
- package/dist/es/{EditInfoPair-D5IdY32c.js → EditInfoPair-DwwAGFc6.js} +1 -1
- package/dist/es/{FileWrapper-BWTQDfI0.js → FileWrapper-brjp8Thj.js} +1 -1
- package/dist/es/{InfoPair-BCfbK9Vi.js → InfoPair-DZL6Vegw.js} +1 -1
- package/dist/es/{Input-Stgzni-P.js → Input-C4aIqSby.js} +1 -1
- package/dist/es/{Loading-CV65SoyW.js → Loading-DhEOgvVz.js} +1 -1
- package/dist/es/{Map-f7AQFEm9.js → Map-DGFoAMyH.js} +1 -1
- package/dist/es/{MessageBox-7G0T_aYK.js → MessageBox-d6upGeyX.js} +5 -6
- package/dist/es/{MoneyInput-CILa4-8Q.js → MoneyInput-DLMJRug1.js} +2 -2
- package/dist/es/{PageHeadPanel-CAVlNQj7.js → PageHeadPanel-CldjeRYl.js} +1 -1
- package/dist/es/Table-DwDzhuHY.js +1159 -0
- package/dist/es/{ToolTips-B1YUKWTm.js → ToolTips-CLcRoFO4.js} +1 -1
- package/dist/es/index.js +42 -36
- package/dist/index.css +1 -1
- package/dist/types/components/Button/Button.vue.d.ts +15 -2
- package/dist/types/components/Button/index.d.ts +15 -3
- package/dist/types/components/MessageBox/MessageBox.vue.d.ts +1 -1
- package/dist/types/components/MessageBox/index.d.ts +3 -0
- package/dist/types/components/Table/Table.vue.d.ts +2 -0
- package/dist/types/components/Table/components/tablePagination.vue.d.ts +12 -1
- package/dist/types/components/Table/index.d.ts +2 -0
- package/dist/types/components/Table/types.d.ts +1 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +10 -10
- package/package.json +1 -1
- package/dist/es/Table-C9p-8Gru.js +0 -1132
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
2
|
default?(_: {}): any;
|
|
3
3
|
};
|
|
4
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
p20?: boolean;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
7
|
click: (event: MouseEvent) => void;
|
|
6
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
p20?: boolean;
|
|
10
|
+
}>>> & Readonly<{
|
|
7
11
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
8
12
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
9
13
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
10
14
|
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
11
24
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
12
25
|
new (): {
|
|
13
26
|
$slots: S;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export declare const ZhButton: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
p20: {
|
|
4
|
+
type: import('vue').PropType<boolean>;
|
|
5
|
+
};
|
|
6
|
+
}>> & Readonly<{
|
|
3
7
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
4
8
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
9
|
click: (event: MouseEvent) => void;
|
|
@@ -10,13 +14,21 @@ export declare const ZhButton: {
|
|
|
10
14
|
C: {};
|
|
11
15
|
M: {};
|
|
12
16
|
Defaults: {};
|
|
13
|
-
}, Readonly<
|
|
17
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
p20: {
|
|
19
|
+
type: import('vue').PropType<boolean>;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{
|
|
14
22
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
15
23
|
}>, {}, {}, {}, {}, {}>;
|
|
16
24
|
__isFragment?: never;
|
|
17
25
|
__isTeleport?: never;
|
|
18
26
|
__isSuspense?: never;
|
|
19
|
-
} & import('vue').ComponentOptionsBase<Readonly<
|
|
27
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
28
|
+
p20: {
|
|
29
|
+
type: import('vue').PropType<boolean>;
|
|
30
|
+
};
|
|
31
|
+
}>> & Readonly<{
|
|
20
32
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
21
33
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
34
|
click: (event: MouseEvent) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElMessageBoxOptions } from 'element-plus';
|
|
2
2
|
|
|
3
3
|
type MessageBoxOptions = Partial<ElMessageBoxOptions>;
|
|
4
|
-
|
|
4
|
+
declare const ZhMessageBox: {
|
|
5
5
|
confirm(message: string, title?: string, options?: MessageBoxOptions): Promise<import('element-plus').MessageBoxData>;
|
|
6
6
|
alert(message: string, title?: string, options?: MessageBoxOptions): Promise<import('element-plus').MessageBoxData>;
|
|
7
7
|
prompt(message: string, title?: string, options?: MessageBoxOptions): Promise<import('element-plus').MessageBoxData>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { ZhConfirm, ZhAlert, ZhPrompt } from './MessageBox.vue';
|
|
2
|
+
|
|
1
3
|
export declare const ZhMessageBox: {
|
|
2
4
|
confirm(message: string, title?: string, options?: Partial<import('element-plus').ElMessageBoxOptions>): Promise<import('element-plus').MessageBoxData>;
|
|
3
5
|
alert(message: string, title?: string, options?: Partial<import('element-plus').ElMessageBoxOptions>): Promise<import('element-plus').MessageBoxData>;
|
|
4
6
|
prompt(message: string, title?: string, options?: Partial<import('element-plus').ElMessageBoxOptions>): Promise<import('element-plus').MessageBoxData>;
|
|
5
7
|
} & import('vue').Plugin;
|
|
8
|
+
export { ZhConfirm, ZhAlert, ZhPrompt };
|
|
@@ -33,9 +33,11 @@ declare function __VLS_template(): Partial<Record<"expand", (_: any) => any>> &
|
|
|
33
33
|
selectedListIds: any[];
|
|
34
34
|
isSelected: boolean;
|
|
35
35
|
}): any;
|
|
36
|
+
searchBarBottom?(_: {}): any;
|
|
36
37
|
append?(_: {}): any;
|
|
37
38
|
empty?(_: {}): any;
|
|
38
39
|
pagination?(_: {}): any;
|
|
40
|
+
zhPaginationLeftSlot?(_: any): any;
|
|
39
41
|
};
|
|
40
42
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ZhTableProps>, {
|
|
41
43
|
columns: () => never[];
|
|
@@ -8,7 +8,13 @@ interface PaginationProps {
|
|
|
8
8
|
handleSizeChange: (size: number) => void;
|
|
9
9
|
handleCurrentChange: (currentPage: number) => void;
|
|
10
10
|
}
|
|
11
|
-
declare
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
zhPaginationLeftSlot?(_: {
|
|
13
|
+
pageable: Pageable;
|
|
14
|
+
}): any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PaginationProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PaginationProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
12
18
|
export default _default;
|
|
13
19
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
20
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -19,3 +25,8 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
19
25
|
required: true;
|
|
20
26
|
};
|
|
21
27
|
};
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -2939,8 +2939,10 @@ export declare const ZhTable: {
|
|
|
2939
2939
|
selectedListIds: any[];
|
|
2940
2940
|
isSelected: boolean;
|
|
2941
2941
|
}): any;
|
|
2942
|
+
searchBarBottom?(_: {}): any;
|
|
2942
2943
|
append?(_: {}): any;
|
|
2943
2944
|
empty?(_: {}): any;
|
|
2944
2945
|
pagination?(_: {}): any;
|
|
2946
|
+
zhPaginationLeftSlot?(_: any): any;
|
|
2945
2947
|
};
|
|
2946
2948
|
}) & import('vue').Plugin;
|
|
@@ -64,6 +64,7 @@ export interface ColumnProps<T = any> extends Partial<Omit<TableColumnCtx<T>, "t
|
|
|
64
64
|
click?: (row: any, index: number) => void;
|
|
65
65
|
isCustomDisable?: boolean;
|
|
66
66
|
wrap?: boolean;
|
|
67
|
+
expandOperationButtons?: boolean;
|
|
67
68
|
}
|
|
68
69
|
export interface SortChangeEvent {
|
|
69
70
|
column: TableColumnCtx<any>;
|