vue-image-label
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

vue-image-label

Vue 图片内容标记组件,用于圈出图片四边形内容并获取标记点坐标。React版本请参考组件image-label

预览

示例 demo

安装

yarn add vue-image-label

or

npm i vue-image-label --save

使用

import VueImageLabel from "vue-image-label";

<LabelImage url="https://stbrain.kjt.zj.gov.cn/Documents/ac681331-de00-4fcb-b082-27159b32f6c5/Instruments/43%20%E7%A2%B3%E7%A1%AB%E5%88%86%E6%9E%90%E4%BB%AA.jpg" />;

属性说明

属性名 说明 类型 是否必填 默认值
url 图片地址 string -
containerProps 组件容器属性,可以设置容器的宽度、高度 Container -
pointProps 标记点属性 Point -
lineProps 线属性 Line -
getPoints 获取图片上的点坐标 (points) => void -

Container

属性名 说明 类型 是否必填 默认值
width 宽度 number 1000
height 高度 number 800

Point

属性名 说明 类型 是否必填 默认值
size 大小 number 10
color 颜色 string red

Line

属性名 说明 类型 是否必填 默认值
width 宽度 number 2
color 颜色 string red

Readme

Keywords

none

Package Sidebar

Install

npm i vue-image-label

Weekly Downloads

4

Version

1.0.0

License

none

Unpacked Size

230 kB

Total Files

6

Last publish

Collaborators

  • dengnanhao