perf: table
parent
087dfa2f1b
commit
7af22a70f9
|
@ -6,7 +6,6 @@ import { computed, defineComponent, ref, watchEffect } from 'vue';
|
||||||
import { useInjectTable } from '../context/TableContext';
|
import { useInjectTable } from '../context/TableContext';
|
||||||
import { useInjectBody } from '../context/BodyContext';
|
import { useInjectBody } from '../context/BodyContext';
|
||||||
import classNames from '../../_util/classNames';
|
import classNames from '../../_util/classNames';
|
||||||
import { parseStyleText } from '../../_util/props-util';
|
|
||||||
import type { MouseEventHandler } from '../../_util/EventInterface';
|
import type { MouseEventHandler } from '../../_util/EventInterface';
|
||||||
|
|
||||||
export interface BodyRowProps<RecordType> {
|
export interface BodyRowProps<RecordType> {
|
||||||
|
@ -128,10 +127,7 @@ export default defineComponent<BodyRowProps<unknown>>({
|
||||||
computeRowClassName.value,
|
computeRowClassName.value,
|
||||||
additionalProps.value.class,
|
additionalProps.value.class,
|
||||||
)}
|
)}
|
||||||
style={{
|
style={[style, additionalProps.value.style]}
|
||||||
...style,
|
|
||||||
...parseStyleText(additionalProps.value.style),
|
|
||||||
}}
|
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
>
|
>
|
||||||
{flattenColumns.map((column, colIndex) => {
|
{flattenColumns.map((column, colIndex) => {
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
import classNames from '../../_util/classNames';
|
import classNames from '../../_util/classNames';
|
||||||
import {
|
import { filterEmpty, flattenChildren, isValidElement } from '../../_util/props-util';
|
||||||
filterEmpty,
|
|
||||||
flattenChildren,
|
|
||||||
isValidElement,
|
|
||||||
parseStyleText,
|
|
||||||
} from '../../_util/props-util';
|
|
||||||
import type { CSSProperties, VNodeArrayChildren } from 'vue';
|
import type { CSSProperties, VNodeArrayChildren } from 'vue';
|
||||||
import { Text, computed, defineComponent, isVNode, renderSlot } from 'vue';
|
import { Text, computed, defineComponent, isVNode, renderSlot } from 'vue';
|
||||||
|
|
||||||
|
@ -348,12 +343,7 @@ export default defineComponent<CellProps>({
|
||||||
onMouseenter(e, mergedRowSpan);
|
onMouseenter(e, mergedRowSpan);
|
||||||
},
|
},
|
||||||
onMouseleave,
|
onMouseleave,
|
||||||
style: {
|
style: [additionalProps.style, alignStyle, fixedStyle, cellStyle],
|
||||||
...parseStyleText(additionalProps.style as any),
|
|
||||||
...alignStyle,
|
|
||||||
...fixedStyle,
|
|
||||||
...cellStyle,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue