vnode2canvas icon indicating copy to clipboard operation
vnode2canvas copied to clipboard

怎么去画一条线?

Open jc91715 opened this issue 7 years ago • 2 comments

有文本和图片两种格式,但没有找到怎么去画一条线

jc91715 avatar Aug 20 '18 05:08 jc91715

@jc91715 暂时没有提供line,后期会加上,有兴趣也可以参与 PR. 提供一种画直线的方法:

renderCanvas(h) {
  return h('view', {
     style: {
       left: 0,
       top: 10,
       width: 100,
       height: 1,
       fill: 'black'
     }
  })
}

muwoo avatar Aug 21 '18 11:08 muwoo

目前前端的水平还不足以或者有精力去PR,等忙过这一段时间,再回头对过往的东西做个总结。目前是配合原生的进行实现

jc91715 avatar Aug 27 '18 04:08 jc91715