10d2146f2331277046e5705faf4f558c.json 3.7 KB

1
  1. {"remainingRequest":"C:\\Vue\\node_modules\\babel-loader\\lib\\index.js!C:\\Vue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Vue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Vue\\src\\components\\AddTodo.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Vue\\src\\components\\AddTodo.vue","mtime":1607769906574},{"path":"C:\\Vue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Vue\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Vue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Vue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.date.now\";\nimport \"core-js/modules/es6.string.trim\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n data: function data() {\n return {\n title: \"\"\n };\n },\n methods: {\n onSubmit: function onSubmit() {\n if (this.title.trim()) {\n if (this.toggle == true) {\n var _newTodo = {\n id: Date.now(),\n title: this.title,\n completed: false,\n important: true\n };\n } else {\n var _newTodo2 = {\n id: Date.now(),\n title: this.title,\n completed: false,\n important: false\n };\n }\n\n this.$emit(\"add-todo\", newTodo);\n this.title = \"\";\n }\n }\n }\n};",{"version":3,"sources":["AddTodo.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,eAAA;AACA,EAAA,IADA,kBACA;AACA,WAAA;AACA,MAAA,KAAA,EAAA;AADA,KAAA;AAGA,GALA;AAMA,EAAA,OAAA,EAAA;AACA,IAAA,QADA,sBACA;AACA,UAAA,KAAA,KAAA,CAAA,IAAA,EAAA,EAAA;AACA,YAAA,KAAA,MAAA,IAAA,IAAA,EAAA;AACA,cAAA,QAAA,GAAA;AACA,YAAA,EAAA,EAAA,IAAA,CAAA,GAAA,EADA;AAEA,YAAA,KAAA,EAAA,KAAA,KAFA;AAGA,YAAA,SAAA,EAAA,KAHA;AAKA,YAAA,SAAA,EAAA;AALA,WAAA;AAOA,SARA,MAQA;AACA,cAAA,SAAA,GAAA;AACA,YAAA,EAAA,EAAA,IAAA,CAAA,GAAA,EADA;AAEA,YAAA,KAAA,EAAA,KAAA,KAFA;AAGA,YAAA,SAAA,EAAA,KAHA;AAKA,YAAA,SAAA,EAAA;AALA,WAAA;AAOA;;AAEA,aAAA,KAAA,CAAA,UAAA,EAAA,OAAA;AACA,aAAA,KAAA,GAAA,EAAA;AACA;AACA;AAxBA;AANA,CAAA","sourcesContent":["<template>\n <form @submit.prevent=\"onSubmit\">\n <input type=\"text\" class=\"text\" v-model=\"title\" />\n <label class=\"right\">\n <label class=\"\">Check if important</label>\n\n <input\n type=\"radio\"\n class=\"form-radio-input ml-3\"\n v-model=\"picked\"\n value=\"y\"\n />\n <label class=\"\">yes</label>\n\n <input\n type=\"radio\"\n class=\"form-radio-input ml-3\"\n v-model=\"picked\"\n value=\"n\"\n /><label class=\"\">no</label>\n </label>\n <button type=\"submit\">Create</button>\n </form>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n title: \"\",\n };\n },\n methods: {\n onSubmit() {\n if (this.title.trim()) {\n if (this.toggle == true) {\n const newTodo = {\n id: Date.now(),\n title: this.title,\n completed: false,\n\n important: true,\n };\n } else {\n const newTodo = {\n id: Date.now(),\n title: this.title,\n completed: false,\n\n important: false,\n };\n }\n\n this.$emit(\"add-todo\", newTodo);\n this.title = \"\";\n }\n },\n },\n};\n</script>\n\n<style scoped>\nform {\n display: flex;\n width: 800px;\n}\n\n.text {\n width: 400px;\n margin-left: 20px;\n}\n.right {\n margin-right: 20px;\n}\n</style>"],"sourceRoot":"src/components"}]}