@tarojs/runtime 3.6.17 → 3.6.19-nightly.2023112217
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/runtime.esm.js +2 -1
- package/dist/runtime.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/runtime.esm.js
CHANGED
|
@@ -419,6 +419,7 @@ function hydrate(node) {
|
|
|
419
419
|
const nodeName = node.nodeName;
|
|
420
420
|
if (isText(node)) {
|
|
421
421
|
return {
|
|
422
|
+
sid: node.sid,
|
|
422
423
|
["v" /* Shortcuts.Text */]: node.nodeValue,
|
|
423
424
|
["nn" /* Shortcuts.NodeName */]: ((_a = componentsAlias[nodeName]) === null || _a === void 0 ? void 0 : _a._num) || '8'
|
|
424
425
|
};
|
|
@@ -1043,7 +1044,7 @@ function setStyle(newVal, styleKey) {
|
|
|
1043
1044
|
if (old === newVal)
|
|
1044
1045
|
return;
|
|
1045
1046
|
!this._pending && recordCss(this);
|
|
1046
|
-
if (isNull(newVal) || isUndefined(newVal)) {
|
|
1047
|
+
if (isNull(newVal) || isUndefined(newVal) || newVal === '') {
|
|
1047
1048
|
this._usedStyleProp.delete(styleKey);
|
|
1048
1049
|
delete this._value[styleKey];
|
|
1049
1050
|
}
|