holyes-table 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -200,6 +200,8 @@ tableRef.value.reloadData(tableData)
|
|
|
200
200
|
| columns | Array< HolyesTableColumnPropsType> | [] | 表格列配置 |
|
|
201
201
|
| height | Number | - | 表格高度 |
|
|
202
202
|
| cellMinHeight | Number | 22 | 单元格最小行高 |
|
|
203
|
+
| cellStyle | Object | {fontSize?: '14px',paddingLeft?: '0px'} | 单元格样式,统一设置 |
|
|
204
|
+
| heightOffset | Number | 0 | 表格高度偏移量,用于没什么数据时,可能由于滚动条的高度原因,导致出现滚动条,需要偏移量来解决 |
|
|
203
205
|
| loading | Boolean | false | 是否显示加载状态 |
|
|
204
206
|
| loadingConfig | Object | {} | 加载配置,包含text属性 |
|
|
205
207
|
| lazyLoadSlot | Boolean | false | 自定义插槽是否懒加载,默认否;开启后,自定义插槽多时滚动会更流畅 |
|
|
@@ -347,6 +349,8 @@ interface HolyesTableColumnPropsType {
|
|
|
347
349
|
/** 表尾插槽 */
|
|
348
350
|
footer?: string
|
|
349
351
|
}
|
|
352
|
+
/** 单元格类名,最好里面不要涉及到改字体大小 */
|
|
353
|
+
cellClassName?: string | ((obj: { column: HolyesTableColumnPropsType, row: any, index: number }) => string)
|
|
350
354
|
footer?: {
|
|
351
355
|
/** 表尾行高度 */
|
|
352
356
|
height?: number
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED