App.vue 719 B

1234567891011121314151617181920212223242526
  1. <script setup lang="ts">
  2. import { usePageTitle } from '/@/hooks/web/usePageTitle'
  3. usePageTitle()
  4. const themeVars = {
  5. // tab的底部横线颜色
  6. tabsBottomBarColor: 'rgb(33, 166, 117)',
  7. rateIconFullColor: '#07c160',
  8. sliderBarHeight: '4px',
  9. sliderButtonWidth: '20px',
  10. sliderButtonHeight: '20px',
  11. sliderActiveBackgroundColor: '#07c160'
  12. // toastBackground: "rgba(0, 0, 0,0.7)",
  13. // buttonPrimaryBorderColor: "#07c160",
  14. // buttonPrimaryBackgroundColor: "#07c160",
  15. }
  16. </script>
  17. <template>
  18. <van-config-provider :theme-vars="themeVars"><RouterView /></van-config-provider>
  19. </template>
  20. <style lang="less">
  21. :root {
  22. --van-button-primary-background-color: red;
  23. }
  24. </style>