yxuse 3.0.19 → 3.0.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/README.md +572 -572
- package/lib/data.cjs.js.gz +0 -0
- package/lib/data.es.js.gz +0 -0
- package/lib/index.cjs3.js +3 -3
- package/lib/index.cjs3.js.gz +0 -0
- package/lib/index.cjs6.js +3 -3
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.es3.js +33 -33
- package/lib/index.es3.js.gz +0 -0
- package/lib/index.es6.js +11 -11
- package/lib/index.es6.js.gz +0 -0
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/lib/version.json +12 -12
- package/package.json +152 -152
- package/types/api/modules/auth/index.d.ts +13 -13
- package/types/components/YxIcon/index.vue.d.ts +22 -22
package/package.json
CHANGED
|
@@ -1,152 +1,152 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "yxuse",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"keywords": [
|
|
6
|
-
"yx"
|
|
7
|
-
],
|
|
8
|
-
"scripts": {
|
|
9
|
-
"dev": "node ./build/log.ts dev && vite",
|
|
10
|
-
"build": "node ./build/log.ts build && vite build --mode production && node ./build/log.ts end",
|
|
11
|
-
"preview": "vite preview",
|
|
12
|
-
"build-only": "vite build",
|
|
13
|
-
"type-check": "vue-tsc --noEmit",
|
|
14
|
-
"lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src",
|
|
15
|
-
"lint:prettier": "prettier --write --loglevel warn \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
|
|
16
|
-
"lint:stylelint": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
|
|
17
|
-
"prepare": "husky install",
|
|
18
|
-
"lint:lint-staged": "lint-staged",
|
|
19
|
-
"commit": "git pull && git add -A && git-cz && git push",
|
|
20
|
-
"tsc": "tsc --noEmit --watch"
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"lib",
|
|
24
|
-
"types"
|
|
25
|
-
],
|
|
26
|
-
"main": "lib/index.es.js",
|
|
27
|
-
"module": "lib/index.es.js",
|
|
28
|
-
"types": "types/index.d.ts",
|
|
29
|
-
"exports": {
|
|
30
|
-
".": {
|
|
31
|
-
"import": "./lib/index.es.js",
|
|
32
|
-
"require": "./lib/index.cls.js",
|
|
33
|
-
"types": "./types/index.d.ts"
|
|
34
|
-
},
|
|
35
|
-
"./utils": {
|
|
36
|
-
"import": "./lib/utils.es.js",
|
|
37
|
-
"require": "./lib/utils.cls.js",
|
|
38
|
-
"types": "./types/utils/index.d.ts"
|
|
39
|
-
},
|
|
40
|
-
"./api": {
|
|
41
|
-
"import": "./lib/api.es.js",
|
|
42
|
-
"require": "./lib/api.cls.js",
|
|
43
|
-
"types": "./types/api/index.d.ts"
|
|
44
|
-
},
|
|
45
|
-
"./theme": {
|
|
46
|
-
"import": "./lib/theme.es.js",
|
|
47
|
-
"require": "./lib/theme.cls.js",
|
|
48
|
-
"types": "./types/theme/index.d.ts"
|
|
49
|
-
},
|
|
50
|
-
"./directives": {
|
|
51
|
-
"import": "./lib/directives.es.js",
|
|
52
|
-
"require": "./lib/directives.cls.js",
|
|
53
|
-
"types": "./types/directives/index.d.ts"
|
|
54
|
-
},
|
|
55
|
-
"./icons": {
|
|
56
|
-
"import": "./lib/icons.es.js",
|
|
57
|
-
"require": "./lib/icons.cls.js",
|
|
58
|
-
"types": "./types/icons/index.d.ts"
|
|
59
|
-
},
|
|
60
|
-
"./components": {
|
|
61
|
-
"import": "./lib/components.es.js",
|
|
62
|
-
"require": "./lib/components.cls.js",
|
|
63
|
-
"types": "./types/components/index.d.ts"
|
|
64
|
-
},
|
|
65
|
-
"./style": {
|
|
66
|
-
"import": "./lib/style.css",
|
|
67
|
-
"require": "./lib/style.css"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"dependencies": {
|
|
71
|
-
"axios": "^1.3.3",
|
|
72
|
-
"element-plus": "^2.4.4",
|
|
73
|
-
"file-saver": "^2.0.5",
|
|
74
|
-
"localforage": "^1.10.0",
|
|
75
|
-
"lodash": "^4.17.21",
|
|
76
|
-
"mqtt": "^4.0.1",
|
|
77
|
-
"nprogress": "^0.2.0",
|
|
78
|
-
"pinia": "^2.0.30",
|
|
79
|
-
"qs": "^6.11.0",
|
|
80
|
-
"sortablejs": "^1.15.0",
|
|
81
|
-
"vue": "^3.3.9",
|
|
82
|
-
"vue-router": "^4.1.6",
|
|
83
|
-
"xlsx": "^0.18.5"
|
|
84
|
-
},
|
|
85
|
-
"devDependencies": {
|
|
86
|
-
"@commitlint/cli": "^17.5.1",
|
|
87
|
-
"@commitlint/config-conventional": "^17.4.4",
|
|
88
|
-
"@rushstack/eslint-patch": "^1.2.0",
|
|
89
|
-
"@types/node": "^18.14.0",
|
|
90
|
-
"@types/nprogress": "^0.2.0",
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
92
|
-
"@typescript-eslint/parser": "^6.19.0",
|
|
93
|
-
"@vitejs/plugin-vue": "^5.0.2",
|
|
94
|
-
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
95
|
-
"@vue/eslint-config-prettier": "^7.0.0",
|
|
96
|
-
"@vue/eslint-config-typescript": "^11.0.2",
|
|
97
|
-
"@vue/tsconfig": "^0.1.3",
|
|
98
|
-
"autoprefixer": "^10.4.13",
|
|
99
|
-
"commitizen": "^4.3.0",
|
|
100
|
-
"cssnano": "^5.1.15",
|
|
101
|
-
"cz-git": "^1.6.1",
|
|
102
|
-
"eslint": "^8.56.0",
|
|
103
|
-
"eslint-plugin-vue": "^9.20.1",
|
|
104
|
-
"figlet": "^1.6.0",
|
|
105
|
-
"husky": "^8.0.3",
|
|
106
|
-
"lint-staged": "^13.2.0",
|
|
107
|
-
"npm-run-all": "^4.1.5",
|
|
108
|
-
"pinia-plugin-persistedstate": "^3.1.0",
|
|
109
|
-
"postcss": "^8.4.21",
|
|
110
|
-
"postcss-html": "^1.5.0",
|
|
111
|
-
"postcss-import": "^15.1.0",
|
|
112
|
-
"postcss-nesting": "^11.2.2",
|
|
113
|
-
"postcss-preset-env": "^8.4.2",
|
|
114
|
-
"postcss-px-to-viewport": "^1.1.1",
|
|
115
|
-
"postcss-scss": "^4.0.6",
|
|
116
|
-
"prettier": "^2.8.4",
|
|
117
|
-
"rollup-plugin-visualizer": "^5.9.2",
|
|
118
|
-
"sass": "^1.58.3",
|
|
119
|
-
"stylelint": "^15.6.0",
|
|
120
|
-
"stylelint-config-prettier": "^9.0.3",
|
|
121
|
-
"stylelint-config-recess-order": "^4.0.0",
|
|
122
|
-
"stylelint-config-recommended-scss": "^11.0.0",
|
|
123
|
-
"stylelint-config-recommended-vue": "^1.4.0",
|
|
124
|
-
"stylelint-config-standard": "^33.0.0",
|
|
125
|
-
"stylelint-config-standard-scss": "^9.0.0",
|
|
126
|
-
"tailwindcss": "^3.2.7",
|
|
127
|
-
"typescript": "~5.3.3",
|
|
128
|
-
"unplugin-auto-import": "^0.16.6",
|
|
129
|
-
"unplugin-element-plus": "^0.8.0",
|
|
130
|
-
"unplugin-vue-components": "^0.25.1",
|
|
131
|
-
"vite": "^5.0.10",
|
|
132
|
-
"vite-plugin-compression": "^0.5.1",
|
|
133
|
-
"vite-plugin-dts": "^3.7.0",
|
|
134
|
-
"vite-plugin-remove-console": "^2.1.0",
|
|
135
|
-
"vite-plugin-windicss": "^1.9.3",
|
|
136
|
-
"vite-svg-loader": "^4.0.0",
|
|
137
|
-
"vue-tsc": "^1.1.4"
|
|
138
|
-
},
|
|
139
|
-
"pnpm": {
|
|
140
|
-
"peerDependencyRules": {
|
|
141
|
-
"ignoreMissing": [
|
|
142
|
-
"rollup",
|
|
143
|
-
"webpack"
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
"config": {
|
|
148
|
-
"commitizen": {
|
|
149
|
-
"path": "node_modules/cz-git"
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "yxuse",
|
|
3
|
+
"version": "3.0.20",
|
|
4
|
+
"private": false,
|
|
5
|
+
"keywords": [
|
|
6
|
+
"yx"
|
|
7
|
+
],
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "node ./build/log.ts dev && vite",
|
|
10
|
+
"build": "node ./build/log.ts build && vite build --mode production && node ./build/log.ts end",
|
|
11
|
+
"preview": "vite preview",
|
|
12
|
+
"build-only": "vite build",
|
|
13
|
+
"type-check": "vue-tsc --noEmit",
|
|
14
|
+
"lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src",
|
|
15
|
+
"lint:prettier": "prettier --write --loglevel warn \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
|
|
16
|
+
"lint:stylelint": "stylelint --cache --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
|
|
17
|
+
"prepare": "husky install",
|
|
18
|
+
"lint:lint-staged": "lint-staged",
|
|
19
|
+
"commit": "git pull && git add -A && git-cz && git push",
|
|
20
|
+
"tsc": "tsc --noEmit --watch"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"lib",
|
|
24
|
+
"types"
|
|
25
|
+
],
|
|
26
|
+
"main": "lib/index.es.js",
|
|
27
|
+
"module": "lib/index.es.js",
|
|
28
|
+
"types": "types/index.d.ts",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"import": "./lib/index.es.js",
|
|
32
|
+
"require": "./lib/index.cls.js",
|
|
33
|
+
"types": "./types/index.d.ts"
|
|
34
|
+
},
|
|
35
|
+
"./utils": {
|
|
36
|
+
"import": "./lib/utils.es.js",
|
|
37
|
+
"require": "./lib/utils.cls.js",
|
|
38
|
+
"types": "./types/utils/index.d.ts"
|
|
39
|
+
},
|
|
40
|
+
"./api": {
|
|
41
|
+
"import": "./lib/api.es.js",
|
|
42
|
+
"require": "./lib/api.cls.js",
|
|
43
|
+
"types": "./types/api/index.d.ts"
|
|
44
|
+
},
|
|
45
|
+
"./theme": {
|
|
46
|
+
"import": "./lib/theme.es.js",
|
|
47
|
+
"require": "./lib/theme.cls.js",
|
|
48
|
+
"types": "./types/theme/index.d.ts"
|
|
49
|
+
},
|
|
50
|
+
"./directives": {
|
|
51
|
+
"import": "./lib/directives.es.js",
|
|
52
|
+
"require": "./lib/directives.cls.js",
|
|
53
|
+
"types": "./types/directives/index.d.ts"
|
|
54
|
+
},
|
|
55
|
+
"./icons": {
|
|
56
|
+
"import": "./lib/icons.es.js",
|
|
57
|
+
"require": "./lib/icons.cls.js",
|
|
58
|
+
"types": "./types/icons/index.d.ts"
|
|
59
|
+
},
|
|
60
|
+
"./components": {
|
|
61
|
+
"import": "./lib/components.es.js",
|
|
62
|
+
"require": "./lib/components.cls.js",
|
|
63
|
+
"types": "./types/components/index.d.ts"
|
|
64
|
+
},
|
|
65
|
+
"./style": {
|
|
66
|
+
"import": "./lib/style.css",
|
|
67
|
+
"require": "./lib/style.css"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"axios": "^1.3.3",
|
|
72
|
+
"element-plus": "^2.4.4",
|
|
73
|
+
"file-saver": "^2.0.5",
|
|
74
|
+
"localforage": "^1.10.0",
|
|
75
|
+
"lodash": "^4.17.21",
|
|
76
|
+
"mqtt": "^4.0.1",
|
|
77
|
+
"nprogress": "^0.2.0",
|
|
78
|
+
"pinia": "^2.0.30",
|
|
79
|
+
"qs": "^6.11.0",
|
|
80
|
+
"sortablejs": "^1.15.0",
|
|
81
|
+
"vue": "^3.3.9",
|
|
82
|
+
"vue-router": "^4.1.6",
|
|
83
|
+
"xlsx": "^0.18.5"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@commitlint/cli": "^17.5.1",
|
|
87
|
+
"@commitlint/config-conventional": "^17.4.4",
|
|
88
|
+
"@rushstack/eslint-patch": "^1.2.0",
|
|
89
|
+
"@types/node": "^18.14.0",
|
|
90
|
+
"@types/nprogress": "^0.2.0",
|
|
91
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
92
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
93
|
+
"@vitejs/plugin-vue": "^5.0.2",
|
|
94
|
+
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
95
|
+
"@vue/eslint-config-prettier": "^7.0.0",
|
|
96
|
+
"@vue/eslint-config-typescript": "^11.0.2",
|
|
97
|
+
"@vue/tsconfig": "^0.1.3",
|
|
98
|
+
"autoprefixer": "^10.4.13",
|
|
99
|
+
"commitizen": "^4.3.0",
|
|
100
|
+
"cssnano": "^5.1.15",
|
|
101
|
+
"cz-git": "^1.6.1",
|
|
102
|
+
"eslint": "^8.56.0",
|
|
103
|
+
"eslint-plugin-vue": "^9.20.1",
|
|
104
|
+
"figlet": "^1.6.0",
|
|
105
|
+
"husky": "^8.0.3",
|
|
106
|
+
"lint-staged": "^13.2.0",
|
|
107
|
+
"npm-run-all": "^4.1.5",
|
|
108
|
+
"pinia-plugin-persistedstate": "^3.1.0",
|
|
109
|
+
"postcss": "^8.4.21",
|
|
110
|
+
"postcss-html": "^1.5.0",
|
|
111
|
+
"postcss-import": "^15.1.0",
|
|
112
|
+
"postcss-nesting": "^11.2.2",
|
|
113
|
+
"postcss-preset-env": "^8.4.2",
|
|
114
|
+
"postcss-px-to-viewport": "^1.1.1",
|
|
115
|
+
"postcss-scss": "^4.0.6",
|
|
116
|
+
"prettier": "^2.8.4",
|
|
117
|
+
"rollup-plugin-visualizer": "^5.9.2",
|
|
118
|
+
"sass": "^1.58.3",
|
|
119
|
+
"stylelint": "^15.6.0",
|
|
120
|
+
"stylelint-config-prettier": "^9.0.3",
|
|
121
|
+
"stylelint-config-recess-order": "^4.0.0",
|
|
122
|
+
"stylelint-config-recommended-scss": "^11.0.0",
|
|
123
|
+
"stylelint-config-recommended-vue": "^1.4.0",
|
|
124
|
+
"stylelint-config-standard": "^33.0.0",
|
|
125
|
+
"stylelint-config-standard-scss": "^9.0.0",
|
|
126
|
+
"tailwindcss": "^3.2.7",
|
|
127
|
+
"typescript": "~5.3.3",
|
|
128
|
+
"unplugin-auto-import": "^0.16.6",
|
|
129
|
+
"unplugin-element-plus": "^0.8.0",
|
|
130
|
+
"unplugin-vue-components": "^0.25.1",
|
|
131
|
+
"vite": "^5.0.10",
|
|
132
|
+
"vite-plugin-compression": "^0.5.1",
|
|
133
|
+
"vite-plugin-dts": "^3.7.0",
|
|
134
|
+
"vite-plugin-remove-console": "^2.1.0",
|
|
135
|
+
"vite-plugin-windicss": "^1.9.3",
|
|
136
|
+
"vite-svg-loader": "^4.0.0",
|
|
137
|
+
"vue-tsc": "^1.1.4"
|
|
138
|
+
},
|
|
139
|
+
"pnpm": {
|
|
140
|
+
"peerDependencyRules": {
|
|
141
|
+
"ignoreMissing": [
|
|
142
|
+
"rollup",
|
|
143
|
+
"webpack"
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"config": {
|
|
148
|
+
"commitizen": {
|
|
149
|
+
"path": "node_modules/cz-git"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 登录信息
|
|
3
|
-
*/
|
|
4
|
-
export interface LoginParams {
|
|
5
|
-
/**
|
|
6
|
-
* 密码
|
|
7
|
-
*/
|
|
8
|
-
password?: string;
|
|
9
|
-
/**
|
|
10
|
-
* 用户名
|
|
11
|
-
*/
|
|
12
|
-
userName?: string;
|
|
13
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 登录信息
|
|
3
|
+
*/
|
|
4
|
+
export interface LoginParams {
|
|
5
|
+
/**
|
|
6
|
+
* 密码
|
|
7
|
+
*/
|
|
8
|
+
password?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 用户名
|
|
11
|
+
*/
|
|
12
|
+
userName?: string;
|
|
13
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
interface YxIconProps {
|
|
2
|
-
color?: string;
|
|
3
|
-
size?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<YxIconProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<YxIconProps>>>, {}, {}>, {
|
|
6
|
-
default?(_: {}): any;
|
|
7
|
-
}>;
|
|
8
|
-
export default _default;
|
|
9
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
-
} : {
|
|
14
|
-
type: import('vue').PropType<T[K]>;
|
|
15
|
-
required: true;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
-
new (): {
|
|
20
|
-
$slots: S;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
1
|
+
interface YxIconProps {
|
|
2
|
+
color?: string;
|
|
3
|
+
size?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<YxIconProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<YxIconProps>>>, {}, {}>, {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|