Skip to content

Commit

Permalink
fix marker event
Browse files Browse the repository at this point in the history
  • Loading branch information
jingwanting_cd committed Oct 22, 2019
1 parent 1c40407 commit 993fec6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/dist/react-bmap.min.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions docs/examples/build/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19126,8 +19126,6 @@ var _kitsJs = __webpack_require__(199);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
Expand Down Expand Up @@ -19241,7 +19239,7 @@ var MarkerOrderTip = function (_React$Component) {
});
var events = [];
eventKeys.map(function (key) {
events.push(_defineProperty({}, key, self.props[key]));
events[key] = self.props[key];
});
if (visible) {
return _react2.default.createElement(
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/components/marker-order-tip.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class App extends Component {
name={name}
num={num}
rate={rate}
order={order}
order={order}
/>
})}
</Map>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-bmap",
"version": "1.0.106",
"version": "1.0.107",
"description": "react-bmap",
"main": "lib/index.js",
"contributors": [
Expand Down
4 changes: 1 addition & 3 deletions src/components/marker-order-tip.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ class MarkerOrderTip extends React.Component {
})
let events = [];
eventKeys.map(key => {
events.push({
[key]: self.props[key]
});
events[key] = self.props[key]
})
if (visible) {
return (
Expand Down

0 comments on commit 993fec6

Please sign in to comment.