JSPM

  • Created
  • Published
  • Downloads 327
  • Score
    100M100P100Q85385F
  • License MIT

基于 React 封装的高德地图组件。AMap Component Based On React.

Package Exports

  • @uiw/react-amap-utils
  • @uiw/react-amap-utils/cjs/index.js
  • @uiw/react-amap-utils/esm/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@uiw/react-amap-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@uiw/react-amap-utils

import { useSetStatus, useVisiable, usePrevious } from '@uiw/react-amap-utils';

useSetStatus

对实例有 setStatus 更改状态的处理

useVisiable

针对 Overlay 类型的组件,有公共的是否显示 对象处理,通过参数 visiable 来控制执行 show() or hide()

usePrevious

获取上一轮的 props 或 state

useEventProperties

useSettingProperties