Simon Guo

Results 268 comments of Simon Guo

webpack and rsuite have been upgraded to the latest version, try again.

@hiyangguo Is it possible to open a separate PR to remove `display:flex` to make the code cleaner?

出现这个问题的原因是 `disabledDate` 的回调参数 date , 在快捷选项的地方是默认时间是 `[2022-09-06 00:00:00, 2022-09-06 23:59:59]`,而在日历面板上的日期默认都是当前的时间,这样就导致在禁用日期的时候,如果存在时间上的偏差,就会出现你遇到的这种情况。 在使用过程中有两种方式可以解决: 1. 在 `disabledDate` 比较日期的时候,忽略时间。 ```js isBefore(startOfDay(date), subDays(startOfDay(today), minOffset)); ``` 2. 重新定义 `ranges` 参数,修改 Yesterday 为 `[subDays(todayDate, 1),subDays(todayDate, 1)]` 关于在...

Fixed in #2745 Fixed example: https://codesandbox.io/s/strange-davinci-6e7ssd ![image](https://user-images.githubusercontent.com/1203827/191488052-e3371951-b06b-4ec5-8150-4fc496329763.png)

hi @welkinwong The issue will be transferred to https://github.com/rsuite/rsuite/issues

https://github.com/rsuite/rsuite/blob/27c7d08c93beca14e63a80feb0212ebb36f6cce8/src/FormGroup/FormGroup.tsx#L6-L12 @SevenOutman The purpose of generating a unique id is to improve accessibility. I suggest exposing the `id` prop to the developer, and it’s up to the developer to decide....

@welkinwong useId is a React 18 feature. rsuite also needs to consider compatibility with React 17 and below. This work is already in progress. https://github.com/rsuite/rsuite/pull/2595

hi @Han-D-Peter `` has a trigger property which when set to `hover` can meet your needs. ```tsx ``` But the above code works under ``, but not inside ``, this...

Table has className and ref props. However, in order to provide the scrolling method of the table, ref requires .root to get the DOM. ## className ## ref

hi @lomse The following example shows how scrollTop should be used. https://rsuite.github.io/rsuite-table/ https://github.com/rsuite/rsuite-table/blob/main/docs/md/Virtualized.md You trigger `scrollTop(0)` every time you click on the pagination, you can go back to the top...