@es-plus/vue2 1.0.2 → 1.0.4

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 (29) hide show
  1. package/dist/components/es-crud-page/es-crud-page.vue.d.ts +66 -24
  2. package/dist/components/es-crud-page/es-crud-page.vue.d.ts.map +1 -1
  3. package/dist/components/es-dialog/component.vue.d.ts +143 -44
  4. package/dist/components/es-dialog/component.vue.d.ts.map +1 -1
  5. package/dist/components/es-dialog/render-jsx.vue.d.ts +19 -5
  6. package/dist/components/es-dialog/render-jsx.vue.d.ts.map +1 -1
  7. package/dist/components/es-form/es-form.vue.d.ts +156 -60
  8. package/dist/components/es-form/es-form.vue.d.ts.map +1 -1
  9. package/dist/components/es-table/column-item.vue.d.ts +11 -5
  10. package/dist/components/es-table/column-item.vue.d.ts.map +1 -1
  11. package/dist/components/es-table/component.vue.d.ts +214 -93
  12. package/dist/components/es-table/component.vue.d.ts.map +1 -1
  13. package/dist/components/es-table/table-btns.vue.d.ts +44 -20
  14. package/dist/components/es-table/table-btns.vue.d.ts.map +1 -1
  15. package/dist/composables/use-form-layout.d.ts +9 -9
  16. package/dist/composables/use-table-resize.d.ts +1 -1
  17. package/dist/composables/use-table-resize.d.ts.map +1 -1
  18. package/dist/composables/use-table-selection.d.ts +9 -3
  19. package/dist/composables/use-table-selection.d.ts.map +1 -1
  20. package/dist/es-plus-vue2.js +877 -853
  21. package/dist/es-plus-vue2.js.map +1 -1
  22. package/dist/es-plus-vue2.umd.cjs +1 -1
  23. package/dist/es-plus-vue2.umd.cjs.map +1 -1
  24. package/dist/index.d.ts +3 -3
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/style.css +1 -1
  27. package/dist/vue-compat.d.ts +28 -10
  28. package/dist/vue-compat.d.ts.map +1 -1
  29. package/package.json +82 -87
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { configureEsPlus } from '@es-plus/core';
2
- import { Vue as VueType } from './vue-compat';
2
+ import { Vue2Constructor } from './vue-compat';
3
3
  import { default as EsForm } from './components/es-form';
4
4
  import { default as EsTable } from './components/es-table';
5
5
  import { default as EsDialog, useDialog } from './components/es-dialog';
@@ -11,13 +11,13 @@ interface InstallOptions extends Record<string, unknown> {
11
11
  /** 是否跳过 Vue.prototype 上的全局属性注入(默认 true 注入) */
12
12
  globalProperties?: boolean;
13
13
  }
14
- declare const install: (Vue: typeof VueType, options?: InstallOptions) => void;
14
+ declare const install: (Vue: Vue2Constructor, options?: InstallOptions) => void;
15
15
  export { EsForm, EsTable, EsDialog, EsCrudPage, useDialog, configureEsPlus, install, };
16
16
  export type { CrudPageSchema, CrudAction, CrudBtnConfig, TableBtnConfig, OperationColumnConfig, RowBtnConfig, RowBtnContext, CrudDialogConfig, DialogRenderContext, DialogBtnConfig, DialogActionContext, } from './components/es-crud-page';
17
17
  export type { ModelData, RenderFn, AnyVNode, EsButtonType, EsButtonSize, EsTableSize, ApiParams, FormType, FormItemOption, BtnConfig, LayoutFormProps, TableColumn, ConfigTableOut, TableOptions, PaginationConfig, DialogOptions, EsFormInstance, EsTableInstance, EsPlusOptions, } from './types';
18
18
  declare const _default: {
19
19
  version: string;
20
- install: (Vue: typeof VueType, options?: InstallOptions) => void;
20
+ install: (Vue: Vue2Constructor, options?: InstallOptions) => void;
21
21
  };
22
22
  export default _default;
