Skip to content

Commit c3ed034

Browse files
committed
chore(platform): update style
1 parent 2fe0df5 commit c3ed034

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

packages/platform/src/app/components/table/Table.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,11 @@ export interface AppTableProps<T> {
5656
};
5757
aExpand?: (data: T, index: number) => React.ReactNode;
5858
aScroll?: { x?: number | string; y?: number | string };
59-
aLabelWidth?: string | number;
6059
aKey?: (data: T, index: number) => any;
6160
}
6261

6362
export function AppTable<T = any>(props: AppTableProps<T>): JSX.Element | null {
64-
const { className, aName, aData, aColumns, aActions, aExpand, aScroll, aLabelWidth, aKey = (data) => data['id'] } = props;
63+
const { className, aName, aData, aColumns, aActions, aExpand, aScroll, aKey = (data) => data['id'] } = props;
6564

6665
const columns = aColumns.filter((column) => !column.hidden);
6766
const titleIndex = columns.findIndex((column) => column.title);
@@ -291,8 +290,7 @@ export function AppTable<T = any>(props: AppTableProps<T>): JSX.Element | null {
291290
<AppDetailView
292291
aCol={12}
293292
aGutter={3}
294-
aLabelAlign="right"
295-
aLabelWidth={aLabelWidth}
293+
aVertical
296294
aList={columns
297295
.filter((column, indexOfCol) => !column.checkbox && indexOfCol !== titleIndex)
298296
.map((column) => ({

packages/platform/src/app/routes/list/standard-table/StandardTable.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ const StandardTable = AppRoute(() => {
338338
width: 140,
339339
}}
340340
aScroll={{ x: 1200 }}
341-
aLabelWidth={72}
342341
/>
343342
<div className="app-table-footer">
344343
<div>

packages/platform/src/styles/components/detail-view.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
@include e(item-label) {
88
margin-right: 0;
9-
margin-bottom: 8px;
9+
margin-bottom: 2px;
10+
font-size: 0.775em;
1011

1112
&::after {
1213
content: none;

0 commit comments

Comments
 (0)