shanluhaiya
shanluhaiya
``` class DateRange extends Compent { const { range, // from wrapper compent's state format, ..... } = this.props render() { const rpProps = { showTime: true, format, defaultValue: range,...
What the different between RangePicker's value and defaultValue? ``` class DateRange extends Compent { const { range, // from wrapper compent's state format, ..... } = this.props render() { const...
I extends RangePicker with shortcuts, but i found it's diffecult to sync shortcuts and RangePicker
This is my Component: ``` RangePicker shortcuts +---------------------+ | Select Date range | 1 week | 2 weeks | 1 month | half year | 1 year +---------------------+ ``` The...
### Version 2.8.3 ### Environment macbook, chrome, ant-design ### Reproduction link [https://github.com/walkerqiao/ada/blob/master/src/components/Filter/DateRange.js](https://github.com/walkerqiao/ada/blob/master/src/components/Filter/DateRange.js) ### Steps to reproduce ``` const pickerProps = { showTime: true, style: {width: '200px'}, format: this.props.format || 'YYYY-MM-DD',...
### Version 2.9.1 ### Environment macbook, chrome, ant-design ### Reproduction link [https://github.com/walkerqiao/amazeui/blob/master/packages/tsapp/src/components/modal/Modal.tsx](https://github.com/walkerqiao/amazeui/blob/master/packages/tsapp/src/components/modal/Modal.tsx) ### Steps to reproduce git rep: https://github.com/walkerqiao/amazeui/blob/master/packages/tsapp I am learning TypeScript, and find ant-design is writing with it....
应用场景: 很多情况下,特别是带有param id的详情页面来说, 共用model的很常见, 而model的namespace貌似又不可以和id建立关系, 因此在请求新的id对应的详情的时候,需要先删除原来的model, 然后重新注册model, 目前我的实现方式如下: ``` const registerModel = (app, model, reload) => { if(reload) { app.unmodel(model.namespace) } if (!(app._models.filter(m => m.namespace === model.namespace).length === 1)) {...