holyes-table 1.0.26 → 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
|
@@ -1238,12 +1238,13 @@ var _e = (e) => {
|
|
|
1238
1238
|
} }, ke = { style: { margin: "0 0 4px" } }, Ae = { style: {
|
|
1239
1239
|
display: "flex",
|
|
1240
1240
|
"justify-content": "center",
|
|
1241
|
+
gap: "10px",
|
|
1241
1242
|
"margin-top": "5px",
|
|
1242
1243
|
padding: "5px 0",
|
|
1243
1244
|
"border-top": "1px solid #e0e0e0"
|
|
1244
1245
|
} }, je = ["onMousedown"], H = ["onClick", "onMouseenter"], Me = {
|
|
1245
1246
|
key: 3,
|
|
1246
|
-
style: { "margin-left": "
|
|
1247
|
+
style: { "margin-left": "0px" }
|
|
1247
1248
|
}, Ne = ["onClick"], Pe = { style: {
|
|
1248
1249
|
display: "flex",
|
|
1249
1250
|
gap: "4px"
|
|
@@ -1647,7 +1648,8 @@ var _e = (e) => {
|
|
|
1647
1648
|
column: f,
|
|
1648
1649
|
row: t,
|
|
1649
1650
|
index: g
|
|
1650
|
-
}) : ""
|
|
1651
|
+
}) : "",
|
|
1652
|
+
p.showOverflow ? "pretextTable-text-ellipsis" : ""
|
|
1651
1653
|
])
|
|
1652
1654
|
}, [p.treeConfig?.isOpenTree && f.treeNode ? (h(), i(e, { key: 0 }, [a("span", { style: u({
|
|
1653
1655
|
marginLeft: (Number(t[S(m).level]) - 1) * (p.treeConfig?.indent || S(pt).indent) + "px",
|
|
@@ -1778,7 +1780,6 @@ var _e = (e) => {
|
|
|
1778
1780
|
"onChange"
|
|
1779
1781
|
])])) : (h(), i("span", {
|
|
1780
1782
|
key: 10,
|
|
1781
|
-
class: l({ "pretextTable-text-ellipsis": !!p.showOverflow }),
|
|
1782
1783
|
style: u({ paddingLeft: S(U).paddingLeft }),
|
|
1783
1784
|
title: p.showOverflow && t[f.field] || ""
|
|
1784
1785
|
}, [f.slots?.default ? (h(), i(e, { key: 0 }, [!p.lazyLoadSlot || t.slotShowTimestamp == S(mt) ? v(c.$slots, f.slots?.default, {
|
|
@@ -1786,7 +1787,7 @@ var _e = (e) => {
|
|
|
1786
1787
|
row: t,
|
|
1787
1788
|
column: f,
|
|
1788
1789
|
rowIndex: d
|
|
1789
|
-
}, () => [o(b(t[f.field] ?? ""), 1)]) : r("", !0)], 64)) : (h(), i(e, { key: 1 }, [o(b(t[f.field] ?? ""), 1)], 64))],
|
|
1790
|
+
}, () => [o(b(t[f.field] ?? ""), 1)]) : r("", !0)], 64)) : (h(), i(e, { key: 1 }, [o(b(t[f.field] ?? ""), 1)], 64))], 12, Le))], 2)) : r("", !0)], 46, H))), 128))], 4))], 64))), 128))], 4),
|
|
1790
1791
|
p.showFooter && S(L).length > 0 ? (h(), i("div", {
|
|
1791
1792
|
key: 1,
|
|
1792
1793
|
style: u([{
|
package/package.json
CHANGED