forked from github/dataease
Merge pull request #9632 from dataease/pr@dev-v2_st
refactor: 删除import 'element-plus-secondary/es/css #9624
This commit is contained in:
commit
7e866f62f3
@ -2,7 +2,9 @@ export const vClickOutside = {
|
||||
beforeMount(el, binding) {
|
||||
el.clickOutsideEvent = function (event) {
|
||||
if (!(el === event.target || el.contains(event.target))) {
|
||||
binding.value(event)
|
||||
if (typeof binding.value === 'function') {
|
||||
binding.value(event)
|
||||
}
|
||||
}
|
||||
}
|
||||
document.addEventListener('click', el.clickOutsideEvent)
|
||||
|
@ -2,7 +2,6 @@ import type { App } from 'vue'
|
||||
|
||||
// 需要全局引入一些组件,如ElScrollbar,不然一些下拉项样式有问题
|
||||
import { ElLoading, ElScrollbar } from 'element-plus-secondary'
|
||||
import 'element-plus-secondary/es/css'
|
||||
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||||
|
||||
const plugins = [ElLoading]
|
||||
|
Loading…
Reference in New Issue
Block a user