2.2.6 • Published 1 month ago

yy-new-file-select v2.2.6

Weekly downloads
175
License
-
Repository
-
Last release
1 month ago

yy-file-select

file-select 文库组件

Dev Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# package
打包目录

# src
开发目录

# lib
发布包目录

# dist
本地打包目录

Preview

avatar

usage

<template>
    <file-select v-model="showModal" @on-ok="handleOk" @on-cancel="handleCancel" :lang="lang" :host="host"/>
</template>
<script>
  import FileSelect from 'yy-new-file-select'
  export default {
    data(){
      return {
        host:'https://dwweb-api-u8c-daily.yyuap.com',
        showModal:false,
        lang:'zh_cn'
      }
    },
    components: {
      FileSelect
    },
    methods:{
       handleOk(res){
         this.showModal = false
         console.log(res)
       },
       handleCancel(){
         this.showModal = false
       }
    }
  }
</script>

Description

lang:当前语言  zh_cn -简体中文 zh_tw - 繁体中文 en -英文 默认中文简体
host:当前环境访问的后端host地址  默认为''
showModal:是否显示当前弹层 默认为false
@on-ok:选择的文件回调 返回的为数组对象

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

2.2.6

1 month ago

2.2.5

1 month ago

2.2.4

2 months ago

2.2.3

2 months ago

2.2.1

2 months ago

2.2.2

2 months ago

2.1.2

2 months ago

2.2.0

2 months ago

2.1.4

2 months ago

2.1.6

2 months ago

2.1.5

2 months ago

2.1.1

2 months ago

2.0.9

2 months ago

2.1.0

2 months ago

2.0.8

2 months ago

2.0.7

2 months ago

2.0.3

2 months ago

2.0.5

2 months ago

2.0.4

2 months ago

2.0.2

2 months ago

2.0.1

2 months ago

2.0.0

2 months ago