Table: fix js pending in ssr (#9876)

pull/9904/head
杨奕 2018-02-24 13:13:05 +08:00 committed by GitHub
parent aec890aa8a
commit 6dbbee35e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,7 @@
:style="navStyle">
<ul>
<li class="nav-item sponsors">
<a>Sponsors</a>
<a>{{ lang === 'zh-CN' ? '赞助商' : 'Sponsors' }}</a>
<ul class="pure-menu-list sub-nav">
<li class="nav-item" v-show="lang !== 'zh-CN'">
<a href="https://tipe.io/?ref=element" target="_blank">

View File

@ -50,6 +50,7 @@ class TableLayout {
}
setHeight(value, prop = 'height') {
if (Vue.prototype.$isServer) return;
const el = this.table.$el;
if (typeof value === 'string' && /^\d+$/.test(value)) {
value = Number(value);