Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a3f4bc0

Browse files
Add TourStep cover image
1 parent 56b8233 commit a3f4bc0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

‎client/packages/lowcoder/src/comps/comps/tourComp/tourComp.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ let TourBasicComp = (function() {
5252
arrow: step.arrow || true,
5353
placement: step.placement as PlacementType,
5454
mask: step.mask,
55+
cover: step.cover ? (<img src={step.cover} />) : undefined,
5556
type: step.type || "default",
5657
};
5758
});

‎client/packages/lowcoder/src/comps/controls/tourStepControl.tsx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ let TourStep = new MultiCompBuilder(
409409
placement: dropdownControl(PlacementOptions, "bottom"),
410410
hidden: BoolCodeControl,
411411
mask: MaskControl,
412+
cover: StringControl,
412413
type: dropdownControl(TypeOptions, "default"),
413414
},
414415
(props) => props
@@ -438,6 +439,9 @@ TourStep = class extends TourStep implements TourStepCompProperty {
438439
label: "Arrow",
439440
})}
440441
{hiddenPropertyView(this.children)}
442+
{this.children.cover.propertyView({
443+
label: "Cover Image Url"
444+
})}
441445
{this.children.mask.propertyView({
442446
label: "Mask",
443447
tooltip: TourStepMaskTooltip,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /