yxuse 2.0.33 → 2.0.35
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/README.md +35 -558
- package/lib/api.cjs.js +2 -1
- package/lib/api.cjs.js.map +1 -0
- package/lib/api.es.js +5 -4
- package/lib/api.es.js.map +1 -0
- package/lib/app.cjs.js +2 -1
- package/lib/app.cjs.js.map +1 -0
- package/lib/app.es.js +2 -1
- package/lib/app.es.js.map +1 -0
- package/lib/components.cjs.js +2 -1
- package/lib/components.cjs.js.map +1 -0
- package/lib/components.es.js +9 -6
- package/lib/components.es.js.map +1 -0
- package/lib/dayjs.min.cjs.js +2 -0
- package/lib/dayjs.min.cjs.js.map +1 -0
- package/lib/dayjs.min.es.js +313 -0
- package/lib/dayjs.min.es.js.gz +0 -0
- package/lib/dayjs.min.es.js.map +1 -0
- package/lib/directives.cjs.js +2 -1
- package/lib/directives.cjs.js.map +1 -0
- package/lib/directives.es.js +2 -1
- package/lib/directives.es.js.map +1 -0
- package/lib/hooks.cjs.js +2 -1
- package/lib/hooks.cjs.js.map +1 -0
- package/lib/hooks.es.js +2 -1
- package/lib/hooks.es.js.map +1 -0
- package/lib/index.cjs.js +2 -1
- package/lib/index.cjs.js.map +1 -0
- package/lib/index.cjs10.js +2 -1
- package/lib/index.cjs10.js.map +1 -0
- package/lib/index.cjs11.js +2 -1
- package/lib/index.cjs11.js.map +1 -0
- package/lib/index.cjs12.js +8 -1
- package/lib/index.cjs12.js.gz +0 -0
- package/lib/index.cjs12.js.map +1 -0
- package/lib/index.cjs13.js +2 -1
- package/lib/index.cjs13.js.map +1 -0
- package/lib/index.cjs2.js +2 -1
- package/lib/index.cjs2.js.map +1 -0
- package/lib/index.cjs3.js +2 -1
- package/lib/index.cjs3.js.map +1 -0
- package/lib/index.cjs4.js +2 -1
- package/lib/index.cjs4.js.map +1 -0
- package/lib/index.cjs5.js +7 -5
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs5.js.map +1 -0
- package/lib/index.cjs6.js +5 -1
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.cjs6.js.map +1 -0
- package/lib/index.cjs7.js +17 -1
- package/lib/index.cjs7.js.gz +0 -0
- package/lib/index.cjs7.js.map +1 -0
- package/lib/index.cjs8.js +2 -1
- package/lib/index.cjs8.js.map +1 -0
- package/lib/index.cjs9.js +2 -1
- package/lib/index.cjs9.js.map +1 -0
- package/lib/index.es.js +8 -17
- package/lib/index.es.js.map +1 -0
- package/lib/index.es10.js +11 -298
- package/lib/index.es10.js.map +1 -0
- package/lib/index.es11.js +16 -2363
- package/lib/index.es11.js.map +1 -0
- package/lib/index.es12.js +6041 -155
- package/lib/index.es12.js.gz +0 -0
- package/lib/index.es12.js.map +1 -0
- package/lib/index.es13.js +2 -1
- package/lib/index.es13.js.map +1 -0
- package/lib/index.es2.js +333 -3
- package/lib/index.es2.js.map +1 -0
- package/lib/index.es3.js +2 -2
- package/lib/index.es3.js.map +1 -0
- package/lib/index.es4.js +2 -1
- package/lib/index.es4.js.map +1 -0
- package/lib/index.es5.js +14653 -147
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es5.js.map +1 -0
- package/lib/index.es6.js +20720 -595
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es6.js.map +1 -0
- package/lib/index.es7.js +5415 -17
- package/lib/index.es7.js.gz +0 -0
- package/lib/index.es7.js.map +1 -0
- package/lib/index.es8.js +25 -4
- package/lib/index.es8.js.map +1 -0
- package/lib/index.es9.js +5 -9
- package/lib/index.es9.js.map +1 -0
- package/lib/mqtt.min.cjs.js +2 -0
- package/lib/mqtt.min.cjs.js.gz +0 -0
- package/lib/mqtt.min.cjs.js.map +1 -0
- package/lib/mqtt.min.es.js +7065 -0
- package/lib/mqtt.min.es.js.gz +0 -0
- package/lib/mqtt.min.es.js.map +1 -0
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/lib/theme.cjs.js +2 -1
- package/lib/theme.cjs.js.map +1 -0
- package/lib/theme.es.js +14 -12
- package/lib/theme.es.js.map +1 -0
- package/lib/translate.cjs.js +2 -1
- package/lib/translate.cjs.js.map +1 -0
- package/lib/translate.es.js +13 -7
- package/lib/translate.es.js.map +1 -0
- package/lib/utils.cjs.js +2 -1
- package/lib/utils.cjs.js.map +1 -0
- package/lib/utils.es.js +15 -7
- package/lib/utils.es.js.map +1 -0
- package/lib/vue.runtime.esm-bundler.cjs.js +22 -0
- package/lib/vue.runtime.esm-bundler.cjs.js.gz +0 -0
- package/lib/vue.runtime.esm-bundler.cjs.js.map +1 -0
- package/lib/vue.runtime.esm-bundler.es.js +7881 -0
- package/lib/vue.runtime.esm-bundler.es.js.gz +0 -0
- package/lib/vue.runtime.esm-bundler.es.js.map +1 -0
- package/lib/yxIcon.cjs.js +2 -1
- package/lib/yxIcon.cjs.js.map +1 -0
- package/lib/yxIcon.es.js +2 -2
- package/lib/yxIcon.es.js.map +1 -0
- package/lib/yxi18n.cjs.js +2 -0
- package/lib/yxi18n.cjs.js.map +1 -0
- package/lib/yxi18n.es.js +6 -0
- package/lib/yxi18n.es.js.map +1 -0
- package/package.json +16 -7
- package/types/api/auth/index.d.ts +4 -2
- package/types/components/Common/DynamicComponent/index.vue.d.ts +5 -4
- package/types/components/LogoTitle/index.d.ts +7 -0
- package/types/components/LogoTitle/index.vue.d.ts +29 -0
- package/types/components/LogoTitle/type.d.ts +14 -0
- package/types/components/Toolbar/index.d.ts +1 -0
- package/types/components/Toolbar/src/index.vue.d.ts +1 -1
- package/types/components/Toolbar/src/utils/mounted.d.ts +1 -0
- package/types/components/Update/index.d.ts +1 -1
- package/types/components/Update/index.vue.d.ts +1 -1
- package/types/components/YxDialog/index.d.ts +3 -3
- package/types/components/YxDialog/index.vue.d.ts +4 -3
- package/types/components/YxDrawer/index.d.ts +3 -0
- package/types/components/YxDrawer/index.vue.d.ts +14 -0
- package/types/components/YxDrawer/type.d.ts +18 -0
- package/types/components/YxForm/index.d.ts +3 -3
- package/types/components/YxForm/index.vue.d.ts +47 -0
- package/types/components/YxForm/type.d.ts +79 -0
- package/types/components/YxIcon/index.d.ts +3 -3
- package/types/components/YxIcon/type.d.ts +1 -0
- package/types/components/YxSearchForm/index.d.ts +3 -3
- package/types/components/YxSearchForm/index.vue.d.ts +8 -7
- package/types/components/YxTable/index.d.ts +3 -3
- package/types/components/YxTable/index.vue.d.ts +8 -8
- package/types/components/YxTable/type.d.ts +18 -6
- package/types/components/YxUpload/index.d.ts +3 -3
- package/types/components/YxUpload/index.vue.d.ts +7 -4
- package/types/components/YxUpload/type.d.ts +7 -1
- package/types/components/index.d.ts +10 -9
- package/types/components/type.d.ts +5 -5
- package/types/directives/index.d.ts +2 -1
- package/types/directives/modules/auth.d.ts +2 -1
- package/types/hooks/index.d.ts +1 -1
- package/types/hooks/useTime/index.d.ts +1 -1
- package/types/index.d.ts +12 -12
- package/types/theme/config.d.ts +3 -0
- package/types/theme/index.d.ts +2 -1
- package/types/translate/index.d.ts +3 -1
- package/types/utils/common/index.d.ts +20 -1
- package/types/utils/common/util.d.ts +2 -1
- package/types/utils/excel/index.d.ts +35 -0
- package/types/utils/fecth/index.d.ts +8 -0
- package/types/utils/fecth/interface.d.ts +8 -0
- package/types/utils/http/config.d.ts +1 -0
- package/types/utils/http/index.d.ts +2 -1
- package/types/utils/index.d.ts +6 -3
- package/types/utils/mqtt/index.d.ts +16 -0
- package/types/utils/mqtt/interface.d.ts +17 -0
- package/types/utils/socket/index.d.ts +36 -0
- package/types/utils/socket/interface.d.ts +16 -0
- package/types/yxIcon/index.d.ts +2 -1
- package/types/yxi18n/index.d.ts +2 -4
- package/lib/index.cjs11.js.gz +0 -0
- package/lib/index.es10.js.gz +0 -0
- package/lib/index.es11.js.gz +0 -0
package/lib/yxIcon.cjs.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),require("./index.cjs12.js"),require("./index.cjs13.js");const e=require("./index.cjs3.js");exports.default=e.index;
|
|
2
|
+
//# sourceMappingURL=yxIcon.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yxIcon.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/lib/yxIcon.es.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yxIcon.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yxi18n.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/lib/yxi18n.es.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yxi18n.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yxuse",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.35",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"yx"
|
|
6
6
|
],
|
|
@@ -76,6 +76,11 @@
|
|
|
76
76
|
"require": "./lib/app.cls.js",
|
|
77
77
|
"types": "./types/app/index.d.ts"
|
|
78
78
|
},
|
|
79
|
+
"./yxi18n": {
|
|
80
|
+
"import": "./lib/yxi18n.es.js",
|
|
81
|
+
"require": "./lib/yxi18n.cls.js",
|
|
82
|
+
"types": "./types/yxi18n/index.d.ts"
|
|
83
|
+
},
|
|
79
84
|
"./style": {
|
|
80
85
|
"import": "./lib/style.css",
|
|
81
86
|
"require": "./lib/style.css"
|
|
@@ -93,9 +98,11 @@
|
|
|
93
98
|
"pinia": "^2.0.30",
|
|
94
99
|
"qs": "^6.11.0",
|
|
95
100
|
"sortablejs": "^1.15.0",
|
|
96
|
-
"vue": "^3.
|
|
101
|
+
"vue": "^3.5.13",
|
|
102
|
+
"vue-i18n": "^10.0.4",
|
|
97
103
|
"vue-router": "^4.1.6",
|
|
98
|
-
"xlsx": "^0.18.5"
|
|
104
|
+
"xlsx": "^0.18.5",
|
|
105
|
+
"xlsx-js-style": "^1.2.0"
|
|
99
106
|
},
|
|
100
107
|
"devDependencies": {
|
|
101
108
|
"@commitlint/cli": "^17.5.1",
|
|
@@ -103,13 +110,14 @@
|
|
|
103
110
|
"@rushstack/eslint-patch": "^1.2.0",
|
|
104
111
|
"@types/node": "^18.14.0",
|
|
105
112
|
"@types/nprogress": "^0.2.0",
|
|
113
|
+
"@types/sortablejs": "^1.15.8",
|
|
106
114
|
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
107
115
|
"@typescript-eslint/parser": "^6.19.0",
|
|
108
116
|
"@vitejs/plugin-vue": "^5.0.2",
|
|
109
117
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
110
118
|
"@vue/eslint-config-prettier": "^7.0.0",
|
|
111
119
|
"@vue/eslint-config-typescript": "^11.0.2",
|
|
112
|
-
"@vue/tsconfig": "^0.
|
|
120
|
+
"@vue/tsconfig": "^0.7.0",
|
|
113
121
|
"autoprefixer": "^10.4.13",
|
|
114
122
|
"commitizen": "^4.3.0",
|
|
115
123
|
"cssnano": "^5.1.15",
|
|
@@ -130,7 +138,7 @@
|
|
|
130
138
|
"postcss-scss": "^4.0.6",
|
|
131
139
|
"prettier": "^2.8.4",
|
|
132
140
|
"rollup-plugin-visualizer": "^5.9.2",
|
|
133
|
-
"sass": "^1.
|
|
141
|
+
"sass": "^1.85.0",
|
|
134
142
|
"stylelint": "^15.6.0",
|
|
135
143
|
"stylelint-config-prettier": "^9.0.3",
|
|
136
144
|
"stylelint-config-recess-order": "^4.0.0",
|
|
@@ -144,7 +152,7 @@
|
|
|
144
152
|
"unplugin-auto-import": "^0.16.6",
|
|
145
153
|
"unplugin-element-plus": "^0.8.0",
|
|
146
154
|
"unplugin-vue-components": "^0.25.1",
|
|
147
|
-
"vite": "^5.4.
|
|
155
|
+
"vite": "^5.4.14",
|
|
148
156
|
"vite-plugin-compression": "^0.5.1",
|
|
149
157
|
"vite-plugin-dts": "^3.7.0",
|
|
150
158
|
"vite-plugin-remove-console": "^2.1.0",
|
|
@@ -164,5 +172,6 @@
|
|
|
164
172
|
"commitizen": {
|
|
165
173
|
"path": "node_modules/cz-git"
|
|
166
174
|
}
|
|
167
|
-
}
|
|
175
|
+
},
|
|
176
|
+
"packageManager": "pnpm@8.15.5+sha512.b051a32c7e695833b84926d3b29b8cca57254b589f0649d899c6e9d0edb670b91ec7e2a43459bae73759bb5ce619c3266f116bf931ce22d1ef1759a7e45aa96f"
|
|
168
177
|
}
|
|
@@ -20,6 +20,8 @@ export declare const getLoginUrl: () => any;
|
|
|
20
20
|
export declare const getHomeUrl: () => any;
|
|
21
21
|
/**设置系统配置信息 */
|
|
22
22
|
export declare const setSystemConfig: (config: any) => void;
|
|
23
|
+
/**修改某个系统配置 */
|
|
24
|
+
export declare const changeSystemConfig: (key: string, value: any) => void;
|
|
23
25
|
/**获取系统配置信息 */
|
|
24
26
|
export declare const getSystemConfig: (key: string) => any;
|
|
25
27
|
/**当前系统环境是否是生产环境 */
|
|
@@ -45,15 +47,15 @@ export declare const getUserPermissions: (systemName: string, isJumpLogin?: bool
|
|
|
45
47
|
*
|
|
46
48
|
* @param userMenuList 用户路由数据
|
|
47
49
|
* @param viewModules 页面文件
|
|
48
|
-
* @param viewConfig 页面配置项
|
|
49
50
|
* @returns UserRouter 用户动态路由
|
|
50
51
|
* @description 综合管理分系统->integrated
|
|
51
52
|
* @description 站控分系统->station
|
|
52
53
|
*/
|
|
53
|
-
export declare const getUserRouter: (userMenuList: any, viewModules: any
|
|
54
|
+
export declare const getUserRouter: (userMenuList: any, viewModules: any) => any[];
|
|
54
55
|
/**
|
|
55
56
|
* @description 判断当前routeTag是否在用户的按钮权限里
|
|
56
57
|
* @param routeTag
|
|
57
58
|
*/
|
|
58
59
|
export declare const getUserIsHaveBtnPower: (routeTag: string) => boolean;
|
|
60
|
+
export declare const getUserConfig: () => Promise<any>;
|
|
59
61
|
export {};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentInterFace } from './index.d';
|
|
2
|
+
|
|
2
3
|
interface DynamicComponentsProps {
|
|
3
4
|
conf: ComponentInterFace;
|
|
4
5
|
model: any;
|
|
5
6
|
}
|
|
6
|
-
declare const _default: import(
|
|
7
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DynamicComponentsProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
8
|
change: (data: any) => void;
|
|
8
|
-
}, string, import(
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DynamicComponentsProps>>> & Readonly<{
|
|
9
10
|
onChange?: ((data: any) => any) | undefined;
|
|
10
|
-
}, {}, {}>;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
12
|
export default _default;
|
|
12
13
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
14
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LogoTitleProps } from './type';
|
|
2
|
+
export { default as LogoTitle } from './index.vue';
|
|
3
|
+
export declare class LogoTitleRender {
|
|
4
|
+
constructor(props: LogoTitleProps, domId?: string);
|
|
5
|
+
get vueVersion(): "2" | "3";
|
|
6
|
+
render(props: LogoTitleProps, domId: string): any;
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SystemConfig } from './type';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
showLogo: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
showTitle: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
}>, {}, {
|
|
13
|
+
customConfig: SystemConfig;
|
|
14
|
+
}, {}, {
|
|
15
|
+
logoJumpHandle(): void;
|
|
16
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
showLogo: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
showTitle: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{}>, {
|
|
26
|
+
showLogo: boolean;
|
|
27
|
+
showTitle: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface SystemConfig {
|
|
2
|
+
/**logo图标 */
|
|
3
|
+
icon?: string;
|
|
4
|
+
/**logo标题 */
|
|
5
|
+
title?: string;
|
|
6
|
+
/**是否可以跳转 */
|
|
7
|
+
logoCanJump?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface LogoTitleProps {
|
|
10
|
+
/**是否显示logo */
|
|
11
|
+
showLogo?: boolean;
|
|
12
|
+
/**是否显示标题 */
|
|
13
|
+
showTitle?: boolean;
|
|
14
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (
|
|
1
|
+
declare const _default: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
|
|
2
2
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as Update } from
|
|
1
|
+
export { default as Update } from './index.vue';
|
|
@@ -4,7 +4,7 @@ interface UpdateProps {
|
|
|
4
4
|
content: Object;
|
|
5
5
|
time: String;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: import(
|
|
7
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<UpdateProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<UpdateProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
8
|
export default _default;
|
|
9
9
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
10
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as YxDialog } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export { default as YxDialog } from './index.vue';
|
|
2
|
+
export * from './type';
|
|
3
|
+
export * from './index.vue';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { DialogOptions } from './type';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {
|
|
3
4
|
show: ({ width, title, submit, cancel, showFooter, autoClose, beforeOpen, beforeSubmit }: DialogOptions) => void;
|
|
4
5
|
close: () => void;
|
|
5
|
-
}, {}, {}, {}, import(
|
|
6
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
6
7
|
default?(_: {}): any;
|
|
7
8
|
}>;
|
|
8
9
|
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DrawerOptions } from './type';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {
|
|
4
|
+
show: ({ width, title, submit, cancel, showFooter, autoClose, beforeOpen, beforeSubmit }: DrawerOptions) => void;
|
|
5
|
+
close: () => void;
|
|
6
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface DrawerOptions {
|
|
2
|
+
/**宽度 */
|
|
3
|
+
width?: string;
|
|
4
|
+
/**标题 */
|
|
5
|
+
title?: string;
|
|
6
|
+
/**是否显示底部按钮 */
|
|
7
|
+
showFooter: boolean;
|
|
8
|
+
/**是否在成功后自动关闭弹窗 */
|
|
9
|
+
autoClose: boolean;
|
|
10
|
+
/**提交的回调 */
|
|
11
|
+
submit?: Function;
|
|
12
|
+
/**关闭的回调 */
|
|
13
|
+
cancel?: Function;
|
|
14
|
+
/**打开之前的回调 */
|
|
15
|
+
beforeOpen?: Function;
|
|
16
|
+
/**提交之前的回调 */
|
|
17
|
+
beforeSubmit?: Function;
|
|
18
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as YxForm } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export { default as YxForm } from './index.vue';
|
|
2
|
+
export * from './type';
|
|
3
|
+
export * from './index.vue';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { YxFromProps, FormStyle } from './type';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<YxFromProps>, {
|
|
4
|
+
formLayout: string;
|
|
5
|
+
formStyle: () => {
|
|
6
|
+
row: number;
|
|
7
|
+
gap: string;
|
|
8
|
+
labelWidth: string;
|
|
9
|
+
alignItems: string;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
formData: import('vue').Ref<{
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}, {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>;
|
|
17
|
+
formValidate: () => Promise<boolean>;
|
|
18
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<YxFromProps>, {
|
|
19
|
+
formLayout: string;
|
|
20
|
+
formStyle: () => {
|
|
21
|
+
row: number;
|
|
22
|
+
gap: string;
|
|
23
|
+
labelWidth: string;
|
|
24
|
+
alignItems: string;
|
|
25
|
+
};
|
|
26
|
+
}>>> & Readonly<{}>, {
|
|
27
|
+
formLayout: import('./type').formLayout;
|
|
28
|
+
formStyle: FormStyle;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
type __VLS_WithDefaults<P, D> = {
|
|
41
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
42
|
+
default: D[K];
|
|
43
|
+
}> : P[K];
|
|
44
|
+
};
|
|
45
|
+
type __VLS_Prettify<T> = {
|
|
46
|
+
[K in keyof T]: T[K];
|
|
47
|
+
} & {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { FormItemProps, FormRules, ElTooltipProps } from 'element-plus';
|
|
2
|
+
import { CSSProperties } from 'vue';
|
|
3
|
+
|
|
4
|
+
export interface YxFromProps {
|
|
5
|
+
/**表单编辑传入编辑项 */
|
|
6
|
+
formParams: Record<string, any>;
|
|
7
|
+
/**表单列表 */
|
|
8
|
+
formList: FormItem[];
|
|
9
|
+
/**表单类型 */
|
|
10
|
+
formLayout?: formLayout;
|
|
11
|
+
/**表单样式 */
|
|
12
|
+
formStyle?: FormStyle;
|
|
13
|
+
/**表单验证 */
|
|
14
|
+
rules?: FormRules;
|
|
15
|
+
}
|
|
16
|
+
export type formLayout = "horizontal" | "vertical";
|
|
17
|
+
export type FormStyle = FormStyleConfig & CSSProperties;
|
|
18
|
+
export type FormStyleConfig = {
|
|
19
|
+
/** 列数 */
|
|
20
|
+
row?: number;
|
|
21
|
+
/** 宽度 */
|
|
22
|
+
labelWidth?: string;
|
|
23
|
+
/** 所有表单项的class */
|
|
24
|
+
formItemClassName?: string;
|
|
25
|
+
/** gap */
|
|
26
|
+
gap?: string;
|
|
27
|
+
};
|
|
28
|
+
export type PromptConf = {
|
|
29
|
+
color?: string;
|
|
30
|
+
size?: number;
|
|
31
|
+
tooltipConf?: ElTooltipProps;
|
|
32
|
+
};
|
|
33
|
+
export interface YxFormItem {
|
|
34
|
+
/**表单label */
|
|
35
|
+
label?: string;
|
|
36
|
+
/**表单prop */
|
|
37
|
+
prop?: string;
|
|
38
|
+
/** 渲染类型 */
|
|
39
|
+
renderType?: string;
|
|
40
|
+
/** 组件配置 */
|
|
41
|
+
config?: Record<string, any>;
|
|
42
|
+
/** 是否显示 */
|
|
43
|
+
show?: (row: any) => boolean;
|
|
44
|
+
/** 插槽名称 */
|
|
45
|
+
slotName?: string;
|
|
46
|
+
/**自定义render方法 */
|
|
47
|
+
render?: (scope: any) => any;
|
|
48
|
+
/** 组件动态事件 */
|
|
49
|
+
event?: Record<string, Function>;
|
|
50
|
+
/** 自定义style */
|
|
51
|
+
style?: Record<string, any>;
|
|
52
|
+
/** 自定义class */
|
|
53
|
+
className?: string;
|
|
54
|
+
/** 是否必填 */
|
|
55
|
+
required?: boolean;
|
|
56
|
+
/** 规则 */
|
|
57
|
+
rules?: FormRules<any>[];
|
|
58
|
+
/** 分组名称 */
|
|
59
|
+
groupName?: string;
|
|
60
|
+
/** 分组样式 */
|
|
61
|
+
groupStyle?: FormStyle;
|
|
62
|
+
/** 分组表单内容样式类名 */
|
|
63
|
+
groupClassName?: string;
|
|
64
|
+
/** 分组title样式 */
|
|
65
|
+
groupTitleStyle?: FormStyle;
|
|
66
|
+
/** 分组title Class样式 */
|
|
67
|
+
groupTitleClassName?: string;
|
|
68
|
+
/** 分组外部样式 */
|
|
69
|
+
groupWrapStyle?: FormStyle;
|
|
70
|
+
/** 分组外部样式 */
|
|
71
|
+
groupWrapClassName?: string;
|
|
72
|
+
/** 表单分组 */
|
|
73
|
+
children?: FormItem[];
|
|
74
|
+
/** 提示配置 */
|
|
75
|
+
promptConf?: PromptConf;
|
|
76
|
+
/** label自定义class */
|
|
77
|
+
labelClassName?: string;
|
|
78
|
+
}
|
|
79
|
+
export type FormItem = Partial<YxFormItem & FormItemProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as YxIcon } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export { default as YxIcon } from './index.vue';
|
|
2
|
+
export * from './type';
|
|
3
|
+
export * from './index.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as YxSearchForm } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export { default as YxSearchForm } from './index.vue';
|
|
2
|
+
export * from './index.vue';
|
|
3
|
+
export * from './type';
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { YxFormProps } from './type.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<YxFormProps>, {
|
|
3
4
|
showSearchBtn: boolean;
|
|
4
5
|
showAddBtn: boolean;
|
|
5
|
-
}
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
7
|
search: () => void;
|
|
7
8
|
add: () => void;
|
|
8
|
-
}, string, import(
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<YxFormProps>, {
|
|
9
10
|
showSearchBtn: boolean;
|
|
10
11
|
showAddBtn: boolean;
|
|
11
|
-
}>>> & {
|
|
12
|
+
}>>> & Readonly<{
|
|
12
13
|
onSearch?: (() => any) | undefined;
|
|
13
14
|
onAdd?: (() => any) | undefined;
|
|
14
|
-
}
|
|
15
|
+
}>, {
|
|
15
16
|
showSearchBtn: boolean;
|
|
16
17
|
showAddBtn: boolean;
|
|
17
|
-
}, {}>;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
19
|
export default _default;
|
|
19
20
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
21
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as YxTable } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export { default as YxTable } from './index.vue';
|
|
2
|
+
export * from './type';
|
|
3
|
+
export * from './index.vue';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { TableProps } from './type.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TableProps>>, {
|
|
4
|
+
tableRef: import('vue').Ref<any, any>;
|
|
5
|
+
exportDataToExcel: ({ header, tableData, fileName }: any) => void;
|
|
6
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
7
|
"operate-handle": (type: string, data: object) => void;
|
|
6
8
|
"sort-end": (oldIndex: number, newIndex: number) => void;
|
|
7
9
|
"update-page": (type: string, value: number) => void;
|
|
8
|
-
|
|
9
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TableProps>>> & {
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TableProps>>> & Readonly<{
|
|
10
11
|
"onOperate-handle"?: ((type: string, data: object) => any) | undefined;
|
|
11
12
|
"onSort-end"?: ((oldIndex: number, newIndex: number) => any) | undefined;
|
|
12
13
|
"onUpdate-page"?: ((type: string, value: number) => any) | undefined;
|
|
13
|
-
|
|
14
|
-
}, {}, {}>;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
15
|
export default _default;
|
|
16
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
17
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,20 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { default as YxTable } from './index.vue';
|
|
2
|
+
import { TableColumnCtx } from 'element-plus';
|
|
3
|
+
|
|
3
4
|
export type YxTableInstance = InstanceType<typeof YxTable>;
|
|
4
5
|
export interface TableProps {
|
|
6
|
+
/** 表格数据源 */
|
|
5
7
|
tableData: any[];
|
|
8
|
+
/** 表格行key */
|
|
6
9
|
rowKey: string;
|
|
7
|
-
|
|
10
|
+
/** 表格列配置 */
|
|
11
|
+
columns: YxTableColumn[];
|
|
12
|
+
/** 分页信息 */
|
|
8
13
|
pageInfo?: PageInfo;
|
|
9
14
|
/**是否开启拖拽 */
|
|
10
15
|
sort?: boolean;
|
|
16
|
+
/**拖拽节点类名 */
|
|
11
17
|
sortHandle?: string;
|
|
12
|
-
load?: Function;
|
|
13
18
|
}
|
|
14
19
|
export interface PageInfo {
|
|
20
|
+
/** 每页条数 */
|
|
15
21
|
pageSize: number;
|
|
22
|
+
/** 当前页 */
|
|
16
23
|
pageIndex: number;
|
|
24
|
+
/** 总条数 */
|
|
17
25
|
total: number;
|
|
26
|
+
/** 分页配置 */
|
|
27
|
+
layout?: string;
|
|
18
28
|
}
|
|
19
29
|
export interface Operate {
|
|
20
30
|
/**操作栏label */
|
|
@@ -27,8 +37,10 @@ export interface Operate {
|
|
|
27
37
|
show?: (row: any) => boolean;
|
|
28
38
|
/**自定义render方法 */
|
|
29
39
|
render?: (scope: any) => any;
|
|
40
|
+
/**操作栏类名 */
|
|
41
|
+
className?: string;
|
|
30
42
|
}
|
|
31
|
-
export interface
|
|
43
|
+
export interface YxTableColumn {
|
|
32
44
|
/** 列的名字 */
|
|
33
45
|
label?: string;
|
|
34
46
|
/** 对应数据的key */
|
|
@@ -58,4 +70,4 @@ export interface TableColumn {
|
|
|
58
70
|
/**多级表头 */
|
|
59
71
|
children?: TableColumn[];
|
|
60
72
|
}
|
|
61
|
-
export type
|
|
73
|
+
export type TableColumn<T = Record<string, any>> = YxTableColumn & Partial<Omit<TableColumnCtx<T>, keyof YxTableColumn>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as YxUpload } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export { default as YxUpload } from './index.vue';
|
|
2
|
+
export * from './type';
|
|
3
|
+
export * from './index.vue';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { YxUploadProps } from './type';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<YxUploadProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
4
|
"update:fileObsUrl": (value: string) => void;
|
|
4
|
-
|
|
5
|
+
getFile: (value: any) => void;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<YxUploadProps>>> & Readonly<{
|
|
5
7
|
"onUpdate:fileObsUrl"?: ((value: string) => any) | undefined;
|
|
6
|
-
|
|
8
|
+
onGetFile?: ((value: any) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
10
|
export default _default;
|
|
8
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
12
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -2,5 +2,11 @@ export interface YxUploadProps {
|
|
|
2
2
|
/**上传提示 */
|
|
3
3
|
uploadTips?: string;
|
|
4
4
|
/**上传触发器 */
|
|
5
|
-
|
|
5
|
+
triggerRender?: Function;
|
|
6
|
+
/** 是否自定义上传方法 */
|
|
7
|
+
customUpload?: Function;
|
|
8
|
+
/** 上传触发文本 */
|
|
9
|
+
triggerText?: String;
|
|
10
|
+
/** 上传文件接口 */
|
|
11
|
+
uploadResourceApi?: Function;
|
|
6
12
|
}
|