star-npm-tablelist

1.0.0 • Public • Published

star-npm-tablelist

A Vue.js project

Build Setup

# install dependencies
npm install

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

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

/*移动端配置 1rem=100px/

# #@rowClick="rowClick"//行点击事件

{{row.time}}12{{rowIndex}}-{{columIndex}}

{{row.speed=='未完成'?'error':row.speed}}

//设置table setInfo:[ {label:'name',value:'姓名',slotBool:false,flex:20}, {label:'homeworkNum',value:'完成率',slotBool:true,flex:19}, // {label:'tfRate',value:'正确率',slotBool:false,flex:20},excelFieldTfFinish {label:'userId',value:'详情',slotBool:true,flex:21}, ], //数据 dataInfo:[{ name: '全部完成', homeworkNum: 50, userId: 50, },]

//参数配置 gutter: {/**列间距 */ type: String, default: '10px', }, /**设置要显示的内容 设置的是表头 */ /label要显示的字段(表格内容根据label来取) value表头的内容(如果第二条的value为空 表头隐藏) slot为true就是有插槽 flex:设置width 大小/ themeSet:{ type:Array, required:true, // default:()=>{ // return [ // {label:'',value:'',slotBool:false,flex:1}, // {label:'',value:'',slotBool:false,flex:1}, // {label:'',value:'',slotBool:false,flex:1}, // {label:'',value:'',slotBool:false,flex:1}, // {label:'',value:'',slotBool:true,flex:1}, // ]; // }, // required: true, }, /传的数据/ dataInfo:{ type:Array, required:true, }, themeStyle:{/**table表头样式 */ type: String, default: 'bold black' }, theme:{/**主题颜色 */ type:String, default:'#E7FBE9', }, sizeF:{/**字体大小 */ type: Object, default: ()=>{ return {'font-size':'0.28rem','line-height':'0.32rem'}; }, }, /**设置每一行的padding */ linePadding:{ type:String, default: '0.14rem 0', }, //设置一行的背景透明的 opacity:{ type:Number, default: 0.4 }

Readme

Keywords

none

Package Sidebar

Install

npm i star-npm-tablelist

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

88.8 kB

Total Files

13

Last publish

Collaborators

  • xingchenfen