default.vue 600 B

1234567891011121314151617181920212223
  1. <template>
  2. <wd-config-provider :themeVars="themeVars">
  3. <slot class="my-component" />
  4. <wd-toast />
  5. <wd-message-box />
  6. <wd-notify />
  7. </wd-config-provider>
  8. </template>
  9. <script lang="ts" setup>
  10. import type { ConfigProviderThemeVars } from 'wot-design-uni'
  11. import { Locale } from 'wot-design-uni'
  12. // 引入英文语言包
  13. import enUS from 'wot-design-uni/locale/lang/en-US'
  14. Locale.use('en-US', enUS)
  15. const themeVars: ConfigProviderThemeVars = {
  16. // colorTheme: 'red',
  17. // buttonPrimaryBgColor: '#07c160',
  18. // buttonPrimaryColor: '#07c160',
  19. }
  20. </script>
  21. <style lang="scss"></style>