Skip to content

Commit e7e7a7f

Browse files
Module: description tooltip not showing
1 parent 1e7981d commit e7e7a7f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

client/packages/lowcoder/src/comps/comps/moduleContainerComp/ioComp/inputListComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ interface InputItemProps {
111111
defaultValue: any;
112112
// defaultValue: InstanceType<ReturnType<typeof withType>>;
113113
type: InstanceType<ReturnType<typeof dropdownControl>>;
114-
description: InstanceType<typeof StringControl>;
114+
description: InstanceType<typeof CompNameControl>;
115115
onDelete: () => void;
116116
onTypeChange: (value: string) => void;
117117
defaultShowPopover: boolean;

client/packages/lowcoder/src/comps/comps/moduleContainerComp/ioComp/inputListItemComp.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ interface TestViewProps {
9191

9292
function TestView(props: TestViewProps) {
9393
const { itemComp } = props;
94-
const { name, type } = itemComp.getView();
94+
const { name, type, description } = itemComp.getView();
9595
const testType = itemComp.children.test.children.compType.getView();
9696
const defaultType = itemComp.children.defaultValue.children.compType.getView();
9797

@@ -109,14 +109,14 @@ function TestView(props: TestViewProps) {
109109

110110
return (
111111
<Fragment>
112-
{itemComp.children.test.children.comp.propertyView({ label: name, layout: "vertical" })}
112+
{itemComp.children.test.children.comp.propertyView({ label: name, tooltip: description, layout: "vertical" })}
113113
</Fragment>
114114
);
115115
}
116116

117117
const childrenMap = {
118118
name: CompNameControl,
119-
description: StringControl,
119+
description: CompNameControl,
120120
type: dropdownControl(typeOptions, InputTypeEnum.Data),
121121
defaultValue: withType(defaultValueControls, InputTypeEnum.Data),
122122
test: withType(testControls, InputTypeEnum.Data),
@@ -132,7 +132,7 @@ class InputCompWithMethods extends InputCompBase {
132132

133133
getTestView() {
134134
const { name } = this.getView();
135-
return controlItem({ filterText: name }, <TestView key={name} itemComp={this} />);
135+
return controlItem({ filterText: name }, <TestView key={name} itemComp={this} />)
136136
}
137137

138138
private internalReduce(action: CompAction): this {

0 commit comments

Comments
 (0)