gzhr-ui 1.0.0

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.
@@ -0,0 +1,39 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ pagination: {
3
+ type: ObjectConstructor;
4
+ default: () => {
5
+ Page: number;
6
+ PageSize: number;
7
+ TotalPages: number;
8
+ Total: number;
9
+ };
10
+ };
11
+ gridOptions: {
12
+ type: ObjectConstructor;
13
+ default: () => {};
14
+ };
15
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ pageChange: (...args: any[]) => void;
17
+ refresh: (...args: any[]) => void;
18
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ pagination: {
20
+ type: ObjectConstructor;
21
+ default: () => {
22
+ Page: number;
23
+ PageSize: number;
24
+ TotalPages: number;
25
+ Total: number;
26
+ };
27
+ };
28
+ gridOptions: {
29
+ type: ObjectConstructor;
30
+ default: () => {};
31
+ };
32
+ }>> & Readonly<{
33
+ onPageChange?: ((...args: any[]) => any) | undefined;
34
+ onRefresh?: ((...args: any[]) => any) | undefined;
35
+ }>, {
36
+ pagination: Record<string, any>;
37
+ gridOptions: Record<string, any>;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
39
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const installer: (app: import('vue').App) => void;
2
+ export * from '../components';
3
+ export default installer;
@@ -0,0 +1 @@
1
+ export * from './useElementClientSize';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 自定义Hooks监听元素client宽高变化
3
+ * @param {HTMLElement} el 监听的元素
4
+ * @param {Function} [callback] 变动时的回调函数
5
+ * @returns {{clientWidth: Ref<number>, clientHeight: Ref<number>}}
6
+ */
7
+ export declare const useElementClientSize: (el: HTMLElement, callback: Function) => {
8
+ clientWidth: import('vue').Ref<number, number>;
9
+ clientHeight: import('vue').Ref<number, number>;
10
+ };
@@ -0,0 +1,3 @@
1
+ export * from './install';
2
+ export * from './tool';
3
+ export * from './useElementClientSize';
@@ -0,0 +1,8 @@
1
+ import { App, Plugin, Directive } from 'vue';
2
+ type SFCWithInstall<T> = T & Plugin;
3
+ export declare function makeInstaller(components: Plugin[]): (app: App) => void;
4
+ export declare const withInstall: <T>(component: T) => SFCWithInstall<T>;
5
+ export declare const withInstallFunction: <T>(fn: T, name: string) => SFCWithInstall<T>;
6
+ export declare const withInstallDirective: <T extends Directive>(directive: T, name: string) => SFCWithInstall<T>;
7
+ export declare const withNoopInstall: <T>(component: T) => SFCWithInstall<T>;
8
+ export {};
@@ -0,0 +1,47 @@
1
+ type DeepClone<T> = T extends object ? {
2
+ [K in keyof T]: DeepClone<T[K]>;
3
+ } : T;
4
+ /**
5
+ * 深拷贝一个对象
6
+ * @param {object|Array} json
7
+ * @returns
8
+ */
9
+ export declare function deepClone<T>(obj: T): DeepClone<T>;
10
+ /**
11
+ * 将数据转换为树结构 (浅拷贝)
12
+ * @param {Array} data 原始数据
13
+ * @param {string} [parentField='ParentOID'] 父节点字段名称
14
+ * @param {string} [idField='OID'] 节点标识符字段名称
15
+ * @param {string} [childrenField='children'] 节点标识符字段名称
16
+ * @returns {Array} 树结构
17
+ */
18
+ export declare function buildTree(data: any[], parentField?: string, idField?: string, childrenField?: string): any[];
19
+ /**
20
+ * 判断值是否为 空值 或UUID为 00000000-0000-0000-0000-000000000000
21
+ * @param {*} val
22
+ * @returns
23
+ */
24
+ export declare function isEmptyUUID(val: any): boolean;
25
+ /**
26
+ * 判断字符串是否为颜色值
27
+ * @param {*} str
28
+ * @returns
29
+ */
30
+ export declare function isColor(str: string): boolean;
31
+ /**
32
+ * 返回对应文件的img图标
33
+ * @param {string} fileExtension 字段字符串
34
+ * @returns
35
+ */
36
+ export declare function getFileIconUrl(fileExtension: string): false | "/Images/img_fileType/VIDEO.png" | "/Images/img_fileType/PDF.png" | "/Images/img_fileType/WORD.png" | "/Images/img_fileType/ECEL.png" | "/Images/img_fileType/PPT.png" | "/Images/img_fileType/ZIP.png" | "/Images/img_fileType/TET.png" | "/Images/img_fileType/CSV.png" | "/Images/img_fileType/PUB.png" | "/Images/img_fileType/XMIND.png" | "/Images/img_fileType/MD.png" | "/Images/img_fileType/3D.png" | "/Images/img_fileType/none.png";
37
+ /**
38
+ * 预览视频
39
+ * @param {*} FilePath 文件地址
40
+ */
41
+ export declare function preVideo(FilePath: string): void;
42
+ /**
43
+ * 预览CAD文件
44
+ * @param {string} filePath 文件地址
45
+ */
46
+ export declare function preCAD(filePath: string): void;
47
+ export {};
@@ -0,0 +1,18 @@
1
+ /**变动时的回调函数*/
2
+ type CallBack = (options: {
3
+ /**元素的宽度*/
4
+ clientWidth: number;
5
+ /**元素的高度*/
6
+ clientHeight: number;
7
+ }) => void;
8
+ /**
9
+ * 自定义Hooks监听元素client宽高变化
10
+ * @param {HTMLElement} el 监听的元素
11
+ * @param {Function} [callback] 变动时的回调函数
12
+ * @returns {{clientWidth: Ref<number>, clientHeight: Ref<number>}}
13
+ */
14
+ export declare const useElementClientSize: (el: Element, callback: CallBack) => {
15
+ clientWidth: import('vue').Ref<number, number>;
16
+ clientHeight: import('vue').Ref<number, number>;
17
+ };
18
+ export {};