全局代码格式 优化

This commit is contained in:
Pan
2017-07-06 17:56:17 +08:00
parent 622a8c3a69
commit de992c50a6
73 changed files with 3156 additions and 3151 deletions

View File

@@ -45,31 +45,48 @@
<script>
import { toggleClass } from 'utils';
import { toggleClass } from 'utils';
export default {
data() {
return {
theme: false,
tags: [
{ name: '标签一', type: '' },
{ name: '标签二', type: 'gray' },
{ name: '标签三', type: 'primary' },
{ name: '标签四', type: 'success' },
{ name: '标签', type: 'warning' },
{ name: '标签六', type: 'danger' }
],
inputVisible: false,
inputValue: ''
}
},
watch: {
theme() {
toggleClass(document.body, 'custom-theme')
export default {
data() {
return {
theme: false,
tags: [{
name: '标签一',
type: ''
},
{
name: '标签',
type: 'gray'
},
{
name: '标签三',
type: 'primary'
},
{
name: '标签四',
type: 'success'
},
{
name: '标签五',
type: 'warning'
},
{
name: '标签六',
type: 'danger'
}
],
inputVisible: false,
inputValue: ''
}
},
watch: {
theme() {
toggleClass(document.body, 'custom-theme')
// this.$store.dispatch('setTheme', value);
}
}
}
};
};
</script>
<style scoped>