1.0.2 • Published 5 years ago

o-s-upload v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Install

npm install --save o-s-upload

Useage

use in the vue component

<template>
        <div>
            <o-s-upload
            :ossDir="ossDir"
            :getSgin="getSgin"
            :dom="logo"
            ref="logo"
            ></z-o-upload>
        </div>
    </template>

    <script>
        import OSUpload from 'o-s-upload'
        export default {
            name: 'Test',
            data () {
                return {
                    ossDir: 'myDir',
                    getSgin: 'http://xxx.xxx.com/get_sgin',
                    logo: 'logo',
                    logoSrc: ''
                }
            },
            methods: {
                getUrl () {
                    this.logoSrc = this.$refs.logo.imgUrl
                },
                setUrl () {
                    this.$refs.logo.imgUrl = 'https://www.baidu.com/img/baidu_jgylogo3.gif'
                }
            }
        }
    </script>
    
    <style></style>

Component props

propostypedefault valueexplain
domString''required field
ossDirString''required field
getSginString''required field
addIconString'upload.png'
loaddingString'loadding.gif'
boxStyleObject{}
heightNumber0image height(px, no limit)
widthNumber0image width(px, no limit)
customNameString''System naming
ratioNumber0.75Compression ratio

License

copyright © 2019 zhaizhaohui

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago