Przeglądaj źródła

Table: set the component default to visible

master
Bing Sun 5 lat temu
rodzic
commit
61b39617d3
Podpisane przez: sunb ID klucza GPG: F7795F8C590626AB
1 zmienionych plików z 3 dodań i 0 usunięć
  1. +3
    -0
      src/components/Table.js

+ 3
- 0
src/components/Table.js Wyświetl plik

@@ -78,6 +78,9 @@ export default initial_vnode => {
// refresh paginations
generate_pages()

// normalize vm
if (typeof vnode.attrs.show == 'undefined') vnode.attrs.show = true

// initialize data
if (model.ambient_changed() && vnode.attrs.show) {
offset = 0


Ładowanie…
Anuluj
Zapisz