Subscribe on changes!

withDirectives is invalid for setup function

avatar
Sep 23rd 2020

Version

3.0.0

Reproduction link

https://codepen.io/shlroland/pen/RwaEvLW?editors=1011

Steps to reproduce

分别使用 setup和render 函数渲染 vnode , render函数中返回的组件的指令添加正常,setup返回的组件 dirs为null

What is expected?

文档中说明render和setup函数可以使用withDirectives

What is actually happening?

只有render可以使用withDirectives

avatar
Sep 23rd 2020

Do

 setup(){
    return ()=> withDirectives(h('div', {style:"width: 100px;height: 100px;background: red"}),[[vShow,false]])
  },