JaniceLian
JaniceLian
【背景】 Switch组件在某个可点击组件内部调用,点击Switch不想触发上级父元素的点击事件; 【代码】 ```js { //TODO return false }} onClick={(e) => { console.log(e) //e输出为Boolean值:true/false, 即checked值 e.preventDefault(); // Error e.stopPropagation(); }} /> ``` 【问题】 在Switch组件鼠标事件中,拿不到event值
### Version 3.0.0-alpha0 ### Environment Chrome 59.0.3071.115 ### Reproduction link [https://ant.design/components/switch-cn/](https://ant.design/components/switch-cn/) ### Steps to reproduce 【Background】 Use Switch in a clickable component; prevent parent component's click event while fire Switch's...
- 根据[Use Pro Components Alone](https://pro.ant.design/docs/use-components-alone)描述,在项目中install了ant-design-pro包; - 在页面开发中,引用pro的组件,类似antd组件写法,如下: ``` import { Trend, NumberInfo, } from 'ant-design-pro'; ``` - 启动项目,会出现编译错误,如下: ``` ./node_modules/ant-design-pro/es/TagSelect/index.js Module parse failed: Unexpected token (10:2) You may need an...
ant-design-pro(0.2.3-rc.3) package.json中css-module.js是用来配置什么的? ``` "scripts": { "cp": "cp ./.babelrc ../../scaffold && cp ./css-module.js ../../scaffold", ... }, ``` 线上有该文件吗?
在折线图中,碰到value=null 或者 value='-'时,折线图断开, 目前试过value=null 或者 value='-'折线图都不能实现断开, 该如何配置这个数据才可实现?