소스 검색

fix: fix typography header className undefined add borderless api doc (#1631)

Co-authored-by: pointhalo <[email protected]>
代强 2 년 전
부모
커밋
677cdf86ec

+ 1 - 0
content/input/cascader/index-en-US.md

@@ -1751,6 +1751,7 @@ function Demo() {
 | arrowIcon | Customize the right drop-down arrow Icon, when the showClear switch is turned on and there is currently a selected value, hover will give priority to the clear icon  | ReactNode | - | 1.15.0 |
 | autoAdjustOverflow | Whether to automatically adjust the expansion direction of the dropdown for automatic adjustment of the expansion direction during edge occlusion | boolean | true | - |
 | autoMergeValue | Auto merge value. Specifically, after opening, when a parent node is selected, the value will not include the descendants of the node. Does not support dynamic switching | boolean | true |  1.28.0 |
+| borderless        | borderless mode  >=2.33.0                                                                                                                                                                     | boolean                         |           |
 | bottomSlot | bottom slot | ReactNode | - |  1.27.0 |
 | changeOnSelect | Toggle whether non-leaf nodes are selectable | boolean | false | - |
 | className | ClassName | string | - | - |

+ 66 - 65
content/input/cascader/index.md

@@ -1728,72 +1728,73 @@ function Demo() {
 
 ### Cascader
 
-| 属性                 | 说明                                                                                                                                      | 类型                                                                                      | 默认值                         | 版本   |
-|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|--------------------------------|--------|
-| arrowIcon            | 自定义右侧下拉箭头 Icon,当 showClear 开关打开且当前有选中值时,hover 会优先显示 clear icon                                                 | ReactNode                                                                                 | -                              | 1.15.0 |
-| autoAdjustOverflow   | 是否自动调整下拉框展开方向,用于边缘遮挡时自动调整展开方向                                                                                 | boolean                                                                                   | true                           | -      |
-| autoMergeValue       | 设置自动合并 value。具体而言是,开启后,当某个父节点被选中时,value 将不包括该节点的子孙节点。不支持动态切换                                   | boolean                                                                                   | true                           | 1.28.0 |
-| bottomSlot           | 底部插槽                                                                                                                                  | ReactNode                                                                                 | -                              | 1.27.0 |
-| changeOnSelect       | 是否允许选择非叶子节点                                                                                                                    | boolean                                                                                   | false                          | -      |
-| className            | 选择框的 className 属性                                                                                                                   | string                                                                                    | -                              | -      |
-| clearIcon            | 可用于自定义清除按钮, showClear为true时有效                                                                                               | ReactNode                                                                                 | -                              | 2.25.0 |
-| defaultOpen          | 设置是否默认打开下拉菜单                                                                                                                  | boolean                                                                                   | false                          | -      |
-| defaultValue         | 指定默认选中的条目                                                                                                                        | string\|number\|CascaderData\|(string\|number\|CascaderData)[]                            | -                              | -      |
-| disabled             | 是否禁用                                                                                                                                  | boolean                                                                                   | false                          | -      |
-| displayProp          | 设置回填选项显示的属性值                                                                                                                  | string                                                                                    | `label`                        | -      |
-| displayRender        | 设置回填格式                                                                                                                              | (selected: string[] \| Entity, idx?: number) => ReactNode                                 | selected => selected.join('/') | -      |
-| dropdownMargin       | 下拉菜单计算溢出时的增加的冗余值,详见[issue#549](https://github.com/DouyinFE/semi-design/issues/549),作用同 Tooltip margin                | object\|number                                                                            | -                              | 2.25.0 |
-| dropdownClassName    | 下拉菜单的 className 属性                                                                                                                 | string                                                                                    | -                              | -      |
-| dropdownStyle        | 下拉菜单的样式                                                                                                                            | object                                                                                    | -                              | -      |
-| emptyContent         | 当搜索无结果时展示的内容                                                                                                                  | ReactNode                                                                                 | `暂无数据`                     | -      |
-| filterLeafOnly       | 搜索结果是否只展示叶子结点路径                                                                                                            | boolean                                                                                   | true                           | 1.26.0 |
-| filterRender         | 自定义渲染筛选后的选项                                                                                                                    | (props: FilterRenderProps) => ReactNode;                                                  | -                              | 2.28.0 |
-| filterSorter         | 对筛选后的选项进行排序                                                                                                                    | (first: CascaderData, second: CascaderData, inputValue: string) => number                 | -                              | 2.28.0 |
-| filterTreeNode       | 设置筛选,默认用 treeNodeFilterProp 的值作为要筛选的 TreeNode 的属性值, data 参数自 v2.28.0 开始提供                                       | ((inputValue: string, treeNodeString: string, data?: CascaderData) => boolean) \| boolean | false                          | -      |
-| getPopupContainer    | 指定父级 DOM,下拉框将会渲染至该 DOM 中,自定义需要设置 position: relative                                                                  | () => HTMLElement                                                                         | () => document.body            | -      |
-| insetLabel           | 前缀标签别名,主要用于 Form                                                                                                                | ReactNode                                                                                 | -                              | 0.28.0 |
-| leafOnly             | 多选时设置 value 只包含叶子节点,即显示的 Tag 和 onChange 的 value 参数只包含叶子节点。不支持动态切换                                       | boolean                                                                                   | false                          | 2.2.0  |
-| loadData             | 异步加载数据,需要返回一个Promise                                                                                                          | (selectOptions: CascaderData[]) => Promise< void >                                        | -                              | 1.8.0  |
-| max                  | 多选时,限制多选选中的数量,超出 max 后将触发 onExceed 回调                                                                                 | number                                                                                    | -                              | 1.28.0 |
-| maxTagCount          | 多选时,标签的最大展示数量,超出后将以 +N 形式展示                                                                                          | number                                                                                    | -                              | 1.28.0 |
-| motion               | 设置下拉框弹出的动画                                                                                                                      | boolean                                                                                   | true                           | -      |
-| mouseEnterDelay      | 鼠标移入后,延迟显示下拉框的时间,单位毫秒                                                                                                  | number                                                                                    | 50                             | -      |
-| mouseLeaveDelay      | 鼠标移出后,延迟消失下拉框的时间,单位毫秒                                                                                                  | number                                                                                    | 50                             | -      |
-| multiple             | 设置多选                                                                                                                                  | boolean                                                                                   | false                          | 1.28.0 |
-| placeholder          | 选择框默认文字                                                                                                                            | string                                                                                    | -                              | -      |
-| position             | 方向,可选值:`top`,`topLeft`,`topRight`,`left`,`leftTop`,`leftBottom`,`right`,`rightTop`,`rightBottom`,`bottom`,`bottomLeft`,`bottomRight` | string                                                                                    | `bottom`                       | 2.16.0 |
-| prefix               | 前缀标签                                                                                                                                  | ReactNode                                                                                 | -                              | 0.28.0 |
-| preventScroll        | 指示浏览器是否应滚动文档以显示新聚焦的元素,作用于组件内的 focus 方法                                                                      | boolean                                                                                   | -                              | 2.15.0 |
-| restTagsPopoverProps | Popover 的配置属性,可以控制 position、zIndex、trigger 等,具体参考[Popover](/zh-CN/show/popover#API%20%E5%8F%82%E8%80%83)                    | PopoverProps                                                                              | {}                             | 1.28.0 |
-| searchPlaceholder    | 搜索框默认文字                                                                                                                            | string                                                                                    | -                              | -      |
-| separator            | 自定义分隔符,包括:搜索时显示在下拉框的内容以及单选时回显到 Trigger 的内容的分隔符                                                         | string                                                                                    | `/`                            | 2.2.0  |
-| showClear            | 是否展示清除按钮                                                                                                                          | boolean                                                                                   | false                          | 0.35.0 |
-| showNext             | 设置展开 Dropdown 子菜单的方式,可选: `click`、`hover`                                                                                      | string                                                                                    | `click`                        | 1.29.0 |
-| showRestTagsPopover  | 当超过 maxTagCount,hover 到 +N 时,是否通过 Popover 显示剩余内容                                                                           | boolean                                                                                   | false                          | 1.28.0 |
-| size                 | 选择框大小,可选 `large`,`small`,`default`                                                                                                 | string                                                                                    | `default`                      | -      |
-| stopPropagation      | 是否阻止下拉框上的点击事件冒泡                                                                                                            | boolean                                                                                   | true                           | -      |
-| disableStrictly      | 设置是否开启严格禁用。开启后,当节点是 disabled 的时候,则不能通过子级或者父级的关系改变选中状态                                             | boolean                                                                                   | false                          | 1.32.0 |
-| style                | 选择框的样式                                                                                                                              | CSSProperties                                                                             | -                              | -      |
-| suffix               | 后缀标签                                                                                                                                  | ReactNode                                                                                 | -                              | 0.28.0 |
-| topSlot              | 顶部插槽                                                                                                                                  | ReactNode                                                                                 | -                              | 1.27.0 |
-| treeData             | 展示数据,具体属性参考 [CascaderData](#CascaderData)                                                                                       | CascaderData[]                                                                            | []                             | -      |
-| treeNodeFilterProp   | 搜索时输入项过滤对应的 CascaderData 属性                                                                                                  | string                                                                                    | `label`                        | -      |
-| triggerRender        | 自定义触发器渲染方法                                                                                                                      | (props: TriggerRenderProps) => ReactNode                                                  | -                              | 0.34.0 |
-| validateStatus       | trigger 的校验状态,仅影响展示样式。可选: default、error、warning                                                                             | string                                                                                    | `default`                      | -      |
-| value                | (受控)选中的条目                                                                                                                          | string\|number\|CascaderData\|(string\|number\|CascaderData)[]                            | -                              | -      |
-| zIndex               | 下拉菜单的 zIndex                                                                                                                         | number                                                                                    | 1030                           | -      |
-| enableLeafClick      | 多选时,是否启动点击叶子节点选项触发勾选                                                                                                   | boolean                                                                                   | false                          | 2.2.0  |
-| onBlur               | 失焦 Cascader 的回调                                                                                                                      | (e: MouseEvent) => void                                                                   | -                              | -      |
-| onChange | 选中树节点时调用此函数,默认返回选中项 path 的 value 数组 | (value: string\|number\| CascaderData |(string\|number\|CascaderData)[]) => void | - | - |
+| 属性                 | 说明                                                                                                                                                  | 类型                                                                                      | 默认值                         | 版本   |
+|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|--------------------------------|--------|
+| arrowIcon            | 自定义右侧下拉箭头 Icon,当 showClear 开关打开且当前有选中值时,hover 会优先显示 clear icon                                                                                      | ReactNode                                                                                 | -                              | 1.15.0 |
+| autoAdjustOverflow   | 是否自动调整下拉框展开方向,用于边缘遮挡时自动调整展开方向                                                                                                                       | boolean                                                                                   | true                           | -      |
+| autoMergeValue       | 设置自动合并 value。具体而言是,开启后,当某个父节点被选中时,value 将不包括该节点的子孙节点。不支持动态切换                                                                                        | boolean                                                                                   | true                           | 1.28.0 |
+| bottomSlot           | 底部插槽                                                                                                                                                | ReactNode                                                                                 | -                              | 1.27.0 |
+| borderless        | 无边框模式  >=2.33.0                                                                                                                                     | boolean                         |           |
+| changeOnSelect       | 是否允许选择非叶子节点                                                                                                                                         | boolean                                                                                   | false                          | -      |
+| className            | 选择框的 className 属性                                                                                                                                   | string                                                                                    | -                              | -      |
+| clearIcon            | 可用于自定义清除按钮, showClear为true时有效                                                                                                                       | ReactNode                                                                                 | -                              | 2.25.0 |
+| defaultOpen          | 设置是否默认打开下拉菜单                                                                                                                                        | boolean                                                                                   | false                          | -      |
+| defaultValue         | 指定默认选中的条目                                                                                                                                           | string\|number\|CascaderData\|(string\|number\|CascaderData)[]                            | -                              | -      |
+| disabled             | 是否禁用                                                                                                                                                | boolean                                                                                   | false                          | -      |
+| displayProp          | 设置回填选项显示的属性值                                                                                                                                        | string                                                                                    | `label`                        | -      |
+| displayRender        | 设置回填格式                                                                                                                                              | (selected: string[] \| Entity, idx?: number) => ReactNode                                 | selected => selected.join('/') | -      |
+| dropdownMargin       | 下拉菜单计算溢出时的增加的冗余值,详见[issue#549](https://github.com/DouyinFE/semi-design/issues/549),作用同 Tooltip margin                                               | object\|number                                                                            | -                              | 2.25.0 |
+| dropdownClassName    | 下拉菜单的 className 属性                                                                                                                                  | string                                                                                    | -                              | -      |
+| dropdownStyle        | 下拉菜单的样式                                                                                                                                             | object                                                                                    | -                              | -      |
+| emptyContent         | 当搜索无结果时展示的内容                                                                                                                                        | ReactNode                                                                                 | `暂无数据`                     | -      |
+| filterLeafOnly       | 搜索结果是否只展示叶子结点路径                                                                                                                                     | boolean                                                                                   | true                           | 1.26.0 |
+| filterRender         | 自定义渲染筛选后的选项                                                                                                                                         | (props: FilterRenderProps) => ReactNode;                                                  | -                              | 2.28.0 |
+| filterSorter         | 对筛选后的选项进行排序                                                                                                                                         | (first: CascaderData, second: CascaderData, inputValue: string) => number                 | -                              | 2.28.0 |
+| filterTreeNode       | 设置筛选,默认用 treeNodeFilterProp 的值作为要筛选的 TreeNode 的属性值, data 参数自 v2.28.0 开始提供                                                                           | ((inputValue: string, treeNodeString: string, data?: CascaderData) => boolean) \| boolean | false                          | -      |
+| getPopupContainer    | 指定父级 DOM,下拉框将会渲染至该 DOM 中,自定义需要设置 position: relative                                                                                                 | () => HTMLElement                                                                         | () => document.body            | -      |
+| insetLabel           | 前缀标签别名,主要用于 Form                                                                                                                                    | ReactNode                                                                                 | -                              | 0.28.0 |
+| leafOnly             | 多选时设置 value 只包含叶子节点,即显示的 Tag 和 onChange 的 value 参数只包含叶子节点。不支持动态切换                                                                                   | boolean                                                                                   | false                          | 2.2.0  |
+| loadData             | 异步加载数据,需要返回一个Promise                                                                                                                                | (selectOptions: CascaderData[]) => Promise< void >                                        | -                              | 1.8.0  |
+| max                  | 多选时,限制多选选中的数量,超出 max 后将触发 onExceed 回调                                                                                                               | number                                                                                    | -                              | 1.28.0 |
+| maxTagCount          | 多选时,标签的最大展示数量,超出后将以 +N 形式展示                                                                                                                         | number                                                                                    | -                              | 1.28.0 |
+| motion               | 设置下拉框弹出的动画                                                                                                                                          | boolean                                                                                   | true                           | -      |
+| mouseEnterDelay      | 鼠标移入后,延迟显示下拉框的时间,单位毫秒                                                                                                                               | number                                                                                    | 50                             | -      |
+| mouseLeaveDelay      | 鼠标移出后,延迟消失下拉框的时间,单位毫秒                                                                                                                               | number                                                                                    | 50                             | -      |
+| multiple             | 设置多选                                                                                                                                                | boolean                                                                                   | false                          | 1.28.0 |
+| placeholder          | 选择框默认文字                                                                                                                                             | string                                                                                    | -                              | -      |
+| position             | 方向,可选值:`top`,`topLeft`,`topRight`,`left`,`leftTop`,`leftBottom`,`right`,`rightTop`,`rightBottom`,`bottom`,`bottomLeft`,`bottomRight`                | string                                                                                    | `bottom`                       | 2.16.0 |
+| prefix               | 前缀标签                                                                                                                                                | ReactNode                                                                                 | -                              | 0.28.0 |
+| preventScroll        | 指示浏览器是否应滚动文档以显示新聚焦的元素,作用于组件内的 focus 方法                                                                                                              | boolean                                                                                   | -                              | 2.15.0 |
+| restTagsPopoverProps | Popover 的配置属性,可以控制 position、zIndex、trigger 等,具体参考[Popover](/zh-CN/show/popover#API%20%E5%8F%82%E8%80%83)                                            | PopoverProps                                                                              | {}                             | 1.28.0 |
+| searchPlaceholder    | 搜索框默认文字                                                                                                                                             | string                                                                                    | -                              | -      |
+| separator            | 自定义分隔符,包括:搜索时显示在下拉框的内容以及单选时回显到 Trigger 的内容的分隔符                                                                                                      | string                                                                                    | `/`                            | 2.2.0  |
+| showClear            | 是否展示清除按钮                                                                                                                                            | boolean                                                                                   | false                          | 0.35.0 |
+| showNext             | 设置展开 Dropdown 子菜单的方式,可选: `click`、`hover`                                                                                                            | string                                                                                    | `click`                        | 1.29.0 |
+| showRestTagsPopover  | 当超过 maxTagCount,hover 到 +N 时,是否通过 Popover 显示剩余内容                                                                                                    | boolean                                                                                   | false                          | 1.28.0 |
+| size                 | 选择框大小,可选 `large`,`small`,`default`                                                                                                                  | string                                                                                    | `default`                      | -      |
+| stopPropagation      | 是否阻止下拉框上的点击事件冒泡                                                                                                                                     | boolean                                                                                   | true                           | -      |
+| disableStrictly      | 设置是否开启严格禁用。开启后,当节点是 disabled 的时候,则不能通过子级或者父级的关系改变选中状态                                                                                               | boolean                                                                                   | false                          | 1.32.0 |
+| style                | 选择框的样式                                                                                                                                              | CSSProperties                                                                             | -                              | -      |
+| suffix               | 后缀标签                                                                                                                                                | ReactNode                                                                                 | -                              | 0.28.0 |
+| topSlot              | 顶部插槽                                                                                                                                                | ReactNode                                                                                 | -                              | 1.27.0 |
+| treeData             | 展示数据,具体属性参考 [CascaderData](#CascaderData)                                                                                                           | CascaderData[]                                                                            | []                             | -      |
+| treeNodeFilterProp   | 搜索时输入项过滤对应的 CascaderData 属性                                                                                                                         | string                                                                                    | `label`                        | -      |
+| triggerRender        | 自定义触发器渲染方法                                                                                                                                          | (props: TriggerRenderProps) => ReactNode                                                  | -                              | 0.34.0 |
+| validateStatus       | trigger 的校验状态,仅影响展示样式。可选: default、error、warning                                                                                                     | string                                                                                    | `default`                      | -      |
+| value                | (受控)选中的条目                                                                                                                                           | string\|number\|CascaderData\|(string\|number\|CascaderData)[]                            | -                              | -      |
+| zIndex               | 下拉菜单的 zIndex                                                                                                                                        | number                                                                                    | 1030                           | -      |
+| enableLeafClick      | 多选时,是否启动点击叶子节点选项触发勾选                                                                                                                                | boolean                                                                                   | false                          | 2.2.0  |
+| onBlur               | 失焦 Cascader 的回调                                                                                                                                     | (e: MouseEvent) => void                                                                   | -                              | -      |
+| onChange | 选中树节点时调用此函数,默认返回选中项 path 的 value 数组                                                                                                                 | (value: string\|number\| CascaderData |(string\|number\|CascaderData)[]) => void | - | - |
 | onChangeWithObject | 是否将选中项 option 的其他属性作为回调。设为 true 时,onChange 的入参类型会从 string/number 变为 TreeNode。此时如果是受控,也需要把 value 设置成 CascaderData 类型,且必须含有 value 的键值,defaultValue 同理 | boolean | false | 1.16.0 |
-| onClear| showClear 为 true 时,点击清空按钮触发的回调 | () => void | - | 1.29.0 |
-| onDropdownVisibleChange       | 下拉框切换时的回调   | (visible: boolean) => void | - | 0.35.0 |
-| onExceed| 多选时,超出 max 后触发的回调 | (checkedItem: Entity[]) => void | - | 1.28.0 |
-| onFocus| 聚焦 Cascader 的回调 | (e: MouseEvent) => void | - | - |
-| onListScroll | 下拉面板滚动的回调 | (e: React.Event, panel: { panelIndex: number; activeNode: CascaderData; } ) => void | - | 1.15.0 |
-| onLoad | 节点加载完毕时触发的回调 | (newLoadedKeys: Set< string >, data: CascaderData) => void |- | 1.8.0 |
-| onSearch | 文本框值变化时回调 | (value: string) => void | - | - |
-| onSelect | 被选中时调用,返回选中项的 value | (value: string \| number \| (string \| number)[]) => void| - | - |
+| onClear| showClear 为 true 时,点击清空按钮触发的回调                                                                                                                      | () => void | - | 1.29.0 |
+| onDropdownVisibleChange       | 下拉框切换时的回调                                                                                                                                           | (visible: boolean) => void | - | 0.35.0 |
+| onExceed| 多选时,超出 max 后触发的回调                                                                                                                                   | (checkedItem: Entity[]) => void | - | 1.28.0 |
+| onFocus| 聚焦 Cascader 的回调                                                                                                                                     | (e: MouseEvent) => void | - | - |
+| onListScroll | 下拉面板滚动的回调                                                                                                                                           | (e: React.Event, panel: { panelIndex: number; activeNode: CascaderData; } ) => void | - | 1.15.0 |
+| onLoad | 节点加载完毕时触发的回调                                                                                                                                        | (newLoadedKeys: Set< string >, data: CascaderData) => void |- | 1.8.0 |
+| onSearch | 文本框值变化时回调                                                                                                                                           | (value: string) => void | - | - |
+| onSelect | 被选中时调用,返回选中项的 value                                                                                                                                 | (value: string \| number \| (string \| number)[]) => void| - | - |
 
 ### CascaderData
 

+ 1 - 0
content/input/datepicker/index-en-US.md

@@ -887,6 +887,7 @@ function Demo() {
 | autoFocus          | Automatic access to focus                                                                                                                                                              | boolean   | false   | **1.10.0** |
 | autoSwitchDate     | When the year and month are changed through the left and right buttons and the drop-down menu at the top of the panel, the date is automatically switched. Only valid for `date` type. | boolean   | true    | **1.13.0** |
 | bottomSlot         | Render the bottom extra area                                                                                                                                                           | ReactNode |         | **1.22.0** |
+| borderless        | borderless mode  >=2.33.0                                                                                                                                                                     | boolean                         |           |
 | className          | Class name                                                                                                                                                                             | string    | -       |            |
 | clearIcon          | Can be used to customize the clear button, valid when showClear is true                                                                                                                | ReactNode |         | **2.25.0** |
 | defaultOpen        | Panel displays or hides by default                                                                                                                                                     | boolean   | false   |            |

+ 1 - 0
content/input/datepicker/index.md

@@ -849,6 +849,7 @@ function Demo() {
 | autoAdjustOverflow | 浮层被遮挡时是否自动调整方向                                              | boolean   | true    | **0.34.0** |
 | autoFocus          | 自动获取焦点                                                              | boolean   | false   | **1.10.0** |
 | autoSwitchDate     | 通过面板上方左右按钮、下拉菜单更改年月时,自动切换日期。仅对 date type 生效。 | boolean   | true    | **1.13.0** |
+| borderless        | 无边框模式  >=2.33.0                                                                                                                                     | boolean                         |           |
 | bottomSlot         | 渲染底部额外区域                                                          | ReactNode |         | **1.22.0** |
 | className          | 类名                                                                      | string    | -       |            |
 | clearIcon          | 可用于自定义清除按钮, showClear为true时有效                               | ReactNode |         | **2.25.0** |

+ 35 - 33
content/input/input/index-en-US.md

@@ -387,40 +387,41 @@ Answers to some questions:
 
 > Other attributes are same with html `<input>`
 
-| Property          | Instructions                                                                                  | type                            | Default   |
-|-------------------|-----------------------------------------------------------------------------------------------|---------------------------------|-----------|
-| aria-describedby  | Set the aria-describedby property                                                             | string                          | -         |
-| aria-errormessage | Set the aria-errormessage property                                                            | string                          | -         |
-| aria-invalid      | Set aria-invalid property                                                                     | string                          | -         |
-| aria-label        | Set aria-label properties                                                                     | string                          | -         |
-| aria-labelledby   | Set aria-labelledby properties                                                                | string                          | -         |
-| aria-required     | Set aria-required properties                                                                  | string                          | -         |
-| addonAfter        | Addon after input box                                                                         | ReactNode                       |           |
-| addonBefore       | Addon before input box                                                                        | ReactNode                       |           |
-| className         | Class name                                                                                    | string                          |           |
-| clearIcon         | Can be used to customize the clear button, valid when showClear is true  **>=2.25**           | ReactNode                       |           |
-| defaultValue      | Default value                                                                                 | ReactText                       |           |
-| disabled          | Toggle whether to disable input                                                               | boolean                         | false     |
-| getValueLength    | Custom calculated character string length                                                     | (value: string) => number       |           |
-| hideSuffix        | Toggle whether to hide suffix if clear icon is shown,by default the two icon are side by side | boolean                         | false     |
-| mode              | mode of input,optional: `password` **>= v1.3.0**                                              | string                          |           |
-| prefix            | Prefix                                                                                        | ReactNode                       |           |
+| Property          | Instructions                                                                                                                                                                                  | type                            | Default   |
+|-------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------|-----------|
+| aria-describedby  | Set the aria-describedby property                                                                                                                                                             | string                          | -         |
+| aria-errormessage | Set the aria-errormessage property                                                                                                                                                            | string                          | -         |
+| aria-invalid      | Set aria-invalid property                                                                                                                                                                     | string                          | -         |
+| aria-label        | Set aria-label properties                                                                                                                                                                     | string                          | -         |
+| aria-labelledby   | Set aria-labelledby properties                                                                                                                                                                | string                          | -         |
+| aria-required     | Set aria-required properties                                                                                                                                                                  | string                          | -         |
+| addonAfter        | Addon after input box                                                                                                                                                                         | ReactNode                       |           |
+| addonBefore       | Addon before input box                                                                                                                                                                        | ReactNode                       |           |
+| borderless        | borderless mode  >=2.33.0                                                                                                                                                                     | boolean                         |           |
+| className         | Class name                                                                                                                                                                                    | string                          |           |
+| clearIcon         | Can be used to customize the clear button, valid when showClear is true  **>=2.25**                                                                                                           | ReactNode                       |           |
+| defaultValue      | Default value                                                                                                                                                                                 | ReactText                       |           |
+| disabled          | Toggle whether to disable input                                                                                                                                                               | boolean                         | false     |
+| getValueLength    | Custom calculated character string length                                                                                                                                                     | (value: string) => number       |           |
+| hideSuffix        | Toggle whether to hide suffix if clear icon is shown,by default the two icon are side by side                                                                                                 | boolean                         | false     |
+| mode              | mode of input,optional: `password` **>= v1.3.0**                                                                                                                                              | string                          |           |
+| prefix            | Prefix                                                                                                                                                                                        | ReactNode                       |           |
 | preventScroll | Indicates whether the browser should scroll the document to display the newly focused element, acting on the focus method inside the component, excluding the component passed in by the user | boolean |  |  |
-| showClear         | Show clear button **>=1.0.0**                                                                 | boolean                         | false     |
-| size              | Size, one of `large`, `default`, `small`                                                      | string                          | `default` |
-| style             | Inline style                                                                                  | CSSProperties                   |           |
-| suffix            | Suffix                                                                                        | ReactNode                       |           |
-| type              | Input type attribute, same with html `<input>`                                                | string                          | text      |
-| validateStatus    | Validate status for styling only, one of `default`, `error`, `warning`                        | string                          | `default` |
-| value             | Current value of input box                                                                    | ReactText                       |           |
-| onBlur            | Callback invoked when input loses focus                                                       | function(e:event)               |           |
-| onChange          | Callback invoked when input value changes                                                     | function(value:string, e:event) |           |
-| onClear           | Callback invoked when clicking clear icon                                                     | function(e:event)               |           |
-| onEnterPress      | Callback invoked when pressing enter(keypress)                                                | function(e:event)               |           |
-| onFocus           | Callback invoked when input gets focus                                                        | function(e:event)               |           |
-| onKeyDown         | Callback invoked when keydown                                                                 | function(e:event)               |           |
-| onKeyPress        | Callback invoked when keypress                                                                | function(e:event)               |           |
-| onKeyUp           | Callback invoked when keyup                                                                   | function(e:event)               |           |
+| showClear         | Show clear button **>=1.0.0**                                                                                                                                                                 | boolean                         | false     |
+| size              | Size, one of `large`, `default`, `small`                                                                                                                                                      | string                          | `default` |
+| style             | Inline style                                                                                                                                                                                  | CSSProperties                   |           |
+| suffix            | Suffix                                                                                                                                                                                        | ReactNode                       |           |
+| type              | Input type attribute, same with html `<input>`                                                                                                                                                | string                          | text      |
+| validateStatus    | Validate status for styling only, one of `default`, `error`, `warning`                                                                                                                        | string                          | `default` |
+| value             | Current value of input box                                                                                                                                                                    | ReactText                       |           |
+| onBlur            | Callback invoked when input loses focus                                                                                                                                                       | function(e:event)               |           |
+| onChange          | Callback invoked when input value changes                                                                                                                                                     | function(value:string, e:event) |           |
+| onClear           | Callback invoked when clicking clear icon                                                                                                                                                     | function(e:event)               |           |
+| onEnterPress      | Callback invoked when pressing enter(keypress)                                                                                                                                                | function(e:event)               |           |
+| onFocus           | Callback invoked when input gets focus                                                                                                                                                        | function(e:event)               |           |
+| onKeyDown         | Callback invoked when keydown                                                                                                                                                                 | function(e:event)               |           |
+| onKeyPress        | Callback invoked when keypress                                                                                                                                                                | function(e:event)               |           |
+| onKeyUp           | Callback invoked when keyup                                                                                                                                                                   | function(e:event)               |           |
 ### TextArea
 
 > Other attributes are same with html `<textarea>`
@@ -434,6 +435,7 @@ Answers to some questions:
 | aria-labelledby   | Set aria-labelledby properties                                                                                         | string                          | -       |
 | aria-required     | Set aria-required properties                                                                                           | string                          | -       |
 | autosize          | Toggle whether to allow autosize when content height changes                                                           | boolean                         | false   |
+| borderless        | borderless mode  >=2.33.0                                                                                                                                                                     | boolean                         |           |
 | className         | Class name                                                                                                             | string                          | -       |
 | cols              | The visible width of the text control, in average character widths. If it is specified, it must be a positive integer. | number                          | -       |
 | disabled          | Disabled                                                                                                               | boolean                         | false   |

+ 36 - 34
content/input/input/index.md

@@ -397,40 +397,41 @@ import { Input, Typography, Form, TextArea, Button } from '@douyinfe/semi-ui';
 ### Input
 > 其他属性与html input 标签保持一致
 
-| 属性           | 说明                                                            | 类型                            | 默认值    |
-|----------------|---------------------------------------------------------------|---------------------------------|-----------|
-| aria-describedby   | 设置 aria-describedby 属性           | string                         | -  |
-| aria-errormessage   | 设置 aria-errormessage 属性           | string                         | -  |
-| aria-invalid   | 设置 aria-invalid 属性           | string                         | -  |
-| aria-label   | 设置 aria-label 属性           | string                         | -  |
-| aria-labelledby   | 设置 aria-labelledby 属性           | string                         | -  |
-| aria-required   | 设置 aria-required 属性           | string                         | -  |
-| addonAfter     | 后置标签                                                        | ReactNode               |           |
-| addonBefore    | 前置标签                                                        | ReactNode               |           |
-| className      | 类名                                                            | string                          |           |
-| clearIcon | 可用于自定义清除按钮, showClear为true时有效 **>=2.25.0** | ReactNode |  |
-| defaultValue   | 输入框内容默认值                                                | ReactText                          |           |
-| disabled       | 是否禁用,默认为false                                            | boolean                         | false     |
-| getValueLength| 自定义计算字符串长度                                            | (value: string) => number        |      |
-| hideSuffix     | 清除按钮与后缀标签并存时隐藏后缀标签,默认为false两者并列        | boolean                         | false     |
-| mode           | 输入框的模式,可选值password **>=v1.3.0**                        | string                          |           |
-| prefix         | 前缀标签                                                        | ReactNode               |           |
-| preventScroll | 指示浏览器是否应滚动文档以显示新聚焦的元素,作用于组件内的 focus 方法 | boolean |  |  |
-| showClear      | 输入框有内容且 hover 或 focus 时展示清除按钮 **>=1.0.0**                                            | boolean                         | false     |
-| size           | 输入框大小,large、default、small                                  | string                          | 'default' |
-| style          | 样式                                                            | CSSProperties                          |           |
-| suffix         | 后缀标签                                                        | ReactNode               |           |
-| type           | 声明input类型,同原生input标签的type属性                         | string                         | text     |
-| validateStatus | 校验状态,可选值default、error、warning,默认default。仅影响展示样式 | string                          | 'default' |
-| value          | 输入框内容                                                      | ReactText                          |           |
-| onBlur         | 输入框失去焦点时的回调                                          | function(e:event)                        |           |
-| onChange       | 输入框内容变化时的回调                                          | function(value:string, e:event) |           |
-| onClear        | 点击清除按钮时的回调                                            | function(e:event)                        |           |
-| onEnterPress   | 按回车时回调(keypress)                                          | function(e:event)               |           |
-| onFocus        | 输入框focus时的回调                                             | function(e:event)                        |           |
-| onKeyDown      | keydown回调                                                     | function(e:event)               |           |
-| onKeyPress     | keypress回调                                                    | function(e:event)               |           |
-| onKeyUp        | keyup回调                                                       | function(e:event)               |           |
+| 属性                | 说明                                              | 类型                              | 默认值    |
+|-------------------|-------------------------------------------------|---------------------------------|-----------|
+| aria-describedby  | 设置 aria-describedby 属性                          | string                          | -  |
+| aria-errormessage | 设置 aria-errormessage 属性                         | string                          | -  |
+| aria-invalid      | 设置 aria-invalid 属性                              | string                          | -  |
+| aria-label        | 设置 aria-label 属性                                | string                          | -  |
+| aria-labelledby   | 设置 aria-labelledby 属性                           | string                          | -  |
+| aria-required     | 设置 aria-required 属性                             | string                          | -  |
+| addonAfter        | 后置标签                                            | ReactNode                       |           |
+| addonBefore       | 前置标签                                            | ReactNode                       |           |
+| borderless        | 无边框模式  >=2.33.0                                 | boolean                         |           |
+| className         | 类名                                              | string                          |           |
+| clearIcon         | 可用于自定义清除按钮, showClear为true时有效 **>=2.25.0**      | ReactNode                       |  |
+| defaultValue      | 输入框内容默认值                                        | ReactText                       |           |
+| disabled          | 是否禁用,默认为false                                   | boolean                         | false     |
+| getValueLength    | 自定义计算字符串长度                                      | (value: string) => number       |      |
+| hideSuffix        | 清除按钮与后缀标签并存时隐藏后缀标签,默认为false两者并列                 | boolean                         | false     |
+| mode              | 输入框的模式,可选值password **>=v1.3.0**                 | string                          |           |
+| prefix            | 前缀标签                                            | ReactNode                       |           |
+| preventScroll     | 指示浏览器是否应滚动文档以显示新聚焦的元素,作用于组件内的 focus 方法          | boolean                         |  |  |
+| showClear         | 输入框有内容且 hover 或 focus 时展示清除按钮 **>=1.0.0**       | boolean                         | false     |
+| size              | 输入框大小,large、default、small                       | string                          | 'default' |
+| style             | 样式                                              | CSSProperties                   |           |
+| suffix            | 后缀标签                                            | ReactNode                       |           |
+| type              | 声明input类型,同原生input标签的type属性                     | string                          | text     |
+| validateStatus    | 校验状态,可选值default、error、warning,默认default。仅影响展示样式 | string                          | 'default' |
+| value             | 输入框内容                                           | ReactText                       |           |
+| onBlur            | 输入框失去焦点时的回调                                     | function(e:event)               |           |
+| onChange          | 输入框内容变化时的回调                                     | function(value:string, e:event) |           |
+| onClear           | 点击清除按钮时的回调                                      | function(e:event)               |           |
+| onEnterPress      | 按回车时回调(keypress)                                | function(e:event)               |           |
+| onFocus           | 输入框focus时的回调                                    | function(e:event)               |           |
+| onKeyDown         | keydown回调                                       | function(e:event)               |           |
+| onKeyPress        | keypress回调                                      | function(e:event)               |           |
+| onKeyUp           | keyup回调                                         | function(e:event)               |           |
 ### TextArea
 
 > 其他属性与 html textarea 标签保持一致
@@ -444,6 +445,7 @@ import { Input, Typography, Form, TextArea, Button } from '@douyinfe/semi-ui';
 | aria-labelledby   | 设置 aria-labelledby 属性           | string                         | -  |
 | aria-required   | 设置 aria-required 属性           | string                         | -  |
 | autosize     | 是否随着自动适应内容高度           | boolean                         | false  |
+| borderless        | 无边框模式  >=2.33.0                                 | boolean                         |           |
 | className    | 类名                               | string                          | -      |
 | cols         | 默认列数                           | number                          | 无     |
 | disabled     | 禁用状态                           | boolean                         | false  |

+ 1 - 0
content/input/select/index-en-US.md

@@ -1326,6 +1326,7 @@ import { Select, Checkbox } from '@douyinfe/semi-ui';
 | autoAdjustOverflow | Whether the pop-up layer automatically adjusts the direction when it is obscured (only vertical direction is supported for the time being, and the inserted parent is body) | boolean | true |
 | autoClearSearchValue | After selecting the option, whether to automatically clear the search keywords, it will take effect when mutilple and filter are both enabled | boolean | true | 2.3.0|
 | autoFocus | Whether automatically focus when component mount | boolean | false |
+| borderless        | borderless mode  >=2.33.0                                                                                                                                                                     | boolean                         |           |
 | className | The CSS class name of the wrapper element | string |  |
 | clearIcon    | Can be used to customize the clear button, valid when showClear is true                       | ReactNode                       |   | 2.25.0 |
 | clickToHide | When expanded, click on the selection box to automatically put away the drop-down list | boolean | false |

+ 1 - 0
content/input/select/index.md

@@ -1385,6 +1385,7 @@ import { Select, Checkbox } from '@douyinfe/semi-ui';
 | autoAdjustOverflow | 浮层被遮挡时是否自动调整方向(暂时仅支持竖直方向,且插入的父级为 body) | boolean | true |
 | autoClearSearchValue | 选中选项后,是否自动清空搜索关键字,当 mutilple、filter 都开启时生效 | boolean | true | 2.3.0 |
 | autoFocus | 初始渲染时是否自动 focus | boolean | false |
+| borderless        | 无边框模式  >=2.33.0                                 | boolean                         |           |
 | className | 类名 | string |  |
 | clearIcon | 可用于自定义清除按钮, showClear为true时有效 | ReactNode | 2.25.0  |
 | clickToHide | 已展开时,点击选择框是否自动收起下拉列表 | boolean | false |

+ 1 - 0
content/input/timepicker/index-en-US.md

@@ -301,6 +301,7 @@ function Demo(props = {}) {
 | --- | --- | --- | --- | --- |
 | autoAdjustOverflow | Whether the floating layer automatically adjusts its direction when it is blocked | boolean | true | **0.34.0** |
 | autoFocus | Automatic access to focus | boolean | false |
+| borderless        | borderless mode  >=2.33.0                                                                                                                                                                     | boolean                         |           |
 | className | Outer style name | string |  |
 | clearIcon | Can be used to customize the clear button, valid when showClear is true | ReactNode |  |  **2.25.0**|
 | clearText | Clear button prompt copy | string | Clear |

+ 1 - 0
content/input/timepicker/index.md

@@ -292,6 +292,7 @@ function Demo(props = {}) {
 | ------------------- | ------------------------------------------------------ | --------------------------------------------------------------------------------- | ----------------------------------------------------------------- | ------------------ |
 | autoAdjustOverflow  | 浮层被遮挡时是否自动调整方向                           | boolean                                                                           | true                                                              | **0.34.0** |
 | autoFocus           | 自动获取焦点                                           | boolean                                                                           | false                                                             |                    |
+| borderless        | 无边框模式  >=2.33.0                                                                                                                                     | boolean                         |           |
 | className           | 外层样式名                                             | string                                                                            |                                                                   |                    |
 | clearIcon | 可用于自定义清除按钮, showClear为true时有效 | ReactNode |  |**2.25.0**  |
 | clearText           | 清除按钮的提示文案                                     | string                                                                            | clear                                                             |                    |

+ 1 - 0
content/input/treeselect/index-en-US.md

@@ -1403,6 +1403,7 @@ function Demo() {
 | arrowIcon|Customize the right drop-down arrow Icon, when the showClear switch is turned on and there is currently a selected value, hover will give priority to the clear icon| ReactNode | | 1.15.0|
 |autoAdjustOverflow|Whether the pop-up layer automatically adjusts the direction when it is obscured (only vertical direction is supported for the time being, and the inserted parent is body)|boolean | true| 0.34.0|
 | autoExpandParent | Toggle whether to expand parent nodes automatically | boolean | false | 0.34.0 |
+| borderless        | borderless mode  >=2.33.0                                                                                                                                                                     | boolean                         |           |
 | checkRelation | In multiple, the relationship between the checked states of the nodes, optional: 'related'、'unRelated' | string | 'related' | 2.5.0 |
 | className                | Class name                                                                          | string                                                            | -           | -       |
 | clearIcon    | Can be used to customize the clear button, valid when showClear is true                       | ReactNode                |       | 2.25.0    |

+ 1 - 0
content/input/treeselect/index.md

@@ -1384,6 +1384,7 @@ function Demo() {
 | arrowIcon|自定义右侧下拉箭头Icon,当showClear开关打开且当前有选中值时,hover会优先显示clear icon| ReactNode | | 1.15.0|
 | autoAdjustOverflow|浮层被遮挡时是否自动调整方向(暂时仅支持竖直方向,且插入的父级为 body)|boolean | true| 0.34.0|
 | autoExpandParent | 是否自动展开父节点 | boolean | false | 0.34.0 |
+| borderless        | 无边框模式  >=2.33.0                                                                                                                                     | boolean                         |           |
 | checkRelation | 多选时,节点之间选中状态的关系,可选:'related'、'unRelated' | string | 'related' | 2.5.0 |
 | className | 选择框的 `className` 属性 | string | - | - |
 | clearIcon | 可用于自定义清除按钮, showClear为true时有效 | ReactNode | |2.25.0  |

+ 1 - 1
packages/semi-ui/typography/base.tsx

@@ -597,7 +597,7 @@ export default class Base extends Component<BaseTypographyProps, BaseTypographyS
             [`${prefixCls}-disabled`]: disabled,
             [`${prefixCls}-${spacing}`]: spacing,
             [`${prefixCls}-${heading}`]: isHeader,
-            [`${prefixCls}-${heading}-weight-${weight}`]: isHeader && isNaN(Number(weight)),
+            [`${prefixCls}-${heading}-weight-${weight}`]: isHeader && weight && isNaN(Number(weight)),
         });
 
         const textStyle: CSSProperties = {