el-plus-crud 0.0.34 → 0.0.38
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 +73 -65
- package/build.js +31 -31
- package/dist/components/el-plus-form/ElPlusFormDialog.vue.d.ts +2 -2
- package/dist/el-plus-crud.mjs +2541 -2538
- package/dist/el-plus-crud.umd.js +14 -14
- 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 -5
- package/lib/components/el-plus-form/ElPlusFormDialog.vue +90 -104
- package/lib/components/el-plus-form/ElPlusFormGroup.vue +116 -116
- package/lib/components/el-plus-form/components/ElPlusFormArea.vue +61 -61
- package/lib/components/el-plus-form/components/ElPlusFormAutocomplete.vue +49 -49
- package/lib/components/el-plus-form/components/ElPlusFormBtn.vue +102 -102
- package/lib/components/el-plus-form/components/ElPlusFormBtns.vue +133 -133
- package/lib/components/el-plus-form/components/ElPlusFormCascader.vue +63 -61
- package/lib/components/el-plus-form/components/ElPlusFormCascaderPanel.vue +51 -51
- package/lib/components/el-plus-form/components/ElPlusFormCheckbox.vue +42 -42
- package/lib/components/el-plus-form/components/ElPlusFormCheckboxButton.vue +42 -42
- package/lib/components/el-plus-form/components/ElPlusFormColor.vue +38 -38
- package/lib/components/el-plus-form/components/ElPlusFormDate.vue +39 -39
- package/lib/components/el-plus-form/components/ElPlusFormDaterange.vue +44 -44
- package/lib/components/el-plus-form/components/ElPlusFormDatetime.vue +38 -38
- 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 +59 -59
- package/lib/components/el-plus-form/components/ElPlusFormLink.vue +281 -281
- package/lib/components/el-plus-form/components/ElPlusFormNbinput.vue +51 -51
- package/lib/components/el-plus-form/components/ElPlusFormNumber.vue +144 -144
- package/lib/components/el-plus-form/components/ElPlusFormPassword.vue +41 -41
- package/lib/components/el-plus-form/components/ElPlusFormQuickInput.vue +92 -92
- package/lib/components/el-plus-form/components/ElPlusFormRadio.vue +42 -42
- package/lib/components/el-plus-form/components/ElPlusFormRate.vue +38 -38
- package/lib/components/el-plus-form/components/ElPlusFormSelect.vue +161 -161
- package/lib/components/el-plus-form/components/ElPlusFormSlider.vue +38 -38
- package/lib/components/el-plus-form/components/ElPlusFormSwitch.vue +38 -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 +47 -47
- package/lib/components/el-plus-form/components/ElPlusFormTransfer.vue +44 -44
- package/lib/components/el-plus-form/components/ElPlusFormTree.vue +76 -76
- package/lib/components/el-plus-form/components/ElPlusFormTreeSelect.vue +59 -59
- package/lib/components/el-plus-form/components/ElPlusFormUpload.vue +368 -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 +113 -113
- 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/ElPlusTable.vue +773 -767
- 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/settingColumn.vue +178 -178
- 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,68 +2,76 @@
|
|
|
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.
|
|
6
|
-
|
|
7
|
-
###
|
|
8
|
-
|
|
9
|
-
###
|
|
10
|
-
|
|
11
|
-
### [0.0.
|
|
12
|
-
|
|
13
|
-
### [0.0.
|
|
14
|
-
|
|
15
|
-
### [0.0.
|
|
16
|
-
|
|
17
|
-
### [0.0.
|
|
18
|
-
|
|
19
|
-
### [0.0.
|
|
20
|
-
|
|
21
|
-
### [0.0.
|
|
22
|
-
|
|
23
|
-
### [0.0.
|
|
24
|
-
|
|
25
|
-
### [0.0.
|
|
26
|
-
|
|
27
|
-
### [0.0.
|
|
28
|
-
|
|
29
|
-
### [0.0.
|
|
30
|
-
|
|
31
|
-
### [0.0.
|
|
32
|
-
|
|
33
|
-
### [0.0.
|
|
34
|
-
|
|
35
|
-
### [0.0.
|
|
36
|
-
|
|
37
|
-
### [0.0.
|
|
38
|
-
|
|
39
|
-
### [0.0.
|
|
40
|
-
|
|
41
|
-
### [0.0.
|
|
42
|
-
|
|
43
|
-
### [0.0.
|
|
44
|
-
|
|
45
|
-
### [0.0.
|
|
46
|
-
|
|
47
|
-
### 0.0.
|
|
48
|
-
|
|
49
|
-
### [0.0.
|
|
50
|
-
|
|
51
|
-
### [0.0.
|
|
52
|
-
|
|
53
|
-
### [0.0.
|
|
54
|
-
|
|
55
|
-
###
|
|
56
|
-
|
|
57
|
-
### [0.0.
|
|
58
|
-
|
|
59
|
-
### [0.0.
|
|
60
|
-
|
|
61
|
-
### [0.0.
|
|
62
|
-
|
|
63
|
-
### [0.0.
|
|
64
|
-
|
|
65
|
-
### [0.0.
|
|
66
|
-
|
|
67
|
-
### [0.0.
|
|
68
|
-
|
|
69
|
-
### 0.0.
|
|
5
|
+
### [0.0.38](https://github.com/KDJack/el-plus-crud/compare/v0.0.37...v0.0.38) (2023-08-05)
|
|
6
|
+
|
|
7
|
+
### 0.0.37 (2023-08-05)
|
|
8
|
+
|
|
9
|
+
### 0.0.36 (2023-08-05)
|
|
10
|
+
|
|
11
|
+
### [0.0.35](https://github.com/KDJack/el-plus-crud/compare/v0.0.34...v0.0.35) (2023-08-04)
|
|
12
|
+
|
|
13
|
+
### [0.0.34](https://github.com/KDJack/el-plus-crud/compare/v0.0.33...v0.0.34) (2023-08-03)
|
|
14
|
+
|
|
15
|
+
### [0.0.33](https://github.com/KDJack/el-plus-crud/compare/v0.0.32...v0.0.33) (2023-08-03)
|
|
16
|
+
|
|
17
|
+
### [0.0.32](https://github.com/KDJack/el-plus-crud/compare/v0.0.31...v0.0.32) (2023-08-03)
|
|
18
|
+
|
|
19
|
+
### [0.0.31](https://github.com/KDJack/el-plus-crud/compare/v0.0.30...v0.0.31) (2023-08-02)
|
|
20
|
+
|
|
21
|
+
### [0.0.30](https://github.com/KDJack/el-plus-crud/compare/v0.0.29...v0.0.30) (2023-08-02)
|
|
22
|
+
|
|
23
|
+
### [0.0.29](https://github.com/KDJack/el-plus-crud/compare/v0.0.28...v0.0.29) (2023-08-01)
|
|
24
|
+
|
|
25
|
+
### [0.0.28](https://github.com/KDJack/el-plus-crud/compare/v0.0.27...v0.0.28) (2023-07-28)
|
|
26
|
+
|
|
27
|
+
### [0.0.27](https://github.com/KDJack/el-plus-crud/compare/v0.0.26...v0.0.27) (2023-07-28)
|
|
28
|
+
|
|
29
|
+
### [0.0.26](https://github.com/KDJack/el-plus-crud/compare/v0.0.25...v0.0.26) (2023-07-27)
|
|
30
|
+
|
|
31
|
+
### [0.0.25](https://github.com/KDJack/el-plus-crud/compare/v0.0.24...v0.0.25) (2023-07-26)
|
|
32
|
+
|
|
33
|
+
### [0.0.24](https://github.com/KDJack/el-plus-crud/compare/v0.0.23...v0.0.24) (2023-07-20)
|
|
34
|
+
|
|
35
|
+
### [0.0.23](https://github.com/KDJack/el-plus-crud/compare/v0.0.22...v0.0.23) (2023-07-14)
|
|
36
|
+
|
|
37
|
+
### [0.0.22](https://github.com/KDJack/el-plus-crud/compare/v0.0.21...v0.0.22) (2023-07-14)
|
|
38
|
+
|
|
39
|
+
### [0.0.21](https://github.com/KDJack/el-plus-crud/compare/v0.0.20...v0.0.21) (2023-07-13)
|
|
40
|
+
|
|
41
|
+
### [0.0.20](https://github.com/KDJack/el-plus-crud/compare/v0.0.19...v0.0.20) (2023-07-13)
|
|
42
|
+
|
|
43
|
+
### [0.0.19](https://github.com/KDJack/el-plus-crud/compare/v0.0.18...v0.0.19) (2023-07-13)
|
|
44
|
+
|
|
45
|
+
### [0.0.18](https://github.com/KDJack/el-plus-crud/compare/v0.0.17...v0.0.18) (2023-07-13)
|
|
46
|
+
|
|
47
|
+
### [0.0.17](https://github.com/KDJack/el-plus-crud/compare/v0.0.16...v0.0.17) (2023-07-13)
|
|
48
|
+
|
|
49
|
+
### [0.0.16](https://github.com/KDJack/el-plus-crud/compare/v0.0.15...v0.0.16) (2023-07-13)
|
|
50
|
+
|
|
51
|
+
### [0.0.15](https://github.com/KDJack/el-plus-crud/compare/v0.0.14...v0.0.15) (2023-07-11)
|
|
52
|
+
|
|
53
|
+
### [0.0.14](https://github.com/KDJack/el-plus-crud/compare/v0.0.13...v0.0.14) (2023-07-11)
|
|
54
|
+
|
|
55
|
+
### 0.0.13 (2023-07-11)
|
|
56
|
+
|
|
57
|
+
### [0.0.12](https://github.com/KDJack/el-plus-crud/compare/v0.0.11...v0.0.12) (2023-07-10)
|
|
58
|
+
|
|
59
|
+
### [0.0.11](https://github.com/KDJack/el-plus-crud/compare/v0.0.10...v0.0.11) (2023-07-10)
|
|
60
|
+
|
|
61
|
+
### [0.0.10](https://github.com/KDJack/el-plus-crud/compare/v0.0.9...v0.0.10) (2023-07-10)
|
|
62
|
+
|
|
63
|
+
### [0.0.9](https://github.com/KDJack/el-plus-crud/compare/v0.0.8...v0.0.9) (2023-07-10)
|
|
64
|
+
|
|
65
|
+
### [0.0.8](https://github.com/KDJack/el-plus-crud/compare/v0.0.7...v0.0.8) (2023-07-10)
|
|
66
|
+
|
|
67
|
+
### [0.0.7](https://github.com/KDJack/el-plus-crud/compare/v0.0.6...v0.0.7) (2023-07-10)
|
|
68
|
+
|
|
69
|
+
### [0.0.6](https://github.com/KDJack/el-plus-crud/compare/v0.0.5...v0.0.6) (2023-07-10)
|
|
70
|
+
|
|
71
|
+
### [0.0.5](https://github.com/KDJack/el-plus-crud/compare/v0.0.4...v0.0.5) (2023-07-10)
|
|
72
|
+
|
|
73
|
+
### [0.0.4](https://github.com/KDJack/el-plus-crud/compare/v0.0.3...v0.0.4) (2023-07-10)
|
|
74
|
+
|
|
75
|
+
### [0.0.3](https://github.com/KDJack/el-plus-crud/compare/v0.0.2...v0.0.3) (2023-07-10)
|
|
76
|
+
|
|
77
|
+
### 0.0.2 (2023-07-10)
|
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)
|
|
@@ -24,8 +24,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
|
-
open:
|
|
28
|
-
close:
|
|
27
|
+
open: typeof open;
|
|
28
|
+
close: typeof close;
|
|
29
29
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "update:modelValue")[], "update:show" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
30
|
title: {
|
|
31
31
|
type: import("vue").PropType<string>;
|