@@ -21,6 +21,8 @@ import { controlItem, Option } from "lowcoder-design";
2121import styled from "styled-components" ;
2222import { getNextEntityName } from "util/stringUtils" ;
2323import { TargetCompAction } from "@lowcoder-ee/comps/comps/tourComp/componentSelectorControl" ;
24+ // import { PlacementType } from "@rc-component"
25+ export type PlacementType = 'left' | 'leftTop' | 'leftBottom' | 'right' | 'rightTop' | 'rightBottom' | 'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'center' ;
2426
2527const OptionTypes = [
2628 {
@@ -233,8 +235,6 @@ const OptionTip = optionListDocUrl ? (
233235) ;
234236
235237type TourStepChildType = {
236- // target: InstanceType<typeof TargetCompAction>,
237- // target: InstanceType<typeof FunctionControl>,
238238 title : InstanceType < typeof StringControl > ,
239239} ;
240240type TourStepControlType = new ( params : CompParams < any > ) => MultiBaseComp <
@@ -292,7 +292,7 @@ export function tourStepsControl<T extends TourStepControlType>(
292292 } ;
293293}
294294
295- const PlacementOptions = [
295+ const PlacementOptions : { label : string , value : PlacementType } [ ] = [
296296 { label : "Center" , value : "center" } ,
297297 { label : "Left" , value : "left" } ,
298298 { label : "Left Top" , value : "leftTop" } ,
0 commit comments