Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Jun 13, 2019
1 parent 92a54c9 commit 2e3f4cf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=Cache-Control content="no-cache, no-store, must-revalidate"><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><link rel=icon href=/vxe-table/favicon.ico><title>vxe-table 表格</title><link href=/vxe-table/static/css/chunk-vendors.73f3d338.css rel=preload as=style><link href=/vxe-table/static/css/index.b3635b72.css rel=preload as=style><link href=/vxe-table/static/js/chunk-vendors.9d232144.js rel=preload as=script><link href=/vxe-table/static/js/index.a54a3613.js rel=preload as=script><link href=/vxe-table/static/css/chunk-vendors.73f3d338.css rel=stylesheet><link href=/vxe-table/static/css/index.b3635b72.css rel=stylesheet></head><body><noscript><strong>We're sorry but vxe-table doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vxe-table/static/js/chunk-vendors.9d232144.js></script><script src=/vxe-table/static/js/index.a54a3613.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=Cache-Control content="no-cache, no-store, must-revalidate"><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><link rel=icon href=/vxe-table/favicon.ico><title>vxe-table 表格</title><link href=/vxe-table/static/css/chunk-vendors.73f3d338.css rel=preload as=style><link href=/vxe-table/static/css/index.b3635b72.css rel=preload as=style><link href=/vxe-table/static/js/chunk-vendors.9d232144.js rel=preload as=script><link href=/vxe-table/static/js/index.0fda006b.js rel=preload as=script><link href=/vxe-table/static/css/chunk-vendors.73f3d338.css rel=stylesheet><link href=/vxe-table/static/css/index.b3635b72.css rel=stylesheet></head><body><noscript><strong>We're sorry but vxe-table doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vxe-table/static/js/chunk-vendors.9d232144.js></script><script src=/vxe-table/static/js/index.0fda006b.js></script></body></html>

Large diffs are not rendered by default.

16 changes: 14 additions & 2 deletions examples/views/table/tree/Selection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

<vxe-table
:tree-config="{key: 'id', children: 'children'}"
:data.sync="tableData">
:data.sync="tableData"
@select-change="selectChangeEvent">
<vxe-table-column type="selection" prop="checked" width="120" tree-node></vxe-table-column>
<vxe-table-column prop="name" label="Name"></vxe-table-column>
<vxe-table-column prop="size" label="Size"></vxe-table-column>
Expand Down Expand Up @@ -32,7 +33,8 @@ export default {
`
<vxe-table
:tree-config="{key: 'id', children: 'children'}"
:data.sync="tableData">
:data.sync="tableData"
@select-change="selectChangeEvent">
<vxe-table-column type="selection" tree-node></vxe-table-column>
<vxe-table-column prop="name" label="Name"></vxe-table-column>
<vxe-table-column prop="size" label="Size"></vxe-table-column>
Expand All @@ -49,6 +51,11 @@ export default {
},
created () {
this.tableData = window.MOCK_TREE_DATA_LIST.slice(0)
},
methods: {
selectChangeEvent ({ selection }) {
console.info(\`勾选\${selection.length}个树形节点\`, selection)
}
}
}
`
Expand All @@ -62,6 +69,11 @@ export default {
Array.from(this.$el.querySelectorAll('pre code')).forEach((block) => {
hljs.highlightBlock(block)
})
},
methods: {
selectChangeEvent ({ selection }) {
console.info(`勾选${selection.length}个树形节点`, selection)
}
}
}
</script>

0 comments on commit 2e3f4cf

Please sign in to comment.