0.2.4 • Published 2 years ago

vue-file-input v0.2.4

Weekly downloads
6
License
MIT
Repository
github
Last release
2 years ago

정의

vue-file-input is a vue-component that displays a list of attachments. Please note that vue2 and bootstrap4 have dependencies.

  • Return the attachment data as an array
  • File size and number of files can be limited
  • English and Korean support

결과화면

Getting Started

npm install vue-file-input

Usage

Example

<template>
  <vueFileInput
    :fileCount = 5
    :filelimitSizeByte = 10485760
    @getFileInfoArray = "fromFileInfoArray"
    :horizontal = true
    :language = 'ko'
  ></vueFileInput>
</template>

<script>
import vueFileInput from 'vue-file-input'
import  'vue-file-input/dist/vue-file-input.esm.css' //bootstrap4

export default {
  name: 'App',
  components: { vueFileInput },
  data () {
        return {
            fileInfo:[],
        }
    },
  methods:
  {
    fromFileInfoArray(array)
    {
        this.fileInfo = [...array];
    },
  }
}
</script>

Properties

Property nameTypeDefaultRequiredDescription
fileCountNumber5limit number of files
filelimitSizeByteNumber10485760Limiting file size (kb)
horizontalBooleanfalseSetting to display the file list horizontally and vertically
getFileInfoArrayfunctionFunction that returns attachment data as an array
languagestringenEnglish and Korean support

License

MIT

0.1.0

2 years ago

0.2.1

2 years ago

0.1.2

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.2.3

2 years ago

0.1.4

2 years ago

0.2.2

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.2.4

2 years ago

0.1.5

2 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago