1.1.9 • Published 4 years ago

stevegame-oss v1.1.9

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

stevegame-plugin

Project setup

npm install

Compiles and hot-reloads for development

npm run dev

Compiles and minifies for production

npm run build

Compiles and minifies for npm

npm run lib

oss 上传组件 options 说明

loadPathRevoke: 目录接口
uploadRevoke:上传接口,有两个参数,data, fileData
listsRevoke:列表接口,参数data对象,包含{page,pageNum,path}
使用promise返回
全局引用例子:
 import OSSUL from "stevegame-oss";
 Vue.use(OSSUL.OSSUL, {
   loadPathRevoke: () => {
     return new Promise((resolve, reject) => {
       resolve();
     });
   },
   uploadRevoke: (data, fileData) => {
     return new Promise((resolve, reject) => {
       resolve();
     });
   },
   listsRevoke: (data) => {
     return new Promise((resolve, reject) => {
       resolve();
     });
   }
 });
 Vue.component("ossFile", OSSUL.OSSUL);

oss 传入参数说明

参数说明类型可选值默认值
zhPathzhPath 目录中文名String
filterpath目录英文名String
pathLock是否隐藏目录选择框,true 时 filterpath 和 zhPath 为必传Boolean
imgwidth图片尺寸Number
imgheight图片尺寸Number
filesize上传资源大小,单位 kbNumber
filetype上传资源类型(后缀名)String
btnSize上传按钮的尺寸String
tab2Flag是否显示在线图片 tabBooleantrue

tableComponent 列表使用说明

table 参数

参数说明类型可选值默认值
tableLabel配置表格头部array
tableData数据Array
isUpdata控制是否刷新数据,改变即搜索,正数为搜索第一页,负数为搜索当前页
update请求接口的方法,带一个参数,是对象,包括 filter 和分页参数,不显示分页则返回 filterFunction默认返回,例子:{page:1,pageNum:20}
filter请求所需要的条件,除分页参数外Object
selectColumns是否显示动态列功能,默认显示booleantrue
isshowShow是否控制列的动态显示 默认控制Booleantrue
isShowPage是否显示分页,默认显示Booleantrue
pageSize每页显示条目个数Number20
totalPage总条目个数,默认 0,使用分页功能时需要Number
currentPage当前页Number
emitPageNum分页设置返回的条目数参数,默认 pageNumstringpageNum
emitPage分页设置返回的当前页参数,默认 pagestringpage
bordertable 边框Boolean
loading配置加载提示Boolean
indexShow序号列 默认不显示Booleanfalse
indexWidth序号列的宽Number55
indexAlign序号列对齐方式stringleft
selectionShow是否显示多选框Number50
headerCellStyle表头颜色obj{ background: '#eef1f6', color: '#606266' }
handleSelectionChange表格选中的方法
handleSortChange排序的方法

Table-column Attributes 参数

参数说明类型可选值默认值
label名称string
data列表字段string
isShow是否显示当前列Boolean
width宽度string
min-width最小宽度string
sortable排序Boolean
fixed列是否固定在左侧或者右侧,true 表示固定在左侧string, boolean
render配置格式化数据
例子
<tableComponent
:table-data="tableData"
:table-label="tableLabel"
@update="getTableList"
:totalPage="totalPage"
></tableComponent>
tableLabel例子:[{label: "id",data:"id",isShow:true}]
1.1.9

4 years ago

1.1.8

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

0.1.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago