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.
- package/.eslintignore +18 -18
- package/.eslintrc.js +78 -78
- package/.lintstagedrc +3 -3
- package/.prettierrc.js +39 -39
- package/CHANGELOG.md +261 -259
- package/LICENSE +21 -21
- package/README.md +19 -19
- package/build.js +31 -31
- package/dist/el-plus-crud.mjs +1952 -1952
- package/example/App.vue +252 -252
- package/example/main.js +18 -18
- package/example/style.css +4 -4
- package/index.html +13 -13
- package/lib/components/el-plus-form/ElPlusForm.vue +4 -7
- package/lib/components/el-plus-form/ElPlusFormDialog.vue +93 -93
- package/lib/components/el-plus-form/ElPlusFormGroup.vue +201 -201
- package/lib/components/el-plus-form/components/ElPlusFormCascader.vue +65 -65
- package/lib/components/el-plus-form/components/ElPlusFormCascaderPanel.vue +72 -72
- package/lib/components/el-plus-form/components/ElPlusFormCheckbox.vue +81 -81
- package/lib/components/el-plus-form/components/ElPlusFormImage.vue +115 -115
- package/lib/components/el-plus-form/components/ElPlusFormLink.vue +285 -285
- package/lib/components/el-plus-form/components/ElPlusFormQuickInput.vue +98 -98
- package/lib/components/el-plus-form/components/ElPlusFormRadio.vue +69 -69
- package/lib/components/el-plus-form/components/ElPlusFormSelect.vue +185 -185
- package/lib/components/el-plus-form/components/ElPlusFormStatus.vue +102 -102
- package/lib/components/el-plus-form/components/ElPlusFormText.vue +113 -113
- package/lib/components/el-plus-form/components/ElPlusFormTree.vue +79 -79
- package/lib/components/el-plus-form/components/ElPlusFormTreeSelect.vue +62 -62
- 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/util/validate.ts +346 -346
- package/lib/components/el-plus-table/ElPlusTable.vue +972 -972
- package/lib/components/el-plus-table/components/columnItem.vue +220 -220
- package/lib/components/el-plus-table/components/header.vue +345 -345
- package/lib/components/el-plus-table/components/statisticInfo.vue +47 -47
- package/lib/index.d.ts +4 -4
- package/lib/util/index.ts +390 -390
- package/package.json +70 -70
- package/tsconfig.json +78 -78
- package/types/global.d.ts +13 -13
- package/types/index.d.ts +561 -561
- 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)
|