1.0.6 • Published 4 months ago

@craydel-v3/craydel-image-uploader v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

CraydelImageUploader

Installation

Get the latest version by NPM:

$ npm i @craydel-v3/craydel-image-uploader

Component Import

Import the module chosen directly in your component

<script>
  import CraydelImageUploader from "@craydel-v3/craydel-image-uploader/src/CraydelImageUploader.vue";

  export default {
  components: {CraydelImageUploader}
}
</script>

Props

NameTypeDefaultDescription
idstringrandom IDSets the DOM id on the component.
heightnumber | stringundefinedSets the height for the image preview.
widthnumber | stringundefinedSets the width for the image preview.
max-heightnumber | stringundefinedSets the maximum height for the image preview.
max-widthnumber | stringundefinedSets the maximum width for the image preview.
min-heightnumber | stringundefinedSets the minimum height for the image preview.
min-widthnumber | stringundefinedSets the minimum width for the image preview.
aspect-rationumber | stringundefinedCalculated as width/height, so for a 1920x1080px image this will be 1.7778. Will be calculated automatically if omitted.
coverbooleanfalseResizes the background image to cover the entire container.
placeholder-imagebooleanfalseSets the placeholder image.

Usage

An example showing an image uploader.

<craydel-image-uploader></craydel-image-uploader>
1.0.6

4 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

6 months ago

1.0.0

6 months ago