You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
2.2 KiB
1 line
2.2 KiB
{"remainingRequest":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/linhuakun/Downloads/coderlhk/codewhy/src/components/common/toast/Toast.vue?vue&type=style&index=0&id=2c7c7e38&scoped=true&lang=css&","dependencies":[{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/src/components/common/toast/Toast.vue","mtime":1607666509049},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/postcss-loader/src/index.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/codewhy/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoudG9hc3R7CiAgcG9zaXRpb246IGZpeGVkOwogIHRvcDo1MCU7CiAgbGVmdDo1MCU7CiAgcGFkZGluZzogOHB4IDEwcHg7CiAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSk7CiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgwLDAsMCw3LjUpOwogIGNvbG9yOiAjZmZmOwogIHotaW5kZXg6IDk5OTsKfQo="},{"version":3,"sources":["Toast.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"Toast.vue","sourceRoot":"src/components/common/toast","sourcesContent":["<template>\n<div class=\"toast\" v-show=\"isShow\">\n <div >{{message}}</div>\n</div>\n</template>\n\n<script>\nexport default {\n name: \"Toast\",\n data(){\n return{\n message:'',\n isShow:false\n }\n },\n methods:{\n show(message='默认文字',duration=2000){\n this.isShow=true\n this.message=message\n setTimeout(()=>{\n this.isShow=false\n this.message=''\n },duration)\n }\n },\n}\n</script>\n\n<style scoped>\n.toast{\n position: fixed;\n top:50%;\n left:50%;\n padding: 8px 10px;\n transform: translate(-50%);\n background-color: rgba(0,0,0,7.5);\n color: #fff;\n z-index: 999;\n}\n</style>\n"]}]} |