Frame
创建画板。默认会裁剪掉超出宽高的内容,类似于 HTML5 中的一个页面。
用法
App.vue
Import Map
xxxxxxxxxx
40
<script setup lang="ts">
import { LeaferApp } from 'leafer-vue'
</script>
<template>
<LeaferApp :width="672" :height="340" type="draw">
<Leafer>
<Frame
:width="200"
:height="200"
>
<Ellipse
:x="120"
:y="120"
:width="100"
:height="100"
fill="#66A659"
draggable
/>
</Frame>
<Frame
:width="200"
:height="200"
:x="400"
fill="#66A659"
:overflow="true"
Show Error
属性
名称 | 类型 | 默认值 | 说明 |
---|---|---|---|
width | number | —— | 宽度 |
height | number | —— | 高度 |
fill | string | #FFF | 填充色 |
overflow | 'show' | 'hide' | 'hide' | 超出部分是否裁剪 |
详情查看Frame |🌿 Leafer UI。
事件请查看事件处理 |🌿 Leafer Vue