travel/admin/node_modules/.cache/babel-loader/6362cdefbb3d7f4d95bfa783eb1...

1 line
6.3 KiB
JSON

{"remainingRequest":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js!D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\views\\dashboard\\admin\\components\\TodoList\\Todo.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\views\\dashboard\\admin\\components\\TodoList\\Todo.vue","mtime":1718070786044},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\babel.config.js","mtime":1718070785981},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":1718764959024},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":1718764959862}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuc3RyaW5nLnRyaW0uanMiOwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwovLwoKZXhwb3J0IGRlZmF1bHQgewogIG5hbWU6ICdUb2RvJywKICBkaXJlY3RpdmVzOiB7CiAgICBmb2N1czogZnVuY3Rpb24gZm9jdXMoZWwsIF9yZWYsIF9yZWYyKSB7CiAgICAgIHZhciB2YWx1ZSA9IF9yZWYudmFsdWU7CiAgICAgIHZhciBjb250ZXh0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V0ZVRvZG8oewogICAgICAgICAgdG9kbzogdG9kbwogICAgICAgIH0pOwogICAgICB9IGVsc2UgaWYgKHRoaXMuZWRpdGluZykgewogICAgICAgIHRoaXMuZWRpdFRvZG8oewogICAgICAgICAgdG9kbzogdG9kbywKICAgICAgICAgIHZhbHVlOiB2YWx1ZQogICAgICAgIH0pOwogICAgICAgIHRoaXMuZWRpdGluZyA9IGZhbHNlOwogICAgICB9CiAgICB9LAogICAgY2FuY2VsRWRpdDogZnVuY3Rpb24gY2FuY2VsRWRpdChlKSB7CiAgICAgIGUudGFyZ2V0LnZhbHVlID0gdGhpcy50b2RvLnRleHQ7CiAgICAgIHRoaXMuZWRpdGluZyA9IGZhbHNlOwogICAgfQogIH0KfTs="},{"version":3,"names":["name","directives","focus","el","_ref","_ref2","value","context","$nextTick","props","todo","type","Object","default","_default","data","editing","methods","deleteTodo","$emit","editTodo","_ref3","toggleTodo","doneEdit","e","target","trim","cancelEdit","text"],"sources":["src/views/dashboard/admin/components/TodoList/Todo.vue"],"sourcesContent":["<template>\r\n <li :class=\"{ completed: todo.done, editing: editing }\" class=\"todo\">\r\n <div class=\"view\">\r\n <input\r\n :checked=\"todo.done\"\r\n class=\"toggle\"\r\n type=\"checkbox\"\r\n @change=\"toggleTodo( todo)\"\r\n >\r\n <label @dblclick=\"editing = true\" v-text=\"todo.text\" />\r\n <button class=\"destroy\" @click=\"deleteTodo( todo )\" />\r\n </div>\r\n <input\r\n v-show=\"editing\"\r\n v-focus=\"editing\"\r\n :value=\"todo.text\"\r\n class=\"edit\"\r\n @keyup.enter=\"doneEdit\"\r\n @keyup.esc=\"cancelEdit\"\r\n @blur=\"doneEdit\"\r\n >\r\n </li>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'Todo',\r\n directives: {\r\n focus(el, { value }, { context }) {\r\n if (value) {\r\n context.$nextTick(() => {\r\n el.focus()\r\n })\r\n }\r\n }\r\n },\r\n props: {\r\n todo: {\r\n type: Object,\r\n default: function() {\r\n return {}\r\n }\r\n }\r\n },\r\n data() {\r\n return {\r\n editing: false\r\n }\r\n },\r\n methods: {\r\n deleteTodo(todo) {\r\n this.$emit('deleteTodo', todo)\r\n },\r\n editTodo({ todo, value }) {\r\n this.$emit('editTodo', { todo, value })\r\n },\r\n toggleTodo(todo) {\r\n this.$emit('toggleTodo', todo)\r\n },\r\n doneEdit(e) {\r\n const value = e.target.value.trim()\r\n const { todo } = this\r\n if (!value) {\r\n this.deleteTodo({\r\n todo\r\n })\r\n } else if (this.editing) {\r\n this.editTodo({\r\n todo,\r\n value\r\n })\r\n this.editing = false\r\n }\r\n },\r\n cancelEdit(e) {\r\n e.target.value = this.todo.text\r\n this.editing = false\r\n }\r\n }\r\n}\r\n</script>\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA;EACAA,IAAA;EACAC,UAAA;IACAC,KAAA,WAAAA,MAAAC,EAAA,EAAAC,IAAA,EAAAC,KAAA;MAAA,IAAAC,KAAA,GAAAF,IAAA,CAAAE,KAAA;MAAA,IAAAC,OAAA,GAAAF,KAAA,CAAAE,OAAA;MACA,IAAAD,KAAA;QACAC,OAAA,CAAAC,SAAA;UACAL,EAAA,CAAAD,KAAA;QACA;MACA;IACA;EACA;EACAO,KAAA;IACAC,IAAA;MACAC,IAAA,EAAAC,MAAA;MACAC,OAAA,WAAAC,SAAA;QACA;MACA;IACA;EACA;EACAC,IAAA,WAAAA,KAAA;IACA;MACAC,OAAA;IACA;EACA;EACAC,OAAA;IACAC,UAAA,WAAAA,WAAAR,IAAA;MACA,KAAAS,KAAA,eAAAT,IAAA;IACA;IACAU,QAAA,WAAAA,SAAAC,KAAA;MAAA,IAAAX,IAAA,GAAAW,KAAA,CAAAX,IAAA;QAAAJ,KAAA,GAAAe,KAAA,CAAAf,KAAA;MACA,KAAAa,KAAA;QAAAT,IAAA,EAAAA,IAAA;QAAAJ,KAAA,EAAAA;MAAA;IACA;IACAgB,UAAA,WAAAA,WAAAZ,IAAA;MACA,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