12 2020 档案

react-leftlet 实战:一个demo
摘要:直接上代码。 import React, {PureComponent} from 'react'; import {useState, useEffect, useRef, useMemo} from 'react'; import { connect } from 'dva'; import { 阅读全文

posted @ 2020-12-15 23:24 fox_charon 阅读(351) 评论(0) 推荐(0) 编辑

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 阅读(547) 评论(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) 编辑

antd实战:只有最下一级可以选择且只能单选的树组件
摘要:上代码。 const { Tree } = antd; const { TreeNode } = Tree; const treeData = [ { title: '0-0', key: '0-0', children: [ { title: '0-0-0', key: '0-0-0', chil 阅读全文

posted @ 2020-12-08 22:52 fox_charon 阅读(2675) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示