feat: 多语言
This commit is contained in:
parent
ddcba22c3e
commit
c51391570f
@ -1,7 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<wd-config-provider>
|
<wd-config-provider :themeVars="themeVars">
|
||||||
<slot />
|
<slot />
|
||||||
<wd-toast />
|
<wd-toast />
|
||||||
<wd-message-box />
|
<wd-message-box />
|
||||||
</wd-config-provider>
|
</wd-config-provider>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import type { ConfigProviderThemeVars } from 'wot-design-uni'
|
||||||
|
|
||||||
|
const themeVars: ConfigProviderThemeVars = {
|
||||||
|
// colorTheme: 'red',
|
||||||
|
// buttonPrimaryBgColor: '#07c160',
|
||||||
|
// buttonPrimaryColor: '#07c160',
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
@ -1,7 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<wd-config-provider>
|
<wd-config-provider :themeVars="themeVars">
|
||||||
<slot />
|
<slot />
|
||||||
<wd-toast />
|
<wd-toast />
|
||||||
<wd-message-box />
|
<wd-message-box />
|
||||||
</wd-config-provider>
|
</wd-config-provider>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script lang="ts" setup>
|
||||||
|
import type { ConfigProviderThemeVars } from 'wot-design-uni'
|
||||||
|
|
||||||
|
const themeVars: ConfigProviderThemeVars = {
|
||||||
|
// colorTheme: 'red',
|
||||||
|
// buttonPrimaryBgColor: '#07c160',
|
||||||
|
// buttonPrimaryColor: '#07c160',
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
|
|
||||||
:root,
|
:root,
|
||||||
page {
|
page {
|
||||||
|
// 修改按主题色
|
||||||
|
// --wot-color-theme: #37c2bc;
|
||||||
|
|
||||||
// 修改按钮背景色
|
// 修改按钮背景色
|
||||||
--wot-button-primary-bg-color: green;
|
// --wot-button-primary-bg-color: green;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user