zollero / el-search-table-pagination

🐶 Combine Form, Table and Pagination components of Element UI together.
MIT License
305 stars 79 forks source link

0.4.28版本什么时候能发布呀? #40

Closed zhu327 closed 5 years ago

zhu327 commented 5 years ago

Table column 属性

参数 说明 类型 可选值 默认值
prop 展示字段的字段值 string - -
label 列名 string - -
width 列宽 number - 140
minWidth 最小列宽 number - -
filter 过滤器名(只有配置在全局的filter才有效) string - -
render 处理数据的函数,接收行数据作为参数 function - -
slotName 使用 slot 标记的代码块的 slot 属性值 string - -
type 0.4.28后支持,Element UI Table支持的一个属性,借用这个属性来切换是否使用本组件column内的插槽内容,当本属性没有给值时,本组件保持和之前版本一样的兼容性,组件会接管column数组中的定义并定义Element UI Table Column,只有指定的属性才会给予,并且会实现组件中给予的renderformatter等功能。如果该属性一旦有给值时,column定义的所有属性都会传递给Element UI Table Column,本组件也不会对column内容进行处理,相应的处理能力也交给Element UI Table本身,通过这种方式,也可以支持Element UI Table中的多选列,Index列等,设置为default也即为Element UI Table的缺省模式,会从数据对象中读取prop属性,也会受到filter的过滤,只不过处理都是Element UI Table来进行了。 string default/selection/index/expand

0.4.28版本什么时候能发布呀?

zollero commented 5 years ago

今天发布

zollero commented 5 years ago

https://www.npmjs.com/package/el-search-table-pagination 0.4.28 已发布

1xiyu commented 5 years ago

@zollero 在配置中添加了一个slotName打算自定义列内容的实现,结果报vue slot 重复的提示,这个是需要升级vuejs的版本才能兼容此插件的重复插槽功能?

zollero commented 5 years ago

@1xiyu 请贴一个示例代码看一下