2020年12月9日

react-leaflet 实战:Marker Popup 改成触摸触发

摘要: 如果你在 Marker 里面加一个 Popup 。 这个东西会自动加一个点击出现的事件。 而我想改成鼠标放上去出现,离开时消失。 上代码。(请粘贴到 https://react-leaflet.js.org/ 的编辑器中查看) const position = [51.505, -0.09] fun 阅读全文

posted @ 2020-12-09 23:42 fox_charon 阅读(520) 评论(0) 推荐(0) 编辑

antd实战:静态的checkbox

摘要: 就是说,这个checkbox只是展示一个勾勾,不需要做交互。 上代码。 const { Checkbox } = antd; function onChange(e) { console.log(`checked = ${e.target.checked}`); } ReactDOM.render( 阅读全文

posted @ 2020-12-09 21:33 fox_charon 阅读(255) 评论(0) 推荐(0) 编辑

导航