wt-antd 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/dist/esm/assets/location.png +0 -0
- package/dist/esm/component/BiuAAutoComplete/index.d.ts +4 -0
- package/dist/esm/component/BiuAAutoComplete/index.js +13 -0
- package/dist/esm/component/BiuAButton/index.d.ts +18 -0
- package/dist/esm/component/BiuAButton/index.js +8 -0
- package/dist/esm/component/BiuACard/index.d.ts +2 -0
- package/dist/esm/component/BiuACard/index.js +9 -0
- package/dist/esm/component/BiuACascader/index.d.ts +10 -0
- package/dist/esm/component/BiuACascader/index.js +8 -0
- package/dist/esm/component/BiuADatePicker/index.d.ts +19 -0
- package/dist/esm/component/BiuADatePicker/index.js +18 -0
- package/dist/esm/component/BiuAForm/index.d.ts +7 -0
- package/dist/esm/component/BiuAForm/index.js +10 -0
- package/dist/esm/component/BiuAInput/index.d.ts +14 -0
- package/dist/esm/component/BiuAInput/index.js +32 -0
- package/dist/esm/component/BiuASelect/index.d.ts +6 -0
- package/dist/esm/component/BiuASelect/index.js +14 -0
- package/dist/esm/component/BiuASwitch/index.d.ts +2 -0
- package/dist/esm/component/BiuASwitch/index.js +9 -0
- package/dist/esm/component/BiuATimePicker/index.d.ts +4 -0
- package/dist/esm/component/BiuATimePicker/index.js +8 -0
- package/dist/esm/component/BiuATreeSelect/index.d.ts +2 -0
- package/dist/esm/component/BiuATreeSelect/index.js +8 -0
- package/dist/esm/component/BiuBar/index.d.ts +13 -0
- package/dist/esm/component/BiuBar/index.js +43 -0
- package/dist/esm/component/BiuComSelect/index.d.ts +19 -0
- package/dist/esm/component/BiuComSelect/index.js +107 -0
- package/dist/esm/component/BiuCue/index.d.ts +18 -0
- package/dist/esm/component/BiuCue/index.js +44 -0
- package/dist/esm/component/BiuCustomSelect/index.d.ts +19 -0
- package/dist/esm/component/BiuCustomSelect/index.js +198 -0
- package/dist/esm/component/BiuCustomTable/index.d.ts +15 -0
- package/dist/esm/component/BiuCustomTable/index.js +77 -0
- package/dist/esm/component/BiuCustomerOperCard/component/editTable.d.ts +9 -0
- package/dist/esm/component/BiuCustomerOperCard/component/editTable.js +268 -0
- package/dist/esm/component/BiuCustomerOperCard/component/index.d.ts +1 -0
- package/dist/esm/component/BiuCustomerOperCard/component/index.js +1 -0
- package/dist/esm/component/BiuCustomerOperCard/component/index.less +5 -0
- package/dist/esm/component/BiuCustomerOperCard/index.d.ts +20 -0
- package/dist/esm/component/BiuCustomerOperCard/index.js +56 -0
- package/dist/esm/component/BiuCustomerOperCard/type.d.ts +117 -0
- package/dist/esm/component/BiuCustomerOperCard/type.js +1 -0
- package/dist/esm/component/BiuCustomerOperCard/utils.d.ts +48 -0
- package/dist/esm/component/BiuCustomerOperCard/utils.js +236 -0
- package/dist/esm/component/BiuDescriptions/index.d.ts +9 -0
- package/dist/esm/component/BiuDescriptions/index.js +39 -0
- package/dist/esm/component/BiuDetailDrawer/index.d.ts +14 -0
- package/dist/esm/component/BiuDetailDrawer/index.js +55 -0
- package/dist/esm/component/BiuDivider/index.d.ts +4 -0
- package/dist/esm/component/BiuDivider/index.js +31 -0
- package/dist/esm/component/BiuField/component/AddressTableSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/AddressTableSelect.js +150 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.d.ts +3 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/index.js +3 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.d.ts +2 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertSubValue.js +49 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.d.ts +2 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useConvertUnSubValue.js +146 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.d.ts +5 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/hooks/useInConvertUnSubValue.js +82 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/index.d.ts +14 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/index.js +400 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/type.d.ts +123 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/type.js +1 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.d.ts +5 -0
- package/dist/esm/component/BiuField/component/DepartOrgSelect/utils.js +60 -0
- package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.d.ts +12 -0
- package/dist/esm/component/BiuField/component/OMSSystem/cityAreaSelect.js +131 -0
- package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.d.ts +7 -0
- package/dist/esm/component/BiuField/component/OMSSystem/warehouseSel.js +80 -0
- package/dist/esm/component/BiuField/component/SNInput.d.ts +13 -0
- package/dist/esm/component/BiuField/component/SNInput.js +623 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.d.ts +24 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/addressSelect.js +192 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/base.d.ts +13 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/base.js +204 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.d.ts +21 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/goodSelect.js +240 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/index.d.ts +3 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/index.js +74 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/interface.d.ts +16 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/interface.js +1 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.d.ts +28 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/locationSelect.js +178 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/newGoodsSelect.d.ts +21 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/newGoodsSelect.js +249 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/package.d.ts +3 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/package.js +151 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.d.ts +18 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/supplierSelect.js +146 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseAreaSelect.js +147 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.d.ts +18 -0
- package/dist/esm/component/BiuField/component/TableSelectLocal/warehouseInfoSelects.js +101 -0
- package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.d.ts +9 -0
- package/dist/esm/component/BiuField/component/appliedgoodsTypeSelect.js +75 -0
- package/dist/esm/component/BiuField/component/autoComplete.d.ts +8 -0
- package/dist/esm/component/BiuField/component/autoComplete.js +83 -0
- package/dist/esm/component/BiuField/component/biuMultipleAInput.d.ts +2 -0
- package/dist/esm/component/BiuField/component/biuMultipleAInput.js +133 -0
- package/dist/esm/component/BiuField/component/boxTypeSelect.d.ts +11 -0
- package/dist/esm/component/BiuField/component/boxTypeSelect.js +139 -0
- package/dist/esm/component/BiuField/component/businessdistrictselect.d.ts +55 -0
- package/dist/esm/component/BiuField/component/businessdistrictselect.js +414 -0
- package/dist/esm/component/BiuField/component/carrierInfoSelect.d.ts +13 -0
- package/dist/esm/component/BiuField/component/carrierInfoSelect.js +164 -0
- package/dist/esm/component/BiuField/component/channelSelect.d.ts +8 -0
- package/dist/esm/component/BiuField/component/channelSelect.js +95 -0
- package/dist/esm/component/BiuField/component/cityAreaCascader.d.ts +11 -0
- package/dist/esm/component/BiuField/component/cityAreaCascader.js +88 -0
- package/dist/esm/component/BiuField/component/clientInfoTableSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/clientInfoTableSelect.js +199 -0
- package/dist/esm/component/BiuField/component/customMenu.d.ts +3 -0
- package/dist/esm/component/BiuField/component/customMenu.js +110 -0
- package/dist/esm/component/BiuField/component/databaseSelect.d.ts +6 -0
- package/dist/esm/component/BiuField/component/databaseSelect.js +42 -0
- package/dist/esm/component/BiuField/component/departmentTreeSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/departmentTreeSelect.js +106 -0
- package/dist/esm/component/BiuField/component/dicNameSelect.d.ts +12 -0
- package/dist/esm/component/BiuField/component/dicNameSelect.js +53 -0
- package/dist/esm/component/BiuField/component/dicTypeSelect.d.ts +42 -0
- package/dist/esm/component/BiuField/component/dicTypeSelect.js +87 -0
- package/dist/esm/component/BiuField/component/dockingPartySelect.d.ts +8 -0
- package/dist/esm/component/BiuField/component/dockingPartySelect.js +63 -0
- package/dist/esm/component/BiuField/component/editLocationSelect.d.ts +21 -0
- package/dist/esm/component/BiuField/component/editLocationSelect.js +124 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/accountSelect.js +36 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.d.ts +14 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/addresSelect.js +98 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.d.ts +7 -0
- package/dist/esm/component/BiuField/component/electronicFaceSheet/platformSelect.js +74 -0
- package/dist/esm/component/BiuField/component/goodsTypeSelect.d.ts +10 -0
- package/dist/esm/component/BiuField/component/goodsTypeSelect.js +92 -0
- package/dist/esm/component/BiuField/component/index.d.ts +39 -0
- package/dist/esm/component/BiuField/component/index.js +39 -0
- package/dist/esm/component/BiuField/component/interfaceNameSelect.d.ts +9 -0
- package/dist/esm/component/BiuField/component/interfaceNameSelect.js +65 -0
- package/dist/esm/component/BiuField/component/lpnSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/lpnSelect.js +96 -0
- package/dist/esm/component/BiuField/component/lpnSelectNew.d.ts +17 -0
- package/dist/esm/component/BiuField/component/lpnSelectNew.js +189 -0
- package/dist/esm/component/BiuField/component/newEditLocationSelect.d.ts +21 -0
- package/dist/esm/component/BiuField/component/newEditLocationSelect.js +129 -0
- package/dist/esm/component/BiuField/component/newUserSelect.d.ts +12 -0
- package/dist/esm/component/BiuField/component/newUserSelect.js +212 -0
- package/dist/esm/component/BiuField/component/orderTypeSelect.d.ts +16 -0
- package/dist/esm/component/BiuField/component/orderTypeSelect.js +82 -0
- package/dist/esm/component/BiuField/component/orderTypeTableSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/orderTypeTableSelect.js +45 -0
- package/dist/esm/component/BiuField/component/parkSelect.d.ts +12 -0
- package/dist/esm/component/BiuField/component/parkSelect.js +88 -0
- package/dist/esm/component/BiuField/component/personnelinfoselect.d.ts +57 -0
- package/dist/esm/component/BiuField/component/personnelinfoselect.js +432 -0
- package/dist/esm/component/BiuField/component/propertNameSelect.d.ts +9 -0
- package/dist/esm/component/BiuField/component/propertNameSelect.js +114 -0
- package/dist/esm/component/BiuField/component/shipperTableSelect.d.ts +3 -0
- package/dist/esm/component/BiuField/component/shipperTableSelect.js +94 -0
- package/dist/esm/component/BiuField/component/userSelect.d.ts +11 -0
- package/dist/esm/component/BiuField/component/userSelect.js +174 -0
- package/dist/esm/component/BiuField/component/warehouseAreaSelect.d.ts +9 -0
- package/dist/esm/component/BiuField/component/warehouseAreaSelect.js +104 -0
- package/dist/esm/component/BiuField/component/warehouseInfoSelect.d.ts +14 -0
- package/dist/esm/component/BiuField/component/warehouseInfoSelect.js +94 -0
- package/dist/esm/component/BiuField/component/warehouseLoctionSelect.d.ts +14 -0
- package/dist/esm/component/BiuField/component/warehouseLoctionSelect.js +125 -0
- package/dist/esm/component/BiuField/index.d.ts +8 -0
- package/dist/esm/component/BiuField/index.js +680 -0
- package/dist/esm/component/BiuFileInput/index.d.ts +11 -0
- package/dist/esm/component/BiuFileInput/index.js +58 -0
- package/dist/esm/component/BiuForm/index.d.ts +14 -0
- package/dist/esm/component/BiuForm/index.js +270 -0
- package/dist/esm/component/BiuForm/type.d.ts +47 -0
- package/dist/esm/component/BiuForm/type.js +1 -0
- package/dist/esm/component/BiuForm/utils.d.ts +2 -0
- package/dist/esm/component/BiuForm/utils.js +53 -0
- package/dist/esm/component/BiuIcon/index.d.ts +3 -0
- package/dist/esm/component/BiuIcon/index.js +15 -0
- package/dist/esm/component/BiuMapSelectSite/index.d.ts +53 -0
- package/dist/esm/component/BiuMapSelectSite/index.js +593 -0
- package/dist/esm/component/BiuModal/index.d.ts +24 -0
- package/dist/esm/component/BiuModal/index.js +240 -0
- package/dist/esm/component/BiuOperForm/index.d.ts +22 -0
- package/dist/esm/component/BiuOperForm/index.js +390 -0
- package/dist/esm/component/BiuOperForm/type.d.ts +24 -0
- package/dist/esm/component/BiuOperForm/type.js +1 -0
- package/dist/esm/component/BiuOperTable/index.d.ts +15 -0
- package/dist/esm/component/BiuOperTable/index.js +349 -0
- package/dist/esm/component/BiuOperTable/type.d.ts +142 -0
- package/dist/esm/component/BiuOperTable/type.js +1 -0
- package/dist/esm/component/BiuOperTable/utils.d.ts +6 -0
- package/dist/esm/component/BiuOperTable/utils.js +13 -0
- package/dist/esm/component/BiuPagination/index.d.ts +15 -0
- package/dist/esm/component/BiuPagination/index.js +34 -0
- package/dist/esm/component/BiuResizeTable/component/VirtualTable.d.ts +3 -0
- package/dist/esm/component/BiuResizeTable/component/VirtualTable.js +127 -0
- package/dist/esm/component/BiuResizeTable/component/biuTableCell.d.ts +1 -0
- package/dist/esm/component/BiuResizeTable/component/biuTableCell.js +78 -0
- package/dist/esm/component/BiuResizeTable/component/index.d.ts +1 -0
- package/dist/esm/component/BiuResizeTable/component/index.js +1 -0
- package/dist/esm/component/BiuResizeTable/index.d.ts +2 -0
- package/dist/esm/component/BiuResizeTable/index.js +71 -0
- package/dist/esm/component/BiuResizeTable/index.less +19 -0
- package/dist/esm/component/BiuSplit/index.d.ts +32 -0
- package/dist/esm/component/BiuSplit/index.js +57 -0
- package/dist/esm/component/BiuTable/component/index.d.ts +3 -0
- package/dist/esm/component/BiuTable/component/index.js +3 -0
- package/dist/esm/component/BiuTable/component/tableActionBarRender.d.ts +9 -0
- package/dist/esm/component/BiuTable/component/tableActionBarRender.js +206 -0
- package/dist/esm/component/BiuTable/component/tableCellRender.d.ts +14 -0
- package/dist/esm/component/BiuTable/component/tableCellRender.js +125 -0
- package/dist/esm/component/BiuTable/component/tableSettingRender.d.ts +2 -0
- package/dist/esm/component/BiuTable/component/tableSettingRender.js +347 -0
- package/dist/esm/component/BiuTable/context.d.ts +2 -0
- package/dist/esm/component/BiuTable/context.js +2 -0
- package/dist/esm/component/BiuTable/index.d.ts +67 -0
- package/dist/esm/component/BiuTable/index.js +586 -0
- package/dist/esm/component/BiuTable/type.d.ts +200 -0
- package/dist/esm/component/BiuTable/type.js +1 -0
- package/dist/esm/component/BiuTable/utils.d.ts +12 -0
- package/dist/esm/component/BiuTable/utils.js +123 -0
- package/dist/esm/component/BiuTableLink/index.d.ts +11 -0
- package/dist/esm/component/BiuTableLink/index.js +54 -0
- package/dist/esm/component/BiuTableSelect/index.d.ts +54 -0
- package/dist/esm/component/BiuTableSelect/index.js +231 -0
- package/dist/esm/component/BiuTabs/index.d.ts +4 -0
- package/dist/esm/component/BiuTabs/index.js +18 -0
- package/dist/esm/component/index.d.ts +34 -0
- package/dist/esm/component/index.js +34 -0
- package/dist/esm/constant/Cache_Key.d.ts +28 -0
- package/dist/esm/constant/Cache_Key.js +28 -0
- package/dist/esm/constant/DateTime.d.ts +12 -0
- package/dist/esm/constant/DateTime.js +15 -0
- package/dist/esm/constant/External.d.ts +64 -0
- package/dist/esm/constant/External.js +260 -0
- package/dist/esm/constant/Gateway_Path.d.ts +5 -0
- package/dist/esm/constant/Gateway_Path.js +5 -0
- package/dist/esm/constant/Layout.d.ts +210 -0
- package/dist/esm/constant/Layout.js +215 -0
- package/dist/esm/constant/Regexp.d.ts +109 -0
- package/dist/esm/constant/Regexp.js +130 -0
- package/dist/esm/constant/index.d.ts +6 -0
- package/dist/esm/constant/index.js +6 -0
- package/dist/esm/hooks/index.d.ts +7 -0
- package/dist/esm/hooks/index.js +7 -0
- package/dist/esm/hooks/useAuth.d.ts +4 -0
- package/dist/esm/hooks/useAuth.js +22 -0
- package/dist/esm/hooks/useCurrentSystem.d.ts +6 -0
- package/dist/esm/hooks/useCurrentSystem.js +17 -0
- package/dist/esm/hooks/useLayoutInfo.d.ts +10 -0
- package/dist/esm/hooks/useLayoutInfo.js +14 -0
- package/dist/esm/hooks/useReducerState.d.ts +16 -0
- package/dist/esm/hooks/useReducerState.js +45 -0
- package/dist/esm/hooks/useUmeng.d.ts +5 -0
- package/dist/esm/hooks/useUmeng.js +168 -0
- package/dist/esm/hooks/useUserInfo.d.ts +4 -0
- package/dist/esm/hooks/useUserInfo.js +17 -0
- package/dist/esm/hooks/useWareInfo.d.ts +4 -0
- package/dist/esm/hooks/useWareInfo.js +17 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/package/index.d.ts +1 -0
- package/dist/esm/package/index.js +1 -0
- package/dist/esm/package/requestWrapper/baseRequest.d.ts +3 -0
- package/dist/esm/package/requestWrapper/baseRequest.js +47 -0
- package/dist/esm/package/requestWrapper/index.d.ts +4 -0
- package/dist/esm/package/requestWrapper/index.js +425 -0
- package/dist/esm/package/requestWrapper/type.d.ts +41 -0
- package/dist/esm/package/requestWrapper/type.js +1 -0
- package/dist/esm/package/requestWrapper/utils.d.ts +10 -0
- package/dist/esm/package/requestWrapper/utils.js +45 -0
- package/dist/esm/types/track.d.ts +113 -0
- package/dist/esm/types/track.js +63 -0
- package/dist/esm/types/umeng.d.ts +7 -0
- package/dist/esm/utils/authUtils.d.ts +18 -0
- package/dist/esm/utils/authUtils.js +36 -0
- package/dist/esm/utils/cacheUtils.d.ts +4 -0
- package/dist/esm/utils/cacheUtils.js +24 -0
- package/dist/esm/utils/chainUtils.d.ts +26 -0
- package/dist/esm/utils/chainUtils.js +54 -0
- package/dist/esm/utils/dateUtils.d.ts +23 -0
- package/dist/esm/utils/dateUtils.js +55 -0
- package/dist/esm/utils/decimalUtils.d.ts +5 -0
- package/dist/esm/utils/decimalUtils.js +7 -0
- package/dist/esm/utils/excelUtils.d.ts +22 -0
- package/dist/esm/utils/excelUtils.js +165 -0
- package/dist/esm/utils/index.d.ts +11 -0
- package/dist/esm/utils/index.js +11 -0
- package/dist/esm/utils/layoutUtils.d.ts +1 -0
- package/dist/esm/utils/layoutUtils.js +13 -0
- package/dist/esm/utils/objectUtils.d.ts +1 -0
- package/dist/esm/utils/objectUtils.js +3 -0
- package/dist/esm/utils/soundUtils.d.ts +5 -0
- package/dist/esm/utils/soundUtils.js +29 -0
- package/dist/esm/utils/stringUtils.d.ts +24 -0
- package/dist/esm/utils/stringUtils.js +39 -0
- package/dist/esm/utils/sysUtils.d.ts +8 -0
- package/dist/esm/utils/sysUtils.js +33 -0
- package/dist/esm/utils/umeng.d.ts +3 -0
- package/dist/esm/utils/umeng.js +161 -0
- package/package.json +60 -0
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
5
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
6
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
9
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
11
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
13
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
14
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
15
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
16
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
17
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
+
import AMapLoader from '@amap/amap-jsapi-loader';
|
|
21
|
+
import { AutoComplete, Modal } from 'antd';
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import { styled } from 'styled-components';
|
|
24
|
+
import { ChainDebounceOrThrottle } from "../../utils";
|
|
25
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
+
var AMap;
|
|
28
|
+
var map;
|
|
29
|
+
var geocoder;
|
|
30
|
+
var StyledModal = styled(Modal).withConfig({
|
|
31
|
+
displayName: "StyledModal",
|
|
32
|
+
componentId: "wt-antd__sc-2h2wuw-0"
|
|
33
|
+
})(["display:flex;align-items:center;justify-content:center;.ant-modal{padding-bottom:0;}"]);
|
|
34
|
+
var StyledMapDiv = styled.div.withConfig({
|
|
35
|
+
displayName: "StyledMapDiv",
|
|
36
|
+
componentId: "wt-antd__sc-2h2wuw-1"
|
|
37
|
+
})(["position:relative;flex:1 1 570px;.map-content{height:100%;}img{position:absolute;top:50%;left:50%;}"]);
|
|
38
|
+
var StyledGeoLocationDiv = styled.div.withConfig({
|
|
39
|
+
displayName: "StyledGeoLocationDiv",
|
|
40
|
+
componentId: "wt-antd__sc-2h2wuw-2"
|
|
41
|
+
})(["position:absolute;right:4px;bottom:10px;width:35px;height:35px;background:#fff url('https://webapi.amap.com/theme/v1.3/markers/b/loc_gray.png') 50% 50% no-repeat;border:1px solid #ccc;border-radius:3px;cursor:pointer;"]);
|
|
42
|
+
export var BiuMapSelectSite = /*#__PURE__*/function (_React$PureComponent) {
|
|
43
|
+
_inherits(BiuMapSelectSite, _React$PureComponent);
|
|
44
|
+
var _super = _createSuper(BiuMapSelectSite);
|
|
45
|
+
function BiuMapSelectSite() {
|
|
46
|
+
var _this;
|
|
47
|
+
_classCallCheck(this, BiuMapSelectSite);
|
|
48
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
49
|
+
args[_key] = arguments[_key];
|
|
50
|
+
}
|
|
51
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
52
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
53
|
+
province: null,
|
|
54
|
+
// 省
|
|
55
|
+
city: null,
|
|
56
|
+
// 市
|
|
57
|
+
district: null,
|
|
58
|
+
// 区
|
|
59
|
+
lng: null,
|
|
60
|
+
// 经度
|
|
61
|
+
lat: null,
|
|
62
|
+
// 纬度
|
|
63
|
+
address: null,
|
|
64
|
+
// 地址
|
|
65
|
+
searchList: [],
|
|
66
|
+
// 搜索地址
|
|
67
|
+
periphery: [],
|
|
68
|
+
// 周边
|
|
69
|
+
lngSearch: '',
|
|
70
|
+
// 搜索的经度
|
|
71
|
+
latSearch: '',
|
|
72
|
+
// 搜索的纬度
|
|
73
|
+
searchValue: undefined
|
|
74
|
+
});
|
|
75
|
+
_defineProperty(_assertThisInitialized(_this), "mark", null);
|
|
76
|
+
_defineProperty(_assertThisInitialized(_this), "isSuccess", true);
|
|
77
|
+
_defineProperty(_assertThisInitialized(_this), "placeSearch", null);
|
|
78
|
+
_defineProperty(_assertThisInitialized(_this), "autoComplete", null);
|
|
79
|
+
_defineProperty(_assertThisInitialized(_this), "init", function () {
|
|
80
|
+
;
|
|
81
|
+
window._AMapSecurityConfig = {
|
|
82
|
+
securityJsCode: process.env.AmapSecurityCode || ''
|
|
83
|
+
};
|
|
84
|
+
var start = function start() {
|
|
85
|
+
// 初次加载如果已存在则注销
|
|
86
|
+
if (map) {
|
|
87
|
+
map.destroy();
|
|
88
|
+
if (_this.mark) _this.mark = null;
|
|
89
|
+
}
|
|
90
|
+
// 地图实例化
|
|
91
|
+
map = new AMap.Map(_this.props.id, {
|
|
92
|
+
resizeEnable: true,
|
|
93
|
+
// 是否监控地图容器尺寸变化
|
|
94
|
+
zoom: 16
|
|
95
|
+
});
|
|
96
|
+
// 注册插件
|
|
97
|
+
// var PlaceSearch = new AMap.PlaceSearch();
|
|
98
|
+
// map.plugin(PlaceSearch);
|
|
99
|
+
map.on('complete', function () {
|
|
100
|
+
// 搜索插件
|
|
101
|
+
// map.plugin(['AMap.PlaceSearch'], () => {
|
|
102
|
+
// map.addControl(new AMap.PlaceSearch());
|
|
103
|
+
// });
|
|
104
|
+
if (_this.props.textAddress) {
|
|
105
|
+
_this.getGeocoder();
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
// 默认位置
|
|
109
|
+
if (_this.props.position && _this.props.position.lng && _this.props.position.lat) {
|
|
110
|
+
_this.mapDrawMarker(_this.props.position.lng, _this.props.position.lat);
|
|
111
|
+
// map.setCenter([this.props.position.lng, this.props.position.lat]); // 设置地图中心点
|
|
112
|
+
_this.getAddress(_this.props.position.lng, _this.props.position.lat);
|
|
113
|
+
} else {
|
|
114
|
+
_this.geolocation();
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// 影藏自带的文字
|
|
118
|
+
;
|
|
119
|
+
document.getElementsByClassName('amap-copyright')[0].style.visibility = 'hidden';
|
|
120
|
+
});
|
|
121
|
+
geocoder = new AMap.Geocoder();
|
|
122
|
+
|
|
123
|
+
// 绑定地图移动结束事件
|
|
124
|
+
map.on('moveend', function () {
|
|
125
|
+
// 获取地图中心的坐标
|
|
126
|
+
var _map$getCenter = map.getCenter(),
|
|
127
|
+
lng = _map$getCenter.lng,
|
|
128
|
+
lat = _map$getCenter.lat;
|
|
129
|
+
|
|
130
|
+
// 根据坐标获取地理位置
|
|
131
|
+
_this.getAddress(lng, lat);
|
|
132
|
+
});
|
|
133
|
+
map.on('click', function (e) {
|
|
134
|
+
_this.mapDrawMarker(e.lnglat.lng, e.lnglat.lat);
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
if (!AMap) {
|
|
138
|
+
AMapLoader.load({
|
|
139
|
+
key: process.env.AmapKey || '',
|
|
140
|
+
// 申请好的Web端开发者Key,首次调用 load 时必填
|
|
141
|
+
version: '2.0',
|
|
142
|
+
plugins: ['AMap.Geocoder', 'AMap.PlaceSearch', 'AMap.LngLat', 'AMap.AutoComplete']
|
|
143
|
+
}).then(function (amap) {
|
|
144
|
+
AMap = amap;
|
|
145
|
+
start();
|
|
146
|
+
});
|
|
147
|
+
} else if (_this.props.open) {
|
|
148
|
+
setTimeout(function () {
|
|
149
|
+
start();
|
|
150
|
+
}, 100);
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
_defineProperty(_assertThisInitialized(_this), "mapDrawMarker", function (lng, lat) {
|
|
154
|
+
if (_this.mark) {
|
|
155
|
+
_this.mark.setPosition(new AMap.LngLat(lng, lat));
|
|
156
|
+
} else {
|
|
157
|
+
_this.mark = new AMap.Marker({
|
|
158
|
+
map: map,
|
|
159
|
+
position: new AMap.LngLat(lng, lat) // 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9]
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
map.setCenter([lng, lat]); // 设置地图中心点
|
|
163
|
+
});
|
|
164
|
+
_defineProperty(_assertThisInitialized(_this), "getGeocoder", function () {
|
|
165
|
+
var that = _assertThisInitialized(_this);
|
|
166
|
+
AMap.plugin('AMap.Geocoder', function () {
|
|
167
|
+
var _that$props;
|
|
168
|
+
var geocoder = new AMap.Geocoder({
|
|
169
|
+
enableHighAccuracy: true,
|
|
170
|
+
// 是否使用高精度定位,默认:true
|
|
171
|
+
timeout: 10000,
|
|
172
|
+
// 超过10秒后停止定位,默认:5s
|
|
173
|
+
buttonPosition: 'RB',
|
|
174
|
+
// 定位按钮的停靠位置
|
|
175
|
+
buttonOffset: new AMap.Pixel(10, 20),
|
|
176
|
+
// 定位按钮距离对应角落的距离
|
|
177
|
+
zoomToAccuracy: true
|
|
178
|
+
});
|
|
179
|
+
// map.addControl(geocoder)
|
|
180
|
+
geocoder.getLocation((_that$props = that.props) === null || _that$props === void 0 ? void 0 : _that$props.textAddress, function (status, result) {
|
|
181
|
+
console.log('geocoder.getLocation', status, result);
|
|
182
|
+
if (status === 'complete' && result.geocodes.length) {
|
|
183
|
+
var geocode = result.geocodes[0];
|
|
184
|
+
map.setCenter(geocode.location); // 根据地址设置地图中心点
|
|
185
|
+
that.mark = new AMap.Marker({
|
|
186
|
+
position: geocode.location,
|
|
187
|
+
map: map // 添加到地图上
|
|
188
|
+
});
|
|
189
|
+
} else {
|
|
190
|
+
console.error('根据地址查询失败');
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
_defineProperty(_assertThisInitialized(_this), "invokeSearchPOI", /*#__PURE__*/function () {
|
|
196
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(name) {
|
|
197
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
198
|
+
while (1) switch (_context.prev = _context.next) {
|
|
199
|
+
case 0:
|
|
200
|
+
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
201
|
+
var _this$placeSearch;
|
|
202
|
+
(_this$placeSearch = _this.placeSearch) === null || _this$placeSearch === void 0 || _this$placeSearch.search(name, function (status, result) {
|
|
203
|
+
var _result$poiList;
|
|
204
|
+
console.log('placeSearch结果', result);
|
|
205
|
+
if (result.info === 'OK' && (_result$poiList = result.poiList) !== null && _result$poiList !== void 0 && _result$poiList.count) {
|
|
206
|
+
resolve(result.poiList.pois || []);
|
|
207
|
+
} else {
|
|
208
|
+
reject();
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
}));
|
|
212
|
+
case 1:
|
|
213
|
+
case "end":
|
|
214
|
+
return _context.stop();
|
|
215
|
+
}
|
|
216
|
+
}, _callee);
|
|
217
|
+
}));
|
|
218
|
+
return function (_x) {
|
|
219
|
+
return _ref.apply(this, arguments);
|
|
220
|
+
};
|
|
221
|
+
}());
|
|
222
|
+
_defineProperty(_assertThisInitialized(_this), "invokeAutoComplete", /*#__PURE__*/function () {
|
|
223
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(name) {
|
|
224
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
225
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
226
|
+
case 0:
|
|
227
|
+
return _context2.abrupt("return", new Promise(function (resolve, reject) {
|
|
228
|
+
_this.autoComplete.search(name, function (status, result) {
|
|
229
|
+
console.log('AutoComplete结果', result);
|
|
230
|
+
var info = result.info,
|
|
231
|
+
count = result.count,
|
|
232
|
+
tips = result.tips;
|
|
233
|
+
if (info === 'OK' && count > 0) {
|
|
234
|
+
resolve(tips || []);
|
|
235
|
+
} else {
|
|
236
|
+
reject();
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
}));
|
|
240
|
+
case 1:
|
|
241
|
+
case "end":
|
|
242
|
+
return _context2.stop();
|
|
243
|
+
}
|
|
244
|
+
}, _callee2);
|
|
245
|
+
}));
|
|
246
|
+
return function (_x2) {
|
|
247
|
+
return _ref2.apply(this, arguments);
|
|
248
|
+
};
|
|
249
|
+
}());
|
|
250
|
+
// 搜索
|
|
251
|
+
_defineProperty(_assertThisInitialized(_this), "search", /*#__PURE__*/function () {
|
|
252
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
|
|
253
|
+
var that, result;
|
|
254
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
255
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
256
|
+
case 0:
|
|
257
|
+
if (value) {
|
|
258
|
+
_context3.next = 3;
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
_this.setState({
|
|
262
|
+
searchList: []
|
|
263
|
+
});
|
|
264
|
+
return _context3.abrupt("return");
|
|
265
|
+
case 3:
|
|
266
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
267
|
+
that = _assertThisInitialized(_this);
|
|
268
|
+
that.setState({
|
|
269
|
+
searchList: []
|
|
270
|
+
});
|
|
271
|
+
if (AMap) {
|
|
272
|
+
_context3.next = 7;
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
return _context3.abrupt("return");
|
|
276
|
+
case 7:
|
|
277
|
+
if (!_this.placeSearch) {
|
|
278
|
+
_this.placeSearch = new AMap.PlaceSearch({
|
|
279
|
+
pageSize: 20,
|
|
280
|
+
// 单页显示结果条数
|
|
281
|
+
pageIndex: 1 // 页码
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
if (!_this.autoComplete) {
|
|
285
|
+
_this.autoComplete = new AMap.AutoComplete({
|
|
286
|
+
city: '全国',
|
|
287
|
+
datatype: 'poi'
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
_context3.prev = 9;
|
|
291
|
+
_context3.next = 12;
|
|
292
|
+
return _this.invokeAutoComplete(value);
|
|
293
|
+
case 12:
|
|
294
|
+
result = _context3.sent;
|
|
295
|
+
_context3.next = 17;
|
|
296
|
+
break;
|
|
297
|
+
case 15:
|
|
298
|
+
_context3.prev = 15;
|
|
299
|
+
_context3.t0 = _context3["catch"](9);
|
|
300
|
+
case 17:
|
|
301
|
+
_context3.prev = 17;
|
|
302
|
+
if (!(!result || result.length === 0)) {
|
|
303
|
+
_context3.next = 22;
|
|
304
|
+
break;
|
|
305
|
+
}
|
|
306
|
+
_context3.next = 21;
|
|
307
|
+
return _this.invokeSearchPOI(value);
|
|
308
|
+
case 21:
|
|
309
|
+
result = _context3.sent;
|
|
310
|
+
case 22:
|
|
311
|
+
_context3.next = 26;
|
|
312
|
+
break;
|
|
313
|
+
case 24:
|
|
314
|
+
_context3.prev = 24;
|
|
315
|
+
_context3.t1 = _context3["catch"](17);
|
|
316
|
+
case 26:
|
|
317
|
+
that.setState({
|
|
318
|
+
searchList: result || []
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
// this.placeSearch.search(value, (status: string, result: any) => {
|
|
322
|
+
// if (result?.info === 'OK') {
|
|
323
|
+
// that.setState({
|
|
324
|
+
// searchList: result?.poiList?.pois || []
|
|
325
|
+
// })
|
|
326
|
+
// } else {
|
|
327
|
+
// that.setState({
|
|
328
|
+
// searchList: []
|
|
329
|
+
// })
|
|
330
|
+
// }
|
|
331
|
+
// })
|
|
332
|
+
case 27:
|
|
333
|
+
case "end":
|
|
334
|
+
return _context3.stop();
|
|
335
|
+
}
|
|
336
|
+
}, _callee3, null, [[9, 15], [17, 24]]);
|
|
337
|
+
}));
|
|
338
|
+
return function (_x3) {
|
|
339
|
+
return _ref3.apply(this, arguments);
|
|
340
|
+
};
|
|
341
|
+
}());
|
|
342
|
+
_defineProperty(_assertThisInitialized(_this), "debounceSearch", ChainDebounceOrThrottle(_this.search, 2000, true));
|
|
343
|
+
// 搜索确定
|
|
344
|
+
_defineProperty(_assertThisInitialized(_this), "handleSelect", function (_value, opts) {
|
|
345
|
+
console.log('handleSelect', _value, opts);
|
|
346
|
+
|
|
347
|
+
// 根据地址获取经纬度,改变地图中心位置
|
|
348
|
+
_this.mapDrawMarker(opts.location.lng, opts.location.lat);
|
|
349
|
+
// map.setCenter([opts.location.R, opts.location.Q]); // 设置地图中心点
|
|
350
|
+
map.setZoom(16); // 设置地图层级
|
|
351
|
+
setTimeout(function () {
|
|
352
|
+
// 获取位置
|
|
353
|
+
_this.getAddress(opts.location.lng, opts.location.lat);
|
|
354
|
+
}, 500);
|
|
355
|
+
});
|
|
356
|
+
// 根据坐标获取地理位置
|
|
357
|
+
_defineProperty(_assertThisInitialized(_this), "getAddress", function (lng, lat) {
|
|
358
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
359
|
+
var that = _assertThisInitialized(_this);
|
|
360
|
+
geocoder.getAddress([lng, lat], function (status, result) {
|
|
361
|
+
if (status === 'complete' && result.regeocode) {
|
|
362
|
+
var _result$regeocode, _result$regeocode2, _result$regeocode3, _result$regeocode4, _result$regeocode5, _result$regeocode6;
|
|
363
|
+
var address = result === null || result === void 0 || (_result$regeocode = result.regeocode) === null || _result$regeocode === void 0 ? void 0 : _result$regeocode.formattedAddress;
|
|
364
|
+
_this.setState({
|
|
365
|
+
province: result === null || result === void 0 || (_result$regeocode2 = result.regeocode) === null || _result$regeocode2 === void 0 ? void 0 : _result$regeocode2.addressComponent.province,
|
|
366
|
+
// 省
|
|
367
|
+
city: result !== null && result !== void 0 && (_result$regeocode3 = result.regeocode) !== null && _result$regeocode3 !== void 0 && _result$regeocode3.addressComponent.city ? result === null || result === void 0 || (_result$regeocode4 = result.regeocode) === null || _result$regeocode4 === void 0 ? void 0 : _result$regeocode4.addressComponent.city : result === null || result === void 0 || (_result$regeocode5 = result.regeocode) === null || _result$regeocode5 === void 0 ? void 0 : _result$regeocode5.addressComponent.province,
|
|
368
|
+
// 市
|
|
369
|
+
district: result === null || result === void 0 || (_result$regeocode6 = result.regeocode) === null || _result$regeocode6 === void 0 ? void 0 : _result$regeocode6.addressComponent.district,
|
|
370
|
+
// 区
|
|
371
|
+
lng: lng,
|
|
372
|
+
lat: lat,
|
|
373
|
+
address: address
|
|
374
|
+
});
|
|
375
|
+
} else {
|
|
376
|
+
_this.setState({
|
|
377
|
+
province: null,
|
|
378
|
+
city: null,
|
|
379
|
+
district: null,
|
|
380
|
+
lng: lng,
|
|
381
|
+
lat: lat,
|
|
382
|
+
address: '获取地址失败'
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
// 周边搜索
|
|
387
|
+
var placeSearch = new AMap.PlaceSearch({
|
|
388
|
+
type: '商务住宅',
|
|
389
|
+
pageSize: 30,
|
|
390
|
+
// 单页显示结果条数
|
|
391
|
+
pageIndex: 1,
|
|
392
|
+
// 页码
|
|
393
|
+
extensions: 'all'
|
|
394
|
+
// map: map, // 展现结果的地图实例
|
|
395
|
+
});
|
|
396
|
+
var cpoint = [lng, lat]; // 中心点坐标
|
|
397
|
+
placeSearch.searchNearBy('', cpoint, 200, function (status, result) {
|
|
398
|
+
if (status === 'complete') {
|
|
399
|
+
that.setState({
|
|
400
|
+
periphery: result.poiList.pois
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
});
|
|
405
|
+
// 选择周边
|
|
406
|
+
_defineProperty(_assertThisInitialized(_this), "selectPeriphery", function (opts) {
|
|
407
|
+
// 获取地名
|
|
408
|
+
geocoder.getAddress("".concat(opts.location.R, ",").concat(opts.location.Q), function (status, result) {
|
|
409
|
+
if (status === 'complete' && result.regeocode) {
|
|
410
|
+
var _result$regeocode7, _result$regeocode8, _result$regeocode9, _result$regeocode10, _result$regeocode11, _result$regeocode12;
|
|
411
|
+
var address = result === null || result === void 0 || (_result$regeocode7 = result.regeocode) === null || _result$regeocode7 === void 0 ? void 0 : _result$regeocode7.formattedAddress;
|
|
412
|
+
_this.setState({
|
|
413
|
+
province: result === null || result === void 0 || (_result$regeocode8 = result.regeocode) === null || _result$regeocode8 === void 0 ? void 0 : _result$regeocode8.addressComponent.province,
|
|
414
|
+
// 省
|
|
415
|
+
city: result !== null && result !== void 0 && (_result$regeocode9 = result.regeocode) !== null && _result$regeocode9 !== void 0 && _result$regeocode9.addressComponent.city ? result === null || result === void 0 || (_result$regeocode10 = result.regeocode) === null || _result$regeocode10 === void 0 ? void 0 : _result$regeocode10.addressComponent.city : result === null || result === void 0 || (_result$regeocode11 = result.regeocode) === null || _result$regeocode11 === void 0 ? void 0 : _result$regeocode11.addressComponent.province,
|
|
416
|
+
// 市
|
|
417
|
+
district: result === null || result === void 0 || (_result$regeocode12 = result.regeocode) === null || _result$regeocode12 === void 0 ? void 0 : _result$regeocode12.addressComponent.district,
|
|
418
|
+
// 区
|
|
419
|
+
lng: opts.location.R,
|
|
420
|
+
lat: opts.location.Q,
|
|
421
|
+
address: address
|
|
422
|
+
});
|
|
423
|
+
} else {
|
|
424
|
+
_this.setState({
|
|
425
|
+
province: null,
|
|
426
|
+
city: null,
|
|
427
|
+
district: null,
|
|
428
|
+
lng: opts.location.R,
|
|
429
|
+
lat: opts.location.Q,
|
|
430
|
+
address: '获取地址失败'
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
});
|
|
435
|
+
// 定位
|
|
436
|
+
_defineProperty(_assertThisInitialized(_this), "geolocation", function () {
|
|
437
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
438
|
+
var that = _assertThisInitialized(_this);
|
|
439
|
+
// 获取当前定位
|
|
440
|
+
AMap.plugin('AMap.Geolocation', function () {
|
|
441
|
+
var geolocation = new AMap.Geolocation({
|
|
442
|
+
enableHighAccuracy: true,
|
|
443
|
+
// 是否使用高经度定位,默认:true
|
|
444
|
+
timeout: 10000,
|
|
445
|
+
// 超过10秒后停止定位,默认:5s
|
|
446
|
+
buttonPosition: 'LB',
|
|
447
|
+
// 定位按钮的停靠位置
|
|
448
|
+
buttonOffset: new AMap.Pixel(15, 10),
|
|
449
|
+
// 定位按钮与设置的停靠位置的偏移量,默认:Pixel(10, 20)
|
|
450
|
+
zoomToAccuracy: true // 定位成功后是否自动调整地图视野到定位点
|
|
451
|
+
});
|
|
452
|
+
geolocation.getCurrentPosition(function (status, result) {
|
|
453
|
+
if (status === 'complete') {
|
|
454
|
+
var _result$position, _result$position2, _result$addressCompon, _result$addressCompon2, _result$addressCompon3, _result$addressCompon4, _result$addressCompon5, _result$position3, _result$position4;
|
|
455
|
+
// 定位成功默认设置到自己位置
|
|
456
|
+
map.setCenter([result === null || result === void 0 || (_result$position = result.position) === null || _result$position === void 0 ? void 0 : _result$position.R, result === null || result === void 0 || (_result$position2 = result.position) === null || _result$position2 === void 0 ? void 0 : _result$position2.Q]); // 设置地图中心点
|
|
457
|
+
map.setZoom(16); // 设置地图层级
|
|
458
|
+
|
|
459
|
+
that.setState({
|
|
460
|
+
province: result === null || result === void 0 || (_result$addressCompon = result.addressComponent) === null || _result$addressCompon === void 0 ? void 0 : _result$addressCompon.province,
|
|
461
|
+
// 省
|
|
462
|
+
city: result !== null && result !== void 0 && (_result$addressCompon2 = result.addressComponent) !== null && _result$addressCompon2 !== void 0 && _result$addressCompon2.city ? result === null || result === void 0 || (_result$addressCompon3 = result.addressComponent) === null || _result$addressCompon3 === void 0 ? void 0 : _result$addressCompon3.city : result === null || result === void 0 || (_result$addressCompon4 = result.addressComponent) === null || _result$addressCompon4 === void 0 ? void 0 : _result$addressCompon4.province,
|
|
463
|
+
// 市
|
|
464
|
+
district: result === null || result === void 0 || (_result$addressCompon5 = result.addressComponent) === null || _result$addressCompon5 === void 0 ? void 0 : _result$addressCompon5.district,
|
|
465
|
+
// 区
|
|
466
|
+
lng: result === null || result === void 0 || (_result$position3 = result.position) === null || _result$position3 === void 0 ? void 0 : _result$position3.R,
|
|
467
|
+
lat: result === null || result === void 0 || (_result$position4 = result.position) === null || _result$position4 === void 0 ? void 0 : _result$position4.Q,
|
|
468
|
+
address: result === null || result === void 0 ? void 0 : result.formattedAddress
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
// 选中
|
|
475
|
+
_defineProperty(_assertThisInitialized(_this), "handleOk", function () {
|
|
476
|
+
var _this$state, _this$state2, _this$state3, _this$state4, _this$state5, _this$state6;
|
|
477
|
+
_this.props.onSelect({
|
|
478
|
+
province: (_this$state = _this.state) === null || _this$state === void 0 ? void 0 : _this$state.province,
|
|
479
|
+
city: (_this$state2 = _this.state) === null || _this$state2 === void 0 ? void 0 : _this$state2.city,
|
|
480
|
+
district: (_this$state3 = _this.state) === null || _this$state3 === void 0 ? void 0 : _this$state3.district,
|
|
481
|
+
lng: (_this$state4 = _this.state) === null || _this$state4 === void 0 ? void 0 : _this$state4.lng,
|
|
482
|
+
lat: (_this$state5 = _this.state) === null || _this$state5 === void 0 ? void 0 : _this$state5.lat,
|
|
483
|
+
address: (_this$state6 = _this.state) === null || _this$state6 === void 0 ? void 0 : _this$state6.address // this.props?.textAddress ? this.props?.textAddress : this.state?.address,
|
|
484
|
+
});
|
|
485
|
+
_this.setState({
|
|
486
|
+
lngSearch: '',
|
|
487
|
+
// 搜索的经度
|
|
488
|
+
latSearch: '',
|
|
489
|
+
// 搜索的纬度
|
|
490
|
+
searchValue: undefined
|
|
491
|
+
});
|
|
492
|
+
_this.mark = null;
|
|
493
|
+
});
|
|
494
|
+
// 取消
|
|
495
|
+
_defineProperty(_assertThisInitialized(_this), "handleCancel", function () {
|
|
496
|
+
_this.props.onCancel();
|
|
497
|
+
_this.setState(function (state) {
|
|
498
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
499
|
+
address: '',
|
|
500
|
+
searchValue: ''
|
|
501
|
+
});
|
|
502
|
+
});
|
|
503
|
+
});
|
|
504
|
+
return _this;
|
|
505
|
+
}
|
|
506
|
+
_createClass(BiuMapSelectSite, [{
|
|
507
|
+
key: "componentDidUpdate",
|
|
508
|
+
value: function componentDidUpdate() {
|
|
509
|
+
if (this.isSuccess && this.props.open) {
|
|
510
|
+
var _this$state7, _this$props2;
|
|
511
|
+
if (!((_this$state7 = this.state) !== null && _this$state7 !== void 0 && _this$state7.searchValue)) {
|
|
512
|
+
var _this$props;
|
|
513
|
+
this.setState({
|
|
514
|
+
searchValue: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.textAddress
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
if ((_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.textAddress && AMap) {
|
|
518
|
+
var _this$props3;
|
|
519
|
+
this.search((_this$props3 = this.props) === null || _this$props3 === void 0 ? void 0 : _this$props3.textAddress);
|
|
520
|
+
this.isSuccess = false;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}, {
|
|
525
|
+
key: "render",
|
|
526
|
+
value: function render() {
|
|
527
|
+
var _this2 = this;
|
|
528
|
+
var _this$props4 = this.props,
|
|
529
|
+
id = _this$props4.id,
|
|
530
|
+
open = _this$props4.open,
|
|
531
|
+
_this$props4$width = _this$props4.width,
|
|
532
|
+
width = _this$props4$width === void 0 ? '990px' : _this$props4$width,
|
|
533
|
+
_this$props4$height = _this$props4.height,
|
|
534
|
+
height = _this$props4$height === void 0 ? '410px' : _this$props4$height;
|
|
535
|
+
var _this$state8 = this.state,
|
|
536
|
+
searchList = _this$state8.searchList,
|
|
537
|
+
searchValue = _this$state8.searchValue;
|
|
538
|
+
return /*#__PURE__*/_jsx(StyledModal, {
|
|
539
|
+
title: "\u9009\u62E9\u4F4D\u7F6E",
|
|
540
|
+
open: open,
|
|
541
|
+
bodyStyle: {
|
|
542
|
+
padding: 0
|
|
543
|
+
},
|
|
544
|
+
cancelText: "\u53D6\u6D88",
|
|
545
|
+
okText: "\u786E\u5B9A",
|
|
546
|
+
onOk: this.handleOk,
|
|
547
|
+
onCancel: this.handleCancel,
|
|
548
|
+
destroyOnClose: true,
|
|
549
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
550
|
+
style: {
|
|
551
|
+
display: 'flex',
|
|
552
|
+
height: height,
|
|
553
|
+
width: width
|
|
554
|
+
},
|
|
555
|
+
children: [/*#__PURE__*/_jsxs(StyledMapDiv, {
|
|
556
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
557
|
+
id: id,
|
|
558
|
+
className: "map-content",
|
|
559
|
+
ref: this.init
|
|
560
|
+
}), /*#__PURE__*/_jsx(StyledGeoLocationDiv, {
|
|
561
|
+
onClick: this.geolocation
|
|
562
|
+
})]
|
|
563
|
+
}), /*#__PURE__*/_jsx(AutoComplete, {
|
|
564
|
+
style: {
|
|
565
|
+
width: '300px',
|
|
566
|
+
maxWidth: '300px',
|
|
567
|
+
marginBottom: '4px',
|
|
568
|
+
position: 'absolute',
|
|
569
|
+
top: '65px',
|
|
570
|
+
left: '8px'
|
|
571
|
+
},
|
|
572
|
+
onSelect: this.handleSelect,
|
|
573
|
+
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",
|
|
574
|
+
onSearch: this.debounceSearch,
|
|
575
|
+
value: searchValue,
|
|
576
|
+
onChange: function onChange(value) {
|
|
577
|
+
_this2.setState({
|
|
578
|
+
searchValue: value
|
|
579
|
+
});
|
|
580
|
+
},
|
|
581
|
+
children: searchList.map(function (item) {
|
|
582
|
+
return /*#__PURE__*/_jsx(AutoComplete.Option, _objectSpread(_objectSpread({}, item), {}, {
|
|
583
|
+
value: "".concat(item.name, " "),
|
|
584
|
+
children: item.name
|
|
585
|
+
}), "".concat(item.name, "- ").concat(item.id));
|
|
586
|
+
})
|
|
587
|
+
})]
|
|
588
|
+
})
|
|
589
|
+
});
|
|
590
|
+
}
|
|
591
|
+
}]);
|
|
592
|
+
return BiuMapSelectSite;
|
|
593
|
+
}(React.PureComponent);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ModalProps } from 'antd';
|
|
2
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
type BiuModalPropsType = {
|
|
5
|
+
title: string;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
onOk?: () => Promise<any>;
|
|
8
|
+
onCancel: () => void;
|
|
9
|
+
width?: number | string;
|
|
10
|
+
style?: CSSProperties;
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
cancelText?: string;
|
|
13
|
+
okText?: string;
|
|
14
|
+
okType?: 'primary' | 'ghost' | 'dashed' | 'link' | 'text' | 'default';
|
|
15
|
+
hiddenOkButton?: boolean;
|
|
16
|
+
hiddenCancelButton?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 是否默认全屏显示
|
|
19
|
+
*/
|
|
20
|
+
fullScreen?: boolean;
|
|
21
|
+
onFullScreenChange?: (fullScreen: boolean) => void;
|
|
22
|
+
} & ModalProps;
|
|
23
|
+
export declare const BiuModal: React.MemoExoticComponent<(props: BiuModalPropsType) => import("react/jsx-runtime").JSX.Element>;
|
|
24
|
+
export {};
|