mirror of https://github.com/ElemeFE/element
Table: fix js pending in ssr (#9876)
parent
aec890aa8a
commit
6dbbee35e6
|
@ -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">
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue