Skip to content
On this page

ImagePicker

When To Use

Use when there is a need to select a picture

Examples

single image selection

Click or drag image to this area to upload

Select a single image

<template>
  <h-image-picker />
</template>

Batch image selection

Choose images

select multiple images

<template>
  <h-multi-image-picker />
</template>

API

single image selection

Props

PropertyDescriptionTypedefault
widthcontainer widthstring100%
heightcontainer heightstring100%
imageHeightimage heightstring78vh

Events

Events NameDescriptionTypedefault
pickImage selection callback functionFunction
loadImage mount callback functionFunction
resetImage reset callbackFunction

批量图像选择

Events

Events NameDescriptionTypedefault
pickImage selection callback functionFunction
loadImage mount callback functionFunction
removeImage removal callback functionFunction