GamePortrait/node_modules/.cache/babel-loader/9b82929a0b64835156e3fc24e3e2d50381216ee0a24a1d26fadcc52578de07c6.json

1 line
697 B
JSON

{"ast":null,"code":"import \"core-js/modules/es.array.push.js\";\nexport default {\n name: \"demoPage\",\n data() {\n return {\n value: \"\",\n dataList: []\n };\n },\n methods: {\n //添加子项\n handleAdd() {\n this.dataList.push({\n id: new Date().getTime(),\n label: this.value\n });\n this.value = \"\";\n console.log(this.dataList);\n },\n //删除子项\n handleRemove(row) {\n console.log(row.id);\n this.dataList = this.dataList.filter(item => item.id != row.id);\n console.log(\"删除操作\", this.dataList);\n }\n }\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}