@pusdn/pgz-comp-elep 0.2.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.
Files changed (124) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +4 -0
  3. package/global.d.ts +150 -0
  4. package/lib/adaptive-page/index.d.ts +17096 -0
  5. package/lib/adaptive-page/src/index.vue.d.ts +5731 -0
  6. package/lib/adaptive-page/src/type.d.ts +9 -0
  7. package/lib/button/index.d.ts +134 -0
  8. package/lib/button/src/index.vue.d.ts +67 -0
  9. package/lib/button/src/type.d.ts +10 -0
  10. package/lib/chart/index.d.ts +164 -0
  11. package/lib/chart/src/index.vue.d.ts +77 -0
  12. package/lib/chart/src/type.d.ts +7 -0
  13. package/lib/checkbox/index.d.ts +206 -0
  14. package/lib/checkbox/src/checkbox.d.ts +5 -0
  15. package/lib/checkbox/src/index.vue.d.ts +91 -0
  16. package/lib/components.d.ts +57 -0
  17. package/lib/date-picker/index.d.ts +170 -0
  18. package/lib/date-picker/src/index.vue.d.ts +77 -0
  19. package/lib/date-picker/src/type.d.ts +10 -0
  20. package/lib/detail/index.d.ts +182 -0
  21. package/lib/detail/src/index.vue.d.ts +88 -0
  22. package/lib/detail/src/renderLabel.vue.d.ts +8 -0
  23. package/lib/detail/src/renderTooltip.vue.d.ts +8 -0
  24. package/lib/detail/src/type.d.ts +27 -0
  25. package/lib/favicon.ico +0 -0
  26. package/lib/form/index.d.ts +308 -0
  27. package/lib/form/src/index.vue.d.ts +125 -0
  28. package/lib/form/src/renderBtn.vue.d.ts +8 -0
  29. package/lib/form/src/renderComp.vue.d.ts +8 -0
  30. package/lib/form/src/type.d.ts +26 -0
  31. package/lib/index.d.ts +37 -0
  32. package/lib/input/index.d.ts +215 -0
  33. package/lib/input/src/index.vue.d.ts +109 -0
  34. package/lib/input/src/type.d.ts +13 -0
  35. package/lib/layout-page/index.d.ts +114 -0
  36. package/lib/layout-page/src/index.vue.d.ts +62 -0
  37. package/lib/layout-page-item/index.d.ts +35 -0
  38. package/lib/layout-page-item/src/index.vue.d.ts +14 -0
  39. package/lib/module-form/index.d.ts +530 -0
  40. package/lib/module-form/src/index.vue.d.ts +243 -0
  41. package/lib/module-form/src/moduleDetail.vue.d.ts +30 -0
  42. package/lib/module-form/src/moduleForm.vue.d.ts +36 -0
  43. package/lib/module-form/src/type.d.ts +19 -0
  44. package/lib/pgz-checkbox/index.d.ts +149 -0
  45. package/lib/pgz-checkbox/src/index.vue.d.ts +65 -0
  46. package/lib/pgz-checkbox/src/type.d.ts +12 -0
  47. package/lib/pgz-comp-elep.es.js +39696 -0
  48. package/lib/pgz-comp-elep.es.js.gz +0 -0
  49. package/lib/pgz-comp-elep.umd.js +261 -0
  50. package/lib/pgz-comp-elep.umd.js.gz +0 -0
  51. package/lib/pgz-html-preview-modal/index.d.ts +77 -0
  52. package/lib/pgz-html-preview-modal/src/index.vue.d.ts +22 -0
  53. package/lib/pgz-html-preview-modal/src/type.d.ts +7 -0
  54. package/lib/pgz-search-select/index.d.ts +5 -0
  55. package/lib/pgz-search-select/src/index.vue.d.ts +194 -0
  56. package/lib/pgz-search-select/src/type.d.ts +16 -0
  57. package/lib/pgz-tdt-mark/index.d.ts +407 -0
  58. package/lib/pgz-tdt-mark/src/env.d.ts +7 -0
  59. package/lib/pgz-tdt-mark/src/index.vue.d.ts +167 -0
  60. package/lib/pgz-tdt-mark/src/props.d.ts +63 -0
  61. package/lib/pgz-tdt-mark/src/types/index.d.ts +1 -0
  62. package/lib/pgz-tdt-mark/src/types/tdt.d.ts +88 -0
  63. package/lib/pgz-tdt-ploygon/index.d.ts +401 -0
  64. package/lib/pgz-tdt-ploygon/src/env.d.ts +7 -0
  65. package/lib/pgz-tdt-ploygon/src/index.vue.d.ts +164 -0
  66. package/lib/pgz-tdt-ploygon/src/props.d.ts +35 -0
  67. package/lib/pgz-tdt-ploygon/src/tmp-fix.d.ts +10 -0
  68. package/lib/pgz-tdt-ploygon/src/types/index.d.ts +1 -0
  69. package/lib/pgz-tdt-ploygon/src/types/tdt.d.ts +120 -0
  70. package/lib/pgz-tdt-ploygon/src/types.d.ts +27 -0
  71. package/lib/pgz-video-xg-modal/index.d.ts +181 -0
  72. package/lib/pgz-video-xg-modal/src/env.d.ts +7 -0
  73. package/lib/pgz-video-xg-modal/src/index.vue.d.ts +73 -0
  74. package/lib/pgz-video-xg-modal/src/types/xgplayer.d.ts +59 -0
  75. package/lib/query-condition/index.d.ts +701 -0
  76. package/lib/query-condition/src/index.vue.d.ts +326 -0
  77. package/lib/query-condition/src/moreChoose.vue.d.ts +37 -0
  78. package/lib/query-condition/src/renderComp.vue.d.ts +8 -0
  79. package/lib/query-condition/src/type.d.ts +21 -0
  80. package/lib/query-condition/src/useComputed.d.ts +27 -0
  81. package/lib/radio/index.d.ts +206 -0
  82. package/lib/radio/src/index.vue.d.ts +91 -0
  83. package/lib/radio/src/radio.d.ts +12 -0
  84. package/lib/select/index.d.ts +371 -0
  85. package/lib/select/src/index.vue.d.ts +200 -0
  86. package/lib/select/src/type.d.ts +42 -0
  87. package/lib/select-icon/index.d.ts +174 -0
  88. package/lib/select-icon/src/index.vue.d.ts +89 -0
  89. package/lib/select-table/index.d.ts +2165 -0
  90. package/lib/select-table/src/index.vue.d.ts +963 -0
  91. package/lib/select-table/src/renderCol.vue.d.ts +20 -0
  92. package/lib/select-table/src/type.d.ts +56 -0
  93. package/lib/select-table/src/useVirtualized.d.ts +11 -0
  94. package/lib/step-wizard/index.d.ts +146 -0
  95. package/lib/step-wizard/src/index.vue.d.ts +71 -0
  96. package/lib/step-wizard/src/type.d.ts +25 -0
  97. package/lib/style.css +1 -0
  98. package/lib/style.css.gz +0 -0
  99. package/lib/table/index.d.ts +2540 -0
  100. package/lib/table/src/ColumnSet.vue.d.ts +148 -0
  101. package/lib/table/src/TTableColumn.vue.d.ts +173 -0
  102. package/lib/table/src/index.vue.d.ts +941 -0
  103. package/lib/table/src/operator.vue.d.ts +80 -0
  104. package/lib/table/src/renderCol.vue.d.ts +20 -0
  105. package/lib/table/src/renderHeader.vue.d.ts +16 -0
  106. package/lib/table/src/singleEdit.vue.d.ts +122 -0
  107. package/lib/table/src/singleEditCell.vue.d.ts +120 -0
  108. package/lib/table/src/tableProps.d.ts +100 -0
  109. package/lib/table/src/useExpose.d.ts +16 -0
  110. package/lib/table/src/useVirtualized.d.ts +9 -0
  111. package/lib/tabs/index.d.ts +69 -0
  112. package/lib/tabs/src/index.vue.d.ts +34 -0
  113. package/lib/timer-btn/index.d.ts +92 -0
  114. package/lib/timer-btn/src/index.vue.d.ts +43 -0
  115. package/lib/utils/directives/click-outside/index.d.ts +3 -0
  116. package/lib/utils/http/api.d.ts +76 -0
  117. package/lib/utils/http/index.d.ts +74 -0
  118. package/lib/utils/http/types.d.ts +13 -0
  119. package/lib/utils/index.d.ts +40 -0
  120. package/lib/weixin.jpg +0 -0
  121. package/lib/withInstall.d.ts +4 -0
  122. package/lib/wocwin.jpg +0 -0
  123. package/package.json +111 -0
  124. package/typings/index.d.ts +161 -0
