@tarojs/runtime 3.7.0-alpha.20 → 3.7.0-alpha.23

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.
@@ -442,7 +442,9 @@ function hydrate(node) {
442
442
  }
443
443
  var nodeName = node.nodeName;
444
444
  if (isText(node)) {
445
- return ( obj = {}, obj["v" /* Shortcuts.Text */] = node.nodeValue, obj["nn" /* Shortcuts.NodeName */] = ((_a = componentsAlias[nodeName]) === null || _a === void 0 ? void 0 : _a._num) || '8', obj );
445
+ return ( obj = {
446
+ sid: node.sid
447
+ }, obj["v" /* Shortcuts.Text */] = node.nodeValue, obj["nn" /* Shortcuts.NodeName */] = ((_a = componentsAlias[nodeName]) === null || _a === void 0 ? void 0 : _a._num) || '8', obj );
446
448
  }
447
449
  var data = {};
448
450
  data["nn" /* Shortcuts.NodeName */] = nodeName;
@@ -1050,7 +1052,7 @@ function setStyle(newVal, styleKey) {
1050
1052
  if (old === newVal)
1051
1053
  { return; }
1052
1054
  !this._pending && recordCss(this);
1053
- if (shared.isNull(newVal) || shared.isUndefined(newVal)) {
1055
+ if (shared.isNull(newVal) || shared.isUndefined(newVal) || newVal === '') {
1054
1056
  this._usedStyleProp.delete(styleKey);
1055
1057
  delete this._value[styleKey];
1056
1058
  }
@@ -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
  }