@textbus/adapter-vue 4.0.0-alpha.30 → 4.0.0-alpha.31
Sign up to get free protection for your applications and to get access to all the features.
- package/bundles/index.esm.js +4 -1
- package/bundles/index.js +3 -0
- package/package.json +4 -4
package/bundles/index.esm.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { getCurrentInstance, onMounted, onUpdated, onUnmounted, ref, h } from 'vue';
|
2
2
|
import { Subject } from '@tanbo/stream';
|
3
|
-
import { makeError, VElement, VTextNode, replaceEmpty } from '@textbus/core';
|
3
|
+
import { makeError, VElement, VTextNode, replaceEmpty, invokeListener } from '@textbus/core';
|
4
4
|
import { DomAdapter } from '@textbus/platform-browser';
|
5
5
|
|
6
6
|
const adapterError = makeError('VueAdapter');
|
@@ -83,6 +83,9 @@ class Adapter extends DomAdapter {
|
|
83
83
|
}
|
84
84
|
else {
|
85
85
|
children.push(this.componentRender(child));
|
86
|
+
if (!this.firstRending) {
|
87
|
+
invokeListener(child, 'onParentSlotUpdated');
|
88
|
+
}
|
86
89
|
}
|
87
90
|
}
|
88
91
|
const props = Object.assign({}, (Array.from(vNode.attrs).reduce((a, b) => {
|
package/bundles/index.js
CHANGED
@@ -85,6 +85,9 @@ class Adapter extends platformBrowser.DomAdapter {
|
|
85
85
|
}
|
86
86
|
else {
|
87
87
|
children.push(this.componentRender(child));
|
88
|
+
if (!this.firstRending) {
|
89
|
+
core.invokeListener(child, 'onParentSlotUpdated');
|
90
|
+
}
|
88
91
|
}
|
89
92
|
}
|
90
93
|
const props = Object.assign({}, (Array.from(vNode.attrs).reduce((a, b) => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/adapter-vue",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.31",
|
4
4
|
"description": "Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.",
|
5
5
|
"main": "./bundles/index.js",
|
6
6
|
"module": "./bundles/index.esm.js",
|
@@ -26,8 +26,8 @@
|
|
26
26
|
],
|
27
27
|
"dependencies": {
|
28
28
|
"@tanbo/stream": "^1.2.3",
|
29
|
-
"@textbus/core": "^4.0.0-alpha.
|
30
|
-
"@textbus/platform-browser": "^4.0.0-alpha.
|
29
|
+
"@textbus/core": "^4.0.0-alpha.31",
|
30
|
+
"@textbus/platform-browser": "^4.0.0-alpha.31",
|
31
31
|
"vue": "^3.3.4"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"bugs": {
|
49
49
|
"url": "https://github.com/textbus/textbus.git/issues"
|
50
50
|
},
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "54c13967d549e9c3795eb821d84ce3e811139630"
|
52
52
|
}
|