1 line
5.2 KiB
JSON
1 line
5.2 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\\components\\SizeSelect\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\components\\SizeSelect\\index.vue","mtime":1718070786005},{"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:aW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMucmVnZXhwLmV4ZWMuanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5zdHJpbmcucmVwbGFjZS5qcyI7Ci8vCi8vCi8vCi8vCi8vCi8vCi8vCi8vCi8vCi8vCi8vCi8vCi8vCi8vCgpleHBvcnQgZGVmYXVsdCB7CiAgZGF0YTogZnVuY3Rpb24gZGF0YSgpIHsKICAgIHJldHVybiB7CiAgICAgIHNpemVPcHRpb25zOiBbewogICAgICAgIGxhYmVsOiAnRGVmYXVsdCcsCiAgICAgICAgdmFsdWU6ICdkZWZhdWx0JwogICAgICB9LCB7CiAgICAgICAgbGFiZW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ZXBsYWNlKHsKICAgICAgICAgIHBhdGg6ICcvcmVkaXJlY3QnICsgZnVsbFBhdGgKICAgICAgICB9KTsKICAgICAgfSk7CiAgICB9CiAgfQp9Ow=="},{"version":3,"names":["data","sizeOptions","label","value","computed","size","$store","getters","methods","handleSetSize","$ELEMENT","dispatch","refreshView","$message","message","type","_this","$route","fullPath","$nextTick","$router","replace","path"],"sources":["src/components/SizeSelect/index.vue"],"sourcesContent":["<template>\r\n <el-dropdown trigger=\"click\" @command=\"handleSetSize\">\r\n <div>\r\n <svg-icon class-name=\"size-icon\" icon-class=\"size\" />\r\n </div>\r\n <el-dropdown-menu slot=\"dropdown\">\r\n <el-dropdown-item v-for=\"item of sizeOptions\" :key=\"item.value\" :disabled=\"size===item.value\" :command=\"item.value\">\r\n {{\r\n item.label }}\r\n </el-dropdown-item>\r\n </el-dropdown-menu>\r\n </el-dropdown>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data() {\r\n return {\r\n sizeOptions: [\r\n { label: 'Default', value: 'default' },\r\n { label: 'Medium', value: 'medium' },\r\n { label: 'Small', value: 'small' },\r\n { label: 'Mini', value: 'mini' }\r\n ]\r\n }\r\n },\r\n computed: {\r\n size() {\r\n return this.$store.getters.size\r\n }\r\n },\r\n methods: {\r\n handleSetSize(size) {\r\n this.$ELEMENT.size = size\r\n this.$store.dispatch('app/setSize', size)\r\n this.refreshView()\r\n thi
|