Skip to content

Commit 5951e02

Browse files
committed
fix: feature exposure
1 parent 1fb3466 commit 5951e02

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

src/GEOComp.tsx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ import {
1515
arrayStringExposingStateControl,
1616
withMethodExposing,
1717
AutoHeightControl,
18-
withExposingRaw,
19-
fromRecord
18+
withSimpleExposing,
2019
} from "lowcoder-sdk";
2120
import styles from "./styles.module.css";
2221
import { i18nObjs, trans } from "./i18n/comps";
@@ -349,15 +348,11 @@ GEOComp = class extends GEOComp {
349348
}
350349
};
351350

352-
/*
353-
GEOComp = withExposingRaw(GEOComp, {},
354-
(comp: any) => {
355-
return fromRecord({
356-
feature: comp.exposingValues.event['click:feature'] || {},
357-
});
358-
}
359-
);
360-
*/
351+
352+
//Expose object
353+
GEOComp = withSimpleExposing(GEOComp, (comp: any) => ({
354+
feature: comp.exposingValues.event['click:feature'] || {},
355+
}));
361356

362357
/**
363358
* Exposes methods on GEOComp component to allow calling from parent component.

0 commit comments

Comments
 (0)