import MapApi from "@/api/map/MapApi";
import type { IDynamicFormComponentAdditionalDefine } from "@/components/dynamic";

//添加自定义组件默认配置

export default [
  {
    name: 'select-city',
    needArrow: true,
    props: {
      loadCityData: () => MapApi.loadCityData(),
      loadDistrictInfo: (latlon: [number, number]) => MapApi.regeo(latlon[0], latlon[1]),
    },
  },
  {
    name: 'select-address',
    props: {
      loadFormattedAddress: (latlon: [number, number]) => MapApi.regeoAddress(latlon[0], latlon[1]),
    },
  },
] as IDynamicFormComponentAdditionalDefine[];