Skip to content

Releases: DouyinFE/semi-design

v2.58.0

11 May 13:38
Compare
Choose a tag to compare
  • 【Feat】
    • Tabs 新增 more api,用于将一部分 tabs 收起到下拉菜单中 #2226
    • Button 新增 outline 边框模式主题 #2224
  • 【Fix】
    • 修复 Slider 在添加了 scale 样式后,拖拽不正常,点击轨道跳转不正常的问题 #2223
    • 修复在 safari/ firefox 浏览器在暗色模式下的样式错误(影响版本:2.56.0-2.57.0) #2225 #2229

  • 【Feat】
    • Tabs has added more API, which is used to collapse some tabs into drop-down menus.
    • Button adds outline border mode theme
  • 【Fix】
    • Fixed the problem that after adding the scale style to Slider, dragging is not normal and clicking on the track jumps abnormally.
    • Fix the style error in dark mode in safari/firefox browser (affected versions: 2.56.0-2.57.0) #2225

v2.58.0-beta.0

06 May 09:30
Compare
Choose a tag to compare
v2.58.0-beta.0 Pre-release
Pre-release
  • 【Feat】
    • Nav.Item 支持透传 data-* 参数到 DOM @meixg #2217
    • Table 兼容 dnd-kit,更新 Table 拖拽排序 demo 为 dnd-kit #997
  • 【Style】
    • 修复 TagIput 在 Form 表单中使用 insetLabel时,样式与其他组件未对齐的问题 #2216
  • 【Design token】
    • TagInput 增加 $color-tagInput_prefix-text-default、$spacing-tagInput_insetLabel-marginRight、$font-tagInput_insetLabel-fontWeight 三个 Token
      #2216
  • 【Fix】
    • 修复 Table 表头 text-align 在 RTL 模式下对齐不正确的问题 #2172
    • 修复 Table onGroupedRow className 不生效问题 #2185
    • 修复 Table components 类型定义问题 #2197

  • 【Feat】
    • Nav.Item support pass data-* attribute to dom @meixg#2217
    • Table compatible with dnd-kit and update sorting demo in dnd-kit #997
  • 【Style】
    • fixed TagInput insetLabel style not align with other component such as Input、Select #2216
  • 【Design token】
    • TagInput add Tokens:$color-tagInput_prefix-text-default、$spacing-tagInput_insetLabel-marginRight、$font-tagInput_insetLabel-fontWeight #2216
  • 【Fix】
    • Fixed Table header text-align bug in RTL mode #2172
    • Fixed Table onGroupedRow className not work bug #2185

v2.57.0

26 Apr 09:37
Compare
Choose a tag to compare

  • 【Fix】
    • 修复 Field卸载后,异步校验的结果仍然会写至formState的问题 @sylingd #2206
    • 修复 TreeSelect 受控 value,设置了 defaultExpandedKeys,远程加载 treeData时,defaultExpandedKeys 未生效问题(影响版本 2.49.2-2.56.3) #2191
    • 修复 TreeSelect 在多选,自定义 trigger,checkRelation 为 unRelated情况下,选中项未通过 triggerRender 透出问题 #2188
    • 修复 Tooltip 在挂载时,如果 Cursor 已经在 trigger 的 dom 上,且 React 复用了 trigger dom 作为 tooltip 的 children,tooltip 不会展示的问题 #2199
    • 修复 Input 和 TextArea 设置 defaultValue 在长文本情况下,autoFocus 光标未滚动到末尾的问题 #2193
    • 移除 Banner .semi-banner-content 中无效的css规则 #2204
  • 【Design Token】
    • Checkbox 新增 $color-checkbox_cardType-border-default #2208

v2.57.0-beta.0

