mirror of
https://gitee.com/xuliangzhan_admin/vxe-table.git
synced 2026-01-21 05:27:57 +08:00
21 lines
354 B
JavaScript
21 lines
354 B
JavaScript
import GlobalConfig from '../../conf'
|
|
|
|
/**
|
|
* 全局参数设置
|
|
*/
|
|
function setup (options = {}) {
|
|
let { icon, menu } = GlobalConfig
|
|
if (options.menu) {
|
|
Object.assign(menu, options.menu)
|
|
}
|
|
if (options.icon) {
|
|
Object.assign(icon, options.icon)
|
|
}
|
|
Object.assign(GlobalConfig, options, {
|
|
icon,
|
|
menu
|
|
})
|
|
}
|
|
|
|
export default setup
|