@es-plus/vue2 1.0.0 → 1.0.2
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/CHANGELOG.md +46 -0
- package/README.md +156 -156
- package/dist/components/es-form/es-form.vue.d.ts +4 -1
- package/dist/components/es-form/es-form.vue.d.ts.map +1 -1
- package/dist/components/es-table/component.vue.d.ts +66 -2
- package/dist/components/es-table/component.vue.d.ts.map +1 -1
- package/dist/components/es-table/table-btns.vue.d.ts.map +1 -1
- package/dist/composables/use-form-layout.d.ts +5 -9
- package/dist/composables/use-form-layout.d.ts.map +1 -1
- package/dist/es-plus-vue2.js +567 -571
- package/dist/es-plus-vue2.js.map +1 -1
- package/dist/es-plus-vue2.umd.cjs +1 -1
- package/dist/es-plus-vue2.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/vue-compat.d.ts +11 -13
- package/dist/vue-compat.d.ts.map +1 -1
- package/package.json +87 -86
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.es-form[data-v-
|
|
1
|
+
@charset "UTF-8";.es-form[data-v-78a7096a] .el-row--flex{flex-wrap:wrap}.es-form[data-v-78a7096a] .el-form-item{margin-bottom:18px}.es-form[data-v-78a7096a] .el-form-item__label{font-weight:500}.es-form .buttonOperate[data-v-78a7096a]{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.es-form .leftRightBtn[data-v-78a7096a]{display:flex;justify-content:space-between;align-items:center;width:100%}.es-form .leftRightBtn .btn-left[data-v-78a7096a],.es-form .leftRightBtn .btn-right[data-v-78a7096a]{display:flex;align-items:center}.es-form .btn-formItem[data-v-78a7096a]{margin-bottom:0}.es-form .formItemCols[data-v-78a7096a]{width:100%}.btns[data-v-2b641efd]{padding:0 0 5px;display:flex;justify-content:space-between;align-items:center}.left-text[data-v-2b641efd]{color:#7d7d7d;font-size:14px}.btn-container_block[data-v-2b641efd]{display:flex;justify-content:space-between;align-items:center;flex:1}.btn-container_block .btn-left[data-v-2b641efd]{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap}.btn-container_block .btn-right[data-v-2b641efd]{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap}@media (max-width: 768px){.btns[data-v-2b641efd]{flex-direction:column;align-items:flex-start}.btn-container_block[data-v-2b641efd]{flex-direction:column;align-items:flex-start;gap:10px}.btn-container_block .btn-left[data-v-2b641efd],.btn-container_block .btn-right[data-v-2b641efd]{width:100%;justify-content:flex-start}}.el-dp_tables[data-v-c0ea98f4],.el-dp_tables[data-v-c0ea98f4] .el-table__body-wrapper{height:auto}.table_component[data-v-c0ea98f4]{width:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;overflow:hidden}.table_containers[data-v-c0ea98f4]{flex:1;width:100%;height:100%;display:flex;justify-content:space-between;flex-direction:column;align-items:flex-start;position:relative}.pagination_page[data-v-c0ea98f4]{width:100%;display:flex;justify-content:center;align-items:center}.btn-slot[data-v-c0ea98f4]{width:100%}.btn-slot .headerBar[data-v-c0ea98f4]{box-sizing:border-box;background-color:#fff;border-radius:6px}.btn-slot .headerBar[data-v-c0ea98f4] .el-form-item--small .el-form-item__label{box-sizing:border-box}.tableContainer[data-v-c0ea98f4]{border-radius:0;transition:all 1.5s;flex:1;width:100%;display:flex;justify-content:space-between;flex-direction:column;align-items:flex-start}.tableContainer .table_inner_containers[data-v-c0ea98f4]{width:100%}.tableContainer[data-v-c0ea98f4] .el-table__empty-block{width:100%!important;margin:32px 0;font-size:14px;line-height:1.5715}.tableContainer[data-v-c0ea98f4] .el-table__empty-block .el-table__empty-text{width:auto!important}.tableContainer[data-v-c0ea98f4] .el-table__empty-block .ant-empty-image{height:40px;margin-bottom:8px}.tableContainer[data-v-c0ea98f4] .el-table__empty-block .ant-empty-image .ant-empty-img-simple-ellipse{fill:#f5f5f5}.tableContainer[data-v-c0ea98f4] .el-table__empty-block .ant-empty-image .ant-empty-img-simple-g{stroke:#d9d9d9}.tableContainer[data-v-c0ea98f4] .el-table__empty-block .ant-empty-image .ant-empty-img-simple-path{fill:#fafafa}.tableContainer[data-v-c0ea98f4] .el-table__empty-block .ant-empty-description{line-height:1.5715;color:#00000040}.tableContainer[data-v-c0ea98f4] .el-tag{height:20px;padding:0 7px;line-height:20px;background:#fafafa;border:none;border-radius:4px}.tableContainer[data-v-c0ea98f4] .el-tag.el-tag--info{color:#000000d9}.tableContainer[data-v-c0ea98f4] .el-tag.el-tag--success{color:#52c41a;background:#f6ffed;border-color:#b7eb8f}.dp-dialog_wrapper[data-v-1f2694c2] .dialogAuto{margin:0!important}.dp-dialog_wrapper[data-v-1f2694c2] .el-dialog{padding:10px}.dp-dialog_wrapper[data-v-1f2694c2] .el-dialog .el-dialog__footer{padding-top:0}.dp-dialog_wrapper[data-v-1f2694c2] .el-dialog .el-dialog__body{padding:10px 0}.dp-dialog_wrapper[data-v-1f2694c2] .el-dialog .el-dialog__header{border-bottom:1px solid #eee;display:flex;padding:0 0 10px;align-items:center;justify-content:space-between;margin:0}.dialog-header[data-v-1f2694c2]{display:flex;align-items:center;justify-content:space-between;width:100%}.dialog-title[data-v-1f2694c2]{line-height:24px;font-size:14px;color:#303133;font-weight:700}.btns[data-v-1f2694c2]{display:flex;align-items:center}.btns i[data-v-1f2694c2]{margin-right:8px;font-size:14px;cursor:pointer}.btns i[data-v-1f2694c2]:last-child{margin-right:0}.dialog_body_layouts[data-v-1f2694c2]{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(135,162,189,.1490196078) rgba(200,213,225,.2784313725)}*[data-v-1f2694c2]::-webkit-scrollbar{width:14px;height:14px}*[data-v-1f2694c2]::-webkit-scrollbar-button{width:0;height:0;display:none}*[data-v-1f2694c2]::-webkit-scrollbar-corner{background-color:transparent}*[data-v-1f2694c2]::-webkit-scrollbar-thumb{min-height:12px;border:4px solid transparent;background-clip:content-box;border-radius:7px;background-color:#c8d5e1}*[data-v-1f2694c2]::-webkit-scrollbar-thumb:hover{background-color:#a8bbcf}*[data-v-1f2694c2]::-webkit-scrollbar-thumb:active{background-color:#87a2bd}*[data-v-1f2694c2]::-webkit-scrollbar-track{background-color:transparent}*[data-v-1f2694c2]::-webkit-scrollbar-track-piece{background-color:transparent}.es-crud-page[data-v-d68fbae6]{width:100%}
|
package/dist/vue-compat.d.ts
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Vue 2 兼容层 ——
|
|
2
|
+
* Vue 2 兼容层 —— 通过 vue-demi 自动适配
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* -
|
|
6
|
-
* -
|
|
4
|
+
* vue-demi 在运行时自动判断环境:
|
|
5
|
+
* - Vue 2.7+:从 vue 导出 Composition API(原生支持)
|
|
6
|
+
* - Vue 2.6 + @vue/composition-api:从 @vue/composition-api 导出
|
|
7
|
+
* - Vue 3:从 vue 导出
|
|
7
8
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* (或直接升级到 2.7+,更省事)
|
|
13
|
-
*
|
|
14
|
-
* Vue 实例本身(Vue.extend / Vue.component)也由本文件暴露,供 useDialog 编程式弹窗使用。
|
|
9
|
+
* 用户无需配置 webpack resolve.alias,开箱即用。
|
|
10
|
+
* Vue 2.6 用户只需:
|
|
11
|
+
* 1. npm install @vue/composition-api
|
|
12
|
+
* 2. main.js 中 Vue.use(VueCompositionAPI)
|
|
15
13
|
*/
|
|
16
|
-
export {
|
|
17
|
-
export type { PropType, Ref, ComputedRef, WatchSource } from 'vue';
|
|
14
|
+
export { Vue2 as Vue, ref, reactive, computed, watch, watchEffect, onMounted, onUnmounted, onBeforeUnmount, onBeforeMount, onUpdated, onActivated, onDeactivated, defineComponent, inject, provide, nextTick, getCurrentInstance, toRefs, toRef, unref, isRef, h, } from 'vue-demi';
|
|
15
|
+
export type { PropType, Ref, ComputedRef, WatchSource } from 'vue-demi';
|
|
18
16
|
//# sourceMappingURL=vue-compat.d.ts.map
|
package/dist/vue-compat.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue-compat.d.ts","sourceRoot":"","sources":["../src/vue-compat.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"vue-compat.d.ts","sourceRoot":"","sources":["../src/vue-compat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EACL,IAAI,IAAI,GAAG,EACX,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,eAAe,EACf,aAAa,EACb,SAAS,EACT,WAAW,EACX,aAAa,EACb,eAAe,EACf,MAAM,EACN,OAAO,EACP,QAAQ,EACR,kBAAkB,EAClB,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAK,EACL,CAAC,GACF,MAAM,UAAU,CAAA;AAEjB,YAAY,EAAE,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,86 +1,87 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@es-plus/vue2",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "es-plus for Vue 2 + Element UI: configuration-driven enterprise components, sharing the same JSON config schema as @es-plus/vue3 (Vue 3 + Element Plus)",
|
|
5
|
-
"main": "./dist/es-plus-vue2.umd.cjs",
|
|
6
|
-
"module": "./dist/es-plus-vue2.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/es-plus-vue2.js",
|
|
11
|
-
"require": "./dist/es-plus-vue2.umd.cjs",
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
13
|
-
},
|
|
14
|
-
"./dist/style.css": "./dist/style.css"
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"dist",
|
|
18
|
-
"README.md"
|
|
19
|
-
],
|
|
20
|
-
"sideEffects": [
|
|
21
|
-
"**/*.css"
|
|
22
|
-
],
|
|
23
|
-
"scripts": {
|
|
24
|
-
"typecheck": "tsc --noEmit -p tsconfig.build.json",
|
|
25
|
-
"build": "vite build",
|
|
26
|
-
"prepublishOnly": "npm run typecheck && npm run build",
|
|
27
|
-
"pretest": "vite build",
|
|
28
|
-
"test": "vitest run",
|
|
29
|
-
"test:watch": "vitest"
|
|
30
|
-
},
|
|
31
|
-
"keywords": [
|
|
32
|
-
"vue2",
|
|
33
|
-
"vue",
|
|
34
|
-
"element-ui",
|
|
35
|
-
"component-library",
|
|
36
|
-
"form",
|
|
37
|
-
"table",
|
|
38
|
-
"dialog",
|
|
39
|
-
"es-plus",
|
|
40
|
-
"typescript",
|
|
41
|
-
"enterprise",
|
|
42
|
-
"config-driven",
|
|
43
|
-
"crud",
|
|
44
|
-
"json-schema"
|
|
45
|
-
],
|
|
46
|
-
"author": "liujiaao <303363554@qq.com>",
|
|
47
|
-
"license": "MIT",
|
|
48
|
-
"repository": {
|
|
49
|
-
"type": "git",
|
|
50
|
-
"url": "https://github.com/liujiaao/es-plus.git",
|
|
51
|
-
"directory": "packages/vue2"
|
|
52
|
-
},
|
|
53
|
-
"homepage": "https://liujiaao.github.io/es-plus/",
|
|
54
|
-
"bugs": {
|
|
55
|
-
"url": "https://github.com/liujiaao/es-plus/issues"
|
|
56
|
-
},
|
|
57
|
-
"publishConfig": {
|
|
58
|
-
"access": "public",
|
|
59
|
-
"registry": "https://registry.npmjs.org/"
|
|
60
|
-
},
|
|
61
|
-
"peerDependencies": {
|
|
62
|
-
"@vue/composition-api": "^1.7.0",
|
|
63
|
-
"element-ui": "^2.15.0",
|
|
64
|
-
"vue": "^2.6.14"
|
|
65
|
-
},
|
|
66
|
-
"peerDependenciesMeta": {
|
|
67
|
-
"@vue/composition-api": {
|
|
68
|
-
"optional": true
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"dependencies": {
|
|
72
|
-
"@es-plus/core": "^1.0.0"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"@
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"vite
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"vue
|
|
85
|
-
|
|
86
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@es-plus/vue2",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "es-plus for Vue 2 + Element UI: configuration-driven enterprise components, sharing the same JSON config schema as @es-plus/vue3 (Vue 3 + Element Plus)",
|
|
5
|
+
"main": "./dist/es-plus-vue2.umd.cjs",
|
|
6
|
+
"module": "./dist/es-plus-vue2.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/es-plus-vue2.js",
|
|
11
|
+
"require": "./dist/es-plus-vue2.umd.cjs",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./dist/style.css": "./dist/style.css"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
20
|
+
"sideEffects": [
|
|
21
|
+
"**/*.css"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"typecheck": "tsc --noEmit -p tsconfig.build.json",
|
|
25
|
+
"build": "vite build",
|
|
26
|
+
"prepublishOnly": "npm run typecheck && npm run build",
|
|
27
|
+
"pretest": "vite build",
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"test:watch": "vitest"
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"vue2",
|
|
33
|
+
"vue",
|
|
34
|
+
"element-ui",
|
|
35
|
+
"component-library",
|
|
36
|
+
"form",
|
|
37
|
+
"table",
|
|
38
|
+
"dialog",
|
|
39
|
+
"es-plus",
|
|
40
|
+
"typescript",
|
|
41
|
+
"enterprise",
|
|
42
|
+
"config-driven",
|
|
43
|
+
"crud",
|
|
44
|
+
"json-schema"
|
|
45
|
+
],
|
|
46
|
+
"author": "liujiaao <303363554@qq.com>",
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "https://github.com/liujiaao/es-plus.git",
|
|
51
|
+
"directory": "packages/vue2"
|
|
52
|
+
},
|
|
53
|
+
"homepage": "https://liujiaao.github.io/es-plus/",
|
|
54
|
+
"bugs": {
|
|
55
|
+
"url": "https://github.com/liujiaao/es-plus/issues"
|
|
56
|
+
},
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public",
|
|
59
|
+
"registry": "https://registry.npmjs.org/"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"@vue/composition-api": "^1.7.0",
|
|
63
|
+
"element-ui": "^2.15.0",
|
|
64
|
+
"vue": "^2.6.14"
|
|
65
|
+
},
|
|
66
|
+
"peerDependenciesMeta": {
|
|
67
|
+
"@vue/composition-api": {
|
|
68
|
+
"optional": true
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@es-plus/core": "^1.0.0",
|
|
73
|
+
"vue-demi": "^0.14.10"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@types/node": "^20.0.0",
|
|
77
|
+
"@vitejs/plugin-vue2": "^2.3.0",
|
|
78
|
+
"element-ui": "^2.15.14",
|
|
79
|
+
"sass": "^1.70.0",
|
|
80
|
+
"typescript": "^5.3.0",
|
|
81
|
+
"vite": "^5.0.0",
|
|
82
|
+
"vite-plugin-dts": "^3.7.0",
|
|
83
|
+
"vitest": "^1.2.0",
|
|
84
|
+
"vue": "^2.7.16",
|
|
85
|
+
"vue-template-compiler": "^2.7.16"
|
|
86
|
+
}
|
|
87
|
+
}
|