fa.style.mixin.js 649 B

1234567891011121314151617181920212223242526272829
  1. module.exports = {
  2. computed: {
  3. theme() {
  4. if (this.vuex_theme.value) {
  5. return this.vuex_theme.value;
  6. }
  7. return {};
  8. },
  9. lightColor() {
  10. let color = '#f5f5f5';
  11. if (this.vuex_theme.value) {
  12. let theme = this.vuex_theme.value;
  13. let colorArr = this.$u.colorGradient(theme.bgColor, theme.color, 10);
  14. color = colorArr[9] || '#f5f5f5';
  15. }
  16. return color;
  17. },
  18. faBorderColor() {
  19. let color = '#f5f5f5';
  20. if (this.vuex_theme.value) {
  21. let theme = this.vuex_theme.value;
  22. let colorArr = this.$u.colorGradient(theme.bgColor, theme.color, 10);
  23. color = colorArr[5] || '#f5f5f5';
  24. }
  25. return color;
  26. },
  27. },
  28. }