Browse Source

Table: set the component default to visible

master
Bing Sun 5 years ago
parent
commit
61b39617d3
Signed by: sunb GPG Key ID: F7795F8C590626AB
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/components/Table.js

+ 3
- 0
src/components/Table.js View File

@@ -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


Loading…
Cancel
Save