Skip to content

Commit

Permalink
当objecttable无数据时,在组件上加上is-steedos-crud-data-empty类名
Browse files Browse the repository at this point in the history
  • Loading branch information
tujiajun committed Dec 5, 2023
1 parent 29410e2 commit 9ead83e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,10 @@ export async function getObjectCRUD(objectSchema, fields, options){
api: await getTableApi(objectSchema, fields, options),
hiddenOn: options.tableHiddenOn,
autoFillHeight,
className: `flex-auto ${crudClassName || ""}`,
className: {
[`flex-auto ${crudClassName || ""}`]: "true",
"is-steedos-crud-data-empty": "${!items || COUNT(items) == 0}"
},
bodyClassName: "bg-white",
crudClassName: crudClassName,
quickSaveApi: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
}
}

.is-steedos-crud-data-empty {
thead tr th:nth-child(3){
display: table-cell;
}
thead tr th:nth-child(2){
display: none;
}
}

tbody td.antd-Field--quickEditable {
&> div {
display: flex;
Expand Down

0 comments on commit 9ead83e

Please sign in to comment.