@es-plus/vue2 1.1.0 → 1.1.1
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 -3
- package/dist/es-plus-vue2.js +2704 -1284
- package/dist/es-plus-vue2.js.map +1 -1
- package/dist/es-plus-vue2.umd.cjs +3 -1
- package/dist/es-plus-vue2.umd.cjs.map +1 -1
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -25,10 +25,14 @@
|
|
|
25
25
|
## Install
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
# Vue 2.7+
|
|
28
|
+
# Vue 2.7+ — only vue and element-ui needed.
|
|
29
|
+
# Since 1.1.1, @vue/composition-api is inlined into the dist, so it does NOT
|
|
30
|
+
# need to be in your dependencies. The polyfill code is shipped but never
|
|
31
|
+
# executed on Vue 2.7+ (the runtime selects Vue's native Composition API).
|
|
29
32
|
npm install @es-plus/vue2 element-ui vue@^2.7
|
|
30
33
|
|
|
31
|
-
# Vue 2.6.x
|
|
34
|
+
# Vue 2.6.x — install @vue/composition-api alongside; EsPlus.install()
|
|
35
|
+
# will call Vue.use(VueCompositionAPI) automatically.
|
|
32
36
|
npm install @es-plus/vue2 element-ui @vue/composition-api vue@^2.6
|
|
33
37
|
```
|
|
34
38
|
|
|
@@ -38,8 +42,10 @@ npm install @es-plus/vue2 element-ui @vue/composition-api vue@^2.6
|
|
|
38
42
|
// Since 1.1.0, @es-plus/vue2 auto-detects the host Vue version at runtime
|
|
39
43
|
// and wires the Composition API source for you — do NOT add
|
|
40
44
|
// `Vue.use(VueCompositionAPI)` in main.js:
|
|
41
|
-
// - Vue 2.7+: uses Vue's native Composition API
|
|
45
|
+
// - Vue 2.7+: uses Vue's native Composition API; polyfill is inlined into
|
|
46
|
+
// the dist (since 1.1.1) and remains as dead code at runtime.
|
|
42
47
|
// - Vue 2.6 : EsPlus.install() calls Vue.use(VueCompositionAPI) for you
|
|
48
|
+
// (using the inlined polyfill instance).
|
|
43
49
|
// (On Vue 2.7, if both natives setup and the polyfill plugin are active,
|
|
44
50
|
// setup() runs twice — the install() function logs a warning and you
|
|
45
51
|
// should remove your manual Vue.use(VueCompositionAPI).)
|