23
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,cAAc,CAAA;AAElD,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,OAAO,OAAO,EAAE,UAAS,cAAmB,SAqCjE,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;;;mBArFM,OAAO,OAAO,YAAW,cAAc;;AA0F7D,wBAGC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEnD,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,SAqClE,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;;;mBArFM,eAAe,YAAW,cAAc;;AA0F9D,wBAGC"}
package/dist/style.css CHANGED
@@ -1 +1 @@
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%}
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-112d9efc],.el-dp_tables[data-v-112d9efc] .el-table__body-wrapper{height:auto}.table_component[data-v-112d9efc]{width:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;overflow:hidden}.table_containers[data-v-112d9efc]{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-112d9efc]{width:100%;display:flex;justify-content:center;align-items:center}.btn-slot[data-v-112d9efc]{width:100%}.btn-slot .headerBar[data-v-112d9efc]{box-sizing:border-box;background-color:#fff;border-radius:6px}.btn-slot .headerBar[data-v-112d9efc] .el-form-item--small .el-form-item__label{box-sizing:border-box}.tableContainer[data-v-112d9efc]{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-112d9efc]{width:100%}.tableContainer[data-v-112d9efc] .el-table__empty-block{width:100%!important;margin:32px 0;font-size:14px;line-height:1.5715}.tableContainer[data-v-112d9efc] .el-table__empty-block .el-table__empty-text{width:auto!important}.tableContainer[data-v-112d9efc] .el-table__empty-block .ant-empty-image{height:40px;margin-bottom:8px}.tableContainer[data-v-112d9efc] .el-table__empty-block .ant-empty-image .ant-empty-img-simple-ellipse{fill:#f5f5f5}.tableContainer[data-v-112d9efc] .el-table__empty-block .ant-empty-image .ant-empty-img-simple-g{stroke:#d9d9d9}.tableContainer[data-v-112d9efc] .el-table__empty-block .ant-empty-image .ant-empty-img-simple-path{fill:#fafafa}.tableContainer[data-v-112d9efc] .el-table__empty-block .ant-empty-description{line-height:1.5715;color:#00000040}.tableContainer[data-v-112d9efc] .el-tag{height:20px;padding:0 7px;line-height:20px;background:#fafafa;border:none;border-radius:4px}.tableContainer[data-v-112d9efc] .el-tag.el-tag--info{color:#000000d9}.tableContainer[data-v-112d9efc] .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%}
@@ -1,16 +1,34 @@
1
1
  /**
2
- * Vue 2 兼容层 —— 通过 vue-demi 自动适配
2
+ * Vue 2 兼容层 —— 直接从 @vue/composition-api 导入
3
3
  *
4
- * vue-demi 在运行时自动判断环境:
5
- * - Vue 2.7+:从 vue 导出 Composition API(原生支持)
6
- * - Vue 2.6 + @vue/composition-api:从 @vue/composition-api 导出
7
- * - Vue 3:从 vue 导出
4
+ * @vue/composition-api 在不同环境下的行为:
5
+ * - Vue 2.7+:@vue/composition-api@1.7+ 的 postinstall 会自动 redirect 到 vue 原生 Composition API
6
+ * - Vue 2.6:提供完整的 Composition API polyfill
8
7
  *
9
- * 用户无需配置 webpack resolve.alias,开箱即用。
10
- * Vue 2.6 用户只需:
8
+ * 用户只需:
11
9
  * 1. npm install @vue/composition-api
12
- * 2. main.js 中 Vue.use(VueCompositionAPI)
10
+ * 2. main.js 中 Vue.use(VueCompositionAPI)(Vue 2.6 必须,Vue 2.7 可选)
11
+ *
12
+ * 不使用 vue-demi 的原因:
13
+ * vue-demi 在嵌套 node_modules 安装时(monorepo / npm workspace),其 postinstall
14
+ * 会解析到 @es-plus/vue2 的 devDependency vue@2.7 而非用户项目的 vue@2.6,
15
+ * 导致生成了错误的 lib 版本(尝试从 vue 导入 getCurrentInstance),
16
+ * 在 Vue 2.6 环境下产生 "export 'xxx' was not found in 'vue'" 错误。
17
+ */
18
+ export { ref, reactive, computed, watch, watchEffect, onMounted, onUnmounted, onBeforeUnmount, onBeforeMount, onUpdated, onActivated, onDeactivated, defineComponent, inject, provide, nextTick, getCurrentInstance, toRefs, toRef, unref, isRef, h, } from '@vue/composition-api';
19
+ export { default as Vue } from 'vue';
20
+ export type { PropType, Ref, ComputedRef, WatchSource } from '@vue/composition-api';
21
+ /**
22
+ * Vue 2 constructor type that includes static methods
23
+ * (component, mixin, use, prototype) which @vue/composition-api's
24
+ * type definitions omit.
25
+ *
26
+ * Use this instead of `typeof Vue` in install function signatures.
13
27
  */
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';
28
+ export interface Vue2Constructor {
29
+ component(name: string, component?: any): any;
30
+ mixin(mixin: Record<string, any>): void;
31
+ use(plugin: any, ...options: any[]): any;
32
+ prototype: Record<string, any>;
33
+ }
16
34
  //# sourceMappingURL=vue-compat.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"vue-compat.d.ts","sourceRoot":"","sources":["../src/vue-compat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,EACL,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,sBAAsB,CAAA;AAK7B,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,KAAK,CAAA;AAEpC,YAAY,EAAE,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEnF;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,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,87 +1,82 @@
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
- }
1
+ {
2
+ "name": "@es-plus/vue2",
3
+ "version": "1.0.4",
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
+ }