mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
20 lines
328 B
TypeScript
20 lines
328 B
TypeScript
import { defineComponent } from 'vue'
|
|
|
|
import { useLocaleProps, useLocale } from '@element-plus/hooks'
|
|
|
|
export const ConfigProvider = defineComponent({
|
|
name: 'ElConfigProvider',
|
|
props: {
|
|
...useLocaleProps,
|
|
// Add more configs
|
|
},
|
|
|
|
setup(_, { slots }) {
|
|
|
|
useLocale()
|
|
|
|
return () => slots.default()
|
|
},
|
|
})
|
|
|