@es-plus/vue2 1.0.1 → 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/dist/es-plus-vue2.js +5 -5
- 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/vue-compat.d.ts +11 -13
- package/dist/vue-compat.d.ts.map +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
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.
|
package/dist/es-plus-vue2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getNestedValue as G, setNestedValue as J, resolveFormLayProps as Ce, getRowColsAlgorithm as lt, configFormField as it, formatConfigOut as ct, getEveryFormQueryField as ut, queryTableListMethod as dt, getGlobalConfig as pe, getButtonPosition as Ze, createSelectionState as ft, restoreSelectionForPage as pt, clearAllSelection as mt, applySelectionChange as gt, isObject as fe, getCallback as yt, findValueByKey as ht, configureEsPlus as vt } from "@es-plus/core";
|
|
2
2
|
import { configureEsPlus as kn } from "@es-plus/core";
|
|
3
|
-
import
|
|
3
|
+
import { ref as z, computed as B, watch as ce, defineComponent as se, getCurrentInstance as Ee, inject as ae, nextTick as Fe, h as le, onMounted as De, onBeforeUnmount as bt, provide as tt, reactive as $e, onUpdated as _t, Vue2 as Ct } from "vue-demi";
|
|
4
4
|
import { MessageBox as Ge } from "element-ui";
|
|
5
5
|
function _e(n) {
|
|
6
6
|
if (Array.isArray(n)) return n;
|
|
@@ -919,7 +919,7 @@ function Kt(n, e, o, t, a) {
|
|
|
919
919
|
}, r = () => {
|
|
920
920
|
c.value && (c.value.disconnect(), c.value = null);
|
|
921
921
|
};
|
|
922
|
-
return De(() => g()),
|
|
922
|
+
return De(() => g()), bt(() => r()), { tableHeight: l, resizeObservers: d, startObserver: g, stopObserver: r };
|
|
923
923
|
}
|
|
924
924
|
function Wt(n) {
|
|
925
925
|
const e = ft(), o = z([]), t = z({}), a = z(!1), l = () => {
|
|
@@ -1464,7 +1464,7 @@ const en = se({
|
|
|
1464
1464
|
const a = o.componentInstance;
|
|
1465
1465
|
a && (e.currentRef = a);
|
|
1466
1466
|
}
|
|
1467
|
-
return De(() => t()),
|
|
1467
|
+
return De(() => t()), _t(() => t()), () => {
|
|
1468
1468
|
const { instance: a } = n, l = {
|
|
1469
1469
|
...a,
|
|
1470
1470
|
registerRef: (k, d) => {
|
|
@@ -1646,7 +1646,7 @@ const Be = cn.exports, un = (n) => typeof n == "string" ? document.querySelector
|
|
|
1646
1646
|
o[t] = a;
|
|
1647
1647
|
}), { propsData: o, events: e };
|
|
1648
1648
|
}, et = (n, e, o) => {
|
|
1649
|
-
const { propsData: t, events: a } = dn(e), l =
|
|
1649
|
+
const { propsData: t, events: a } = dn(e), l = Ct.extend(n), c = new l({ propsData: t });
|
|
1650
1650
|
return Object.entries(a).forEach(([k, d]) => {
|
|
1651
1651
|
c.$on(k, d);
|
|
1652
1652
|
}), c.$mount(), un(o).appendChild(c.$el), c;
|
|
@@ -2085,7 +2085,7 @@ const yn = [ye, Se, Be, He], hn = (n) => {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
});
|
|
2087
2087
|
}, Sn = {
|
|
2088
|
-
version: "1.0.
|
|
2088
|
+
version: "1.0.2",
|
|
2089
2089
|
install: vn
|
|
2090
2090
|
};
|
|
2091
2091
|
export {
|