style: reformat code
parent
9c49f4bb1e
commit
08e4bb40b4
|
|
@ -92,11 +92,8 @@ watch(
|
|||
|
||||
if (!cfg) return;
|
||||
|
||||
const keyField =
|
||||
(gridOptions.value?.rowConfig as any)?.keyField || 'id';
|
||||
const resolved = isBoolean(cfg)
|
||||
? {keyField}
|
||||
: {keyField, ...cfg};
|
||||
const keyField = (gridOptions.value?.rowConfig as any)?.keyField || 'id';
|
||||
const resolved = isBoolean(cfg) ? {keyField} : {keyField, ...cfg};
|
||||
gridApi.viewedRowHelper = useViewedRow(resolved);
|
||||
},
|
||||
{immediate: true},
|
||||
|
|
|
|||
|
|
@ -164,8 +164,9 @@ function onClassNameSet() {
|
|||
gridApi.setState({
|
||||
viewedRowOptions: {
|
||||
rowClassName: () => {
|
||||
|
||||
return isClassName.value ? 'bg-red-100 vxe-row--viewed' : 'vxe-row--viewed';
|
||||
return isClassName.value
|
||||
? 'bg-red-100 vxe-row--viewed'
|
||||
: 'vxe-row--viewed';
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue