@weitutech/by-components 1.1.1 → 1.1.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/.babelrc +7 -0
- package/.editorconfig +19 -0
- package/.eslintignore +9 -0
- package/.eslintrc.cjs +65 -0
- package/.prettierignore +9 -0
- package/.prettierrc +22 -0
- package/lib/by-components.common.js +59233 -7809
- package/lib/by-components.umd.js +58698 -7291
- package/lib/by-components.umd.min.js +325 -2
- package/package.json +2 -7
- package/src/components/custom-column/index.vue +394 -0
- package/src/components/fold-search/index.vue +39 -0
- package/src/components/form/comps/custom-date-picker.vue +171 -0
- package/src/components/form/comps/date-picker-range.vue +112 -0
- package/src/components/form/comps/pair-number-input.vue +79 -0
- package/src/components/form/comps/select.vue +130 -0
- package/src/components/form/form.vue +417 -0
- package/src/components/page-search/page-search.vue +122 -0
- package/src/components/pager/index.vue +87 -0
- package/src/components/table/index.vue +371 -0
- package/src/index.js +31 -0
- package/src/plugin/vxeTable.js +300 -0
- package/src/plugin/vxeTable.scss +14 -0
- package/src/style/custom-column.scss +192 -0
- package/src/style/fold-search.scss +21 -0
- package/src/style/form.scss +342 -0
- package/src/style/index.scss +13 -0
- package/src/style/page-search.scss +26 -0
- package/src/style/pager.scss +40 -0
- package/src/style/table.scss +39 -0
- package/src/utils/index.js +32 -0
package/.babelrc
ADDED
package/.editorconfig
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
charset = utf-8
|
|
5
|
+
indent_style = space
|
|
6
|
+
indent_size = 2
|
|
7
|
+
end_of_line = lf
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
|
|
11
|
+
[*.md]
|
|
12
|
+
trim_trailing_whitespace = false
|
|
13
|
+
|
|
14
|
+
[*.vue]
|
|
15
|
+
indent_size = 2
|
|
16
|
+
|
|
17
|
+
[*.vue:script]
|
|
18
|
+
indent_style = space
|
|
19
|
+
indent_size = 0
|
package/.eslintignore
ADDED
package/.eslintrc.cjs
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true,
|
|
5
|
+
browser: true,
|
|
6
|
+
},
|
|
7
|
+
extends: ['plugin:vue/essential', 'eslint:recommended', 'plugin:prettier/recommended'],
|
|
8
|
+
parser: 'vue-eslint-parser',
|
|
9
|
+
rules: {
|
|
10
|
+
'vue/max-attributes-per-line': [
|
|
11
|
+
'error',
|
|
12
|
+
{
|
|
13
|
+
singleline: 5,
|
|
14
|
+
multiline: {
|
|
15
|
+
max: 1,
|
|
16
|
+
allowFirstLine: false,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
'vue/html-self-closing': [
|
|
21
|
+
'error',
|
|
22
|
+
{
|
|
23
|
+
html: {
|
|
24
|
+
void: 'always',
|
|
25
|
+
normal: 'never',
|
|
26
|
+
component: 'always',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
'vue/html-closing-bracket-newline': [
|
|
31
|
+
'error',
|
|
32
|
+
{
|
|
33
|
+
singleline: 'never',
|
|
34
|
+
multiline: 'always',
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
'vue/multiline-html-element-content-newline': [
|
|
38
|
+
'error',
|
|
39
|
+
{
|
|
40
|
+
ignoreWhenEmpty: true,
|
|
41
|
+
ignores: ['pre', 'textarea'],
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
// "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
45
|
+
// "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
46
|
+
'no-unused-vars': ['warn', { args: 'none' }],
|
|
47
|
+
'prefer-const': 'warn',
|
|
48
|
+
// "no-var": "error",
|
|
49
|
+
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
|
|
50
|
+
|
|
51
|
+
'vue/no-lone-template': 'off',
|
|
52
|
+
'vue/singleline-html-element-content-newline': 'off',
|
|
53
|
+
'require-atomic-updates': 'off',
|
|
54
|
+
'no-prototype-builtins': 'off',
|
|
55
|
+
'no-restricted-syntax': 'off',
|
|
56
|
+
'no-useless-catch': 'off',
|
|
57
|
+
'no-useless-escape': 'off',
|
|
58
|
+
'no-useless-return': 'off',
|
|
59
|
+
'no-case-declarations': 'off',
|
|
60
|
+
|
|
61
|
+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
62
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
63
|
+
'vue/multi-word-component-names': 'off',
|
|
64
|
+
},
|
|
65
|
+
}
|
package/.prettierignore
ADDED
package/.prettierrc
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"printWidth": 120,
|
|
3
|
+
"tabWidth": 2,
|
|
4
|
+
"useTabs": false,
|
|
5
|
+
"semi": false,
|
|
6
|
+
"singleQuote": true,
|
|
7
|
+
"trailingComma": "none",
|
|
8
|
+
"bracketSpacing": true,
|
|
9
|
+
"arrowParens": "avoid",
|
|
10
|
+
"endOfLine": "lf",
|
|
11
|
+
"htmlWhitespaceSensitivity": "ignore",
|
|
12
|
+
"bracketSameLine": false,
|
|
13
|
+
"overrides": [
|
|
14
|
+
{
|
|
15
|
+
"files": "*.vue",
|
|
16
|
+
"options": {
|
|
17
|
+
"parser": "vue",
|
|
18
|
+
"vueIndentScriptAndStyle": false
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|