Skip to content

yuwu9145/vue-StyleValue-type

Repository files navigation

vue-StyleValue-type

Demo Undefined type is complained when bind :style to an arra

Reproduce steps

npm install

Type-Check

npx vue-tsc --noEmit

Error

src/App.vue:2:17 - error TS2322: Type 'undefined' is not assignable to type 'StyleValue'.

2   <h1 :style="[ style, {background: 'green'} ]">Test</h1>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published