zyf-model-engine 0.0.1 → 0.0.2
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/build/getEnv.d.ts +13 -0
- package/build/plugins.d.ts +7 -0
- package/build/proxy.d.ts +11 -0
- package/index.html +2 -100
- package/manifest.webmanifest +1 -0
- package/package.json +3 -94
- package/registerSW.js +1 -0
- package/src/api/config/servicePort.d.ts +2 -0
- package/src/api/enums/httpEnum.d.ts +29 -0
- package/src/api/helper/axiosCancel.d.ts +21 -0
- package/src/api/helper/axiosFileCancel.d.ts +27 -0
- package/src/api/helper/checkStatus.d.ts +6 -0
- package/src/api/index.d.ts +26 -0
- package/src/api/interface/index.d.ts +18 -0
- package/src/components/CTree/interface/index.d.ts +6 -0
- package/src/components/Grid/interface/index.d.ts +5 -0
- package/src/components/ProTable/interface/index.d.ts +66 -0
- package/src/config/index.d.ts +5 -0
- package/src/config/nprogress.d.ts +3 -0
- package/src/config/piniaPersist.d.ts +10 -0
- package/src/config/serviceLoading.d.ts +5 -0
- package/src/enums/httpEnum.d.ts +19 -0
- package/src/hooks/interface/index.d.ts +30 -0
- package/src/hooks/useOnline.d.ts +6 -0
- package/src/hooks/useTable.d.ts +47 -0
- package/src/main.d.ts +1 -0
- package/src/stores/commonStore.d.ts +2 -0
- package/src/stores/index.d.ts +2 -0
- package/src/stores/interface/index.d.ts +1 -0
- package/src/utils/color.d.ts +28 -0
- package/src/utils/commonUtils.d.ts +63 -0
- package/src/utils/errorHandler.d.ts +5 -0
- package/src/utils/is.d.ts +82 -0
- package/src/utils/layoutUtils.d.ts +44 -0
- package/src/utils/localUtils.d.ts +24 -0
- package/src/utils/serviceDict.d.ts +7 -0
- package/style.css +1 -0
- package/sw.js +1 -0
- package/vite.config.d.ts +2 -0
- package/workbox-3e911b1d.js +1 -0
- package/zyf-model-engine.mjs +45118 -0
- package/zyf-model-engine.umd.js +81 -0
- package/.editorconfig +0 -15
- package/.env +0 -13
- package/.env.development +0 -20
- package/.env.production +0 -25
- package/.env.test +0 -25
- package/.eslintignore +0 -15
- package/.eslintrc-auto-import.json +0 -65
- package/.eslintrc.cjs +0 -66
- package/.husky/commit-msg +0 -4
- package/.husky/pre-commit +0 -5
- package/.prettierignore +0 -9
- package/.prettierrc.cjs +0 -41
- package/.stylelintignore +0 -4
- package/.stylelintrc.cjs +0 -40
- package/.vscode/extensions.json +0 -14
- package/.vscode/settings.json +0 -92
- package/CHANGELOG.md +0 -246
- package/LICENSE +0 -21
- package/README.md +0 -205
- package/auto-imports.d.ts +0 -132
- package/build/getEnv.ts +0 -46
- package/build/plugins.ts +0 -138
- package/build/proxy.ts +0 -28
- package/commitlint.config.cjs +0 -84
- package/components.d.ts +0 -28
- package/lint-staged.config.cjs +0 -8
- package/postcss.config.cjs +0 -5
- package/src/App.vue +0 -16
- package/src/api/config/servicePort.ts +0 -3
- package/src/api/enums/httpEnum.ts +0 -35
- package/src/api/helper/axiosCancel.ts +0 -50
- package/src/api/helper/axiosFileCancel.ts +0 -62
- package/src/api/helper/checkStatus.ts +0 -97
- package/src/api/index.ts +0 -142
- package/src/api/interface/index.ts +0 -27
- package/src/assets/global-icons/icon-demo.svg +0 -1
- package/src/assets/iconfont/iconfont.scss +0 -44
- package/src/assets/iconfont/iconfont.ttf +0 -0
- package/src/assets/images/empty-img.png +0 -0
- package/src/assets/option-icons/add.svg +0 -1
- package/src/assets/option-icons/check.svg +0 -1
- package/src/assets/option-icons/config.svg +0 -1
- package/src/assets/option-icons/del.svg +0 -1
- package/src/assets/option-icons/detail.svg +0 -1
- package/src/assets/option-icons/edit.svg +0 -2
- package/src/assets/option-icons/export.svg +0 -1
- package/src/assets/option-icons/folder.svg +0 -1
- package/src/assets/option-icons/full-screen.svg +0 -1
- package/src/assets/option-icons/more.svg +0 -1
- package/src/assets/option-icons/return.svg +0 -1
- package/src/assets/option-icons/search.svg +0 -1
- package/src/components/CSvgIcon/index.scss +0 -23
- package/src/components/CSvgIcon/index.vue +0 -74
- package/src/components/CTree/index.scss +0 -48
- package/src/components/CTree/index.vue +0 -176
- package/src/components/CTree/interface/index.ts +0 -6
- package/src/components/Dialog/index.scss +0 -74
- package/src/components/Dialog/index.vue +0 -87
- package/src/components/Empty/index.scss +0 -16
- package/src/components/Empty/index.vue +0 -43
- package/src/components/Grid/components/GridItem.vue +0 -68
- package/src/components/Grid/index.vue +0 -167
- package/src/components/Grid/interface/index.ts +0 -6
- package/src/components/Loading/index.scss +0 -67
- package/src/components/Loading/index.vue +0 -13
- package/src/components/Overflow/index.vue +0 -76
- package/src/components/ProTable/components/ColSetting.vue +0 -45
- package/src/components/ProTable/components/Pagination.vue +0 -29
- package/src/components/ProTable/components/SearchForm/components/SearchFormItem.vue +0 -93
- package/src/components/ProTable/components/SearchForm/index.scss +0 -12
- package/src/components/ProTable/components/SearchForm/index.vue +0 -91
- package/src/components/ProTable/components/TableColumn.vue +0 -56
- package/src/components/ProTable/index.scss +0 -14
- package/src/components/ProTable/index.vue +0 -274
- package/src/components/ProTable/interface/index.ts +0 -86
- package/src/components/ScrollBox/index.vue +0 -44
- package/src/components/SvgIcon/index.vue +0 -20
- package/src/components/Tabs/index.vue +0 -142
- package/src/config/index.ts +0 -12
- package/src/config/nprogress.ts +0 -12
- package/src/config/piniaPersist.ts +0 -19
- package/src/config/serviceLoading.ts +0 -45
- package/src/enums/httpEnum.ts +0 -24
- package/src/hooks/interface/index.ts +0 -32
- package/src/hooks/useOnline.ts +0 -27
- package/src/hooks/useTable.ts +0 -167
- package/src/main.ts +0 -35
- package/src/plugins/button/button.vue +0 -56
- package/src/plugins/index.js +0 -26
- package/src/plugins/index.vue +0 -24
- package/src/plugins/msg/msg.vue +0 -56
- package/src/stores/commonStore.ts +0 -9
- package/src/stores/index.ts +0 -8
- package/src/stores/interface/index.ts +0 -1
- package/src/styles/common.scss +0 -87
- package/src/styles/element.scss +0 -233
- package/src/styles/reset.scss +0 -20
- package/src/styles/var.scss +0 -2
- package/src/typings/global.d.ts +0 -37
- package/src/typings/window.d.ts +0 -8
- package/src/utils/color.ts +0 -59
- package/src/utils/commonUtils.ts +0 -175
- package/src/utils/errorHandler.ts +0 -28
- package/src/utils/is.ts +0 -147
- package/src/utils/layoutUtils.ts +0 -83
- package/src/utils/localUtils.ts +0 -42
- package/src/utils/serviceDict.ts +0 -9
- package/src/vite-env.d.ts +0 -6
- package/tsconfig.json +0 -50
- package/vite.config.ts +0 -76
- /package/{public/logo.png → logo.png} +0 -0
package/.editorconfig
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# @see: http://editorconfig.org
|
|
2
|
-
|
|
3
|
-
root = true
|
|
4
|
-
|
|
5
|
-
[*] # 表示所有文件适用
|
|
6
|
-
charset = utf-8 # 设置文件字符集为 utf-8
|
|
7
|
-
end_of_line = lf # 控制换行类型(lf | cr | crlf)
|
|
8
|
-
insert_final_newline = true # 始终在文件末尾插入一个新行
|
|
9
|
-
indent_style = space # 缩进风格(tab | space)
|
|
10
|
-
indent_size = 2 # 缩进大小
|
|
11
|
-
max_line_length = 130 # 最大行长度
|
|
12
|
-
|
|
13
|
-
[*.md] # 表示仅对 md 文件适用以下规则
|
|
14
|
-
max_line_length = off # 关闭最大行长度限制
|
|
15
|
-
trim_trailing_whitespace = false # 关闭末尾空格修剪
|
package/.env
DELETED
package/.env.development
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# 本地环境
|
|
2
|
-
VITE_USER_NODE_ENV = development
|
|
3
|
-
|
|
4
|
-
# 公共基础路径
|
|
5
|
-
VITE_PUBLIC_PATH = /
|
|
6
|
-
|
|
7
|
-
# 打包时是否删除 console
|
|
8
|
-
VITE_DROP_CONSOLE = true
|
|
9
|
-
|
|
10
|
-
# 是否开启 VitePWA
|
|
11
|
-
VITE_PWA = false
|
|
12
|
-
|
|
13
|
-
# 开发环境接口地址
|
|
14
|
-
VITE_API_URL = /dev
|
|
15
|
-
|
|
16
|
-
# 文件
|
|
17
|
-
VITE_VIEWFILE_URL = ''
|
|
18
|
-
|
|
19
|
-
# # 正式地址代理
|
|
20
|
-
VITE_PROXY = [["/dev",""]]
|
package/.env.production
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# 线上环境
|
|
2
|
-
VITE_USER_NODE_ENV = production
|
|
3
|
-
|
|
4
|
-
# 公共基础路径
|
|
5
|
-
VITE_PUBLIC_PATH = './'
|
|
6
|
-
|
|
7
|
-
# 是否启用 gzip 或 brotli 压缩打包,如果需要多个压缩规则,可以使用 “,” 分隔
|
|
8
|
-
# Optional: gzip | brotli | none
|
|
9
|
-
VITE_BUILD_COMPRESS = none
|
|
10
|
-
|
|
11
|
-
# 打包压缩后是否删除源文件
|
|
12
|
-
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
|
|
13
|
-
|
|
14
|
-
# 打包时是否删除 console
|
|
15
|
-
VITE_DROP_CONSOLE = true
|
|
16
|
-
|
|
17
|
-
# 是否开启 VitePWA
|
|
18
|
-
VITE_PWA = true
|
|
19
|
-
# 开发环境接口地址
|
|
20
|
-
VITE_API_URL = ''
|
|
21
|
-
|
|
22
|
-
VITE_VIEWFILE_URL = ''
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
package/.env.test
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# 线上环境
|
|
2
|
-
VITE_USER_NODE_ENV = production
|
|
3
|
-
|
|
4
|
-
# 公共基础路径
|
|
5
|
-
VITE_PUBLIC_PATH = './'
|
|
6
|
-
|
|
7
|
-
# 是否启用 gzip 或 brotli 压缩打包,如果需要多个压缩规则,可以使用 “,” 分隔
|
|
8
|
-
# Optional: gzip | brotli | none
|
|
9
|
-
VITE_BUILD_COMPRESS = none
|
|
10
|
-
|
|
11
|
-
# 打包压缩后是否删除源文件
|
|
12
|
-
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
|
|
13
|
-
|
|
14
|
-
# 打包时是否删除 console
|
|
15
|
-
VITE_DROP_CONSOLE = true
|
|
16
|
-
|
|
17
|
-
# 是否开启 VitePWA
|
|
18
|
-
VITE_PWA = true
|
|
19
|
-
# 开发环境接口地址
|
|
20
|
-
VITE_API_URL = ''
|
|
21
|
-
|
|
22
|
-
VITE_VIEWFILE_URL = 'https://oss.xcj.zyfszkj.com:9998'
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
package/.eslintignore
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"globals": {
|
|
3
|
-
"EffectScope": true,
|
|
4
|
-
"ElMessage": true,
|
|
5
|
-
"ElMessageBox": true,
|
|
6
|
-
"ElNotification": true,
|
|
7
|
-
"axiosController": true,
|
|
8
|
-
"axiosFileController": true,
|
|
9
|
-
"computed": true,
|
|
10
|
-
"createApp": true,
|
|
11
|
-
"customRef": true,
|
|
12
|
-
"defineAsyncComponent": true,
|
|
13
|
-
"defineComponent": true,
|
|
14
|
-
"effectScope": true,
|
|
15
|
-
"getCurrentInstance": true,
|
|
16
|
-
"getCurrentScope": true,
|
|
17
|
-
"h": true,
|
|
18
|
-
"http": true,
|
|
19
|
-
"inject": true,
|
|
20
|
-
"is": true,
|
|
21
|
-
"isProxy": true,
|
|
22
|
-
"isReactive": true,
|
|
23
|
-
"isReadonly": true,
|
|
24
|
-
"isRef": true,
|
|
25
|
-
"markRaw": true,
|
|
26
|
-
"nextTick": true,
|
|
27
|
-
"onActivated": true,
|
|
28
|
-
"onBeforeMount": true,
|
|
29
|
-
"onBeforeUnmount": true,
|
|
30
|
-
"onBeforeUpdate": true,
|
|
31
|
-
"onDeactivated": true,
|
|
32
|
-
"onErrorCaptured": true,
|
|
33
|
-
"onMounted": true,
|
|
34
|
-
"onRenderTracked": true,
|
|
35
|
-
"onRenderTriggered": true,
|
|
36
|
-
"onScopeDispose": true,
|
|
37
|
-
"onServerPrefetch": true,
|
|
38
|
-
"onUnmounted": true,
|
|
39
|
-
"onUpdated": true,
|
|
40
|
-
"provide": true,
|
|
41
|
-
"reactive": true,
|
|
42
|
-
"readonly": true,
|
|
43
|
-
"ref": true,
|
|
44
|
-
"resolveComponent": true,
|
|
45
|
-
"resolveDirective": true,
|
|
46
|
-
"serviceDict": true,
|
|
47
|
-
"shallowReactive": true,
|
|
48
|
-
"shallowReadonly": true,
|
|
49
|
-
"shallowRef": true,
|
|
50
|
-
"toRaw": true,
|
|
51
|
-
"toRef": true,
|
|
52
|
-
"toRefs": true,
|
|
53
|
-
"triggerRef": true,
|
|
54
|
-
"unref": true,
|
|
55
|
-
"useAttrs": true,
|
|
56
|
-
"useCssModule": true,
|
|
57
|
-
"useCssVars": true,
|
|
58
|
-
"useSlots": true,
|
|
59
|
-
"validate": true,
|
|
60
|
-
"watch": true,
|
|
61
|
-
"watchEffect": true,
|
|
62
|
-
"watchPostEffect": true,
|
|
63
|
-
"watchSyncEffect": true
|
|
64
|
-
}
|
|
65
|
-
}
|
package/.eslintrc.cjs
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// @see: http://eslint.cn
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
root: true,
|
|
5
|
-
env: {
|
|
6
|
-
browser: true,
|
|
7
|
-
node: true,
|
|
8
|
-
es6: true
|
|
9
|
-
},
|
|
10
|
-
// 指定如何解析语法
|
|
11
|
-
parser: "vue-eslint-parser",
|
|
12
|
-
// 优先级低于 parse 的语法解析配置
|
|
13
|
-
parserOptions: {
|
|
14
|
-
parser: "@typescript-eslint/parser",
|
|
15
|
-
ecmaVersion: 2020,
|
|
16
|
-
sourceType: "module",
|
|
17
|
-
jsxPragma: "React",
|
|
18
|
-
ecmaFeatures: {
|
|
19
|
-
jsx: true
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
// 继承某些已有的规则
|
|
23
|
-
extends: [
|
|
24
|
-
"plugin:vue/vue3-recommended",
|
|
25
|
-
"plugin:@typescript-eslint/recommended",
|
|
26
|
-
"plugin:prettier/recommended",
|
|
27
|
-
"./.eslintrc-auto-import.json"
|
|
28
|
-
],
|
|
29
|
-
/**
|
|
30
|
-
* "off" 或 0 ==> 关闭规则
|
|
31
|
-
* "warn" 或 1 ==> 打开的规则作为警告(不影响代码执行)
|
|
32
|
-
* "error" 或 2 ==> 规则作为一个错误(代码不能执行,界面报错)
|
|
33
|
-
*/
|
|
34
|
-
rules: {
|
|
35
|
-
// eslint (http://eslint.cn/docs/rules)
|
|
36
|
-
"no-var": "error", // 要求使用 let 或 const 而不是 var
|
|
37
|
-
"no-multiple-empty-lines": ["error", { max: 1 }], // 不允许多个空行
|
|
38
|
-
"prefer-const": "off", // 使用 let 关键字声明但在初始分配后从未重新分配的变量,要求使用 const
|
|
39
|
-
"no-use-before-define": "off", // 禁止在 函数/类/变量 定义之前使用它们
|
|
40
|
-
|
|
41
|
-
// typeScript (https://typescript-eslint.io/rules)
|
|
42
|
-
"@typescript-eslint/no-unused-vars": "off", // 禁止定义未使用的变量
|
|
43
|
-
"@typescript-eslint/prefer-ts-expect-error": "error", // 禁止使用 @ts-ignore
|
|
44
|
-
"@typescript-eslint/ban-ts-comment": "error", // 禁止 @ts-<directive> 使用注释或要求在指令后进行描述
|
|
45
|
-
"@typescript-eslint/no-inferrable-types": "off", // 可以轻松推断的显式类型可能会增加不必要的冗长
|
|
46
|
-
"@typescript-eslint/no-namespace": "off", // 禁止使用自定义 TypeScript 模块和命名空间
|
|
47
|
-
"@typescript-eslint/no-explicit-any": "off", // 禁止使用 any 类型
|
|
48
|
-
"@typescript-eslint/ban-types": "off", // 禁止使用特定类型
|
|
49
|
-
"@typescript-eslint/no-var-requires": "off", // 允许使用 require() 函数导入模块
|
|
50
|
-
"@typescript-eslint/no-empty-function": "off", // 禁止空函数
|
|
51
|
-
"@typescript-eslint/no-non-null-assertion": "off", // 不允许使用后缀运算符的非空断言(!)
|
|
52
|
-
|
|
53
|
-
// vue (https://eslint.vuejs.org/rules)
|
|
54
|
-
"vue/script-setup-uses-vars": "error", // 防止<script setup>使用的变量<template>被标记为未使用,此规则仅在启用该no-unused-vars规则时有效
|
|
55
|
-
"vue/v-slot-style": "error", // 强制执行 v-slot 指令样式
|
|
56
|
-
"vue/no-mutating-props": "error", // 不允许改变组件 prop
|
|
57
|
-
"vue/custom-event-name-casing": "error", // 为自定义事件名称强制使用特定大小写
|
|
58
|
-
"vue/html-closing-bracket-newline": "error", // 在标签的右括号之前要求或禁止换行
|
|
59
|
-
"vue/attribute-hyphenation": "error", // 对模板中的自定义组件强制执行属性命名样式:my-prop="prop"
|
|
60
|
-
"vue/attributes-order": "off", // vue api使用顺序,强制执行属性顺序
|
|
61
|
-
"vue/no-v-html": "off", // 禁止使用 v-html
|
|
62
|
-
"vue/require-default-prop": "off", // 此规则要求为每个 prop 为必填时,必须提供默认值
|
|
63
|
-
"vue/multi-word-component-names": "off", // 要求组件名称始终为 “-” 链接的单词
|
|
64
|
-
"vue/no-setup-props-destructure": "off" // 禁止解构 props 传递给 setup
|
|
65
|
-
}
|
|
66
|
-
};
|
package/.husky/commit-msg
DELETED
package/.husky/pre-commit
DELETED
package/.prettierignore
DELETED
package/.prettierrc.cjs
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// @see: https://www.prettier.cn
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
// 指定最大换行长度
|
|
5
|
-
printWidth: 130,
|
|
6
|
-
// 缩进制表符宽度 | 空格数
|
|
7
|
-
tabWidth: 2,
|
|
8
|
-
// 使用制表符而不是空格缩进行 (true:制表符,false:空格)
|
|
9
|
-
useTabs: false,
|
|
10
|
-
// 结尾不用分号 (true:有,false:没有)
|
|
11
|
-
semi: true,
|
|
12
|
-
// 使用单引号 (true:单引号,false:双引号)
|
|
13
|
-
singleQuote: false,
|
|
14
|
-
// 在对象字面量中决定是否将属性名用引号括起来 可选值 "<as-needed|consistent|preserve>"
|
|
15
|
-
quoteProps: "as-needed",
|
|
16
|
-
// 在JSX中使用单引号而不是双引号 (true:单引号,false:双引号)
|
|
17
|
-
jsxSingleQuote: false,
|
|
18
|
-
// 多行时尽可能打印尾随逗号 可选值"<none|es5|all>"
|
|
19
|
-
trailingComma: "none",
|
|
20
|
-
// 在对象,数组括号与文字之间加空格 "{ foo: bar }" (true:有,false:没有)
|
|
21
|
-
bracketSpacing: true,
|
|
22
|
-
// 将 > 多行元素放在最后一行的末尾,而不是单独放在下一行 (true:放末尾,false:单独一行)
|
|
23
|
-
bracketSameLine: false,
|
|
24
|
-
// (x) => {} 箭头函数参数只有一个时是否要有小括号 (avoid:省略括号,always:不省略括号)
|
|
25
|
-
arrowParens: "avoid",
|
|
26
|
-
// 指定要使用的解析器,不需要写文件开头的 @prettier
|
|
27
|
-
requirePragma: false,
|
|
28
|
-
// 可以在文件顶部插入一个特殊标记,指定该文件已使用 Prettier 格式化
|
|
29
|
-
insertPragma: false,
|
|
30
|
-
// 用于控制文本是否应该被换行以及如何进行换行
|
|
31
|
-
proseWrap: "preserve",
|
|
32
|
-
// 在html中空格是否是敏感的 "css" - 遵守 CSS 显示属性的默认值, "strict" - 空格被认为是敏感的 ,"ignore" - 空格被认为是不敏感的
|
|
33
|
-
htmlWhitespaceSensitivity: "css",
|
|
34
|
-
// 控制在 Vue 单文件组件中 <script> 和 <style> 标签内的代码缩进方式
|
|
35
|
-
vueIndentScriptAndStyle: false,
|
|
36
|
-
// 换行符使用 lf 结尾是 可选值 "<auto|lf|crlf|cr>"
|
|
37
|
-
endOfLine: "auto",
|
|
38
|
-
// 这两个选项可用于格式化以给定字符偏移量(分别包括和不包括)开始和结束的代码 (rangeStart:开始,rangeEnd:结束)
|
|
39
|
-
rangeStart: 0,
|
|
40
|
-
rangeEnd: Infinity
|
|
41
|
-
};
|
package/.stylelintignore
DELETED
package/.stylelintrc.cjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// @see: https://stylelint.io
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
root: true,
|
|
5
|
-
// 继承某些已有的规则
|
|
6
|
-
extends: [
|
|
7
|
-
"stylelint-config-standard", // 配置 stylelint 拓展插件
|
|
8
|
-
"stylelint-config-html/vue", // 配置 vue 中 template 样式格式化
|
|
9
|
-
"stylelint-config-standard-scss", // 配置 stylelint scss 插件
|
|
10
|
-
"stylelint-config-recommended-vue/scss", // 配置 vue 中 scss 样式格式化
|
|
11
|
-
"stylelint-config-recess-order" // 配置 stylelint css 属性书写顺序插件,
|
|
12
|
-
],
|
|
13
|
-
overrides: [
|
|
14
|
-
// 扫描 .vue/html 文件中的 <style> 标签内的样式
|
|
15
|
-
{
|
|
16
|
-
files: ["**/*.{vue,html}"],
|
|
17
|
-
customSyntax: "postcss-html"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
rules: {
|
|
21
|
-
"function-url-quotes": "always", // URL 的引号 "always(必须加上引号)"|"never(没有引号)"
|
|
22
|
-
"color-hex-length": "long", // 指定 16 进制颜色的简写或扩写 "short(16进制简写)"|"long(16进制扩写)"
|
|
23
|
-
"rule-empty-line-before": "never", // 要求或禁止在规则之前的空行 "always(规则之前必须始终有一个空行)"|"never(规则前绝不能有空行)"|"always-multi-line(多行规则之前必须始终有一个空行)"|"never-multi-line(多行规则之前绝不能有空行)"
|
|
24
|
-
"font-family-no-missing-generic-family-keyword": null, // 禁止在字体族名称列表中缺少通用字体族关键字
|
|
25
|
-
"scss/at-import-partial-extension": null, // 解决不能使用 @import 引入 scss 文件
|
|
26
|
-
"property-no-unknown": null, // 禁止未知的属性
|
|
27
|
-
"no-empty-source": null, // 禁止空源码
|
|
28
|
-
"selector-class-pattern": null, // 强制选择器类名的格式
|
|
29
|
-
"value-no-vendor-prefix": null, // 关闭 vendor-prefix (为了解决多行省略 -webkit-box)
|
|
30
|
-
"no-descending-specificity": null, // 不允许较低特异性的选择器出现在覆盖较高特异性的选择器
|
|
31
|
-
"value-keyword-case": null, // 解决在 scss 中使用 v-bind 大写单词报错
|
|
32
|
-
"selector-pseudo-class-no-unknown": [
|
|
33
|
-
true,
|
|
34
|
-
{
|
|
35
|
-
ignorePseudoClasses: ["global", "v-deep", "deep"]
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts"]
|
|
40
|
-
};
|
package/.vscode/extensions.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"recommendations": [
|
|
3
|
-
"vue.volar",
|
|
4
|
-
"vue.vscode-typescript-vue-plugin",
|
|
5
|
-
"hollowtree.vue-snippets",
|
|
6
|
-
"dbaeumer.vscode-eslint",
|
|
7
|
-
"stylelint.vscode-stylelint",
|
|
8
|
-
"esbenp.prettier-vscode",
|
|
9
|
-
"editorconfig.editorconfig",
|
|
10
|
-
"streetsidesoftware.code-spell-checker",
|
|
11
|
-
"syler.sass-indented",
|
|
12
|
-
"mikestead.dotenv"
|
|
13
|
-
]
|
|
14
|
-
}
|
package/.vscode/settings.json
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"editor.formatOnSave": true,
|
|
3
|
-
"editor.codeActionsOnSave": {
|
|
4
|
-
"source.fixAll.stylelint": "explicit"
|
|
5
|
-
},
|
|
6
|
-
"stylelint.enable": true,
|
|
7
|
-
"stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass", "html"],
|
|
8
|
-
"files.eol": "\n",
|
|
9
|
-
"typescript.tsdk": "node_modules/typescript/lib",
|
|
10
|
-
"[vue]": {
|
|
11
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
12
|
-
},
|
|
13
|
-
"[typescript]": {
|
|
14
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
15
|
-
},
|
|
16
|
-
"[json]": {
|
|
17
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
18
|
-
},
|
|
19
|
-
"[jsonc]": {
|
|
20
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
21
|
-
},
|
|
22
|
-
"[javascript]": {
|
|
23
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
24
|
-
},
|
|
25
|
-
"[typescriptreact]": {
|
|
26
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
27
|
-
},
|
|
28
|
-
"[scss]": {
|
|
29
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
30
|
-
},
|
|
31
|
-
"[html]": {
|
|
32
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
33
|
-
},
|
|
34
|
-
"[markdown]": {
|
|
35
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
36
|
-
},
|
|
37
|
-
"[less]": {
|
|
38
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
39
|
-
},
|
|
40
|
-
"cSpell.words": [
|
|
41
|
-
"AMAP",
|
|
42
|
-
"apng",
|
|
43
|
-
"axios",
|
|
44
|
-
"Biao",
|
|
45
|
-
"brotli",
|
|
46
|
-
"cascader",
|
|
47
|
-
"commitlint",
|
|
48
|
-
"contentleft",
|
|
49
|
-
"contentright",
|
|
50
|
-
"daterange",
|
|
51
|
-
"datetimerange",
|
|
52
|
-
"echarts",
|
|
53
|
-
"fangda",
|
|
54
|
-
"geeker",
|
|
55
|
-
"Gitee",
|
|
56
|
-
"hexs",
|
|
57
|
-
"iconfont",
|
|
58
|
-
"juejin",
|
|
59
|
-
"liquidfill",
|
|
60
|
-
"longpress",
|
|
61
|
-
"monthrange",
|
|
62
|
-
"nprogress",
|
|
63
|
-
"officedocument",
|
|
64
|
-
"openxmlformats",
|
|
65
|
-
"Pageable",
|
|
66
|
-
"persistedstate",
|
|
67
|
-
"pinia",
|
|
68
|
-
"pjpeg",
|
|
69
|
-
"Prefixs",
|
|
70
|
-
"screenfull",
|
|
71
|
-
"sortablejs",
|
|
72
|
-
"sousuo",
|
|
73
|
-
"spreadsheetml",
|
|
74
|
-
"styl",
|
|
75
|
-
"stylelint",
|
|
76
|
-
"stylelintignore",
|
|
77
|
-
"stylelintrc",
|
|
78
|
-
"suoxiao",
|
|
79
|
-
"truetype",
|
|
80
|
-
"tuichu",
|
|
81
|
-
"unplugin",
|
|
82
|
-
"VITE",
|
|
83
|
-
"vuedraggable",
|
|
84
|
-
"vueuse",
|
|
85
|
-
"Vuex",
|
|
86
|
-
"wangeditor",
|
|
87
|
-
"xiala",
|
|
88
|
-
"xiaoxi",
|
|
89
|
-
"zhongyingwen",
|
|
90
|
-
"zhuti"
|
|
91
|
-
]
|
|
92
|
-
}
|