1
0
mirror of synced 2025-12-09 07:08:22 +08:00
This commit is contained in:
xuliangzhan
2024-05-21 10:20:44 +08:00
parent a5609ee1fd
commit fff37b2e73
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
import { App } from 'vue'
import XEUtils from 'xe-utils'
import { config } from './v-x-e-table'
import { setConfig } from './v-x-e-table'
import { setTheme } from './v-x-e-table/src/theme'
import { VxeTableFilterModule } from './filter'
@@ -87,14 +87,14 @@ const components = [
]
// 默认中文
config({
setConfig({
i18n: (key: string, args: any) => XEUtils.toFormatString(XEUtils.get(zhCN, key), args)
})
// 默认安装
export function install (app: App, options: any) {
if (XEUtils.isPlainObject(options)) {
config(options)
setConfig(options)
if ((options as any).theme) {
setTheme(options)
}