Leafer
用于创建Leafer组件。
基础用法
核心属性
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
width | number | —— | 宽度 |
height | number | —— | 高度 |
pixelRatio | number | 1 | 像素比 |
fill | string | —— | 填充色 |
hittable | boolean | true | 是否响应交互事件 |
ready | boolean | —— | 否准备就绪(完成首次布局) |
viewReady | boolean | —— | 视图是否准备就绪(完成首次渲染) |
running | boolean | —— | 是否运行中 |
更多属性请查看Leafer |🌿 Leafer UI
事件请查看事件处理 |🌿 Leafer Vue