Merge pull request #9632 from dataease/pr@dev-v2_st

refactor: 删除import 'element-plus-secondary/es/css  #9624
This commit is contained in:
dataeaseShu 2024-05-14 10:31:54 +08:00 committed by GitHub
commit 7e866f62f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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]