Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

wyh-element-table

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wyh-element-table

基于element table 和lb-table 做的一个通用的业务列表组件

latest
npmnpm
Version
1.0.5
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

wyh-element-table

基于element table 和lb-table 做的一个通用的业务列表组件

原型

Live demo: https://github.com/qwe8511066/wyhElementTable/dist/index.html#/staticData

使用说明

npm install wyh-element-table --save

全局注册使用

main.js 文件中引入插件并注册 import wyhElementTable from 'wyh-element-table' Vue.use(wyhElementTable)

局部注册使用

在对应的文件中引入插件并注册 import wyhElementTable from 'wyh-element-table' components: { wyhElementTable, },

如何使用

在项目中用使用 wyhElementTable

组件属性参数

publicTabel

参数说明类型可选值默认值
pageSizes分页数量的配置Array[][10, 25, 50, 100]
isPagination是否显示分页Booleantrue/falsetrue
layout分页的种类string'total, sizes,prev, pager, next, jumper''total, sizes,prev, pager, next, jumper'
type类型string''/radio/checkbox''
myPages动态参数Object{}
baseParams基本参数Object{}
checkboxDeleteValue每次刷新列表 清空已选的列表Booleantrue/falsetrue
checkboxAttribute多选属性Object{}
radioAttribute单选属性Object{}
maxHeight最大高度number/string-null
column列的设置Array[][]
listServe列表请求的urlString-''
list静态列表数据Array-[]
definitionTotal分页的Total KeyStringtotalCount
definitionData分页的Data KeyStringlist
definitionPage分页的Page KeyStringpage
definitionPageValue分页的Page的默认值Number1
definitionPageSize分页的PageSize KeyStringpageSize
definitionPageSizeValue分页的PageSize的默认值Number10
requestType请求开源工具的类型String'$http'''

组件方法

使用 this.$wyhElementTable.resetColumn() publicTabel

参数说明类型可选值默认值
getList获取列表Functionnullnull
search搜索列表(会把页码改成1)Functionnullnull
reset重置列表(把页码改成1并且初始化myPages的参数)Functionnullnull
resetColumn重置列(根据列的iif判断渲染或者不渲染)Functionnullnull

项目

# clone the project
git clone https://github.com/qwe8511066/wyhElementTable.git

# enter the project directory
cd wyhElementTable

# install dependency
npm install

# develop
npm run dev

FAQs

Package last updated on 25 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts