@es-plus/vue2 1.0.4 → 1.1.0
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/README.md +9 -4
- package/dist/components/es-crud-page/es-crud-page.vue.d.ts +107 -2
- package/dist/components/es-crud-page/es-crud-page.vue.d.ts.map +1 -1
- package/dist/components/es-dialog/component.vue.d.ts +361 -2
- package/dist/components/es-dialog/component.vue.d.ts.map +1 -1
- package/dist/components/es-dialog/render-jsx.vue.d.ts +91 -2
- package/dist/components/es-dialog/render-jsx.vue.d.ts.map +1 -1
- package/dist/components/es-form/es-form.vue.d.ts +297 -2
- package/dist/components/es-form/es-form.vue.d.ts.map +1 -1
- package/dist/components/es-table/column-item.vue.d.ts +35 -2
- package/dist/components/es-table/column-item.vue.d.ts.map +1 -1
- package/dist/components/es-table/component.vue.d.ts +499 -2
- package/dist/components/es-table/component.vue.d.ts.map +1 -1
- package/dist/components/es-table/table-btns.vue.d.ts +87 -2
- package/dist/components/es-table/table-btns.vue.d.ts.map +1 -1
- package/dist/es-plus-vue2.js +741 -721
- 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/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/vue-compat.d.ts +46 -12
- package/dist/vue-compat.d.ts.map +1 -1
- package/package.json +82 -82
- package/CHANGELOG.md +0 -46
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAGnD,OAAO,MAAM,MAAM,sBAAsB,CAAA;AACzC,OAAO,OAAO,MAAM,uBAAuB,CAAA;AAC3C,OAAO,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,UAAU,MAAM,2BAA2B,CAAA;AAKlD,UAAU,cAAe,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACtD,kCAAkC;IAClC,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAsDD,QAAA,MAAM,OAAO,GAAI,KAAK,eAAe,EAAE,UAAS,cAAmB,SA0DlE,CAAA;AAGD,OAAO,EACL,MAAM,EACN,OAAO,EACP,QAAQ,EACR,UAAU,EACV,SAAS,EACT,eAAe,EACf,OAAO,GACR,CAAA;AAGD,YAAY,EACV,cAAc,EACd,UAAU,EACV,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,GACpB,MAAM,2BAA2B,CAAA;AAElC,YAAY,EACV,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,SAAS,EACT,QAAQ,EACR,cAAc,EACd,SAAS,EACT,eAAe,EACf,WAAW,EACX,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,eAAe,EACf,aAAa,GACd,MAAM,SAAS,CAAA;;;mBA1GM,eAAe,YAAW,cAAc;;AA+G9D,wBAGC"}
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.es-form[data-v-4a462026] .el-row--flex{flex-wrap:wrap}.es-form[data-v-4a462026] .el-form-item{margin-bottom:18px}.es-form[data-v-4a462026] .el-form-item__label{font-weight:500}.es-form .buttonOperate[data-v-4a462026]{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.es-form .leftRightBtn[data-v-4a462026]{display:flex;justify-content:space-between;align-items:center;width:100%}.es-form .leftRightBtn .btn-left[data-v-4a462026],.es-form .leftRightBtn .btn-right[data-v-4a462026]{display:flex;align-items:center}.es-form .btn-formItem[data-v-4a462026]{margin-bottom:0}.es-form .formItemCols[data-v-4a462026]{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-
|
|
1
|
+
@charset "UTF-8";.es-form[data-v-4a462026] .el-row--flex{flex-wrap:wrap}.es-form[data-v-4a462026] .el-form-item{margin-bottom:18px}.es-form[data-v-4a462026] .el-form-item__label{font-weight:500}.es-form .buttonOperate[data-v-4a462026]{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.es-form .leftRightBtn[data-v-4a462026]{display:flex;justify-content:space-between;align-items:center;width:100%}.es-form .leftRightBtn .btn-left[data-v-4a462026],.es-form .leftRightBtn .btn-right[data-v-4a462026]{display:flex;align-items:center}.es-form .btn-formItem[data-v-4a462026]{margin-bottom:0}.es-form .formItemCols[data-v-4a462026]{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-8e292dd6],.el-dp_tables[data-v-8e292dd6] .el-table__body-wrapper{height:auto}.table_component[data-v-8e292dd6]{width:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;overflow:hidden}.table_containers[data-v-8e292dd6]{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-8e292dd6]{width:100%;display:flex;justify-content:center;align-items:center}.btn-slot[data-v-8e292dd6]{width:100%}.btn-slot .headerBar[data-v-8e292dd6]{box-sizing:border-box;background-color:#fff;border-radius:6px}.btn-slot .headerBar[data-v-8e292dd6] .el-form-item--small .el-form-item__label{box-sizing:border-box}.tableContainer[data-v-8e292dd6]{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-8e292dd6]{width:100%}.tableContainer[data-v-8e292dd6] .el-table__empty-block{width:100%!important;margin:32px 0;font-size:14px;line-height:1.5715}.tableContainer[data-v-8e292dd6] .el-table__empty-block .el-table__empty-text{width:auto!important}.tableContainer[data-v-8e292dd6] .el-table__empty-block .ant-empty-image{height:40px;margin-bottom:8px}.tableContainer[data-v-8e292dd6] .el-table__empty-block .ant-empty-image .ant-empty-img-simple-ellipse{fill:#f5f5f5}.tableContainer[data-v-8e292dd6] .el-table__empty-block .ant-empty-image .ant-empty-img-simple-g{stroke:#d9d9d9}.tableContainer[data-v-8e292dd6] .el-table__empty-block .ant-empty-image .ant-empty-img-simple-path{fill:#fafafa}.tableContainer[data-v-8e292dd6] .el-table__empty-block .ant-empty-description{line-height:1.5715;color:#00000040}.tableContainer[data-v-8e292dd6] .el-tag{height:20px;padding:0 7px;line-height:20px;background:#fafafa;border:none;border-radius:4px}.tableContainer[data-v-8e292dd6] .el-tag.el-tag--info{color:#000000d9}.tableContainer[data-v-8e292dd6] .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-ad1d1cb8]{width:100%}
|
package/dist/vue-compat.d.ts
CHANGED
|
@@ -1,21 +1,54 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Vue 2 兼容层 ——
|
|
2
|
+
* Vue 2 兼容层 —— 运行时按 Vue 版本动态切换 Composition API 来源
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* - Vue 2.7
|
|
6
|
-
* - Vue 2.6
|
|
4
|
+
* 行为:
|
|
5
|
+
* - Vue 2.7+:使用 vue 原生导出的 Composition API(ref / reactive / inject / ...)
|
|
6
|
+
* - Vue 2.6.x:使用 @vue/composition-api 的 polyfill
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* 为什么不直接从 '@vue/composition-api' 静态 re-export:
|
|
9
|
+
* 官方说明里 @vue/composition-api 1.7+ 在 Vue 2.7 下应通过 postinstall 自动
|
|
10
|
+
* redirect 到原生 API,但在 monorepo / npm workspace / file: 协议安装时
|
|
11
|
+
* postinstall 经常不执行,导致 dist 仍然是完整 polyfill。结果在 Vue 2.7 项目里
|
|
12
|
+
* 原生 setup 与 polyfill 的 wrappedData 双双激活,setup 被调用两次,触发:
|
|
13
|
+
* "[Vue warn]: The setup binding property xxx is already declared"
|
|
14
|
+
* "[Vue warn]: inject() can only be used inside setup() or functional components."
|
|
11
15
|
*
|
|
12
16
|
* 不使用 vue-demi 的原因:
|
|
13
|
-
* vue-demi 在嵌套 node_modules
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
+
* vue-demi 的 postinstall 在嵌套 node_modules 安装时会解析到本包的 devDependency
|
|
18
|
+
* vue@2.7 而非用户项目的 vue 版本,生成错误的 lib(在 Vue 2.6 项目里产生
|
|
19
|
+
* "export 'xxx' was not found in 'vue'" 报错)。
|
|
20
|
+
*
|
|
21
|
+
* 本文件的策略:在模块加载时读取 `Vue.version`,按 major.minor 选择正确的来源。
|
|
22
|
+
* 两个候选源都通过静态 import 引入,构建器可以分析;运行时只有一份会被实际使用。
|
|
17
23
|
*/
|
|
18
|
-
|
|
24
|
+
import * as CompositionApiPolyfill from '@vue/composition-api';
|
|
25
|
+
/** Vue 2.7+ 原生支持 Composition API,无需 polyfill */
|
|
26
|
+
export declare const isVue27Plus: boolean;
|
|
27
|
+
declare const _ref: typeof CompositionApiPolyfill.ref;
|
|
28
|
+
declare const _reactive: typeof CompositionApiPolyfill.reactive;
|
|
29
|
+
declare const _computed: typeof CompositionApiPolyfill.computed;
|
|
30
|
+
declare const _watch: typeof CompositionApiPolyfill.watch;
|
|
31
|
+
declare const _watchEffect: typeof CompositionApiPolyfill.watchEffect;
|
|
32
|
+
declare const _onMounted: (callback: Function, target?: CompositionApiPolyfill.ComponentInternalInstance | null | undefined) => Function | null;
|
|
33
|
+
declare const _onUnmounted: (callback: Function, target?: CompositionApiPolyfill.ComponentInternalInstance | null | undefined) => Function | null;
|
|
34
|
+
declare const _onBeforeUnmount: (callback: Function, target?: CompositionApiPolyfill.ComponentInternalInstance | null | undefined) => Function | null;
|
|
35
|
+
declare const _onBeforeMount: (callback: Function, target?: CompositionApiPolyfill.ComponentInternalInstance | null | undefined) => Function | null;
|
|
36
|
+
declare const _onUpdated: (callback: Function, target?: CompositionApiPolyfill.ComponentInternalInstance | null | undefined) => Function | null;
|
|
37
|
+
declare const _onActivated: (callback: Function, target?: CompositionApiPolyfill.ComponentInternalInstance | null | undefined) => Function | null;
|
|
38
|
+
declare const _onDeactivated: (callback: Function, target?: CompositionApiPolyfill.ComponentInternalInstance | null | undefined) => Function | null;
|
|
39
|
+
declare const _defineComponent: typeof CompositionApiPolyfill.defineComponent;
|
|
40
|
+
declare const _inject: typeof CompositionApiPolyfill.inject;
|
|
41
|
+
declare const _provide: typeof CompositionApiPolyfill.provide;
|
|
42
|
+
declare const _nextTick: Vue$1;
|
|
43
|
+
declare const _getCurrentInstance: typeof CompositionApiPolyfill.getCurrentInstance;
|
|
44
|
+
declare const _toRefs: typeof CompositionApiPolyfill.toRefs;
|
|
45
|
+
declare const _toRef: typeof CompositionApiPolyfill.toRef;
|
|
46
|
+
declare const _unref: typeof CompositionApiPolyfill.unref;
|
|
47
|
+
declare const _isRef: typeof CompositionApiPolyfill.isRef;
|
|
48
|
+
declare const _h: typeof CompositionApiPolyfill.h;
|
|
49
|
+
export { _ref as ref, _reactive as reactive, _computed as computed, _watch as watch, _watchEffect as watchEffect, _onMounted as onMounted, _onUnmounted as onUnmounted, _onBeforeUnmount as onBeforeUnmount, _onBeforeMount as onBeforeMount, _onUpdated as onUpdated, _onActivated as onActivated, _onDeactivated as onDeactivated, _defineComponent as defineComponent, _inject as inject, _provide as provide, _nextTick as nextTick, _getCurrentInstance as getCurrentInstance, _toRefs as toRefs, _toRef as toRef, _unref as unref, _isRef as isRef, _h as h, };
|
|
50
|
+
/** 暴露 polyfill plugin(default export)给 install() 在 Vue 2.6 下按需安装 */
|
|
51
|
+
export declare const VueCompositionAPIPlugin: unknown;
|
|
19
52
|
export { default as Vue } from 'vue';
|
|
20
53
|
export type { PropType, Ref, ComputedRef, WatchSource } from '@vue/composition-api';
|
|
21
54
|
/**
|
|
@@ -26,6 +59,7 @@ export type { PropType, Ref, ComputedRef, WatchSource } from '@vue/composition-a
|
|
|
26
59
|
* Use this instead of `typeof Vue` in install function signatures.
|
|
27
60
|
*/
|
|
28
61
|
export interface Vue2Constructor {
|
|
62
|
+
version?: string;
|
|
29
63
|
component(name: string, component?: any): any;
|
|
30
64
|
mixin(mixin: Record<string, any>): void;
|
|
31
65
|
use(plugin: any, ...options: any[]): any;
|
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;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAIH,OAAO,KAAK,sBAAsB,MAAM,sBAAsB,CAAA;AAQ9D,gDAAgD;AAChD,eAAO,MAAM,WAAW,EAAE,OAAmC,CAAA;AAuB7D,QAAA,MAAM,IAAI,mCAAU,CAAA;AACpB,QAAA,MAAM,SAAS,wCAAe,CAAA;AAC9B,QAAA,MAAM,SAAS,wCAAe,CAAA;AAC9B,QAAA,MAAM,MAAM,qCAAY,CAAA;AACxB,QAAA,MAAM,YAAY,2CAAkB,CAAA;AACpC,QAAA,MAAM,UAAU,uHAAgB,CAAA;AAChC,QAAA,MAAM,YAAY,uHAAkB,CAAA;AACpC,QAAA,MAAM,gBAAgB,uHAAsB,CAAA;AAC5C,QAAA,MAAM,cAAc,uHAAoB,CAAA;AACxC,QAAA,MAAM,UAAU,uHAAgB,CAAA;AAChC,QAAA,MAAM,YAAY,uHAAkB,CAAA;AACpC,QAAA,MAAM,cAAc,uHAAoB,CAAA;AACxC,QAAA,MAAM,gBAAgB,+CAAsB,CAAA;AAC5C,QAAA,MAAM,OAAO,sCAAa,CAAA;AAC1B,QAAA,MAAM,QAAQ,uCAAc,CAAA;AAC5B,QAAA,MAAM,SAAS,OAAe,CAAA;AAC9B,QAAA,MAAM,mBAAmB,kDAAyB,CAAA;AAClD,QAAA,MAAM,OAAO,sCAAa,CAAA;AAC1B,QAAA,MAAM,MAAM,qCAAY,CAAA;AACxB,QAAA,MAAM,MAAM,qCAAY,CAAA;AACxB,QAAA,MAAM,MAAM,qCAAY,CAAA;AAIxB,QAAA,MAAM,EAAE,EAAE,OAAO,sBAAsB,CAAC,CAAS,CAAA;AAEjD,OAAO,EACL,IAAI,IAAI,GAAG,EACX,SAAS,IAAI,QAAQ,EACrB,SAAS,IAAI,QAAQ,EACrB,MAAM,IAAI,KAAK,EACf,YAAY,IAAI,WAAW,EAC3B,UAAU,IAAI,SAAS,EACvB,YAAY,IAAI,WAAW,EAC3B,gBAAgB,IAAI,eAAe,EACnC,cAAc,IAAI,aAAa,EAC/B,UAAU,IAAI,SAAS,EACvB,YAAY,IAAI,WAAW,EAC3B,cAAc,IAAI,aAAa,EAC/B,gBAAgB,IAAI,eAAe,EACnC,OAAO,IAAI,MAAM,EACjB,QAAQ,IAAI,OAAO,EACnB,SAAS,IAAI,QAAQ,EACrB,mBAAmB,IAAI,kBAAkB,EACzC,OAAO,IAAI,MAAM,EACjB,MAAM,IAAI,KAAK,EACf,MAAM,IAAI,KAAK,EACf,MAAM,IAAI,KAAK,EACf,EAAE,IAAI,CAAC,GACR,CAAA;AAED,oEAAoE;AACpE,eAAO,MAAM,uBAAuB,EAAE,OAEd,CAAA;AAKxB,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,KAAK,CAAA;AAIpC,YAAY,EAAE,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEnF;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,GAAG,GAAG,GAAG,CAAA;IAC7C,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;IACvC,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,GAAG,GAAG,CAAA;IACxC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B"}
|
package/package.json
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
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
|
-
"dependencies": {
|
|
67
|
-
"@es-plus/core": "^1.0.0"
|
|
68
|
-
},
|
|
69
|
-
"devDependencies": {
|
|
70
|
-
"@types/node": "^20.0.0",
|
|
71
|
-
"@vue/composition-api": "^1.7.2",
|
|
72
|
-
"@vitejs/plugin-vue2": "^2.3.0",
|
|
73
|
-
"element-ui": "^2.15.14",
|
|
74
|
-
"sass": "^1.70.0",
|
|
75
|
-
"typescript": "^5.3.0",
|
|
76
|
-
"vite": "^5.0.0",
|
|
77
|
-
"vite-plugin-dts": "^3.7.0",
|
|
78
|
-
"vitest": "^1.2.0",
|
|
79
|
-
"vue": "^2.7.16",
|
|
80
|
-
"vue-template-compiler": "^2.7.16"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@es-plus/vue2",
|
|
3
|
+
"version": "1.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 || ^2.7.0"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@es-plus/core": "^1.0.0"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@types/node": "^20.0.0",
|
|
71
|
+
"@vue/composition-api": "^1.7.2",
|
|
72
|
+
"@vitejs/plugin-vue2": "^2.3.0",
|
|
73
|
+
"element-ui": "^2.15.14",
|
|
74
|
+
"sass": "^1.70.0",
|
|
75
|
+
"typescript": "^5.3.0",
|
|
76
|
+
"vite": "^5.0.0",
|
|
77
|
+
"vite-plugin-dts": "^3.7.0",
|
|
78
|
+
"vitest": "^1.2.0",
|
|
79
|
+
"vue": "^2.7.16",
|
|
80
|
+
"vue-template-compiler": "^2.7.16"
|
|
81
|
+
}
|
|
82
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# @es-plus/vue2
|
|
2
|
-
|
|
3
|
-
## 1.0.0 — First stable release
|
|
4
|
-
|
|
5
|
-
This release promotes @es-plus/vue2 from beta (0.9.x) to GA. The component
|
|
6
|
-
behavior has been frozen against the `es-eui` reference docs site for several
|
|
7
|
-
weeks; all components (EsForm / EsTable / EsDialog / EsCrudPage) share their
|
|
8
|
-
JSON config schema 1:1 with @es-plus/vue3, so the same `formItemList` /
|
|
9
|
-
`columns` / `options` / `CrudPageSchema` definitions work in both targets.
|
|
10
|
-
|
|
11
|
-
### Changes vs 0.9.0
|
|
12
|
-
|
|
13
|
-
- **Stable API contract**: the four core components + `useDialog` + the
|
|
14
|
-
install function are considered stable. No breaking changes will land
|
|
15
|
-
without a major bump.
|
|
16
|
-
- **Added** unit smoke tests for the install function, the legacy es-eui
|
|
17
|
-
options-shape normalizer, and the export shape — drift between
|
|
18
|
-
`package.json#version` and the runtime default-export version now fails CI.
|
|
19
|
-
- **Verified** by the end-to-end harness in the monorepo
|
|
20
|
-
(`__tests__/e2e/scripts/run-e2e.mjs`): for every CRUD generator mode
|
|
21
|
-
(schema / sfc) the produced SFC compiles cleanly in a fresh Vite + Vue 2.7
|
|
22
|
-
+ Element UI project against `@es-plus/vue2@1.0.0`.
|
|
23
|
-
|
|
24
|
-
### Limitations carried forward from 0.9.x
|
|
25
|
-
|
|
26
|
-
- `tableOptions.virtual: true` is silently ignored (Element UI has no
|
|
27
|
-
`el-table-v2` equivalent). Use server-side pagination for large datasets.
|
|
28
|
-
- `scrollToRow` instance method is a no-op on this renderer.
|
|
29
|
-
- JSX in `<script setup lang="jsx">` requires the project to set up
|
|
30
|
-
`@vue/babel-preset-jsx` — Vite + `@vitejs/plugin-vue2` handles this
|
|
31
|
-
transparently.
|
|
32
|
-
|
|
33
|
-
### Upgrading from `es-eui`
|
|
34
|
-
|
|
35
|
-
`@es-plus/vue2` is the official successor to the `es-eui` demo package. To
|
|
36
|
-
migrate:
|
|
37
|
-
|
|
38
|
-
```diff
|
|
39
|
-
-import esEui from 'es-eui'
|
|
40
|
-
-Vue.use(esEui, { EsTable: { methods: { $httpRequest: ... } } })
|
|
41
|
-
+import ESPlus from '@es-plus/vue2'
|
|
42
|
-
+Vue.use(ESPlus, { EsTable: { methods: { $httpRequest: ... } } })
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
The install function preserves the legacy `{ methods: { ... } }` nested
|
|
46
|
-
options shape, so no JS changes are required beyond the import.
|