@viewfly/core 1.0.0-alpha.21 → 1.0.0-alpha.22
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/bundles/index.esm.js +4 -1
- package/bundles/index.js +4 -1
- package/package.json +2 -2
package/bundles/index.esm.js
CHANGED
|
@@ -1780,7 +1780,10 @@ function updateElementChildren(newAtom, oldAtom, nativeRenderer, parentComponent
|
|
|
1780
1780
|
*/
|
|
1781
1781
|
newAtom.child = createChildChain(newAtom.jsxNode.props.children, isSvg);
|
|
1782
1782
|
if (!newAtom.child) {
|
|
1783
|
-
|
|
1783
|
+
// 防止删除用户手动添加的元素
|
|
1784
|
+
if (oldAtom.child) {
|
|
1785
|
+
cleanElementChildren(oldAtom, nativeRenderer);
|
|
1786
|
+
}
|
|
1784
1787
|
}
|
|
1785
1788
|
else {
|
|
1786
1789
|
diff(nativeRenderer, parentComponent, newAtom.child, oldAtom.child, {
|
package/bundles/index.js
CHANGED
|
@@ -1782,7 +1782,10 @@ function updateElementChildren(newAtom, oldAtom, nativeRenderer, parentComponent
|
|
|
1782
1782
|
*/
|
|
1783
1783
|
newAtom.child = createChildChain(newAtom.jsxNode.props.children, isSvg);
|
|
1784
1784
|
if (!newAtom.child) {
|
|
1785
|
-
|
|
1785
|
+
// 防止删除用户手动添加的元素
|
|
1786
|
+
if (oldAtom.child) {
|
|
1787
|
+
cleanElementChildren(oldAtom, nativeRenderer);
|
|
1788
|
+
}
|
|
1786
1789
|
}
|
|
1787
1790
|
else {
|
|
1788
1791
|
diff(nativeRenderer, parentComponent, newAtom.child, oldAtom.child, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viewfly/core",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.22",
|
|
4
4
|
"description": "Viewfly is a simple and easy-to-use JavaScript framework with an intuitive development experience.",
|
|
5
5
|
"main": "./bundles/index.js",
|
|
6
6
|
"module": "./bundles/index.esm.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"bugs": {
|
|
51
51
|
"url": "https://github.com/viewfly/viewfly.git/issues"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "b66ca589f7662cd518fc2e5955b3e3ff9de83f94",
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"reflect-metadata": "^0.2.2"
|
|
56
56
|
}
|