@thinkpixellab-public/px-vue 3.0.8 → 3.0.9
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/components/PxPortal.vue +2 -2
- package/package.json +1 -1
package/components/PxPortal.vue
CHANGED
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
disabled: {
|
|
28
28
|
immediate: true,
|
|
29
29
|
handler(disabled) {
|
|
30
|
-
if (
|
|
30
|
+
if (isBrowser) {
|
|
31
31
|
if (disabled) {
|
|
32
32
|
this.unmount();
|
|
33
33
|
} else {
|
|
@@ -126,12 +126,12 @@ export default {
|
|
|
126
126
|
},
|
|
127
127
|
},
|
|
128
128
|
render(h) {
|
|
129
|
-
if (!isBrowser) return;
|
|
130
129
|
if (this.disabled) {
|
|
131
130
|
const nodes = this.$scopedSlots && this.$scopedSlots.default();
|
|
132
131
|
if (!nodes) return h();
|
|
133
132
|
return nodes.length < 2 && !nodes[0].text ? nodes : h(this.tag, nodes);
|
|
134
133
|
}
|
|
134
|
+
if (!isBrowser) return;
|
|
135
135
|
return h();
|
|
136
136
|
},
|
|
137
137
|
};
|