Giter VIP home page Giter VIP logo

handy-uploader's People

Contributors

alijahanpak avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

handy-uploader's Issues

Cannot import sub components

Hey, cool library but it's not useable because the sub components can not be found.

I'm using nuxt but I don't think thats the problem

Error

Unbenannt

[Vue warn]: Avoid using non-primitive value as key, use string/number value instead.

I am getting the following error: [Vue warn]: Avoid using non-primitive value as key, use string/number value instead.

I think the error is coming from the line: v-for="attachment in tempAttachmentChanged" :key="attachment"

You are using the attachment object as a key. The key needs to be a string/number. Using attachment.name as the key will probably fix this

image

Rtl support on headers not working

After setting rtlSupport to true
image

The outputs seem like this:
image

And the css of each th column contains "text-left" class wich sets "text-align: left !important"
image

How to initialize handyAttachments variable from an api?

I get images from api that I build through laravel, my api returns the object equal to the object created by handyUploader, as an example below:

image

The images load, but when deleting, instead of deleting one image, delete all, can someone help me?

Can not delete file

After website reload when image exists and I am trying to delete an image, I always get an error. But on new image upload and delete everything works fine. Any ideas?

Error:
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "documentAttachment"

Code File1:

<FormMedia v-model="form.image" />

Code File2:

<template>
  <v-card>
    <v-card-title v-text="title" />

    <v-card-text>
      <v-alert v-if="infoMessage" type="info" v-text="infoMessage" />

      <handy-uploader
        :document-attachment.sync="handyAttachments"
        :file-uploader-type="'simple'"
        :max-file-size="10240"
        :image-compressor="true"
        :image-compress-level="0.8"
        :max-file-count="1"
        :badge-counter="true"
        :thumb="true"
        :change-file-name="true"
        :add-file-description="true"
        :cols="12"
      />
    </v-card-text>
  </v-card>
</template>

<script>
import handyUploader from 'handy-uploader/src/components/handyUploader'

export default {
  components: {
    handyUploader,
  },
  props: {
    value: {
      type: Array,
      default: () => [],
    },
    title: {
      type: String,
      default: 'Image',
    },
    infoMessage: {
      type: String,
      default: '',
    },
  },
  computed: {
    handyAttachments: {
      get() {
        return this.value
      },
      set(value) {
        this.$emit('input', value)
      },
    },
  },
}
</script>

Custom fields (feature request)

Hi,

Is there a possibility to add arbitrary custom fields to each image like, say, title, description, tags or other? Without such feature, image uploader is of little use for anything but very simple projects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.