0.3.4 • Published 1 year ago

six-dropzone v0.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Static Badge Static Badge npm version GitHub License npm downloads Nuxt Static Badge

Demo online


Table of Content

Features

Demo

view six-dropzone

Setup

Installation

six-dropzone for Nuxt3 applications.

npx nuxi@latest module add six-dropzone

Config

nuxt.config.js

{
     modules: [
        'six-dropzone',
    ]
},

Usage

<script setup>
    const photo = ref()
    const drop = (e) => {
      console.log(e.dataTransfer.files[0], 'drop')
    }
    const selectedFile = (e) => {
      console.log(e, 'change')
    };
    const modelValue = (e) => {
      console.log(e, 'model-value')
    }
</script>
<template>
    <SixDropzone
            v-model="photo"
            @drop.prevent="drop"
            @change="selectedFile"
            @update:model-value="modelValue"
            :drop-mounted="url"
    ></SixDropzone>
</template>

API

Props

NameTypeDefault ValueDescription
dropMountedStringundefinedThe image URL.
labelStringSelect FileSets the button text
error-messagesString/String[][]Puts the input in an error state and passes through custom error messages. Will be combined with any validations that occur from the rules prop. This field will not trigger validation.

Events

NameTypeDescription
drop[File]drop value of the component.
change[File]value of the component.
update:modelValue[File]Event that is emitted when the component’s model changes.

Slots

NameDescription
DefaultThe default Vue slot.

⚖️ License

Released under MIT by @4slan.

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.1

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.0

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.9

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago