diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 94f49ade6..5f33b7481 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -28,6 +28,7 @@ toc: false - We can preview our Components online using codesandbox and react-native-web - Refactor Icon Component and use [ant-design-icons](https://github.com/ant-design/ant-design-icons/tree/master/packages/icons-react-native) instead - `Toast` has removed method `hide` +- Change `Grid` property `onClick` to `onPress` - Upgrade from 2.x to 3.0.0 please checkout [upgrade notes](https://rn.mobile.ant.design/docs/react/upgrade-notes) ### 2.3.0 diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 854616d72..b2809862d 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -30,6 +30,7 @@ toc: false - 完善文档,使用 codesandbox 以及 react-native-web 提供部分组件在线预览 - 重构 Icon 组件,现在使用 [ant-design-icons](https://github.com/ant-design/ant-design-icons/tree/master/packages/icons-react-native) - Toast 移除了 `hide` 方法 +- 修改`Grid`的`onClick`属性为`onPress` - 更多组件优化以及使用方式请查看文档 - 从 2.x 升级到 3.0.0 请查看[upgrade notes](https://rn.mobile.ant.design/docs/react/upgrade-notes-cn) diff --git a/components/grid/index.en-US.md b/components/grid/index.en-US.md index 083452443..eb1a350d4 100644 --- a/components/grid/index.en-US.md +++ b/components/grid/index.en-US.md @@ -14,7 +14,7 @@ We divided the design area into a number of aliquots in horizontal and vertical. | Properties | Description | Type | Default | | -------------- | ------------------------------------------------------------- | --------------------------------- | ----------- | | data | data record array to be rendered | `Array<{icon, text}>` | [] | -| onClick | Handler to be called when the user taps the grid | (el: Object, index: number): void | - | +| onPress | Handler to be called when the user taps the grid | (el: Object, index: number): void | - | | columnNum | the number of columns | number | `4` | | hasLine | whether to show border | boolean | `true` | | isCarousel | whether to be played as a Carousel | boolean | `false` | diff --git a/components/grid/index.zh-CN.md b/components/grid/index.zh-CN.md index 87d8aac37..c96dcaa28 100644 --- a/components/grid/index.zh-CN.md +++ b/components/grid/index.zh-CN.md @@ -15,7 +15,7 @@ subtitle: 宫格 | 属性 | 说明 | 类型 | 默认值 | | -------------- | -------------------------------------- | --------------------------------- | ----------- | | data | 传入的菜单数据 | `Array<{icon, text}>` | [] | -| onClick | 点击每个菜单的回调函数 | (el: Object, index: number): void | - | +| onPress | 点击每个菜单的回调函数 | (el: Object, index: number): void | - | | columnNum | 列数 | number | `4` | | hasLine | 是否有边框 | boolean | `true` | | isCarousel | 是否跑马灯, | boolean | `false` | diff --git a/docs/react/upgrade-notes.en-US.md b/docs/react/upgrade-notes.en-US.md index d962fe467..441ab6a32 100644 --- a/docs/react/upgrade-notes.en-US.md +++ b/docs/react/upgrade-notes.en-US.md @@ -41,6 +41,7 @@ Here list some of main incompatible changes and recommended changes in the upgra    - Override local component styles by using styles of the component, without importing all styles of the current component    - There is no need to import a theme style file like 2.x. The current style file returns a function instead of an object. - `Toast` has removed method `hide` +- Change `Grid` property `onClick` to `onPress` - Link Icon Fonts ```sh diff --git a/docs/react/upgrade-notes.zh-CN.md b/docs/react/upgrade-notes.zh-CN.md index a906011ee..89cd08d33 100644 --- a/docs/react/upgrade-notes.zh-CN.md +++ b/docs/react/upgrade-notes.zh-CN.md @@ -41,6 +41,7 @@ title: 升级指南 - 通过组件的 styles 覆盖局部组件样式,不需要导入当前组件的所有样式 - 不需要像 2.x 那样导入一个样式文件,现在的样式文件返回的是一个 function 而不是一个对象了 - Toast 移除了 `hide` 方法 +- 修改`Grid`的`onClick`属性为`onPress` - Link Icon Fonts ```sh