el-plus-crud 0.1.13 → 0.1.14

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.
Files changed (50) hide show
  1. package/.eslintignore +18 -18
  2. package/.eslintrc.js +78 -78
  3. package/.lintstagedrc +3 -3
  4. package/.prettierrc.js +39 -39
  5. package/CHANGELOG.md +261 -259
  6. package/LICENSE +21 -21
  7. package/README.md +19 -19
  8. package/build.js +31 -31
  9. package/dist/el-plus-crud.mjs +1952 -1952
  10. package/example/App.vue +252 -252
  11. package/example/main.js +18 -18
  12. package/example/style.css +4 -4
  13. package/index.html +13 -13
  14. package/lib/components/el-plus-form/ElPlusForm.vue +4 -7
  15. package/lib/components/el-plus-form/ElPlusFormDialog.vue +93 -93
  16. package/lib/components/el-plus-form/ElPlusFormGroup.vue +201 -201
  17. package/lib/components/el-plus-form/components/ElPlusFormCascader.vue +65 -65
  18. package/lib/components/el-plus-form/components/ElPlusFormCascaderPanel.vue +72 -72
  19. package/lib/components/el-plus-form/components/ElPlusFormCheckbox.vue +81 -81
  20. package/lib/components/el-plus-form/components/ElPlusFormImage.vue +115 -115
  21. package/lib/components/el-plus-form/components/ElPlusFormLink.vue +285 -285
  22. package/lib/components/el-plus-form/components/ElPlusFormQuickInput.vue +98 -98
  23. package/lib/components/el-plus-form/components/ElPlusFormRadio.vue +69 -69
  24. package/lib/components/el-plus-form/components/ElPlusFormSelect.vue +185 -185
  25. package/lib/components/el-plus-form/components/ElPlusFormStatus.vue +102 -102
  26. package/lib/components/el-plus-form/components/ElPlusFormText.vue +113 -113
  27. package/lib/components/el-plus-form/components/ElPlusFormTree.vue +79 -79
  28. package/lib/components/el-plus-form/components/ElPlusFormTreeSelect.vue +62 -62
  29. package/lib/components/el-plus-form/components/components/file-icons/data/index.ts +27 -27
  30. package/lib/components/el-plus-form/components/components/file-icons/images/doc.svg +12 -12
  31. package/lib/components/el-plus-form/components/components/file-icons/images/file.svg +18 -18
  32. package/lib/components/el-plus-form/components/components/file-icons/images/jpg.svg +13 -13
  33. package/lib/components/el-plus-form/components/components/file-icons/images/pdf.svg +12 -12
  34. package/lib/components/el-plus-form/components/components/file-icons/images/png.svg +12 -12
  35. package/lib/components/el-plus-form/components/components/file-icons/images/ppt.svg +12 -12
  36. package/lib/components/el-plus-form/components/components/file-icons/images/xls.svg +12 -12
  37. package/lib/components/el-plus-form/components/index.ts +17 -17
  38. package/lib/components/el-plus-form/data/file.ts +74 -74
  39. package/lib/components/el-plus-form/util/validate.ts +346 -346
  40. package/lib/components/el-plus-table/ElPlusTable.vue +972 -972
  41. package/lib/components/el-plus-table/components/columnItem.vue +220 -220
  42. package/lib/components/el-plus-table/components/header.vue +345 -345
  43. package/lib/components/el-plus-table/components/statisticInfo.vue +47 -47
  44. package/lib/index.d.ts +4 -4
  45. package/lib/util/index.ts +390 -390
  46. package/package.json +70 -70
  47. package/tsconfig.json +78 -78
  48. package/types/global.d.ts +13 -13
  49. package/types/index.d.ts +561 -561
  50. package/vite.config.ts +78 -78
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)