veriwood-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +61 -0
- package/.nvmdrc +1 -0
- package/.prettierrc +12 -0
- package/README.md +12 -0
- package/dist/assets/index-C6L7U61M.js +79 -0
- package/dist/assets/index-hH1SZgo5.css +1 -0
- package/dist/index.html +11 -0
- package/index.html +10 -0
- package/index.js +2 -0
- package/package.json +44 -0
- package/src/App.vue +71 -0
- package/src/assets/svg-icon/density.svg +1 -0
- package/src/components/G-operation.vue +184 -0
- package/src/components/global/G-drawer.vue +107 -0
- package/src/components/global/G-svg.vue +57 -0
- package/src/components/table/G-table-column.vue +238 -0
- package/src/index copy.js +39 -0
- package/src/index.js +20 -0
- package/src/main.js +16 -0
- package/vite.config.js +41 -0
package/.eslintrc.cjs
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
globals: {
|
|
4
|
+
AMap: "readonly", // 添加AMap为全局变量并设置为只读
|
|
5
|
+
defineOptions: "readonly" // 告诉 ESLint defineOptions 是全局只读变量
|
|
6
|
+
},
|
|
7
|
+
env: {
|
|
8
|
+
node: true,
|
|
9
|
+
es6: true,
|
|
10
|
+
browser: true,
|
|
11
|
+
"vue/setup-compiler-macros": true
|
|
12
|
+
},
|
|
13
|
+
extends: ["eslint:recommended", "plugin:vue/vue3-recommended", "prettier", "./.eslintrc-auto-import.json"],
|
|
14
|
+
plugins: ["vue", "html", "prettier"],
|
|
15
|
+
// parserOptions: {
|
|
16
|
+
// ecmaVersion: 7
|
|
17
|
+
// parser: "babel-eslint"
|
|
18
|
+
// },
|
|
19
|
+
// 指定解析器
|
|
20
|
+
parser: "@babel/eslint-parser",
|
|
21
|
+
parserOptions: {
|
|
22
|
+
// 启用 ES2022 语法
|
|
23
|
+
ecmaVersion: "latest",
|
|
24
|
+
sourceType: "module"
|
|
25
|
+
},
|
|
26
|
+
rules: {
|
|
27
|
+
"prettier/prettier": "error",
|
|
28
|
+
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
29
|
+
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
30
|
+
"vue/no-multiple-template-root": "off",
|
|
31
|
+
"vue/multi-word-component-names": "off",
|
|
32
|
+
"no-mutating-props": "off",
|
|
33
|
+
"vue/no-v-html": "off",
|
|
34
|
+
"max-len": ["error", { code: 800 }],
|
|
35
|
+
"vue/html-indent": ["error", 2, { attribute: 1 }],
|
|
36
|
+
// 要求或禁止末尾逗号
|
|
37
|
+
"comma-dangle": [2, "never"],
|
|
38
|
+
// 强制分号之前和之后使用一致的空格
|
|
39
|
+
"semi-spacing": [2, { before: false, after: true }],
|
|
40
|
+
// 强制在圆括号内使用一致的空格
|
|
41
|
+
"space-in-parens": [2, "never"],
|
|
42
|
+
// 强制在function的左括号之前使用一致的空格
|
|
43
|
+
"space-before-function-paren": 0,
|
|
44
|
+
// "space-before-function-paren": [1, "never"],
|
|
45
|
+
"new-parens": 2, //new时必须加小括号
|
|
46
|
+
"vue/no-use-v-if-with-v-for": [
|
|
47
|
+
"error",
|
|
48
|
+
{
|
|
49
|
+
allowUsingIterationVar: false
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
overrides: [
|
|
54
|
+
{
|
|
55
|
+
files: ["**/__tests__/*.{j,t}s?(x)", "**/tests/unit/**/*.spec.{j,t}s?(x)"],
|
|
56
|
+
env: {
|
|
57
|
+
mocha: true
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
};
|
package/.nvmdrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
18.12.0
|
package/.prettierrc
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"printWidth": 160, //最大行宽字数
|
|
3
|
+
"singleQuote": true, //单引号包含字符串
|
|
4
|
+
"semi": false, //不添加末尾分号
|
|
5
|
+
"tabWidth": 2,
|
|
6
|
+
"bracketSpacing": true, //在对象属性前添加空格
|
|
7
|
+
"htmlWhitespaceSensitivity": "ignore", //优化html闭合标签不换行的问题
|
|
8
|
+
"arrowParens": "avoid", //只有一个函数是否带圆括号
|
|
9
|
+
"insertPragma": false,
|
|
10
|
+
"trailingComma": "none",
|
|
11
|
+
"endOfLine": "auto"
|
|
12
|
+
}
|