mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 18:01:24 +08:00
13 lines
270 B
TypeScript
13 lines
270 B
TypeScript
|
import { config } from '@vue/test-utils'
|
||
|
|
||
|
const stylePlugin = (wrapper: any) => {
|
||
|
return {
|
||
|
style: wrapper.element.style,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default function install() {
|
||
|
config.plugins.DOMWrapper.install(stylePlugin)
|
||
|
config.plugins.VueWrapper.install(stylePlugin)
|
||
|
}
|