1 |
- {"remainingRequest":"C:\\Vue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Vue\\src\\components\\AddTask.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Vue\\src\\components\\AddTask.vue","mtime":1607779006730},{"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":["//\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//\n//\n//\n//\n//\n//\n//\n//\n//\n\nexport default {\n data() {\n return {\n title: \"\",\n picked: \"\",\n newTask: {\n id: \"\",\n title: \"\",\n completed: false,\n important: false,\n },\n };\n },\n methods: {\n onSubmit() {\n if (this.title.trim()) {\n this.newTask = {\n id: Date.now(),\n title: this.title,\n completed: false,\n };\n if (this.picked == \"y\") {\n this.newTask.important = true;\n } else {\n this.newTask.important = false;\n }\n }\n\n this.$emit(\"add-task\", this.newTask);\n this.title = \"\";\n },\n },\n};\n",{"version":3,"sources":["AddTask.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA","file":"AddTask.vue","sourceRoot":"src/components","sourcesContent":["<template>\n <form @submit.prevent=\"onSubmit\" class=\"mb-3\">\n <input type=\"text\" class=\"form-control\" v-model=\"title\" />\n\n <fieldset class=\"row mb-3\">\n <legend class=\"col-form-label col-sm-2 pt-0\">Important?</legend>\n <div class=\"col-sm-10\">\n <div class=\"form-check\">\n <input\n class=\"form-check-input\"\n type=\"radio\"\n checked\n v-model=\"picked\"\n value=\"y\"\n />\n <label class=\"form-check-label\"> Yes </label>\n </div>\n <div class=\"form-check\">\n <input\n class=\"form-check-input\"\n type=\"radio\"\n name=\"gridRadios\"\n id=\"gridRadios2\"\n v-model=\"picked\"\n value=\"n\"\n />\n <label class=\"form-check-label\"> No </label>\n </div>\n </div>\n </fieldset>\n <button type=\"submit\" class=\"btn btn-primary\">Create</button>\n </form>\n</template>\n\n<script>\nexport default {\n data() {\n return {\n title: \"\",\n picked: \"\",\n newTask: {\n id: \"\",\n title: \"\",\n completed: false,\n important: false,\n },\n };\n },\n methods: {\n onSubmit() {\n if (this.title.trim()) {\n this.newTask = {\n id: Date.now(),\n title: this.title,\n completed: false,\n };\n if (this.picked == \"y\") {\n this.newTask.important = true;\n } else {\n this.newTask.important = false;\n }\n }\n\n this.$emit(\"add-task\", this.newTask);\n this.title = \"\";\n },\n },\n};\n</script>\n"]}]}
|