多维表格
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.

21 lines
506 B

import { enumColor as colors } from '@/components/project/spreadsheet/helpers/colors'
export default {
computed: {
colors() {
return this.$store.state.settings.darkTheme ? colors.dark : colors.light
},
textColors() {
return this.$store.state.settings.darkTheme ? colors.light : colors.dark
}
},
methods: {
getColor(i) {
return this.colors[i % this.colors.length]
},
getTextColor(i) {
return this.textColors[i % this.textColors.length]
}
}
}