@@ -208,11 +208,7 @@ export function AppTable<T = any>(props: AppTableProps<T>): JSX.Element | null {
208208 </ table >
209209 </ DTable >
210210 < div className = { getClassName ( 'd-md-none' , className ) } >
211- { aName && (
212- < h2 className = "app-title text-center" style = { { margin : '0 0 8px' , paddingBottom : 4 } } >
213- { aName }
214- </ h2 >
215- ) }
211+ { aName && < h2 className = "app-table__title" > { aName } </ h2 > }
216212 { aData . length === 0 ? (
217213 < DEmpty
218214 dIcon = {
@@ -233,6 +229,7 @@ export function AppTable<T = any>(props: AppTableProps<T>): JSX.Element | null {
233229 < DCard key = { id } className = "mb-3" >
234230 { ( titleIndex !== - 1 || aColumns [ 0 ] . checkbox ) && (
235231 < DCard . Header
232+ className = "app-table__card-header"
236233 dAction = {
237234 aActions
238235 ? ( ( ) => {
@@ -281,10 +278,10 @@ export function AppTable<T = any>(props: AppTableProps<T>): JSX.Element | null {
281278 const content = titleIndex !== - 1 && columns [ titleIndex ] . td ;
282279
283280 return (
284- < div className = "d-inline-flex align-items-center" >
281+ < >
285282 { checkbox && checkbox ( data , index ) }
286- { content && < div className = "ms-2" > { isString ( content ) ? get ( data , content ) : content ( data , index ) } </ div > }
287- </ div >
283+ { content && < span > { isString ( content ) ? get ( data , content ) : content ( data , index ) } </ span > }
284+ </ >
288285 ) ;
289286 } ) ( ) }
290287 </ DCard . Header >
@@ -359,13 +356,12 @@ export function AppTable<T = any>(props: AppTableProps<T>): JSX.Element | null {
359356 }
360357 } ) ( ) }
361358 { expandNode !== false && (
362- < div className = "app-border-top " >
359+ < div className = "app-table__expand " >
363360 { expands . has ( id ) && < div style = { { padding : 16 } } > { expandNode } </ div > }
364361 < div
365- className = { getClassName ( 'd-flex justify-content-center align-items-center ' , {
366- 'app-border-top ' : expands . has ( id ) ,
362+ className = { getClassName ( 'app-table__expand-button ' , {
363+ 'is-expand ' : expands . has ( id ) ,
367364 } ) }
368- style = { { height : 36 } }
369365 onClick = { ( ) => {
370366 setExpands ( ( draft ) => {
371367 if ( draft . has ( id ) ) {
0 commit comments