23 Apr 04:10
Compare
Choose a tag to compare
v2.57.0-beta.0 Pre-release
Pre-release
  • 【Fix】
    • 修复 Select 单选时,受控且filter开启模式下,选择Option后文本会闪烁一次后更正的问题 #2170
  • 【Feat】
    • Modal 支持 modalContentClass to set content 的 props #2162 @18852819321
    • 给树形选择器TreeSelect的onSearch方法添加了filteredNodes入参,用来获取筛选后的节点列表 @Hokori23 #2155
    • Form 组件 FormApi 增加 getFormProps,可在 formApi中读取组件的 props如 disabled、trigger 等属性 #2184

  • 【Fix】
    • Fixed the issue where the text would flash once after selecting Option in the controlled and filter-enabled mode during Select radio selection and then corrected.
  • 【Feat】
    • Modal support modalContentClass to set content 的 props #2162 @18852819321
    • TreeSelect's onSearch method add filteredNodes which represents the list of nodes displayed after the search @Hokori23
    • Form's formApi add getFormProps function

v2.56.3

19 Apr 07:06
Compare
Choose a tag to compare
  • 【Fix】
    • 修复 Modal footerFill 打开后,取消按钮带有左边距的问题 #2177
    • 修复单选,可搜索,远程加载的 TreeSelect 在选择选项后,选项展开状态异常问题 #2178 #2179
    • 修复 Upload 将 addOnPasting 切换为 false 后,粘贴上传依然触发的问题 #2176
    • 修复 TreeSelect 在搜索后选项变化,面板位置未自动调整问题 #2181
    • 修改 locale 越南语翻译中不准确的表达 @ruaruababa #2154
  • 【Docs】
    • 数据可视化文档更新 #2182

  • 【Fix】
    • Fixed the issue where the Cancel button has a left margin after Modal footerFill is opened.#2177
    • Fix abnormal expansion status of TreeSelect which is single selection, searchable, loaded data from remote #2178
    • Fixed the problem that after Upload switches addOnPasting to false, paste upload is still triggered.#2176
    • Fixed the problem that TreeSelect options changed after searching and the panel position was not automatically adjusted.#2181
    • Modify inaccurate expressions in locale vi-VN translation @ruaruababa#2154
  • 【Docs】
    • Data visualization documentation updates

v2.56.2

17 Apr 09:37
Compare
Choose a tag to compare
  • 【Design Token】
    • Button 修改 splitButton radius token 名称为 $radius-button_splitButtonGroup_first_topLeft$radius-button_splitButtonGroup_first_bottomLeft$radius-button_splitButtonGroup_last_topRight$radius-button_splitButtonGroup_last_bottomRight Token

  • 【Design Token】
    • Button change splitButton radius token name to $radius-button_splitButtonGroup_first_topLeft$radius-button_splitButtonGroup_first_bottomLeft$radius-button_splitButtonGroup_last_topRight$radius-button_splitButtonGroup_last_bottomRight Token

v2.56.1

16 Apr 07:01
Compare
Choose a tag to compare
  • 【Design Token】
    • Button 增加 $radius-splitButtonGroup_first_topLeft$radius-splitButtonGroup_first_bottomLeft$radius-splitButtonGroup_last_topRight$radius-splitButtonGroup_last_bottomRight Token

  • 【Design Token】
    • Button Add $radius-splitButtonGroup_first_topLeft$radius-splitButtonGroup_first_bottomLeft$radius-splitButtonGroup_last_topRight$radius-splitButtonGroup_last_bottomRight Token

v2.56.0

12 Apr 09:47
Compare
Choose a tag to compare
  • 【Fix】
    • 修复 Locale ro 语言类型定义与其他语言不一致问题 #2157
    • 修复使用 js 省略的 Typography 组件,children 为 模版字符串时的显示异常及省略异常 #2167 #2169
    • 修复 Select filter 在未选中任何项时,高度不正确的问题。(影响版本 v2.56.0-beta.0) #2159
    • 修复 Typography 单行 css 省略的精确性问题 #1731 #2089
  • 【Docs】
    • 数据可视化文档更新 #2165

  • 【Fix】
    • fix the problem of inconsistency between Locale ro language type definition and other languages
    • Fix the display exception and omission exception when the Typography component is omitted by js and children is a template string #2167
    • Fixed Select filter height not as expected when empty. (Affected version v2.56.0-beta.0)
    • fix Typography single-line css omission accuracy issue #1731
  • 【Docs】
    • Data visualization documentation updates

