phecda-vue 2.0.1 → 2.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/dist/index.d.ts +2 -1
- package/dist/index.js +6 -0
- package/dist/index.mjs +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ interface PhecdaEmitter {
|
|
|
19
19
|
declare const emitter: PhecdaEmitter;
|
|
20
20
|
|
|
21
21
|
declare const phecdaSymbol: unique symbol;
|
|
22
|
+
declare const interval: any;
|
|
22
23
|
declare function createPhecda(symbol?: string): vue.Raw<{
|
|
23
24
|
install(app: App): void;
|
|
24
25
|
}>;
|
|
@@ -135,4 +136,4 @@ declare class PV {
|
|
|
135
136
|
off<Key extends keyof Events>(type: Key, handler?: (arg: Events[Key]) => void): void;
|
|
136
137
|
}
|
|
137
138
|
|
|
138
|
-
export { GetDevUIRules, PV, PhecdaEmitter, RE, ReplaceInstanceValues, SchemaToObj, createFilter, createForm, createFormData, createLayer, createModal, createPhecda, createPipe, createTable, emitter, getActivePhecda, getAntDRules, getArcoRules, getElementPlusRules, getNaiveUIRules, getNutUIRules, getReactiveMap, getVantRules, initialize, phecdaSymbol, setActivePhecda, useEvent, useO, usePatch, useR, useRaw, useV };
|
|
139
|
+
export { GetDevUIRules, PV, PhecdaEmitter, RE, ReplaceInstanceValues, SchemaToObj, createFilter, createForm, createFormData, createLayer, createModal, createPhecda, createPipe, createTable, emitter, getActivePhecda, getAntDRules, getArcoRules, getElementPlusRules, getNaiveUIRules, getNutUIRules, getReactiveMap, getVantRules, initialize, interval, phecdaSymbol, setActivePhecda, useEvent, useO, usePatch, useR, useRaw, useV };
|
package/dist/index.js
CHANGED
|
@@ -49,6 +49,7 @@ __export(src_exports, {
|
|
|
49
49
|
getReactiveMap: () => getReactiveMap,
|
|
50
50
|
getVantRules: () => getVantRules,
|
|
51
51
|
initialize: () => initialize,
|
|
52
|
+
interval: () => interval,
|
|
52
53
|
phecdaSymbol: () => phecdaSymbol,
|
|
53
54
|
setActivePhecda: () => setActivePhecda,
|
|
54
55
|
useEvent: () => useEvent,
|
|
@@ -68,9 +69,11 @@ var emitter = (0, import_mitt.default)();
|
|
|
68
69
|
var import_vue = require("vue");
|
|
69
70
|
var import_phecda_core = require("phecda-core");
|
|
70
71
|
var phecdaSymbol = Symbol("phecda");
|
|
72
|
+
var interval = {};
|
|
71
73
|
function createPhecda(symbol) {
|
|
72
74
|
const phecda = (0, import_vue.markRaw)({
|
|
73
75
|
install(app) {
|
|
76
|
+
interval.app = app;
|
|
74
77
|
app.provide(phecdaSymbol, phecda);
|
|
75
78
|
app.config.globalProperties.$phecda = phecda;
|
|
76
79
|
if (!window.__PHECDA_VUE__)
|
|
@@ -728,6 +731,7 @@ var createLayer = /* @__PURE__ */ __name(function(modalWrapper, content_props =
|
|
|
728
731
|
if (!isMounted) {
|
|
729
732
|
const el = document.createElement("div");
|
|
730
733
|
const vnode = (0, import_vue7.h)(wrapper);
|
|
734
|
+
vnode.appContext = interval.app?._context;
|
|
731
735
|
document.body.appendChild(((0, import_vue7.render)(vnode, el), el));
|
|
732
736
|
isMounted = true;
|
|
733
737
|
} else {
|
|
@@ -846,6 +850,7 @@ var createModal = /* @__PURE__ */ __name(function(wrapComp, comp, opts = {}) {
|
|
|
846
850
|
if (!isMounted) {
|
|
847
851
|
const el = document.createElement("div");
|
|
848
852
|
const vnode = (0, import_vue10.h)(wrapper);
|
|
853
|
+
vnode.appContext = interval.app?._context;
|
|
849
854
|
document.body.appendChild(((0, import_vue10.render)(vnode, el), el));
|
|
850
855
|
isMounted = true;
|
|
851
856
|
} else {
|
|
@@ -895,6 +900,7 @@ __name(PV, "PV");
|
|
|
895
900
|
getReactiveMap,
|
|
896
901
|
getVantRules,
|
|
897
902
|
initialize,
|
|
903
|
+
interval,
|
|
898
904
|
phecdaSymbol,
|
|
899
905
|
setActivePhecda,
|
|
900
906
|
useEvent,
|
package/dist/index.mjs
CHANGED
|
@@ -9,9 +9,11 @@ var emitter = mitt();
|
|
|
9
9
|
import { markRaw } from "vue";
|
|
10
10
|
import { getProperty, getTag, injectProperty } from "phecda-core";
|
|
11
11
|
var phecdaSymbol = Symbol("phecda");
|
|
12
|
+
var interval = {};
|
|
12
13
|
function createPhecda(symbol) {
|
|
13
14
|
const phecda = markRaw({
|
|
14
15
|
install(app) {
|
|
16
|
+
interval.app = app;
|
|
15
17
|
app.provide(phecdaSymbol, phecda);
|
|
16
18
|
app.config.globalProperties.$phecda = phecda;
|
|
17
19
|
if (!window.__PHECDA_VUE__)
|
|
@@ -669,6 +671,7 @@ var createLayer = /* @__PURE__ */ __name(function(modalWrapper, content_props =
|
|
|
669
671
|
if (!isMounted) {
|
|
670
672
|
const el = document.createElement("div");
|
|
671
673
|
const vnode = h2(wrapper);
|
|
674
|
+
vnode.appContext = interval.app?._context;
|
|
672
675
|
document.body.appendChild((render(vnode, el), el));
|
|
673
676
|
isMounted = true;
|
|
674
677
|
} else {
|
|
@@ -787,6 +790,7 @@ var createModal = /* @__PURE__ */ __name(function(wrapComp, comp, opts = {}) {
|
|
|
787
790
|
if (!isMounted) {
|
|
788
791
|
const el = document.createElement("div");
|
|
789
792
|
const vnode = h5(wrapper);
|
|
793
|
+
vnode.appContext = interval.app?._context;
|
|
790
794
|
document.body.appendChild((render2(vnode, el), el));
|
|
791
795
|
isMounted = true;
|
|
792
796
|
} else {
|
|
@@ -835,6 +839,7 @@ export {
|
|
|
835
839
|
getReactiveMap,
|
|
836
840
|
getVantRules,
|
|
837
841
|
initialize,
|
|
842
|
+
interval,
|
|
838
843
|
phecdaSymbol,
|
|
839
844
|
setActivePhecda,
|
|
840
845
|
useEvent,
|