Fixed vnTable trying to apply filter an it's not defined.
This commit is contained in:
parent
15de049317
commit
64eef322e9
|
@ -25,7 +25,7 @@ export default class Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
$onChanges() {
|
$onChanges() {
|
||||||
if (this.model)
|
if (this.model && this.model.filter)
|
||||||
this.applyFilter();
|
this.applyFilter();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ vn-table {
|
||||||
display: table-header-group;
|
display: table-header-group;
|
||||||
|
|
||||||
vn-th[field] {
|
vn-th[field] {
|
||||||
|
position: relative;
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,6 +85,10 @@ vn-table {
|
||||||
&[number]{
|
&[number]{
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vn-icon.bright, i.bright {
|
||||||
|
color: #f7931e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue