Skip to content

Commit

Permalink
Release 1.0.0 (#82)
Browse files Browse the repository at this point in the history
* change proj directory

* import third part libs from nodemodules

* feat: add name props for map

* refactor: map、contextmenu

* refactor: add placeholder, adjust directory

* fix: when map mounted only send the map instance to users

* chore: rename mapMounted => mounted

* chore: process contextmenu item iconUrl

* refactor: custom control

* fix: just process different config in lifecycle componentDidUpdate

* refactor: custom control

* fix: process map center error

* refactor: cityList and copyright

* chore: make the most of the extends

* refactor: other controls

* chore: adjust control extends

* refactor: custom overlay

* refactor: marker, fix (#71)

* chore: move firstLowerCase to Util

* refactor: remove the constructor of the control subclasses

* refactor: adjust marker and circle

* refactor: adjust the implementation of placeholder

* chore: adjust the internal implementation of control

* refactor: label、polygon、boundary、marker、infowindow

* chore: update README

* fix: unknown character

* fix: unknown character

* refactor: polyline

* fix: adapt to win

* chore: pre release 1.0.0

* feat: add util methods

* fix: if the ContextMenu's children is undefined.

* fix: in react 15.4.2
the children should be a valid React element (or null)

* style: placeholder default style

* fix: in react 15.4.2
the children should be a valid React element (or null)

* refactor: prompt when assigning undefined to Events

* fix:  RegeneratorRuntime is not defined
when the project does not reference babel-polyfill

* release 1.0.0

* release 1.0.0
  • Loading branch information
JserWang authored Jan 21, 2019
1 parent 76f36f5 commit b4fd8ad
Show file tree
Hide file tree
Showing 370 changed files with 3,355 additions and 37,611 deletions.
4 changes: 3 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"stage-0"
],
"plugins": [
"transform-decorators-legacy"
"transform-runtime",
"transform-decorators-legacy",
"babel-plugin-transform-regenerator"
]
}
9 changes: 6 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
},
"rules": {
"import/no-extraneous-dependencies": "off",
"no-param-reassign": "warn",
"no-param-reassign": "off",
"react/prop-types": "off",
"no-underscore-dangle": "warn",
"linebreak-style": "off",
"global-require": "warn",
"react/jsx-filename-extension": "off",
"react/require-default-props": "off",
"react/forbid-prop-types": "off"
"react/forbid-prop-types": "off",
"react/destructuring-assignment": "off",
"react/no-array-index-key": "off"
}
}
}
18 changes: 5 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
Expand All @@ -19,10 +10,11 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/docs/publish.sh
/docs/.vuepress/dist
.vscode

/examples/node_modules
/examples/dist
/examples/publish.sh
lib
dist
package-lock.json
/.idea
/lib/
73 changes: 34 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,43 @@

## 文档

[https://bmap.jser-club.com](https://bmap.jser-club.com)

## 开始

### 安装

```bash
yarn add rc-bmap # 或者:npm install --save rc-bmap
```

### 使用
``` js
import React from 'react';
import { render } from 'react-dom';
import { Map } from 'rc-bmap';

render(<Map ak="WAeVpuoSBH4NswS30GNbCRrlsmdGB5Gv" />,
document.getElementById('app')
);

```
1.0.0文档地址
[https://jser.wang/bmap/](https://jser.wang/bmap/)

更多用法,见[官网](https://bmap.jser-club.com)

更多示例,见[示例](https://bmap.jser-club.com/examples/)
0.2.4文档地址
[https://bmap.jser-club.com](https://bmap.jser-club.com)

## 协议

[MIT 许可证](https://opensource.org/licenses/MIT)

## 如何本地启动demo

* 进入`examples`目录,执行

```bash
yarn install # 安装相关依赖
npm run dev # 启动本地服务
```

## 如何启动本地文档
* 进入`docs`目录,执行

```bash
vuepress dev # 文档由vuepress驱动
```
## 本地开发

`demo`结合的最佳实践:

1.`demo`工程`clone`至本地。
``` bash
git clone https://github.com/jser-club/rc-bmap-demo.git
```
2. 安装`demo`工程所需依赖。
``` bash
cd 你刚clone的工程目录
yarn install
```
3. 进入`rc-bmap`工程的目录,执行
``` bash
yarn link
```
4. 进入`rc-bmap-dmeo`工程目录执行
``` bash
yarn link rc-bmap
```
5. 修改完`rc-bmap`的源码后,在`rc-bmap`工程执行
``` bash
yarn run build
```
如果在windows系统下
```bash
yarn run build_win
```
6.`demo`重新点击按钮运行,即可看到最新修改后的效果
1 change: 0 additions & 1 deletion dist/rc-bmap.min.js

This file was deleted.

85 changes: 0 additions & 85 deletions docs/.vuepress/config.js

This file was deleted.

Binary file removed docs/.vuepress/public/favicon.ico
Binary file not shown.
Binary file removed docs/.vuepress/public/home.png
Binary file not shown.
25 changes: 0 additions & 25 deletions docs/README.md

This file was deleted.

113 changes: 0 additions & 113 deletions docs/api/README.md

This file was deleted.

Loading

0 comments on commit b4fd8ad

Please sign in to comment.