Commit 6dbbee35 authored by 杨奕's avatar 杨奕 Committed by GitHub

Table: fix js pending in ssr (#9876)

parent aec890aa
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
:style="navStyle"> :style="navStyle">
<ul> <ul>
<li class="nav-item sponsors"> <li class="nav-item sponsors">
<a>Sponsors</a> <a>{{ lang === 'zh-CN' ? '赞助商' : 'Sponsors' }}</a>
<ul class="pure-menu-list sub-nav"> <ul class="pure-menu-list sub-nav">
<li class="nav-item" v-show="lang !== 'zh-CN'"> <li class="nav-item" v-show="lang !== 'zh-CN'">
<a href="https://tipe.io/?ref=element" target="_blank"> <a href="https://tipe.io/?ref=element" target="_blank">
......
...@@ -50,6 +50,7 @@ class TableLayout { ...@@ -50,6 +50,7 @@ class TableLayout {
} }
setHeight(value, prop = 'height') { setHeight(value, prop = 'height') {
if (Vue.prototype.$isServer) return;
const el = this.table.$el; const el = this.table.$el;
if (typeof value === 'string' && /^\d+$/.test(value)) { if (typeof value === 'string' && /^\d+$/.test(value)) {
value = Number(value); value = Number(value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment