1
1
import { ViewDocIcon } from "assets/icons" ;
2
- import { ArrayControl , BoolCodeControl , StringControl } from "comps/controls/codeControl" ;
2
+ import { BoolCodeControl , StringControl } from "comps/controls/codeControl" ;
3
3
import { dropdownControl } from "comps/controls/dropdownControl" ;
4
- import { MultiCompBuilder , withContext , withDefault } from "comps/generators" ;
4
+ import { MultiCompBuilder , withDefault } from "comps/generators" ;
5
5
import { list } from "comps/generators/list" ;
6
6
import { ToViewReturn } from "comps/generators/multi" ;
7
7
import { genRandomKey } from "comps/utils/idGenerator" ;
8
- import { disabledPropertyView , hiddenPropertyView } from "comps/utils/propertyUtils" ;
8
+ import { hiddenPropertyView } from "comps/utils/propertyUtils" ;
9
9
import { trans } from "i18n" ;
10
- import _ , { mapValues } from "lodash" ;
10
+ import { mapValues } from "lodash" ;
11
11
import {
12
12
Comp ,
13
- CompAction ,
14
- CompActionTypes ,
15
13
CompParams ,
16
14
ConstructorToDataType ,
17
15
ConstructorToView ,
18
16
fromRecord ,
19
17
MultiBaseComp ,
20
18
withFunction
21
19
} from "lowcoder-core" ;
22
- import { AutoArea , controlItem , Option } from "lowcoder-design" ;
20
+ import { controlItem , Option } from "lowcoder-design" ;
23
21
import styled from "styled-components" ;
24
- import { lastValueIfEqual } from "util/objectUtils" ;
25
22
import { getNextEntityName } from "util/stringUtils" ;
26
- import { JSONObject , JSONValue } from "util/jsonTypes" ;
27
- import { ControlItemCompBuilder } from "comps/generators/controlCompBuilder" ;
28
- import { reduceInContext } from "../utils/reduceContext" ;
29
- import { optionsControl } from "lowcoder-sdk" ;
30
23
import { TargetCompAction } from "@lowcoder-ee/comps/comps/tourComp/componentSelectorControl" ;
31
24
32
25
const OptionTypes = [
@@ -302,23 +295,23 @@ export function tourStepsControl<T extends TourStepControlType>(
302
295
const PlacementOptions = [
303
296
{ label : "Center" , value : "center" } ,
304
297
{ label : "Left" , value : "left" } ,
305
- { label : "LeftTop " , value : "leftTop" } ,
306
- { label : "LeftBottom " , value : "leftBottom" } ,
298
+ { label : "Left Top " , value : "leftTop" } ,
299
+ { label : "Left Bottom " , value : "leftBottom" } ,
307
300
{ label : "Right" , value : "right" } ,
308
- { label : "RightTop " , value : "rightTop" } ,
309
- { label : "RightBottom " , value : "rightBottom" } ,
301
+ { label : "Right Top " , value : "rightTop" } ,
302
+ { label : "Right Bottom " , value : "rightBottom" } ,
310
303
{ label : "Top" , value : "top" } ,
311
- { label : "TopLeft " , value : "topLeft" } ,
312
- { label : "TopRight " , value : "topRight" } ,
304
+ { label : "Top Left " , value : "topLeft" } ,
305
+ { label : "Top Right " , value : "topRight" } ,
313
306
{ label : "Bottom" , value : "bottom" } ,
314
- { label : "BottomLeft " , value : "bottomLeft" } ,
315
- { label : "BottomRight " , value : "bottomRight" } ,
307
+ { label : "Bottom Left " , value : "bottomLeft" } ,
308
+ { label : "Bottom Right " , value : "bottomRight" } ,
316
309
] ;
317
310
318
311
let TourStep = new MultiCompBuilder (
319
312
{
320
313
target : TargetCompAction ,
321
- // target: FunctionControl ,
314
+ // target: dropdownControl(editorState.getAllUICompMap(), "") ,
322
315
arrow : BoolCodeControl ,
323
316
title : StringControl ,
324
317
description : StringControl ,
@@ -341,10 +334,10 @@ TourStep = class extends TourStep implements TourStepCompProperty {
341
334
placeholder : "Welcome to lowcoder, this is your first tutorial step" ,
342
335
} ) }
343
336
{ this . children . target . propertyView ( ) }
344
- { /*{ this.children.placement.propertyView({*/ }
345
- { /* label: trans("textShow.verticalAlignment"),*/ }
346
- { /* radioButton: true,*/ }
347
- { /*} ) }*/ }
337
+ { this . children . placement . propertyView ( {
338
+ label : trans ( "textShow.verticalAlignment" ) ,
339
+ radioButton : false
340
+ } ) }
348
341
{ hiddenPropertyView ( this . children ) }
349
342
</ >
350
343
) ;
0 commit comments