refactor: 删除import 'element-plus-secondary/es/css #9624

This commit is contained in:
dataeaseShu 2024-05-14 10:31:20 +08:00
parent 977d452544
commit 52ad8d92a1
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]