瀏覽代碼

docs(changelog): add Button iconType and Tooltip disabled breaking change (#193)

走鹃 4 年之前
父節點
當前提交
4e1cb67f4b

+ 2 - 1
content/start/changelog/index-en-US.md

@@ -39,7 +39,7 @@ Version:Major.Minor.Patch
     - Icon related
     - Icon related
       - Icon component no longer supports type = xxx using built-in icons
       - Icon component no longer supports type = xxx using built-in icons
       - Custom svg no longer supports plug-in configuration srcSvgPaths
       - Custom svg no longer supports plug-in configuration srcSvgPaths
-      - The Button icon property no longer supports passing built-in icon names through strings
+      - The Button `icon` and `iconType` property no longer supports passing built-in icon names through strings
       - Dropdown deletes the iconType attribute and unifies it into the icon attribute
       - Dropdown deletes the iconType attribute and unifies it into the icon attribute
       - Navigation icons no longer support incoming by string, ReactNode needs to be passed in
       - Navigation icons no longer support incoming by string, ReactNode needs to be passed in
       - Notification icons are no longer passed in by string, please use ReactNode uniformly
       - Notification icons are no longer passed in by string, please use ReactNode uniformly
@@ -48,6 +48,7 @@ Version:Major.Minor.Patch
     - Form no longer exports Label components from `semi-ui/index.js`
     - Form no longer exports Label components from `semi-ui/index.js`
     - Tree onRightClick renamed onContextMenu
     - Tree onRightClick renamed onContextMenu
     - Upload dragable renamed draggable
     - Upload dragable renamed draggable
+    - Tooltip no longer supports the `disabled` attribute, and components that rely on Tooltip (such as Popover, Dropdown, etc.) transparently transmitted to Tooltip `disabled` will become invalid
     - Table
     - Table
       - API that no longer responds when componentDidUpdate
       - API that no longer responds when componentDidUpdate
         - DefaultExpandAllRows, please replace with expandAllRows
         - DefaultExpandAllRows, please replace with expandAllRows

+ 2 - 1
content/start/changelog/index.md

@@ -38,7 +38,7 @@ Semi 版本号遵循**Semver**规范(主版本号-次版本号-修订版本号
     - Icon 相关
     - Icon 相关
       - Icon 组件不再支持  type=xxx 方式使用内置 icon
       - Icon 组件不再支持  type=xxx 方式使用内置 icon
       - 自定义 svg 不再支持插件方式配置 srcSvgPaths
       - 自定义 svg 不再支持插件方式配置 srcSvgPaths
-      - Button icon 属性不再支持通过 string 传递内置 icon 名
+      - Button icon 属性不再支持通过 string 传递内置 icon 名,不再支持 iconType 属性
       - Dropdown 删除 iconType 属性,统一为 icon 属性
       - Dropdown 删除 iconType 属性,统一为 icon 属性
       - Navigation icon 不再支持通过 string 方式传入,需要传入 ReactNode
       - Navigation icon 不再支持通过 string 方式传入,需要传入 ReactNode
       - Notification icon 不再支持通过 string 方式传入,请统一使用 ReactNode
       - Notification icon 不再支持通过 string 方式传入,请统一使用 ReactNode
@@ -47,6 +47,7 @@ Semi 版本号遵循**Semver**规范(主版本号-次版本号-修订版本号
     - Form 不再从 `semi-ui/index.js` 导出 Label组件,如需使用请用 Form.Label
     - Form 不再从 `semi-ui/index.js` 导出 Label组件,如需使用请用 Form.Label
     - Tree onRightClick 更名为 onContextMenu
     - Tree onRightClick 更名为 onContextMenu
     - Upload dragable 更名为 draggable
     - Upload dragable 更名为 draggable
+    - Tooltip 不再支持 disabled 属性,依赖 Tooltip 的组件(如 Popover、Dropdown 等)透传给 Tooltip disabled 将失效
     - Table
     - Table
       - 不再在 componentDidUpdate 时响应的 API
       - 不再在 componentDidUpdate 时响应的 API
         - defaultExpandAllRows,请用 expandAllRows 替换
         - defaultExpandAllRows,请用 expandAllRows 替换

+ 2 - 1
content/start/update-to-v2/index-en-US.md

@@ -63,7 +63,7 @@ import en_GB from '@douyinfe/semi-ui/lib/es/locale/source/en_GB'
 - Icon related
 - Icon related
   - Icon component no longer supports type = xxx using built-in icons
   - Icon component no longer supports type = xxx using built-in icons
   - Custom svg no longer supports plug-in configuration srcSvgPaths
   - Custom svg no longer supports plug-in configuration srcSvgPaths
-  - The Button icon property no longer supports passing built-in icon names through strings
+  - The Button `icon` and `iconType` property no longer supports passing built-in icon names through strings
   - Dropdown deletes the iconType attribute and unifies it into the icon attribute
   - Dropdown deletes the iconType attribute and unifies it into the icon attribute
   - Navigation icons no longer support incoming by string, ReactNode needs to be passed in
   - Navigation icons no longer support incoming by string, ReactNode needs to be passed in
   - Notification icons are no longer passed in by string, please use ReactNode uniformly
   - Notification icons are no longer passed in by string, please use ReactNode uniformly
@@ -72,6 +72,7 @@ import en_GB from '@douyinfe/semi-ui/lib/es/locale/source/en_GB'
 - Form no longer exports Label components from `semi-ui/index.js`
 - Form no longer exports Label components from `semi-ui/index.js`
 - Tree onRightClick renamed onContextMenu
 - Tree onRightClick renamed onContextMenu
 - Upload dragable renamed draggable
 - Upload dragable renamed draggable
+- Tooltip no longer supports the `disabled` attribute, and components that rely on Tooltip (such as Popover, Dropdown, etc.) transparently transmitted to Tooltip `disabled` will become invalid
 - Table
 - Table
   - API that no longer responds when componentDidUpdate
   - API that no longer responds when componentDidUpdate
     - DefaultExpandAllRows, please replace with expandAllRows
     - DefaultExpandAllRows, please replace with expandAllRows

+ 2 - 1
content/start/update-to-v2/index.md

@@ -64,7 +64,7 @@ import en_GB from '@douyinfe/semi-ui/lib/es/locale/source/en_GB'
 - Icon 相关
 - Icon 相关
   - Icon 组件不再支持  type=xxx 方式使用内置 icon
   - Icon 组件不再支持  type=xxx 方式使用内置 icon
   - 自定义 svg 不再支持插件方式配置 srcSvgPaths
   - 自定义 svg 不再支持插件方式配置 srcSvgPaths
-  - Button icon 属性不再支持通过 string 传递内置 icon 
+  - Button icon 属性不再支持通过 string 传递内置 icon 或 iconType
   - Dropdown 删除 iconType 属性,统一为 icon 属性
   - Dropdown 删除 iconType 属性,统一为 icon 属性
   - Navigation icon 不再支持通过 string 方式传入,需要传入 ReactNode
   - Navigation icon 不再支持通过 string 方式传入,需要传入 ReactNode
   - Notification icon 不再支持通过 string 方式传入,请统一使用 ReactNode
   - Notification icon 不再支持通过 string 方式传入,请统一使用 ReactNode
@@ -73,6 +73,7 @@ import en_GB from '@douyinfe/semi-ui/lib/es/locale/source/en_GB'
 - Form 不再从 `semi-ui/index.js` 导出 Label组件,如需使用请用 Form.Label
 - Form 不再从 `semi-ui/index.js` 导出 Label组件,如需使用请用 Form.Label
 - Tree onRightClick 更名为 onContextMenu
 - Tree onRightClick 更名为 onContextMenu
 - Upload dragable 更名为 draggable
 - Upload dragable 更名为 draggable
+- Tooltip 不再支持 disabled 属性,依赖 Tooltip 的组件(如 Popover、Dropdown 等)透传给 Tooltip disabled 将失效
 - Table
 - Table
   - 不再在 componentDidUpdate 时响应的 API
   - 不再在 componentDidUpdate 时响应的 API
     - defaultExpandAllRows,请用 expandAllRows 替换
     - defaultExpandAllRows,请用 expandAllRows 替换