@@ -18,17 +18,15 @@ import type { BaseItemProps } from './types';
1818
1919export interface HorizontalIconArrowProps extends BaseItemProps {
2020 width ?: number ;
21- /** 翻转方向 */
22- flipped ?: boolean ;
2321}
2422
2523export const HorizontalIconArrow : ComponentType < HorizontalIconArrowProps > = (
2624 props ,
2725) => {
28- const [ { indexes , datum , width = 140 , themeColors , flipped } , restProps ] =
29- getItemProps ( props , [ ' width' , 'flipped' ] ) ;
30-
31- const positionV = indexes [ 0 ] % 2 === ( flipped ? 0 : 1 ) ? 'normal' : 'flipped' ;
26+ const [
27+ { indexes , datum , width = 140 , themeColors , positionV = 'normal' } ,
28+ restProps ,
29+ ] = getItemProps ( props , [ 'width' ] ) ;
3230
3331 const textAlignVertical = positionV === 'normal' ? 'bottom' : 'top' ;
3432 const label = (
@@ -183,7 +181,7 @@ const DotLine = (props: {
183181 width ?: number ;
184182 height ?: number ;
185183 fill : string ;
186- positionV ?: 'normal' | 'flipped' ;
184+ positionV ?: 'normal' | 'center' | ' flipped';
187185} ) => {
188186 const {
189187 x = 0 ,
@@ -218,4 +216,7 @@ const DotLine = (props: {
218216 ) ;
219217} ;
220218
221- registerItem ( 'horizontal-icon-arrow' , { component : HorizontalIconArrow } ) ;
219+ registerItem ( 'horizontal-icon-arrow' , {
220+ component : HorizontalIconArrow ,
221+ composites : [ 'icon' , 'label' , 'desc' ] ,
222+ } ) ;
0 commit comments