2.0.1 • Published 5 years ago

ys-file-tree-select v2.0.1

Weekly downloads
4
License
MIT
Repository
-
Last release
5 years ago

ys-file-tree-select

树形文件选择组件

开发: npm run dev 打包: npm run build

使用方法: yarn add ssh://git@outergit.yonyou.com:49622/yanylc/ys-fileTreeSelect.git

参数

      host  请求的域名 
      qzId  空间id
      memberId  用户id
      powers  权限
      showFiles 是否展示文件(暂时没用到)
      visible           控制弹框显示
      fileTreeResult  选择的文件夹数据
      @errorDialog  错误提示框(组件自身没弹框)
      @fileTreeSelectConfirm 点击确定触发的事件

示例

<Main
     :host="'http://123.103.9.204:6058/official'"
     :qzId="16214"
     :memberId="3279879"
     :powers="'1,2,3,4,5,6,7,8,9,10'"
     :showFiles="false"
     :visible.sync='visible'
     :fileTreeResult.sync='fileTreeResult'
     @errorDialog='errorDialog'
     @fileTreeSelectConfirm='fileTreeSelectConfirm'
   />

必须安装axios 在 mian.js中

import axios from 'axios'
axios.interceptors.response.use(function (response) {
  if (typeof response === 'string') {
    try {
      response.data = JSON.parse(response.data)
    } catch (err) {}
  }
  if (typeof response.data === 'object') {
    response.data.message = response.data.message || response.data.msg
  }
  return response.data
}, function (error) {
  throw new Error(error)
})
Vue.prototype.$http = axios 
2.0.1

5 years ago

2.0.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago