a692c53d7bcbb680515ed9ad2cbf8df8.json 5.7 KB

1
  1. {"remainingRequest":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\main-theme-tools.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\main-theme-tools.vue","mtime":1760168610481},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\babel.config.js","mtime":1581948662000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["export default {\n data: function data() {\n return {\n isOpen: false,\n themeList: require('@/element-ui/config.js'),\n themeColor: 'default'\n };\n },\n methods: {\n themeColorChangeHandle: function themeColorChangeHandle(val) {\n var styleList = [{\n id: 'J_elementTheme',\n url: \"\".concat(process.env.BASE_URL, \"element-theme/\").concat(val, \"/index.css?t=\").concat(new Date().getTime())\n }, {\n id: 'J_auiTheme',\n url: \"\".concat(process.env.BASE_URL, \"element-theme/\").concat(val, \"/aui.css?t=\").concat(new Date().getTime())\n }];\n for (var i = 0; i < styleList.length; i++) {\n var el = document.querySelector(\"#\".concat(styleList[i].id));\n if (el) {\n el.href = styleList[i].url;\n continue;\n }\n el = document.createElement('link');\n el.id = styleList[i].id;\n el.href = styleList[i].url;\n el.rel = 'stylesheet';\n document.querySelector('head').appendChild(el);\n }\n }\n }\n};",{"version":3,"names":["data","isOpen","themeList","require","themeColor","methods","themeColorChangeHandle","val","styleList","id","url","concat","process","env","BASE_URL","Date","getTime","i","length","el","document","querySelector","href","createElement","rel","appendChild"],"sources":["src/views/main-theme-tools.vue"],"sourcesContent":["<template>\r\n <div class=\"aui-theme-tools\" :class=\"{ 'aui-theme-tools--open': isOpen }\">\r\n <div class=\"aui-theme-tools__toggle\" @click=\"isOpen = !isOpen\">\r\n <svg class=\"icon-svg\" aria-hidden=\"true\"><use xlink:href=\"#icon-setting\"></use></svg>\r\n </div>\r\n <div class=\"aui-theme-tools__content\">\r\n <div class=\"aui-theme-tools__item\">\r\n <h3>Navbar</h3>\r\n <el-checkbox v-model=\"$store.state.navbarLayoutType\" true-label=\"colorful\">colorful 鲜艳</el-checkbox>\r\n </div>\r\n <div class=\"aui-theme-tools__item\">\r\n <h3>Sidebar</h3>\r\n <el-checkbox v-model=\"$store.state.sidebarLayoutSkin\" true-label=\"dark\">dark 黑色</el-checkbox>\r\n </div>\r\n <div class=\"aui-theme-tools__item\">\r\n <h3>Theme</h3>\r\n <el-radio-group v-model=\"themeColor\" @change=\"themeColorChangeHandle\">\r\n <el-radio v-for=\"item in themeList\" :key=\"item.name\" :label=\"item.name\">{{ `${item.name} ${item.desc}` }}</el-radio>\r\n </el-radio-group>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n data () {\r\n return {\r\n isOpen: false,\r\n themeList: require('@/element-ui/config.js'),\r\n themeColor: 'default'\r\n }\r\n },\r\n methods: {\r\n themeColorChangeHandle (val) {\r\n var styleList = [\r\n {\r\n id: 'J_elementTheme',\r\n url: `${process.env.BASE_URL}element-theme/${val}/index.css?t=${new Date().getTime()}`\r\n },\r\n {\r\n id: 'J_auiTheme',\r\n url: `${process.env.BASE_URL}element-theme/${val}/aui.css?t=${new Date().getTime()}`\r\n }\r\n ]\r\n for (var i = 0; i < styleList.length; i++) {\r\n var el = document.querySelector(`#${styleList[i].id}`)\r\n if (el) {\r\n el.href = styleList[i].url\r\n continue\r\n }\r\n el = document.createElement('link')\r\n el.id = styleList[i].id\r\n el.href = styleList[i].url\r\n el.rel = 'stylesheet'\r\n document.querySelector('head').appendChild(el)\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n"],"mappings":"AAyBA;EACAA,IAAA,WAAAA,KAAA;IACA;MACAC,MAAA;MACAC,SAAA,EAAAC,OAAA;MACAC,UAAA;IACA;EACA;EACAC,OAAA;IACAC,sBAAA,WAAAA,uBAAAC,GAAA;MACA,IAAAC,SAAA,IACA;QACAC,EAAA;QACAC,GAAA,KAAAC,MAAA,CAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAAH,MAAA,CAAAJ,GAAA,mBAAAI,MAAA,KAAAI,IAAA,GAAAC,OAAA;MACA,GACA;QACAP,EAAA;QACAC,GAAA,KAAAC,MAAA,CAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAAH,MAAA,CAAAJ,GAAA,iBAAAI,MAAA,KAAAI,IAAA,GAAAC,OAAA;MACA,EACA;MACA,SAAAC,CAAA,MAAAA,CAAA,GAAAT,SAAA,CAAAU,MAAA,EAAAD,CAAA;QACA,IAAAE,EAAA,GAAAC,QAAA,CAAAC,aAAA,KAAAV,MAAA,CAAAH,SAAA,CAAAS,CAAA,EAAAR,EAAA;QACA,IAAAU,EAAA;UACAA,EAAA,CAAAG,IAAA,GAAAd,SAAA,CAAAS,CAAA,EAAAP,GAAA;UACA;QACA;QACAS,EAAA,GAAAC,QAAA,CAAAG,aAAA;QACAJ,EAAA,CAAAV,EAAA,GAAAD,SAAA,CAAAS,CAAA,EAAAR,EAAA;QACAU,EAAA,CAAAG,IAAA,GAAAd,SAAA,CAAAS,CAAA,EAAAP,GAAA;QACAS,EAAA,CAAAK,GAAA;QACAJ,QAAA,CAAAC,aAAA,SAAAI,WAAA,CAAAN,EAAA;MACA;IACA;EACA;AACA","ignoreList":[]}]}