You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
632 B
20 lines
632 B
import { React } from 'jimu-core'
|
|
import { type AllWidgetSettingProps } from 'jimu-for-builder'
|
|
import { MapWidgetSelector } from 'jimu-ui/advanced/setting-components'
|
|
|
|
const Setting = (props: AllWidgetSettingProps<any>) => {
|
|
const onMapWidgetSelected = (useMapWidgetIds: string[]) => {
|
|
console.log("Selected Map Widget IDs:", useMapWidgetIds);
|
|
props.onSettingChange({
|
|
id: props.id,
|
|
useMapWidgetIds: useMapWidgetIds
|
|
})
|
|
}
|
|
|
|
return <div className="widget-setting-demo">
|
|
<MapWidgetSelector useMapWidgetIds={props.useMapWidgetIds} onSelect={onMapWidgetSelected} />
|
|
</div>
|
|
}
|
|
|
|
export default Setting
|
|
|