| | |
| | | <template> |
| | | <el-color-picker |
| | | v-model="theme" |
| | | :predefine="['#409EFF', '#1890ff', '#304156','#212121','#11a983', '#13c2c2', '#6959CD', '#f5222d', ]" |
| | | :predefine="['#409EFF', '#1890ff', '#304156','#212121','#42B983','#11a983', '#13c2c2', '#6959CD', '#f5222d', ]" |
| | | class="theme-picker" |
| | | popper-class="theme-picker-dropdown" |
| | | /> |
| | |
| | | console.log(themeCluster, originalCluster) |
| | | |
| | | const $message = this.$message({ |
| | | message: ' Compiling the theme', |
| | | message: ' 正在切换主题', |
| | | customClass: 'theme-message', |
| | | type: 'success', |
| | | duration: 0, |
| | |
| | | } |
| | | |
| | | if (!this.chalk) { |
| | | const url = `https://unpkg.com/element-ui@${version}/lib/theme-chalk/index.css` |
| | | // const url = `https://unpkg.com/element-ui@${version}/lib/theme-chalk/index.css` |
| | | // https://unpkg.com/element-ui@2.15.6/lib/theme-chalk/index.css |
| | | |
| | | // http://121.196.36.24:8001/VueTheme/theme.css |
| | | const url = 'http://121.196.36.24:8001/VueTheme/theme.css' |
| | | await this.getCSSString(url, 'chalk') |
| | | } |
| | | |