# yy-new-file-select

> file-select

Latest version **2.2.8** (published 2021-12-24) · 0 weekly downloads

## Install

```sh
npm install yy-new-file-select
pnpm add yy-new-file-select
yarn add yy-new-file-select
bun add yy-new-file-select
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.8 |
| Published | 2021-12-24 |
| First published | 2021-01-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.0.0 |
| Dependencies | 3 |
| Unpacked size | 890 KB |
| Known vulnerabilities | 0 (+24 in 2 direct dependencies) |
| Install scripts | no |
| Author | hyh |
| Maintainers | yycloud, hyhgogogo, chencheng666 |

## Links

- npm: https://www.npmjs.com/package/yy-new-file-select
- npm.io page: https://npm.io/package/yy-new-file-select

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^2.5.2
- [axios](https://npm.io/package/axios.md) ^0.21.1
- [vue-i18n](https://npm.io/package/vue-i18n.md) ^8.22.2

## Recent versions

- 2.2.8 (latest) — 2021-12-24
- 2.2.8-alpha.4 (alpha) — 2021-12-23
- 2.2.8-alpha.3 — 2021-12-23
- 2.2.8-alpha.2 — 2021-12-22
- 2.2.8-alpha.1 — 2021-12-22
- 2.2.7 — 2021-12-11
- 2.2.7-alpha.5 — 2021-11-19
- 2.2.7-alpha.4 — 2021-11-19
- 2.2.7-alpha.3 — 2021-11-19
- 2.2.7-alpha.2 — 2021-11-18
- 2.2.7-alpha.1 — 2021-11-18
- 2.2.7-alpha.0 — 2021-11-18
- 0.0.9-alpha.0 — 2021-11-18
- 2.2.6 — 2021-01-20
- 2.2.5 — 2021-01-19
- … 20 more at https://npm.io/package/yy-new-file-select/versions

## README

# yy-file-select

> file-select 文库组件

## Dev Setup

``` bash
# 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
本地打包目录

########重中之重##########
如果修改业务代码，需要修改package下的目录文件，打包入口文件在package目录下
修改src代码无效 src代码只用于本地dev调试
注意注意注意注意注意注意注意注意注意注意注意注意注意注意注意注意注意注意注意注意注意

```
## Preview
![avatar](./previewImg/preview.png)
## usage
``` js
<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://bip-daily.yyuap.com/yonbip-ec-file',
                showModal:true,
                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](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).

## 目录结构
```
├── build                                           # webpack js
├── config                                          # webpack 配置
├── lib                                             # 打包后产物的目录
├── package                                         # 打包的代码内容
├── previewIma                                      # 组件预览
├── src                                             # 本地测试执行的代码内容
├──├──api                                           # 调用的接口
├──├──css                                           # 全局css
├──├──axiosi                                        # 封装axios
├──├──components                                    # 组件
├──├──config                                        # 服务编码配置
├──├──const                                         # 常量
├──├──fifter                                        # 过滤器
├──├──lang                                          # 多语
├──├──utils                                         # 工具函数
├──├──view                                          # 常量
├──├──App.vue                                       # 入口vue
├──├──main.js                                       # 入口js




```

---
_Source: https://npm.io/package/yy-new-file-select · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
