1
Showing
1 changed file
with
17 additions
and
18 deletions
| ... | @@ -6,7 +6,19 @@ | ... | @@ -6,7 +6,19 @@ |
| 6 | </div> | 6 | </div> |
| 7 | </template> | 7 | </template> |
| 8 | <script> | 8 | <script> |
| 9 | let column = [ | 9 | export default { |
| 10 | /**注册组件*/ | ||
| 11 | components: {}, | ||
| 12 | data () { | ||
| 13 | return { | ||
| 14 | key: 0, | ||
| 15 | tableData:[{ | ||
| 16 | xm: '12', | ||
| 17 | zjzl: '32', | ||
| 18 | zjh: '123', | ||
| 19 | fr: "213123", | ||
| 20 | }], | ||
| 21 | InformationTable:[ | ||
| 10 | { | 22 | { |
| 11 | width: '60', | 23 | width: '60', |
| 12 | renderHeader: (h, scope) => { | 24 | renderHeader: (h, scope) => { |
| ... | @@ -51,19 +63,6 @@ | ... | @@ -51,19 +63,6 @@ |
| 51 | } | 63 | } |
| 52 | } | 64 | } |
| 53 | ] | 65 | ] |
| 54 | export default { | ||
| 55 | /**注册组件*/ | ||
| 56 | components: {}, | ||
| 57 | data () { | ||
| 58 | return { | ||
| 59 | key: 0, | ||
| 60 | tableData:[{ | ||
| 61 | xm: '12', | ||
| 62 | zjzl: '32', | ||
| 63 | zjh: '123', | ||
| 64 | fr: "213123", | ||
| 65 | }], | ||
| 66 | InformationTable:column | ||
| 67 | }; | 66 | }; |
| 68 | }, | 67 | }, |
| 69 | watch: { | 68 | watch: { |
| ... | @@ -80,10 +79,10 @@ export default { | ... | @@ -80,10 +79,10 @@ export default { |
| 80 | handleAdd () { | 79 | handleAdd () { |
| 81 | this.tableData.push( | 80 | this.tableData.push( |
| 82 | { | 81 | { |
| 83 | xm: '', | 82 | xm: '22', |
| 84 | zjzl: '', | 83 | zjzl: '33', |
| 85 | zjh: '', | 84 | zjh: '44', |
| 86 | fr: "", | 85 | fr: "55", |
| 87 | } | 86 | } |
| 88 | ) | 87 | ) |
| 89 | this.key++ | 88 | this.key++ | ... | ... |
-
Please register or sign in to post a comment