el-plus-crud 0.0.39 → 0.0.41
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 +5 -1
- package/build.js +31 -31
- package/dist/el-plus-crud.mjs +1803 -1801
- package/dist/el-plus-crud.umd.js +7 -7
- 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 +771 -774
- 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 +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 -63
- package/lib/components/el-plus-form/components/ElPlusFormCascaderPanel.vue +53 -53
- package/lib/components/el-plus-form/components/ElPlusFormCheckbox.vue +44 -44
- package/lib/components/el-plus-form/components/ElPlusFormCheckboxButton.vue +44 -44
- 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 +46 -46
- package/lib/components/el-plus-form/components/ElPlusFormDatetime.vue +40 -40
- 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/ElPlusFormLink.vue +281 -281
- package/lib/components/el-plus-form/components/ElPlusFormLkuser.vue +489 -489
- package/lib/components/el-plus-form/components/ElPlusFormNbinput.vue +53 -53
- package/lib/components/el-plus-form/components/ElPlusFormNumber.vue +146 -146
- package/lib/components/el-plus-form/components/ElPlusFormQuickInput.vue +94 -94
- 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 +49 -49
- 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 +115 -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/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/vite.config.ts
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import vue from '@vitejs/plugin-vue'
|
|
2
|
-
import { resolve } from 'path'
|
|
3
|
-
import { defineConfig } from 'vite'
|
|
4
|
-
import dts from 'vite-plugin-dts'
|
|
5
|
-
import vueSetupExtend from 'vite-plugin-vue-setup-extend'
|
|
6
|
-
|
|
7
|
-
const pathResolve = (dir: string) => {
|
|
8
|
-
return resolve(__dirname, '.', dir)
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const alias: Record<string, string> = {
|
|
12
|
-
'@': pathResolve('./lib/')
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const viteConfig = defineConfig(() => {
|
|
16
|
-
return {
|
|
17
|
-
plugins: [
|
|
18
|
-
vue(),
|
|
19
|
-
vueSetupExtend(),
|
|
20
|
-
dts({
|
|
21
|
-
entryRoot: './lib',
|
|
22
|
-
outDir: ['./dist'],
|
|
23
|
-
//指定使用的tsconfig.json为我们整个项目根目录下,如果不配置,你也可以在components下新建tsconfig.json
|
|
24
|
-
tsconfigPath: './tsconfig.json'
|
|
25
|
-
})
|
|
26
|
-
],
|
|
27
|
-
root: process.cwd(),
|
|
28
|
-
resolve: { alias },
|
|
29
|
-
base: './',
|
|
30
|
-
server: {
|
|
31
|
-
host: '0.0.0.0',
|
|
32
|
-
port: 9991,
|
|
33
|
-
open: true,
|
|
34
|
-
hmr: true
|
|
35
|
-
},
|
|
36
|
-
build: {
|
|
37
|
-
target: 'modules',
|
|
38
|
-
outDir: 'dist',
|
|
39
|
-
chunkSizeWarningLimit: 500,
|
|
40
|
-
lib: {
|
|
41
|
-
entry: 'lib/index.ts',
|
|
42
|
-
name: 'el-plus-crud',
|
|
43
|
-
formats: ['umd', 'es']
|
|
44
|
-
},
|
|
45
|
-
rollupOptions: {
|
|
46
|
-
external: ['vue', 'element-plus'],
|
|
47
|
-
output: {
|
|
48
|
-
// entryFileNames: `static/js/[hash].js`,
|
|
49
|
-
// chunkFileNames: `static/js/[hash].js`,
|
|
50
|
-
// assetFileNames: (asser) => {
|
|
51
|
-
// const suff = asser.name?.substring(asser.name?.lastIndexOf('.') + 1) || ''
|
|
52
|
-
// switch (suff.toLowerCase()) {
|
|
53
|
-
// case 'js':
|
|
54
|
-
// return 'static/js/[hash].js'
|
|
55
|
-
// case 'css':
|
|
56
|
-
// return `static/css/[hash].css`
|
|
57
|
-
// case 'png':
|
|
58
|
-
// case 'jpg':
|
|
59
|
-
// case 'gif':
|
|
60
|
-
// case 'svg':
|
|
61
|
-
// return 'static/images/[hash].[ext]'
|
|
62
|
-
// }
|
|
63
|
-
// return `static/assets/[hash].[ext]`
|
|
64
|
-
// },
|
|
65
|
-
compact: true
|
|
66
|
-
},
|
|
67
|
-
minify: 'esbuild'
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
css: { preprocessorOptions: { css: { charset: false } } },
|
|
71
|
-
define: {
|
|
72
|
-
__NEXT_VERSION__: JSON.stringify(process.env.npm_package_version),
|
|
73
|
-
__NEXT_NAME__: JSON.stringify(process.env.npm_package_name)
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
export default viteConfig
|
|
1
|
+
import vue from '@vitejs/plugin-vue'
|
|
2
|
+
import { resolve } from 'path'
|
|
3
|
+
import { defineConfig } from 'vite'
|
|
4
|
+
import dts from 'vite-plugin-dts'
|
|
5
|
+
import vueSetupExtend from 'vite-plugin-vue-setup-extend'
|
|
6
|
+
|
|
7
|
+
const pathResolve = (dir: string) => {
|
|
8
|
+
return resolve(__dirname, '.', dir)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const alias: Record<string, string> = {
|
|
12
|
+
'@': pathResolve('./lib/')
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const viteConfig = defineConfig(() => {
|
|
16
|
+
return {
|
|
17
|
+
plugins: [
|
|
18
|
+
vue(),
|
|
19
|
+
vueSetupExtend(),
|
|
20
|
+
dts({
|
|
21
|
+
entryRoot: './lib',
|
|
22
|
+
outDir: ['./dist'],
|
|
23
|
+
//指定使用的tsconfig.json为我们整个项目根目录下,如果不配置,你也可以在components下新建tsconfig.json
|
|
24
|
+
tsconfigPath: './tsconfig.json'
|
|
25
|
+
})
|
|
26
|
+
],
|
|
27
|
+
root: process.cwd(),
|
|
28
|
+
resolve: { alias },
|
|
29
|
+
base: './',
|
|
30
|
+
server: {
|
|
31
|
+
host: '0.0.0.0',
|
|
32
|
+
port: 9991,
|
|
33
|
+
open: true,
|
|
34
|
+
hmr: true
|
|
35
|
+
},
|
|
36
|
+
build: {
|
|
37
|
+
target: 'modules',
|
|
38
|
+
outDir: 'dist',
|
|
39
|
+
chunkSizeWarningLimit: 500,
|
|
40
|
+
lib: {
|
|
41
|
+
entry: 'lib/index.ts',
|
|
42
|
+
name: 'el-plus-crud',
|
|
43
|
+
formats: ['umd', 'es']
|
|
44
|
+
},
|
|
45
|
+
rollupOptions: {
|
|
46
|
+
external: ['vue', 'element-plus'],
|
|
47
|
+
output: {
|
|
48
|
+
// entryFileNames: `static/js/[hash].js`,
|
|
49
|
+
// chunkFileNames: `static/js/[hash].js`,
|
|
50
|
+
// assetFileNames: (asser) => {
|
|
51
|
+
// const suff = asser.name?.substring(asser.name?.lastIndexOf('.') + 1) || ''
|
|
52
|
+
// switch (suff.toLowerCase()) {
|
|
53
|
+
// case 'js':
|
|
54
|
+
// return 'static/js/[hash].js'
|
|
55
|
+
// case 'css':
|
|
56
|
+
// return `static/css/[hash].css`
|
|
57
|
+
// case 'png':
|
|
58
|
+
// case 'jpg':
|
|
59
|
+
// case 'gif':
|
|
60
|
+
// case 'svg':
|
|
61
|
+
// return 'static/images/[hash].[ext]'
|
|
62
|
+
// }
|
|
63
|
+
// return `static/assets/[hash].[ext]`
|
|
64
|
+
// },
|
|
65
|
+
compact: true
|
|
66
|
+
},
|
|
67
|
+
minify: 'esbuild'
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
css: { preprocessorOptions: { css: { charset: false } } },
|
|
71
|
+
define: {
|
|
72
|
+
__NEXT_VERSION__: JSON.stringify(process.env.npm_package_version),
|
|
73
|
+
__NEXT_NAME__: JSON.stringify(process.env.npm_package_name)
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
})
|
|
77
|
+
|
|
78
|
+
export default viteConfig
|