element-plus/packages/test-utils/style-plugin.ts
Herrington Darkholme 62f1135768
Feat/form (#342)
* feat(form): add form component

fix #125

* test(form): add test code

* docs(form): add form doc

* feat: add uitls merge

* fix(form): fix style

* test(form): add form test code

* refactor(form): review changes

* test(form): use idiomatic vue-test-util methods

* feat(core): bump vue version

* feat(form): rewrite label wrap

* feat(form): fix tons of bugs

* fix(form): reuse ts extension

* refactor(form): move out label width computation

* fix(form): fix tons of bugs

* fix(form): test

Co-authored-by: 286506460 <286506460@qq.com>
2020-10-03 16:02:53 +08:00

14 lines
271 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)
}