@@ -0,0 +1,43 @@
1
+ export interface TTimerBtnProps {
2
+ second?: number;
3
+ className?: string;
4
+ }
5
+ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ second: {
7
+ type: NumberConstructor;
8
+ required: false;
9
+ default: number;
10
+ };
11
+ className: {
12
+ type: StringConstructor;
13
+ required: false;
14
+ default: string;
15
+ };
16
+ }>, {
17
+ props: any;
18
+ time: import("vue").Ref<number, number>;
19
+ disabled: import("vue").Ref<boolean, boolean>;
20
+ text: import("vue").ComputedRef<string>;
21
+ emits: (event: "click", ...args: any[]) => void;
22
+ run: () => void;
23
+ reset: () => void;
24
+ start: () => void;
25
+ timer: () => void;
26
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ second: {
28
+ type: NumberConstructor;
29
+ required: false;
30
+ default: number;
31
+ };
32
+ className: {
33
+ type: StringConstructor;
34
+ required: false;
35
+ default: string;
36
+ };
37
+ }>> & Readonly<{
38
+ onClick?: ((...args: any[]) => any) | undefined;
39
+ }>, {
40
+ className: string;
41
+ second: number;
42
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
43
+ export default _sfc_main;
@@ -0,0 +1,3 @@
1
+ import type { ObjectDirective } from "vue";
2
+ declare const ClickOutside: ObjectDirective;
3
+ export default ClickOutside;
@@ -0,0 +1,76 @@
1
+ export interface ApiResponse<T = any> {
2
+ success: boolean;
3
+ message: string;
4
+ code: number;
5
+ result: T;
6
+ timestamp: number;
7
+ }
8
+ export interface OptionItem {
9
+ value: string | number;
10
+ text: string;
11
+ title?: string;
12
+ [key: string]: any;
13
+ }
14
+ declare const addRole: (params: any) => Promise<any>;
15
+ declare const editRole: (params: any) => Promise<any>;
16
+ declare const checkRoleCode: (params: any) => Promise<any>;
17
+ declare const queryall: (params: any) => Promise<any>;
18
+ declare const addUser: (params: any) => Promise<any>;
19
+ declare const editUser: (params: any) => Promise<any>;
20
+ declare const queryUserRole: (params: any) => Promise<any>;
21
+ declare const getUserList: (params: any) => Promise<any>;
22
+ declare const frozenBatch: (params: any) => Promise<any>;
23
+ declare const checkOnlyUser: (params: any) => Promise<any>;
24
+ declare const changePassword: (params: any) => Promise<any>;
25
+ declare const addPermission: (params: any) => Promise<any>;
26
+ declare const editPermission: (params: any) => Promise<any>;
27
+ declare const getPermissionList: (params: any) => Promise<any>;
28
+ declare const getSystemMenuList: (params: any) => Promise<any>;
29
+ declare const getSystemSubmenu: (params: any) => Promise<any>;
30
+ declare const getSystemSubmenuBatch: (params: any) => Promise<any>;
31
+ declare const queryTreeList: (params: any) => Promise<any>;
32
+ declare const queryTreeListForRole: (params: any) => Promise<any>;
33
+ declare const queryListAsync: (params: any) => Promise<any>;
34
+ declare const queryRolePermission: (params: any) => Promise<any>;
35
+ declare const saveRolePermission: (params: any) => Promise<any>;
36
+ declare const queryPermissionsByUser: () => Promise<any>;
37
+ declare const loadAllRoleIds: (params: any) => Promise<any>;
38
+ declare const getPermissionRuleList: (params: any) => Promise<any>;
39
+ declare const queryPermissionRule: (params: any) => Promise<any>;
40
+ declare const queryDepartTreeList: (params: any) => Promise<any>;
41
+ declare const queryDepartTreeSync: (params: any) => Promise<any>;
42
+ declare const queryIdTree: (params: any) => Promise<any>;
43
+ declare const queryParentName: (params: any) => Promise<any>;
44
+ declare const searchByKeywords: (params: any) => Promise<any>;
45
+ declare const deleteByDepartId: (params: any) => Promise<any>;
46
+ declare const queryDepartPermission: (params: any) => Promise<any>;
47
+ declare const saveDepartPermission: (params: any) => Promise<any>;
48
+ declare const queryTreeListForDeptRole: (params: any) => Promise<any>;
49
+ declare const queryDeptRolePermission: (params: any) => Promise<any>;
50
+ declare const saveDeptRolePermission: (params: any) => Promise<any>;
51
+ declare const queryMyDepartTreeList: (params: any) => Promise<any>;
52
+ declare const deleteLog: (params: any) => Promise<any>;
53
+ declare const deleteLogList: (params: any) => Promise<any>;
54
+ declare const addDict: (params: any) => Promise<any>;
55
+ declare const editDict: (params: any) => Promise<any>;
56
+ declare const treeList: (params: any) => Promise<any>;
57
+ declare const addDictItem: (params: any) => Promise<any>;
58
+ declare const editDictItem: (params: any) => Promise<any>;
59
+ export declare const ajaxGetDictItems: <T = OptionItem[]>(code: any, params: any) => Promise<ApiResponse<T>>;
60
+ export declare function getDictItemsFromCache(dictCode: any): any;
61
+ declare const doReleaseData: (params: any) => Promise<any>;
62
+ declare const doReovkeData: (params: any) => Promise<any>;
63
+ declare const getLoginfo: (params: any) => Promise<any>;
64
+ declare const getVisitInfo: (params: any) => Promise<any>;
65
+ declare const queryUserByDepId: (params: any) => Promise<any>;
66
+ declare const duplicateCheck: (params: any) => Promise<any>;
67
+ declare const loadCategoryData: (params: any) => Promise<any>;
68
+ declare const checkRuleByCode: (params: any) => Promise<any>;
69
+ declare const getUserNoticeInfo: (params: any) => Promise<any>;
70
+ export declare const transitRESTful: {
71
+ get: (url: any, parameter: any) => Promise<any>;
72
+ post: (url: any, parameter: any) => Promise<any>;
73
+ put: (url: any, parameter: any) => Promise<any>;
74
+ http: (url: any, parameter: any) => Promise<any>;
75
+ };
76
+ export { addRole, editRole, checkRoleCode, addUser, editUser, queryUserRole, getUserList, queryall, frozenBatch, checkOnlyUser, changePassword, getPermissionList, addPermission, editPermission, queryTreeList, queryListAsync, queryRolePermission, saveRolePermission, queryPermissionsByUser, loadAllRoleIds, getPermissionRuleList, queryPermissionRule, queryDepartTreeList, queryDepartTreeSync, queryIdTree, queryParentName, searchByKeywords, deleteByDepartId, deleteLog, deleteLogList, addDict, editDict, treeList, addDictItem, editDictItem, doReleaseData, doReovkeData, getLoginfo, getVisitInfo, queryUserByDepId, duplicateCheck, queryTreeListForRole, getSystemMenuList, getSystemSubmenu, getSystemSubmenuBatch, loadCategoryData, checkRuleByCode, queryDepartPermission, saveDepartPermission, queryTreeListForDeptRole, queryDeptRolePermission, saveDeptRolePermission, queryMyDepartTreeList, getUserNoticeInfo };
@@ -0,0 +1,74 @@
1
+ /**
2
+ * 获取Token
3
+ */
4
+ export declare const getToken: () => string | null;
5
+ /**
6
+ * 设置Token
7
+ */
8
+ export declare const setToken: (access_token: string) => string;
9
+ /**
10
+ * 移除Token
11
+ */
12
+ export declare const removeToken: () => null;
13
+ /**
14
+ * 获取当前语言
15
+ */
16
+ export declare const getLanguage: () => string;
17
+ /**
18
+ * 获取全局请求头
19
+ */
20
+ export declare const globalHeaders: () => {
21
+ Authorization: string;
22
+ clientid: any;
23
+ };
24
+ declare const service: import("axios").AxiosInstance;
25
+ /**
26
+ * POST请求方法
27
+ * @param url 请求地址
28
+ * @param parameter 请求参数
29
+ */
30
+ export declare function postAction<T = any>(url: string, parameter: any): Promise<T>;
31
+ /**
32
+ * 通用HTTP请求方法
33
+ * @param url 请求地址
34
+ * @param parameter 请求参数
35
+ * @param method 请求方法
36
+ */
37
+ export declare function httpAction<T = any>(url: string, parameter: any, method: string): Promise<T>;
38
+ /**
39
+ * PUT请求方法
40
+ * @param url 请求地址
41
+ * @param parameter 请求参数
42
+ */
43
+ export declare function putAction<T = any>(url: string, parameter: any): Promise<T>;
44
+ /**
45
+ * GET请求方法
46
+ * @param url 请求地址
47
+ * @param parameter 请求参数
48
+ */
49
+ export declare function getAction<T = any>(url: string, parameter: any): Promise<T>;
50
+ /**
51
+ * DELETE请求方法
52
+ * @param url 请求地址
53
+ * @param parameter 请求参数
54
+ */
55
+ export declare function deleteAction<T = any>(url: string, parameter: any): Promise<T>;
56
+ /**
57
+ * 下载文件请求方法
58
+ * @param url 请求地址
59
+ * @param parameter 请求参数
60
+ */
61
+ export declare function downloadFile<T = any>(url: string, parameter: any): Promise<T>;
62
+ /**
63
+ * 上传文件请求方法
64
+ * @param url 请求地址
65
+ * @param parameter 请求参数
66
+ */
67
+ export declare function uploadFile<T = any>(url: string, parameter: any): Promise<T>;
68
+ export declare const get: typeof getAction;
69
+ export declare const post: typeof postAction;
70
+ export declare const put: typeof putAction;
71
+ export declare const del: typeof deleteAction;
72
+ export declare const download: typeof downloadFile;
73
+ export declare const upload: typeof uploadFile;
74
+ export default service;
@@ -0,0 +1,13 @@
1
+ export interface ApiResponse<T = any> {
2
+ success: boolean;
3
+ message: string;
4
+ code: number;
5
+ result: T;
6
+ timestamp: number;
7
+ }
8
+ export interface OptionItem {
9
+ value: string | number;
10
+ text: string;
11
+ title?: string;
12
+ [key: string]: any;
13
+ }
@@ -0,0 +1,40 @@
1
+ type Func = (...args: any[]) => any;
2
+ /**
3
+ * 防抖函数
4
+ * @param { Function } func 函数
5
+ * @param { Number } delay 防抖时间
6
+ * @param { Boolean } immediate 是否立即执行
7
+ * @param { Function } resultCallback
8
+ */
9
+ export declare function debounce(func: Func, delay?: number, immediate?: boolean, resultCallback?: Func): {
10
+ (this: unknown, ...args: any[]): Promise<unknown>;
11
+ cancel(): void;
12
+ };
13
+ /**
14
+ * 节流函数
15
+ * @param { Function } func
16
+ * @param { Boolean } interval
17
+ * @param { Object } options
18
+ * leading:初始 trailing:结尾
19
+ */
20
+ export declare function throttle(func: Func, interval: number, options?: {
21
+ leading: boolean;
22
+ trailing: boolean;
23
+ }): {
24
+ (this: unknown, ...args: any[]): void;
25
+ cancel(): void;
26
+ };
27
+ /**
28
+ * 驼峰转换下划线
29
+ * @param { String } name
30
+ */
31
+ export declare function toLine(name: string): string;
32
+ export declare function formatNumber(value: number | string, precision?: number, separator?: string, decimal?: string, prefix?: string, suffix?: string): string;
33
+ export * from './http';
34
+ declare const _default: {
35
+ debounce: typeof debounce;
36
+ throttle: typeof throttle;
37
+ toLine: typeof toLine;
38
+ formatNumber: typeof formatNumber;
39
+ };
40
+ export default _default;
package/lib/weixin.jpg ADDED
Binary file
@@ -0,0 +1,4 @@
1
+ import { Plugin } from "vue";
2
+ type SFCWithInstall<T> = T & Plugin;
3
+ export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E | undefined) => SFCWithInstall<T> & E;
4
+ export {};
package/lib/wocwin.jpg ADDED
Binary file
package/package.json ADDED
@@ -0,0 +1,111 @@
1
+ {
2
+ "name": "@pusdn/pgz-comp-elep",
3
+ "version": "0.2.1",
4
+ "description": "PGZ组件库,Vue3 中基于Element-plus二次封装基础组件文档",
5
+ "author": "JaneYork",
6
+ "license": "PGZ-LIC",
7
+ "private": false,
8
+ "main": "lib/pgz-comp-elep.umd.js",
9
+ "module": "lib/pgz-comp-elep.umd.js",
10
+ "types": "lib/index.d.ts",
11
+ "type": "module",
12
+ "files": [
13
+ "package.json",
14
+ "README.md",
15
+ "LICENSE",
16
+ "lib",
17
+ "typings",
18
+ "global.d.ts"
19
+ ],
20
+ "scripts": {
21
+ "lib": "rimraf lib && vite build",
22
+ "deploy": "deploy.sh",
23
+ "pub": "npm publish --registry=https://registry.npmjs.org/",
24
+ "prettier": "prettier --write \"packages/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
25
+ "docs:prettier": "prettier --write \"docs/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
26
+ "docs:dev": "vitepress dev docs",
27
+ "docs:build": "vitepress build docs",
28
+ "lint:lint-staged": "lint-staged",
29
+ "prepare": "husky install"
30
+ },
31
+ "devDependencies": {
32
+ "@commitlint/cli": "^19.8.0",
33
+ "@commitlint/config-conventional": "^19.8.0",
34
+ "@element-plus/icons-vue": "^2.0.10",
35
+ "@rollup/plugin-replace": "^5.0.5",
36
+ "@rollup/plugin-terser": "^0.4.4",
37
+ "@types/node": "18.7.18",
38
+ "@types/nprogress": "^0.2.0",
39
+ "@types/path-browserify": "^1.0.0",
40
+ "@typescript-eslint/eslint-plugin": "^5.40.0",
41
+ "@typescript-eslint/parser": "^5.40.0",
42
+ "@vitejs/plugin-vue": "^3.1.0",
43
+ "@vitejs/plugin-vue-jsx": "^2.0.1",
44
+ "@vue/shared": "^3.3.13",
45
+ "@vueuse/core": "^9.13.0",
46
+ "axios": "^1.1.2",
47
+ "chalk": "^5.2.0",
48
+ "consola": "^3.1.0",
49
+ "echarts": "^5.4.3",
50
+ "element-plus": "^2.7.8",
51
+ "escape-html": "^1.0.3",
52
+ "eslint": "^8.25.0",
53
+ "eslint-config-prettier": "^8.5.0",
54
+ "eslint-plugin-prettier": "^4.2.1",
55
+ "eslint-plugin-vue": "^9.6.0",
56
+ "husky": "^9.1.7",
57
+ "jsencrypt": "3.0.0-rc.1",
58
+ "lint-staged": "^15.5.0",
59
+ "markdown-it": "^13.0.1",
60
+ "markdown-it-container": "^3.0.0",
61
+ "md5": "^2.3.0",
62
+ "minimist": "^1.2.8",
63
+ "normalize.css": "^8.0.1",
64
+ "npm-run-all": "^4.1.5",
65
+ "nprogress": "^0.2.0",
66
+ "path-browserify": "^1.0.1",
67
+ "pinia": "^2.0.23",
68
+ "pinia-plugin-persistedstate": "^2.3.0",
69
+ "prettier": "^2.7.1",
70
+ "prismjs": "^1.29.0",
71
+ "rimraf": "^6.0.1",
72
+ "rollup-plugin-visualizer": "^5.8.2",
73
+ "sass": "1.32.13",
74
+ "sass-loader": "^13.1.0",
75
+ "sortablejs": "^1.15.0",
76
+ "typescript": "^4.6.4",
77
+ "unocss": "^0.51.13",
78
+ "unplugin-auto-import": "^0.11.2",
79
+ "vite": "^3.1.0",
80
+ "vite-plugin-compression": "^0.5.1",
81
+ "vite-plugin-dts": "^1.7.3",
82
+ "vitepress": "1.0.0-alpha.75",
83
+ "vue": "^3.4.21",
84
+ "vue-router": "^4.1.5",
85
+ "vue-tsc": "^0.40.4",
86
+ "vuedraggable": "^4.1.0"
87
+ },
88
+ "peerDependencies": {
89
+ "element-plus": "^2.7.8",
90
+ "vue": "^3.2.47"
91
+ },
92
+ "repository": {
93
+ "type": "git",
94
+ "url": "https://www.pusdn.com"
95
+ },
96
+ "homepage": "https://www.pusdn.com",
97
+ "keywords": [
98
+ "vue3",
99
+ "PGZ",
100
+ "JaneYork",
101
+ "pusdn",
102
+ "二次封装组件",
103
+ "HJM",
104
+ "element-ui",
105
+ "element-plus"
106
+ ],
107
+ "dependencies": {
108
+ "xgplayer": "^3.0.22",
109
+ "xgplayer-hls": "^3.0.22"
110
+ }
111
+ }
@@ -0,0 +1,161 @@
1
+ declare interface AnyObject {
2
+ [key: string]: any
3
+ }
4
+ /* TForm */
5
+ declare namespace FormTypes {
6
+ interface FormOpts {
7
+ ref: any // 表单实例
8
+ labelPosition?: string // label对齐方式
9
+ labelWidth?: string // label宽度
10
+ btnSlotName?: string // 按钮插槽名称
11
+ formData: AnyObject // 表单数据
12
+ fieldList: FieldList[] // 表单项
13
+ rules?: any // 表单验证规则
14
+ listTypeInfo?: any // 下拉框数据
15
+ operatorList?: OperatorList[] // 操作按钮
16
+ }
17
+ interface FieldList {
18
+ isHideItem?: boolean // 是否隐藏
19
+ label?: string // label
20
+ value?: string // 字段名
21
+ labelSlotName?: string // label插槽名称
22
+ labelRender?: (...ags: any[]) => any // label render渲染
23
+ className?: string // 表单项class
24
+ isTrim?: boolean // el-input 是否去除空格
25
+ rules?: any // 表单项验证规则
26
+ widthSize?: number // 表单项宽度
27
+ slotName?: string // 表单输入框插槽名称
28
+ textShow?: boolean // 是否文本展示
29
+ textValue?: string // 文本展示值
30
+ isSelfCom?: boolean // 是否自定义组件
31
+ type?: string // 表单类型
32
+ ref?: string // 表单组件实例
33
+ list?: string // 下拉框数据变量名称
34
+ arrLabel?: string // 下拉框label字段
35
+ arrKey?: string // 下拉框value字段
36
+ event?: string // 触发handleEvent事件的标识
37
+ comp?: any // 组件名称
38
+ placeholder?: string // 提示语
39
+ bind?: any // 绑定数据(Objec or Function(formData))
40
+ width?: string // 组件宽度
41
+ prepend?: string // el-input输入框前置内容
42
+ append?: string // el-input输入框后置内容
43
+ childSlotName?: string // 子组件插槽名称
44
+ eventHandle?: AnyObject // 事件处理函数
45
+ }
46
+ interface OperatorList {
47
+ label?: string // 按钮名称
48
+ fun?: (val: any) => void // 按钮点击事件
49
+ bind?: AnyObject // 绑定数据
50
+ isHideBtn?: boolean // 是否隐藏按钮
51
+ render?: (...ags: any[]) => any // render函数
52
+ }
53
+ }
54
+ /* TQueryCondition */
55
+ declare namespace QueryTypes {
56
+ interface Opts {
57
+ [key: string]: {
58
+ label: string // 列名
59
+ comp: string // 组件名
60
+ span?: number // 表单栅格
61
+ bind?: any // 绑定值
62
+ defaultVal?: any // 默认值
63
+ isSelfCom?: boolean // 是否是自定义组件
64
+ type?: string // 组件类型
65
+ list?: string // 下拉列表变量名
66
+ listTypeInfo?: any // 下拉列表数据源
67
+ arrLabel?: string // 下拉列表label
68
+ arrKey?: string // 下拉列表value
69
+ eventHandle?: any // 事件处理函数 };
70
+ }
71
+ }
72
+ }
73
+ /* TTable */
74
+ declare namespace TableTypes {
75
+ interface Table {
76
+ border?: boolean // 是否显示边框
77
+ firstColumn?: any[] | AnyObject // 第一列数据
78
+ rules?: AnyObject // 表单验证规则
79
+ listTypeInfo?: any // 字典过滤
80
+ operator?: any // 操作按钮
81
+ operatorConfig?: AnyObject // 操作列配置
82
+ currentPage?: Number // 当前页码
83
+ pageSize?: Number // 每页条数
84
+ total?: Number // 总条数
85
+ layout?: string // 分页布局
86
+ prevText?: string // 上一页文本
87
+ nextText?: string // 下一页文本
88
+ size?: string // 分页尺寸
89
+ data: any[] // 表格数据
90
+ columns: Columns[] // 表格列
91
+ }
92
+ interface Columns {
93
+ prop?: string // 列字段
94
+ label?: string // 列标题
95
+ width?: string | number // 列宽度
96
+ minWidth?: string | number // 列最小宽度
97
+ align?: string // 列对齐方式
98
+ fixed?: string // 列固定
99
+ type?: string // 列类型
100
+ sortable?: any // 列是否可排序
101
+ sort?: any // 列排序方式
102
+ isShowCol?: boolean | Function // 列是否显示
103
+ align?: string // 列对齐方式
104
+ fixed?: string // 列固定
105
+ bind?: AnyObject // el-table-column 属性
106
+ headerRequired?: boolean // 表头是否显示必填红点
107
+ renderHeader?: (...ags: any[]) => any // 自定义表头
108
+ render?: (...ags: any[]) => any // 自定义列内容
109
+ slotName?: string // 自定义列内容插槽
110
+ canEdit?: boolean // 是否可编辑
111
+ isClickEdit?: boolean // 是否点击编辑
112
+ isShowEditIcon?: boolean // 是否显示编辑图标
113
+ configEdit?: ConfigEdit // 编辑配置
114
+ filters?: Filters // 字典过滤
115
+ formatter?: Function // 内容格式化
116
+ children?: any[] // 子列
117
+ }
118
+ interface Filters {
119
+ list: string // 字典列表
120
+ key: string // 字典key
121
+ label: string // 字典label
122
+ }
123
+ interface ConfigEdit {
124
+ rules?: any // 校验规则
125
+ editSlotName?: string // 编辑插槽
126
+ isSelfCom?: boolean // 是否自定义组件
127
+ bind?: any // 组件属性(Objec or Function)
128
+ editComponent?: any // 编辑组件
129
+ placeholder?: string // 占位符
130
+ width?: string | number // 编辑框宽度
131
+ type?: string // 编辑框类型
132
+ prepend?: string // el-input前缀
133
+ append?: string // el-input后缀
134
+ ref?: string // ref
135
+ isShowTips?: boolean // 是否显示tips
136
+ label?: string // label
137
+ list?: string // 下拉数据字段名称
138
+ arrLabel?: string // 下拉数据label字段名称
139
+ arrKey?: string // 下拉数据value字段名称
140
+ event?: string // 触发handleEvent事件的标识
141
+ eventHandle?: any // 事件处理
142
+ }
143
+ }
144
+
145
+ /* Vite */
146
+ declare type Recordable<T = any> = Record<string, T>
147
+
148
+ /* __APP_INFO__ */
149
+ declare const __APP_INFO__: {
150
+ pkg: {
151
+ name: string
152
+ version: string
153
+ dependencies: Recordable<string>
154
+ devDependencies: Recordable<string>
155
+ }
156
+ lastBuildTime: string
157
+ }
158
+ // Map声明全局变量
159
+ declare interface TypeMap {
160
+ [key: string]: { type: string; val: string }
161
+ }