mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-12 10:45:10 +08:00
fix: export locale (#950)
This commit is contained in:
parent
e519c6a770
commit
bcf7162b57
@ -89,6 +89,8 @@ import type { InstallOptions } from '@element-plus/utils/config'
|
||||
|
||||
const version = version_ // version_ to fix tsc issue
|
||||
|
||||
const locale = use
|
||||
|
||||
const defaultInstallOpt: InstallOptions = {
|
||||
size: '' as ComponentSize,
|
||||
zIndex: 2000,
|
||||
@ -185,7 +187,7 @@ const plugins = [
|
||||
|
||||
const install = (app: App, opt: InstallOptions): void => {
|
||||
const option = Object.assign(defaultInstallOpt, opt)
|
||||
use(option.locale)
|
||||
locale(option.locale)
|
||||
app.config.globalProperties.$ELEMENT = option
|
||||
setConfig(option)
|
||||
|
||||
@ -284,6 +286,7 @@ export {
|
||||
ElUpload,
|
||||
version,
|
||||
install,
|
||||
locale,
|
||||
}
|
||||
|
||||
export default {
|
||||
|
Loading…
Reference in New Issue
Block a user