el-plus-crud 0.0.40 → 0.0.43
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.js +78 -78
- package/.prettierrc.js +39 -39
- package/CHANGELOG.md +8 -2
- package/build.js +31 -31
- package/dist/components/el-plus-form/ElPlusForm.vue.d.ts +9 -9
- package/dist/components/el-plus-form/components/ElPlusFormArea.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormBtn.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormBtns.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormCascader.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormCascaderPanel.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormCheckbox.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormCheckboxButton.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormColor.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormDate.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormDaterange.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormDatetime.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormDatetimerange.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormInput.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormLink.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormLkuser.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormNbinput.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormNumber.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormPassword.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormQuickInput.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormRadio.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormRate.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormSelect.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormSlider.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormSwitch.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormTextarea.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormTransfer.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormTree.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormTreeSelect.vue.d.ts +6 -0
- package/dist/components/el-plus-form/components/ElPlusFormUpload.vue.d.ts +6 -0
- package/dist/el-plus-crud.mjs +2877 -2819
- package/dist/el-plus-crud.umd.js +10 -10
- package/dist/style.css +1 -1
- package/example/App.vue +67 -67
- package/example/main.js +18 -18
- package/index.html +13 -13
- package/lib/components/el-plus-form/ElPlusForm.vue +9 -9
- package/lib/components/el-plus-form/ElPlusFormDialog.vue +90 -90
- package/lib/components/el-plus-form/ElPlusFormGroup.vue +116 -116
- package/lib/components/el-plus-form/components/ElPlusFormArea.vue +62 -61
- package/lib/components/el-plus-form/components/ElPlusFormAutocomplete.vue +49 -49
- package/lib/components/el-plus-form/components/ElPlusFormBtn.vue +103 -102
- package/lib/components/el-plus-form/components/ElPlusFormBtns.vue +134 -133
- package/lib/components/el-plus-form/components/ElPlusFormCascader.vue +64 -63
- package/lib/components/el-plus-form/components/ElPlusFormCascaderPanel.vue +54 -53
- package/lib/components/el-plus-form/components/ElPlusFormCheckbox.vue +45 -44
- package/lib/components/el-plus-form/components/ElPlusFormCheckboxButton.vue +45 -44
- package/lib/components/el-plus-form/components/ElPlusFormColor.vue +39 -38
- package/lib/components/el-plus-form/components/ElPlusFormDate.vue +40 -39
- package/lib/components/el-plus-form/components/ElPlusFormDaterange.vue +47 -46
- package/lib/components/el-plus-form/components/ElPlusFormDatetime.vue +41 -40
- package/lib/components/el-plus-form/components/ElPlusFormDatetimerange.vue +47 -46
- package/lib/components/el-plus-form/components/ElPlusFormFile.vue +47 -47
- package/lib/components/el-plus-form/components/ElPlusFormImage.vue +113 -113
- package/lib/components/el-plus-form/components/ElPlusFormInput.vue +62 -61
- package/lib/components/el-plus-form/components/ElPlusFormLink.vue +282 -281
- package/lib/components/el-plus-form/components/ElPlusFormLkuser.vue +490 -489
- package/lib/components/el-plus-form/components/ElPlusFormNbinput.vue +54 -53
- package/lib/components/el-plus-form/components/ElPlusFormNumber.vue +147 -146
- package/lib/components/el-plus-form/components/ElPlusFormPassword.vue +44 -43
- package/lib/components/el-plus-form/components/ElPlusFormQuickInput.vue +96 -94
- package/lib/components/el-plus-form/components/ElPlusFormRadio.vue +43 -42
- package/lib/components/el-plus-form/components/ElPlusFormRate.vue +39 -38
- package/lib/components/el-plus-form/components/ElPlusFormSelect.vue +162 -161
- package/lib/components/el-plus-form/components/ElPlusFormSlider.vue +39 -38
- package/lib/components/el-plus-form/components/ElPlusFormSwitch.vue +39 -38
- package/lib/components/el-plus-form/components/ElPlusFormTag.vue +78 -78
- package/lib/components/el-plus-form/components/ElPlusFormText.vue +99 -99
- package/lib/components/el-plus-form/components/ElPlusFormTextarea.vue +50 -49
- package/lib/components/el-plus-form/components/ElPlusFormTransfer.vue +45 -44
- package/lib/components/el-plus-form/components/ElPlusFormTree.vue +77 -76
- package/lib/components/el-plus-form/components/ElPlusFormTreeSelect.vue +60 -59
- package/lib/components/el-plus-form/components/ElPlusFormUpload.vue +369 -368
- package/lib/components/el-plus-form/components/components/file-icons/FileIcons.vue +135 -135
- package/lib/components/el-plus-form/components/components/file-icons/data/index.ts +27 -27
- package/lib/components/el-plus-form/components/components/file-icons/images/doc.svg +12 -12
- package/lib/components/el-plus-form/components/components/file-icons/images/file.svg +18 -18
- package/lib/components/el-plus-form/components/components/file-icons/images/jpg.svg +13 -13
- package/lib/components/el-plus-form/components/components/file-icons/images/pdf.svg +12 -12
- package/lib/components/el-plus-form/components/components/file-icons/images/png.svg +12 -12
- package/lib/components/el-plus-form/components/components/file-icons/images/ppt.svg +12 -12
- package/lib/components/el-plus-form/components/components/file-icons/images/xls.svg +12 -12
- package/lib/components/el-plus-form/components/index.ts +17 -17
- package/lib/components/el-plus-form/data/file.ts +74 -74
- package/lib/components/el-plus-form/mixins/index.ts +115 -115
- package/lib/components/el-plus-form/util/index.ts +257 -257
- package/lib/components/el-plus-form/util/validate.ts +332 -332
- package/lib/components/el-plus-table/components/columnItem.vue +205 -205
- package/lib/components/el-plus-table/components/header.vue +240 -240
- package/lib/components/el-plus-table/components/statisticInfo.vue +47 -47
- package/lib/components/el-plus-table/util/index.ts +147 -147
- package/lib/config/index.ts +30 -30
- package/lib/index.d.ts +4 -4
- package/lib/index.ts +51 -51
- package/package.json +1 -1
- package/types/axios.d.ts +13 -13
- package/types/formList.d.ts +440 -440
- package/types/layout.d.ts +57 -57
- package/types/mitt.d.ts +38 -38
- package/types/pinia.d.ts +149 -149
- package/types/views.d.ts +329 -329
- package/vite.config.ts +78 -78
package/.eslintrc.js
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: {
|
|
4
|
-
browser: true,
|
|
5
|
-
es2021: true,
|
|
6
|
-
node: true
|
|
7
|
-
},
|
|
8
|
-
parser: 'vue-eslint-parser',
|
|
9
|
-
parserOptions: {
|
|
10
|
-
ecmaVersion: 12,
|
|
11
|
-
parser: '@typescript-eslint/parser',
|
|
12
|
-
sourceType: 'module'
|
|
13
|
-
},
|
|
14
|
-
extends: ['plugin:vue/vue3-essential', 'plugin:vue/essential', 'eslint:recommended'],
|
|
15
|
-
plugins: ['vue', '@typescript-eslint'],
|
|
16
|
-
overrides: [
|
|
17
|
-
{
|
|
18
|
-
files: ['*.ts', '*.tsx', '*.vue'],
|
|
19
|
-
rules: {
|
|
20
|
-
'no-undef': 'off'
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
rules: {
|
|
25
|
-
// http://eslint.cn/docs/rules/
|
|
26
|
-
// https://eslint.vuejs.org/rules/
|
|
27
|
-
// https://typescript-eslint.io/rules/no-unused-vars/
|
|
28
|
-
'@typescript-eslint/ban-ts-ignore': 'off',
|
|
29
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
30
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
31
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
32
|
-
'@typescript-eslint/no-empty-function': 'off',
|
|
33
|
-
'@typescript-eslint/no-use-before-define': 'off',
|
|
34
|
-
'@typescript-eslint/ban-ts-comment': 'off',
|
|
35
|
-
'@typescript-eslint/ban-types': 'off',
|
|
36
|
-
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
37
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
38
|
-
'@typescript-eslint/no-redeclare': 'error',
|
|
39
|
-
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
|
|
40
|
-
'@typescript-eslint/no-unused-vars': [2],
|
|
41
|
-
'vue/custom-event-name-casing': 'off',
|
|
42
|
-
'vue/attributes-order': 'off',
|
|
43
|
-
'vue/one-component-per-file': 'off',
|
|
44
|
-
'vue/html-closing-bracket-newline': 'off',
|
|
45
|
-
'vue/max-attributes-per-line': 'off',
|
|
46
|
-
'vue/multiline-html-element-content-newline': 'off',
|
|
47
|
-
'vue/singleline-html-element-content-newline': 'off',
|
|
48
|
-
'vue/attribute-hyphenation': 'off',
|
|
49
|
-
'vue/html-self-closing': 'off',
|
|
50
|
-
'vue/no-multiple-template-root': 'off',
|
|
51
|
-
'vue/require-default-prop': 'off',
|
|
52
|
-
'vue/no-v-model-argument': 'off',
|
|
53
|
-
'vue/no-arrow-functions-in-watch': 'off',
|
|
54
|
-
'vue/no-template-key': 'off',
|
|
55
|
-
'vue/no-v-html': 'off',
|
|
56
|
-
'vue/comment-directive': 'off',
|
|
57
|
-
'vue/no-parsing-error': 'off',
|
|
58
|
-
'vue/no-deprecated-v-on-native-modifier': 'off',
|
|
59
|
-
'vue/no-mutating-props': 'off',
|
|
60
|
-
'vue/no-v-for-template-key': 'off',
|
|
61
|
-
'vue/multi-word-component-names': 'off',
|
|
62
|
-
'no-useless-escape': 'off',
|
|
63
|
-
'no-sparse-arrays': 'off',
|
|
64
|
-
'no-prototype-builtins': 'off',
|
|
65
|
-
'no-constant-condition': 'off',
|
|
66
|
-
'no-use-before-define': 'off',
|
|
67
|
-
'no-restricted-globals': 'off',
|
|
68
|
-
'no-restricted-syntax': 'off',
|
|
69
|
-
'generator-star-spacing': 'off',
|
|
70
|
-
'no-unreachable': 'off',
|
|
71
|
-
'no-multiple-template-root': 'off',
|
|
72
|
-
'no-unused-vars': 'error',
|
|
73
|
-
'no-v-model-argument': 'off',
|
|
74
|
-
'no-case-declarations': 'off',
|
|
75
|
-
'no-console': 'error',
|
|
76
|
-
'no-redeclare': 'off'
|
|
77
|
-
}
|
|
78
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
browser: true,
|
|
5
|
+
es2021: true,
|
|
6
|
+
node: true
|
|
7
|
+
},
|
|
8
|
+
parser: 'vue-eslint-parser',
|
|
9
|
+
parserOptions: {
|
|
10
|
+
ecmaVersion: 12,
|
|
11
|
+
parser: '@typescript-eslint/parser',
|
|
12
|
+
sourceType: 'module'
|
|
13
|
+
},
|
|
14
|
+
extends: ['plugin:vue/vue3-essential', 'plugin:vue/essential', 'eslint:recommended'],
|
|
15
|
+
plugins: ['vue', '@typescript-eslint'],
|
|
16
|
+
overrides: [
|
|
17
|
+
{
|
|
18
|
+
files: ['*.ts', '*.tsx', '*.vue'],
|
|
19
|
+
rules: {
|
|
20
|
+
'no-undef': 'off'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
rules: {
|
|
25
|
+
// http://eslint.cn/docs/rules/
|
|
26
|
+
// https://eslint.vuejs.org/rules/
|
|
27
|
+
// https://typescript-eslint.io/rules/no-unused-vars/
|
|
28
|
+
'@typescript-eslint/ban-ts-ignore': 'off',
|
|
29
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
30
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
31
|
+
'@typescript-eslint/no-var-requires': 'off',
|
|
32
|
+
'@typescript-eslint/no-empty-function': 'off',
|
|
33
|
+
'@typescript-eslint/no-use-before-define': 'off',
|
|
34
|
+
'@typescript-eslint/ban-ts-comment': 'off',
|
|
35
|
+
'@typescript-eslint/ban-types': 'off',
|
|
36
|
+
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
37
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
38
|
+
'@typescript-eslint/no-redeclare': 'error',
|
|
39
|
+
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
|
|
40
|
+
'@typescript-eslint/no-unused-vars': [2],
|
|
41
|
+
'vue/custom-event-name-casing': 'off',
|
|
42
|
+
'vue/attributes-order': 'off',
|
|
43
|
+
'vue/one-component-per-file': 'off',
|
|
44
|
+
'vue/html-closing-bracket-newline': 'off',
|
|
45
|
+
'vue/max-attributes-per-line': 'off',
|
|
46
|
+
'vue/multiline-html-element-content-newline': 'off',
|
|
47
|
+
'vue/singleline-html-element-content-newline': 'off',
|
|
48
|
+
'vue/attribute-hyphenation': 'off',
|
|
49
|
+
'vue/html-self-closing': 'off',
|
|
50
|
+
'vue/no-multiple-template-root': 'off',
|
|
51
|
+
'vue/require-default-prop': 'off',
|
|
52
|
+
'vue/no-v-model-argument': 'off',
|
|
53
|
+
'vue/no-arrow-functions-in-watch': 'off',
|
|
54
|
+
'vue/no-template-key': 'off',
|
|
55
|
+
'vue/no-v-html': 'off',
|
|
56
|
+
'vue/comment-directive': 'off',
|
|
57
|
+
'vue/no-parsing-error': 'off',
|
|
58
|
+
'vue/no-deprecated-v-on-native-modifier': 'off',
|
|
59
|
+
'vue/no-mutating-props': 'off',
|
|
60
|
+
'vue/no-v-for-template-key': 'off',
|
|
61
|
+
'vue/multi-word-component-names': 'off',
|
|
62
|
+
'no-useless-escape': 'off',
|
|
63
|
+
'no-sparse-arrays': 'off',
|
|
64
|
+
'no-prototype-builtins': 'off',
|
|
65
|
+
'no-constant-condition': 'off',
|
|
66
|
+
'no-use-before-define': 'off',
|
|
67
|
+
'no-restricted-globals': 'off',
|
|
68
|
+
'no-restricted-syntax': 'off',
|
|
69
|
+
'generator-star-spacing': 'off',
|
|
70
|
+
'no-unreachable': 'off',
|
|
71
|
+
'no-multiple-template-root': 'off',
|
|
72
|
+
'no-unused-vars': 'error',
|
|
73
|
+
'no-v-model-argument': 'off',
|
|
74
|
+
'no-case-declarations': 'off',
|
|
75
|
+
'no-console': 'error',
|
|
76
|
+
'no-redeclare': 'off'
|
|
77
|
+
}
|
|
78
|
+
}
|
package/.prettierrc.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// 一行最多多少个字符
|
|
3
|
-
printWidth: 500,
|
|
4
|
-
// 指定每个缩进级别的空格数
|
|
5
|
-
tabWidth: 2,
|
|
6
|
-
// 使用制表符而不是空格缩进行
|
|
7
|
-
useTabs: false,
|
|
8
|
-
// 在语句末尾打印分号
|
|
9
|
-
semi: false,
|
|
10
|
-
// 使用单引号而不是双引号
|
|
11
|
-
singleQuote: true,
|
|
12
|
-
// 更改引用对象属性的时间 可选值"<as-needed|consistent|preserve>"
|
|
13
|
-
quoteProps: 'as-needed',
|
|
14
|
-
// 在JSX中使用单引号而不是双引号
|
|
15
|
-
jsxSingleQuote: false,
|
|
16
|
-
// 多行时尽可能打印尾随逗号。(例如,单行数组永远不会出现逗号结尾。) 可选值"<none|es5|all>",默认none
|
|
17
|
-
trailingComma: 'none',
|
|
18
|
-
// 在对象文字中的括号之间打印空格
|
|
19
|
-
bracketSpacing: true,
|
|
20
|
-
// jsx 标签的反尖括号需要换行
|
|
21
|
-
jsxBracketSameLine: false,
|
|
22
|
-
// 在单独的箭头函数参数周围包括括号 always:(x) => x \ avoid:x => x
|
|
23
|
-
arrowParens: 'always',
|
|
24
|
-
// 这两个选项可用于格式化以给定字符偏移量(分别包括和不包括)开始和结束的代码
|
|
25
|
-
rangeStart: 0,
|
|
26
|
-
rangeEnd: Infinity,
|
|
27
|
-
// 指定要使用的解析器,不需要写文件开头的 @prettier
|
|
28
|
-
requirePragma: false,
|
|
29
|
-
// 不需要自动在文件开头插入 @prettier
|
|
30
|
-
insertPragma: false,
|
|
31
|
-
// 使用默认的折行标准 always\never\preserve
|
|
32
|
-
proseWrap: 'preserve',
|
|
33
|
-
// 指定HTML文件的全局空格敏感度 css\strict\ignore
|
|
34
|
-
htmlWhitespaceSensitivity: 'css',
|
|
35
|
-
// Vue文件脚本和样式标签缩进
|
|
36
|
-
vueIndentScriptAndStyle: false,
|
|
37
|
-
// 换行符使用 lf 结尾是 可选值"<auto|lf|crlf|cr>"
|
|
38
|
-
endOfLine: 'lf'
|
|
39
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
// 一行最多多少个字符
|
|
3
|
+
printWidth: 500,
|
|
4
|
+
// 指定每个缩进级别的空格数
|
|
5
|
+
tabWidth: 2,
|
|
6
|
+
// 使用制表符而不是空格缩进行
|
|
7
|
+
useTabs: false,
|
|
8
|
+
// 在语句末尾打印分号
|
|
9
|
+
semi: false,
|
|
10
|
+
// 使用单引号而不是双引号
|
|
11
|
+
singleQuote: true,
|
|
12
|
+
// 更改引用对象属性的时间 可选值"<as-needed|consistent|preserve>"
|
|
13
|
+
quoteProps: 'as-needed',
|
|
14
|
+
// 在JSX中使用单引号而不是双引号
|
|
15
|
+
jsxSingleQuote: false,
|
|
16
|
+
// 多行时尽可能打印尾随逗号。(例如,单行数组永远不会出现逗号结尾。) 可选值"<none|es5|all>",默认none
|
|
17
|
+
trailingComma: 'none',
|
|
18
|
+
// 在对象文字中的括号之间打印空格
|
|
19
|
+
bracketSpacing: true,
|
|
20
|
+
// jsx 标签的反尖括号需要换行
|
|
21
|
+
jsxBracketSameLine: false,
|
|
22
|
+
// 在单独的箭头函数参数周围包括括号 always:(x) => x \ avoid:x => x
|
|
23
|
+
arrowParens: 'always',
|
|
24
|
+
// 这两个选项可用于格式化以给定字符偏移量(分别包括和不包括)开始和结束的代码
|
|
25
|
+
rangeStart: 0,
|
|
26
|
+
rangeEnd: Infinity,
|
|
27
|
+
// 指定要使用的解析器,不需要写文件开头的 @prettier
|
|
28
|
+
requirePragma: false,
|
|
29
|
+
// 不需要自动在文件开头插入 @prettier
|
|
30
|
+
insertPragma: false,
|
|
31
|
+
// 使用默认的折行标准 always\never\preserve
|
|
32
|
+
proseWrap: 'preserve',
|
|
33
|
+
// 指定HTML文件的全局空格敏感度 css\strict\ignore
|
|
34
|
+
htmlWhitespaceSensitivity: 'css',
|
|
35
|
+
// Vue文件脚本和样式标签缩进
|
|
36
|
+
vueIndentScriptAndStyle: false,
|
|
37
|
+
// 换行符使用 lf 结尾是 可选值"<auto|lf|crlf|cr>"
|
|
38
|
+
endOfLine: 'lf'
|
|
39
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,10 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
### [0.0.
|
|
5
|
+
### [0.0.43](https://github.com/KDJack/el-plus-crud/compare/v0.0.42...v0.0.43) (2023-08-16)
|
|
6
6
|
|
|
7
|
-
### [0.0.
|
|
7
|
+
### [0.0.42](https://github.com/KDJack/el-plus-crud/compare/v0.0.41...v0.0.42) (2023-08-16)
|
|
8
8
|
|
|
9
|
+
### 0.0.41 (2023-08-10)
|
|
10
|
+
|
|
11
|
+
### [0.0.40](https://github.com/KDJack/el-plus-crud/compare/v0.0.39...v0.0.40) (2023-08-08)
|
|
12
|
+
|
|
13
|
+
### [0.0.39](https://github.com/KDJack/el-plus-crud/compare/v0.0.35...v0.0.39) (2023-08-07)
|
|
14
|
+
|
|
9
15
|
### [0.0.38](https://github.com/KDJack/el-plus-crud/compare/v0.0.37...v0.0.38) (2023-08-05)
|
|
10
16
|
|
|
11
17
|
### 0.0.37 (2023-08-05)
|
package/build.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
var fs = require('fs')
|
|
2
|
-
const { join } = require('path')
|
|
3
|
-
|
|
4
|
-
var tempStr = "import ${name} from './components/el-plus-form/components/${name}.vue'\n"
|
|
5
|
-
var componentsPath = './lib/components/el-plus-form/components'
|
|
6
|
-
|
|
7
|
-
var fileStr = ''
|
|
8
|
-
|
|
9
|
-
let files = fs.readdirSync(componentsPath)
|
|
10
|
-
const compList = []
|
|
11
|
-
|
|
12
|
-
files.forEach(function (item) {
|
|
13
|
-
let stat = fs.statSync(join(componentsPath, item))
|
|
14
|
-
if (stat.isFile() === true && item.indexOf('.vue') >= 0) {
|
|
15
|
-
compList.push(item.replace('.vue', ''))
|
|
16
|
-
}
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
compList.map((name) => {
|
|
20
|
-
fileStr += tempStr.replaceAll('${name}', name)
|
|
21
|
-
})
|
|
22
|
-
fileStr += '\nexport default [\n'
|
|
23
|
-
compList.map((name) => {
|
|
24
|
-
fileStr += ` ${name},\n`
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
fileStr += '] as any[]'
|
|
28
|
-
|
|
29
|
-
// eslint-disable-next-line no-console
|
|
30
|
-
console.log(`写入components-list......`)
|
|
31
|
-
fs.writeFileSync('./lib/components-list.ts', fileStr)
|
|
1
|
+
var fs = require('fs')
|
|
2
|
+
const { join } = require('path')
|
|
3
|
+
|
|
4
|
+
var tempStr = "import ${name} from './components/el-plus-form/components/${name}.vue'\n"
|
|
5
|
+
var componentsPath = './lib/components/el-plus-form/components'
|
|
6
|
+
|
|
7
|
+
var fileStr = ''
|
|
8
|
+
|
|
9
|
+
let files = fs.readdirSync(componentsPath)
|
|
10
|
+
const compList = []
|
|
11
|
+
|
|
12
|
+
files.forEach(function (item) {
|
|
13
|
+
let stat = fs.statSync(join(componentsPath, item))
|
|
14
|
+
if (stat.isFile() === true && item.indexOf('.vue') >= 0) {
|
|
15
|
+
compList.push(item.replace('.vue', ''))
|
|
16
|
+
}
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
compList.map((name) => {
|
|
20
|
+
fileStr += tempStr.replaceAll('${name}', name)
|
|
21
|
+
})
|
|
22
|
+
fileStr += '\nexport default [\n'
|
|
23
|
+
compList.map((name) => {
|
|
24
|
+
fileStr += ` ${name},\n`
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
fileStr += '] as any[]'
|
|
28
|
+
|
|
29
|
+
// eslint-disable-next-line no-console
|
|
30
|
+
console.log(`写入components-list......`)
|
|
31
|
+
fs.writeFileSync('./lib/components-list.ts', fileStr)
|
|
@@ -32,6 +32,10 @@ export interface IFormProps {
|
|
|
32
32
|
maxWidth?: string;
|
|
33
33
|
}
|
|
34
34
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
35
|
+
disabled: {
|
|
36
|
+
type: import("vue").PropType<boolean>;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
35
39
|
size: {
|
|
36
40
|
type: import("vue").PropType<string>;
|
|
37
41
|
default: string;
|
|
@@ -106,10 +110,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
106
110
|
type: import("vue").PropType<string | number>;
|
|
107
111
|
default: string;
|
|
108
112
|
};
|
|
109
|
-
disabled: {
|
|
110
|
-
type: import("vue").PropType<boolean>;
|
|
111
|
-
default: boolean;
|
|
112
|
-
};
|
|
113
113
|
readonly: {
|
|
114
114
|
type: import("vue").PropType<boolean>;
|
|
115
115
|
default: boolean;
|
|
@@ -149,6 +149,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
149
149
|
changeValidImg: () => void;
|
|
150
150
|
refresh: () => void;
|
|
151
151
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("request" | "reset" | "cancel")[], "request" | "reset" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
152
|
+
disabled: {
|
|
153
|
+
type: import("vue").PropType<boolean>;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
152
156
|
size: {
|
|
153
157
|
type: import("vue").PropType<string>;
|
|
154
158
|
default: string;
|
|
@@ -223,10 +227,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
223
227
|
type: import("vue").PropType<string | number>;
|
|
224
228
|
default: string;
|
|
225
229
|
};
|
|
226
|
-
disabled: {
|
|
227
|
-
type: import("vue").PropType<boolean>;
|
|
228
|
-
default: boolean;
|
|
229
|
-
};
|
|
230
230
|
readonly: {
|
|
231
231
|
type: import("vue").PropType<boolean>;
|
|
232
232
|
default: boolean;
|
|
@@ -259,6 +259,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
259
259
|
onRequest?: ((...args: any[]) => any) | undefined;
|
|
260
260
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
261
261
|
}, {
|
|
262
|
+
disabled: boolean;
|
|
262
263
|
size: string;
|
|
263
264
|
formDesc: IFormDesc | null;
|
|
264
265
|
modelValue: {} | {
|
|
@@ -282,7 +283,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
282
283
|
resetBtnText: string;
|
|
283
284
|
showLabel: boolean;
|
|
284
285
|
labelWidth: string | number;
|
|
285
|
-
disabled: boolean;
|
|
286
286
|
readonly: boolean;
|
|
287
287
|
isDialog: boolean;
|
|
288
288
|
optionsFn: Function | null;
|
|
@@ -18,6 +18,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
}>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
21
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
25
|
modelValue: {
|
|
23
26
|
type: import("vue").PropType<any[] | null>;
|
|
@@ -38,6 +41,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
41
|
}>;
|
|
39
42
|
required: true;
|
|
40
43
|
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
};
|
|
41
47
|
}>> & {
|
|
42
48
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
49
|
}, {}, {}>;
|
|
@@ -19,6 +19,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
[key: string]: any;
|
|
20
20
|
}>;
|
|
21
21
|
};
|
|
22
|
+
disabled: {
|
|
23
|
+
type: import("vue").PropType<boolean>;
|
|
24
|
+
};
|
|
22
25
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
26
|
field: {
|
|
24
27
|
type: import("vue").PropType<string>;
|
|
@@ -40,5 +43,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
43
|
[key: string]: any;
|
|
41
44
|
}>;
|
|
42
45
|
};
|
|
46
|
+
disabled: {
|
|
47
|
+
type: import("vue").PropType<boolean>;
|
|
48
|
+
};
|
|
43
49
|
}>>, {}, {}>;
|
|
44
50
|
export default _default;
|
|
@@ -18,6 +18,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
}>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
21
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
25
|
field: {
|
|
23
26
|
type: import("vue").PropType<string>;
|
|
@@ -38,5 +41,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
41
|
}>;
|
|
39
42
|
required: true;
|
|
40
43
|
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
};
|
|
41
47
|
}>>, {}, {}>;
|
|
42
48
|
export default _default;
|
|
@@ -18,6 +18,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
}>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
21
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
25
|
modelValue: {
|
|
23
26
|
type: import("vue").PropType<string | string[] | null>;
|
|
@@ -38,6 +41,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
41
|
}>;
|
|
39
42
|
required: true;
|
|
40
43
|
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
};
|
|
41
47
|
}>> & {
|
|
42
48
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
49
|
}, {}, {}>;
|
|
@@ -18,6 +18,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
18
18
|
}>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
21
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
25
|
modelValue: {
|
|
23
26
|
type: import("vue").PropType<string | number | null>;
|
|
@@ -38,6 +41,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
38
41
|
}>;
|
|
39
42
|
required: true;
|
|
40
43
|
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
};
|
|
41
47
|
}>> & {
|
|
42
48
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
49
|
}, {}, {}>, Partial<Record<number, (_: {
|
|
@@ -18,6 +18,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
}>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
21
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
25
|
modelValue: {
|
|
23
26
|
type: import("vue").PropType<string | number | null>;
|
|
@@ -38,6 +41,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
41
|
}>;
|
|
39
42
|
required: true;
|
|
40
43
|
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
};
|
|
41
47
|
}>> & {
|
|
42
48
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
49
|
}, {}, {}>;
|
|
@@ -18,6 +18,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
}>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
21
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
25
|
modelValue: {
|
|
23
26
|
type: import("vue").PropType<string | number | null>;
|
|
@@ -38,6 +41,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
41
|
}>;
|
|
39
42
|
required: true;
|
|
40
43
|
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
};
|
|
41
47
|
}>> & {
|
|
42
48
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
49
|
}, {}, {}>;
|
|
@@ -18,6 +18,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
}>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
21
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
25
|
modelValue: {
|
|
23
26
|
type: import("vue").PropType<string | number | null>;
|
|
@@ -38,6 +41,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
41
|
}>;
|
|
39
42
|
required: true;
|
|
40
43
|
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
};
|
|
41
47
|
}>> & {
|
|
42
48
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
49
|
}, {}, {}>;
|
|
@@ -18,6 +18,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
}>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
21
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
25
|
modelValue: {
|
|
23
26
|
type: import("vue").PropType<string | number | null>;
|
|
@@ -38,6 +41,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
41
|
}>;
|
|
39
42
|
required: true;
|
|
40
43
|
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
};
|
|
41
47
|
}>> & {
|
|
42
48
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
49
|
}, {}, {}>;
|
|
@@ -18,6 +18,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
18
18
|
}>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
21
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
25
|
modelValue: {
|
|
23
26
|
type: import("vue").PropType<string[] | Date>;
|
|
@@ -38,6 +41,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
38
41
|
}>;
|
|
39
42
|
required: true;
|
|
40
43
|
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
};
|
|
41
47
|
}>> & {
|
|
42
48
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
49
|
}, {}, {}>, Partial<Record<number, (_: {
|
|
@@ -18,6 +18,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
}>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
21
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
25
|
modelValue: {
|
|
23
26
|
type: import("vue").PropType<string | number | null>;
|
|
@@ -38,6 +41,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
41
|
}>;
|
|
39
42
|
required: true;
|
|
40
43
|
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
};
|
|
41
47
|
}>> & {
|
|
42
48
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
49
|
}, {}, {}>;
|
|
@@ -18,6 +18,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
18
18
|
}>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
21
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
25
|
modelValue: {
|
|
23
26
|
type: import("vue").PropType<string[] | Date>;
|
|
@@ -38,6 +41,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
38
41
|
}>;
|
|
39
42
|
required: true;
|
|
40
43
|
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
};
|
|
41
47
|
}>> & {
|
|
42
48
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
43
49
|
}, {}, {}>, Partial<Record<number, (_: {
|
|
@@ -18,6 +18,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
18
18
|
}>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
disabled: {
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
23
|
+
};
|
|
21
24
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("validateThis" | "update:modelValue")[], "validateThis" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
25
|
modelValue: {
|
|
23
26
|
type: import("vue").PropType<string | null>;
|
|
@@ -38,6 +41,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
38
41
|
}>;
|
|
39
42
|
required: true;
|
|
40
43
|
};
|
|
44
|
+
disabled: {
|
|
45
|
+
type: import("vue").PropType<boolean>;
|
|
46
|
+
};
|
|
41
47
|
}>> & {
|
|
42
48
|
onValidateThis?: ((...args: any[]) => any) | undefined;
|
|
43
49
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|