v2.56.0-beta.0

03 Apr 07:42
Compare
Choose a tag to compare
v2.56.0-beta.0 Pre-release
Pre-release
  • 【Feat】
    • WebComponent 场景支持:clickOutSide 增加对 Shadow DOM 场景的支持,涉及组件包括 AutoComplete、Calendar、Cascader、DatePicker、Select、TagInput、TimePicker、Tooltip、TreeSelect @changlin2569 #1381
    • WebComponent 场景支持:通过 :host, :host-context 伪类选择器将 css variable 注入 shadow dom,保障 Shadow DOM 下的 Semi 组件样式正确 #2142
    • Backtop 点击增加 throttle,防止duration内重复触发 @OnlyWick #2125
  • 【Fix】
    • 修复 Typography 单行 css 省略的精确性问题 #1731
    • 修复 Select 多选且 filter 开启的情况下,选择多行后,最后一行的标签垂直间隔于其他行不同的问题 #1667
  • 【Style】
    • 修复 Form.RadioGroup 在 type=button/card 时与普通 RadioGroup的高度不一致的样式问题 @nekocode #1954
    • 修复 RadioGroup 在父级若有 overflow:hidden 的情况下选中后样式不对的问题 @nekocode #2126
  • 【Design token】
    • Select 增加 $height-select_multiple_input_small$height-select_multiple_input_default$height-select_multiple_input_large 三个 token 可用于指定开启搜索时的 input 的高度 #2151

  • 【Feat】
    • WebComponent Support:clickOutSide add support for Shadow DOM scenarios,involving components: AutoComplete、Calendar、Cascader、DatePicker、Select、TagInput、TimePicker、Tooltip、TreeSelect @changlin2569 #1381
    • WebComponent Support:Inject the css variable into the shadow dom through the :host, :host-context pseudo-class selectors to ensure that the Semi component style under the shadow dom is correct. #2142
    • Backtop click to increase throttle to prevent repeated triggering within duration. @OnlyWick
  • 【Fix】
    • Fixed Typography single-line css omission accuracy issue #1731
    • Fixed the issue where the label of the last row is vertically spaced differently from other rows after selecting multiple rows when Select is multi-selected and filter is turned on. #1667
  • 【Style】
    • Fixed the style issue where the height of Form.RadioGroup is inconsistent with that of the normal RadioGroup when type=button/card @nekocode #1954
    • Fixed the style issue where the style of RadioGroup is incorrect after being selected if the parent has overflow:hidden @nekocode #2126
  • 【Design token】
    • Select add $height-select_multiple_input_small$height-select_multiple_input_default$height-select_multiple_input_large used to specify the height of the input when searching is enabled #2151

v2.55.5

02 Apr 07:27
Compare
Choose a tag to compare
  • 【Fix】
    • 修复 Tree 组件中 checkRelation 为 unRelated 时,由于 value 不在 treeData 中导致的类型错误
    • 修复受控 Cascader 中 value 不在 TreeData 内时的类型错误
    • 修复 slider 在一些场景下 tooltip 在 鼠标移走时不自动隐藏的问题 (影响范围 2.49.0 ~ 2.55.4 )

  • 【Fix】
    • Fixed a type error caused by value not being in treeData when checkRelation in the Tree component is unRelated.
    • Fix type error in controlled Cascader where value is not in TreeData
    • Fixed the problem of slider tooltip not automatically hiding when the mouse is moved in some scenarios (Affected version 2.49.0 ~ 2.55.4)