src/components/table/components/componented/refinery.vue
@@ -17,23 +17,7 @@ name: 'refinery', data () { return { tableData: [{ date: '2016-05-02', name: '王小虎', address: ' 1518 弄' }, { date: '2016-05-04', name: '王小虎', address: ' 1517 弄' }, { date: '2016-05-01', name: '王小虎', address: ' 1519 弄' }, { date: '2016-05-03', name: '王小虎', address: ' 1516 弄' }] tableData: [] } }, props: { @@ -49,6 +33,16 @@ } } } }, watch: { param: { tableContent (newValue, oldValue) { this.tableData = newValue console.log(newValue) }, deep: true } } } </script>