1.3.1 • Published 5 years ago

table-content-component v1.3.1

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

vue-ajax-upload

A Vue.js project

注意:

下载后 npm run dev 执行前,先执行 npm run dist , 因为项目中的test 文件夹就是引用dist 文件夹下的js

Build Setup

# install 
 #npm install vue-ajax-upload --save
#  npm install grid-content-component2 npm install #1.2.0
npm install table-content-component npm install    #1.1.0
# 使用组件必须传递的参数 options
options: {
    'showProgress': true, // 是否显示进度控制
    'imagePreview': true, // 是否显示图片预览
    'url': 'str', // 上传接口url
    'fileUploadName': 'ajax-upload', // 后台采用是什么名字就传递什么名字
    'limitSize': 1 // 限制文件上传的大小单位是 M
}
# dom 组件使用
# <hupload :options=options v-on:receiveUploadMsg="receiveUploadMsg"> </hupload>
# <gridcontentcomponent
#           :dataList="dataList"
#           :moduleName="moduleName"
#           v-if="showModel == 0"
#            @updateThumb="updateThumb"
#            @refreshServiceList="refreshServiceList"
#           @deleteService="deleteServiceHandle"
#         ></gridcontentcomponent>

<tablecontentcomponent
          :dataList="dataList"
          :moduleName="moduleName"
          v-if="showModel == 0"
           @updateThumb="updateThumb"
           @refreshServiceList="refreshServiceList"
          @deleteService="deleteServiceHandle"
        ></tablecontentcomponent>
#js 接受的信息判断
methods: {
    receiveUploadMsg (msg) {
      // msg ....
    }
}

npm version minor 版本小更新

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago