ol-base-components 2.4.1 → 2.5.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.
- package/.eslintrc +59 -8
- package/.prettierignore +6 -0
- package/.prettierrc +14 -0
- package/package.json +4 -1
- package/src/App.vue +416 -457
- package/src/api/api.js +1 -2
- package/src/api/run.js +7 -7
- package/src/component/countCom.vue +105 -0
- package/src/package/formSearch/src/index.vue +53 -40
- package/src/package/table/src/TableColumn.vue +80 -0
- package/src/package/table/src/index.vue +883 -621
package/.eslintrc
CHANGED
|
@@ -1,8 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
{
|
|
2
|
+
"extends": [
|
|
3
|
+
"plugin:vue/essential", // Vue规则 官方 ESLint 插件 eslint-plugin-vue
|
|
4
|
+
"eslint:recommended", // 基础规则 ESLint 自带的推荐规则
|
|
5
|
+
"prettier", // 关闭所有和 Prettier 冲突的 ESLint 规则
|
|
6
|
+
"plugin:prettier/recommended" //启用 prettier 插件,让 ESLint 把 Prettier 的格式问题当成 ESLint 报错
|
|
7
|
+
],
|
|
8
|
+
"parserOptions": {
|
|
9
|
+
"parser": "@babel/eslint-parser",
|
|
10
|
+
"requireConfigFile": false,
|
|
11
|
+
"ecmaVersion": 2020,
|
|
12
|
+
"sourceType": "module"
|
|
13
|
+
},
|
|
14
|
+
"env": {
|
|
15
|
+
"browser": true,
|
|
16
|
+
"node": true,
|
|
17
|
+
"es6": true
|
|
18
|
+
},
|
|
19
|
+
"rules": {
|
|
20
|
+
"no-console": "warn",
|
|
21
|
+
"no-debugger": "warn",
|
|
22
|
+
"no-unused-vars": "warn",
|
|
23
|
+
"vue/no-unused-components": "warn",
|
|
24
|
+
"vue/no-unused-vars": "warn",
|
|
25
|
+
"vue/multi-word-component-names": "off",
|
|
26
|
+
"vue/no-v-html": "off",
|
|
27
|
+
"vue/require-default-prop": "off",
|
|
28
|
+
"vue/require-prop-types": "off",
|
|
29
|
+
"vue/no-mutating-props": "warn",
|
|
30
|
+
"vue/no-side-effects-in-computed-properties": "warn",
|
|
31
|
+
"vue/valid-v-for": "error",
|
|
32
|
+
"vue/valid-v-if": "error",
|
|
33
|
+
"vue/valid-v-model": "error",
|
|
34
|
+
"vue/valid-template-root": "error",
|
|
35
|
+
"vue/no-duplicate-attributes": "error",
|
|
36
|
+
"vue/no-parsing-error": "error",
|
|
37
|
+
"vue/require-v-for-key": "error",
|
|
38
|
+
"vue/valid-v-bind": "error",
|
|
39
|
+
"vue/valid-v-on": "error",
|
|
40
|
+
"vue/valid-v-slot": "error",
|
|
41
|
+
"vue/valid-v-text": "error",
|
|
42
|
+
"vue/valid-v-html": "error",
|
|
43
|
+
"vue/valid-v-pre": "error",
|
|
44
|
+
"vue/valid-v-cloak": "error",
|
|
45
|
+
"vue/valid-v-once": "error",
|
|
46
|
+
"vue/valid-v-show": "error",
|
|
47
|
+
"vue/valid-v-else": "error",
|
|
48
|
+
"vue/valid-v-else-if": "error",
|
|
49
|
+
"prefer-const": "warn",
|
|
50
|
+
"no-var": "error",
|
|
51
|
+
"eqeqeq": "error",
|
|
52
|
+
"no-undef": "error",
|
|
53
|
+
"no-redeclare": "error",
|
|
54
|
+
"no-unreachable": "error",
|
|
55
|
+
"strict": ["error", "global"],
|
|
56
|
+
"no-implicit-globals": "error",
|
|
57
|
+
"no-unused-expressions": "error"
|
|
58
|
+
}
|
|
59
|
+
}
|
package/.prettierignore
ADDED
package/.prettierrc
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"semi": true,
|
|
3
|
+
"singleQuote": false,
|
|
4
|
+
"tabWidth": 2,
|
|
5
|
+
"printWidth": 100,
|
|
6
|
+
"trailingComma": "es5",
|
|
7
|
+
"bracketSpacing": true,
|
|
8
|
+
"arrowParens": "avoid",
|
|
9
|
+
"endOfLine": "lf",
|
|
10
|
+
"vueIndentScriptAndStyle": true,
|
|
11
|
+
"htmlWhitespaceSensitivity": "css",
|
|
12
|
+
"singleAttributePerLine": false,
|
|
13
|
+
"trimTrailingWhitespace": true
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ol-base-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "src/package/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
"@vue/cli-plugin-babel": "~5.0.0",
|
|
31
31
|
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
32
32
|
"@vue/cli-service": "~5.0.0",
|
|
33
|
+
"eslint-config-prettier": "^8.8.0",
|
|
34
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
35
|
+
"prettier": "^2.8.8",
|
|
33
36
|
"sass": "^1.89.2",
|
|
34
37
|
"sass-loader": "^16.0.5",
|
|
35
38
|
"vue-template-compiler": "^2.6.14"
|