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