mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
368 B
368 B
Language
<n-button @click="lang = 'en-US'">en-us</n-button>
<n-button @click="lang = 'zh-CN'">zh-cn</n-button>
<n-config-provider :language="lang">
<n-date-picker v-model="date" />
</n-config-provider>
export default {
data () {
return {
date: null,
lang: 'en-US'
}
}
}
.n-button {
margin: 0 8px 12px 0;
}