2.0.3 • Published 4 years ago

svelte-imgcrop v2.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

svelte-imgcrop

npm version npm downloads MIT

A svelte component for image crop. (Svelte 图片裁剪组件)

Demo 示例

click me

Brower compatibility

IE10+

Env 环境

svelte@3 + rollup@2

Install 安装

npm install svelte-imgcrop

Usage 使用

<script lang="ts">
  import ImgCrop from "svelte-imgcrop";

  let img = "/images/demo.png";
</script>

<ImgCrop src={img} />

Options 配置项

Prop

PropTypeDefaultDesc
srcstring''The image to be cropped
widthNumber400Container width
heightNumber300Container height

Events

NameDesc
changeCrop success,params(e)
2.0.3

4 years ago

1.0.2

4 years ago

2.0.2

4 years ago

1.0.1

4 years ago

2.0.1

4 years ago

1.0.3

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago