Skip to content

Releases: DouyinFE/semi-design

v2.0.5

09 Nov 10:26
Compare
Choose a tag to compare
  • 【Style】
    • 修复 Input 组件 hover 时 border 样式问题 #204
  • 【Perf】
    • Modal 使用 CSS 动画,优化打开和关闭时的动画效果 #236

  • 【Style】
    • Fixed the border style issue when the Input component is hover #204
  • 【Perf】
    • Modal uses CSS animation to optimize the animation effect when opening and closing #236

v2.0.4

08 Nov 12:24
Compare
Choose a tag to compare
  • 【Fix】
    • 修复 Cascader 单选时,defaultValue 为 disabled 节点时选中会被过滤的问题 #183
    • 修复 Cascader 多选且开启 onChangeWithObject,defaultValue 为 object[] 没有生效的问题 #184
    • 修复 Select 支持打开下拉框后,无法自动滚动到已选中的项目的问题 #169
    • 修复 Table resizable 表格问题 #154
  • 【Docs】

  • 【Fix】
    • Fixed Cascader single selection, the problem that the defaultValue is disabled when the node is selected will be filtered #183
    • Fixed Cascader multiple and onChangeWithObject enabled, the defaultValue is object[] does not take effect #184
    • Fixed the problem that the Select support cannot automatically scroll to the selected item after opening the drop-down box #169
    • Fixed Table resizable table issue #154
  • 【Docs】
    • Optimized the contributing document #224 @btea

v2.0.3

05 Nov 11:01
Compare
Choose a tag to compare
  • 【Fix】
    • 修复 Tree / TreeSelect 在 loading 状态下 item 高度变大的问题 #181
    • 修复 TagInput 在 separator 不为 string 或 array 时输入值会被清空的问题 #182
    • 修复 Form 通过 setValues 重置 ArrayField时,formState已生效,UI渲染未同步更新的问题 #211
  • 【Docs】
  • 【Chore】
    • 日语语言包优化 Pagination、DatePicker 组件的两处文案 #135 @Void-YY

  • 【Fix】
    • Fix the problem that the item height of Tree / TreeSelect becomes larger in the loading state #181
    • Fix the problem that the input value of TagInput will be cleared when separator is not string or array #182
    • Fix the issue that when Form resets ArrayField through setValues, formState has taken effect and UI rendering is not updated synchronously #211
  • 【Docs】
    • Introduction page adds pnpm installation method #27 @Sepush
  • 【Chore】
    • Japanese language locale sources optimizes two copywriting of Pagination and DatePicker components#135 @Void-YY

v2.0.2

04 Nov 09:14
Compare
Choose a tag to compare
  • 【Fix】
    • 修复 Toast 的类型定义 #166
    • 修复 Radio value / defaultValue 的类型定义,从 string 改正为 string | number #159
    • 修复 Transfer 在 treeList 类型下搜索问题 #163
    • 修复 DatePicker type=month 时,计算机设置为美东时区,无法选中日期问题 #173
    • 修复 List 类型定义错误问题 #156
    • 修复 Select 组件 renderSelectedItems 类型定义问题 #160
    • 修复 Tooltip 事件回调没有正确移除问题 #192
  • 【Style】
    • Switch 新增 Token:$color-switch_disabled-bg-hover,$color-switch_disabled-bg-active, 定制disabled 态的背景颜色 #115
  • 【Docs】
  • 【Chore】

  • 【Fix】
    • Fixed the type definition of Toast #166
    • Fixed the type definition of Radio value and defaultValue, from string to string | number #159
    • Fixed the problem of Transfer search under treeList type #163
    • When DatePicker type=month, the computer is set to the US Eastern time zone and the date cannot be selected #173
    • Fixed List type definition error #156
    • Fixed the type definition issue of Select component renderSelectedItems #160
    • Fixed Tooltip event callback is not removed correctly #192
  • 【Style】
    • New tokens for Switch: $color-switch_disabled-bg-hover, $color-switch_disabled-bg-active, custom disabled background color #115
  • 【Docs】
  • 【Chore】

v2.0.1

01 Nov 10:15
Compare
Choose a tag to compare
  • 【Fix】
    • 修复 TreeSelect 选中节点后会展开其子节点并立即关闭,造成视觉跳闪的感觉 #78
    • 修复 Progress 组件 size 改变时渲染错误 #94
    • 修复 Collapsible 组件默认打开时,组件高度没有完全展开问题 #85 @Janlay884181317
    • 修复 Navigation items 类型定义报错问题 #35
    • 修复 Navigation.Header linkOptions 传 target 类型报错问题 #120 @boenfu
    • 修复 Table Column.render text 类型报错问题,由 string => any #144
    • 修复 TextArea 组件 TextAreaProps 类型定义报错问题 #149
  • 【Style】
    • 更新 Form 组件 Token,$spacing-form_label_posLeft-marginRight 的值:4px -> 0px,将labelPosition='left' 时 Label 的右边距对齐(无论其是否位于 Form.InputGroup 中)。并修正Form.InputGroup中Label 在 labelPosition='left' 时未垂直居中的问题 #67
    • Anchor 的组件修改 Token 拼写问题,更新 $radis-anchor_slide => $radius-anchor_slide #92 @btea
  • 【Docs】

  • 【Fix】
    • Fixed TreeSelect will expand its child nodes and close them immediately after selecting a node, causing a visual flickering feeling #78
    • Fixed the rendering error when the size of Progress component is changed #94
    • Fixed the problem that the height of the component is not fully expanded when the Collapsible component is opened by default #85 @Janlay884181317
    • Fixed Navigation items type definition error issue #35
    • Fixed Navigation.Header linkOptions upload target type error problem #120 @boenfu
    • Fixed the error of Table Column.render text type, caused by string => any #144
    • Fixed an error in the TextArea component TextAreaProps type definition #149
  • 【Style】
    • Update the Form component Token, the value of $spacing-form_label_posLeft-marginRight: 4px -> 0px, align the right margin of the Label when labelPosition='left' (regardless of whether it is in Form.InputGroup or not). And fix the problem that the Label in Form.InputGroup is not vertically centered when labelPosition='left' #67
    • Anchor component modify Token spelling problem, update $radis-anchor_slide => $radius-anchor_slide #92 @btea
  • 【Docs】

v2.0.0

01 Nov 11:28
Compare
Choose a tag to compare
  • 【Breaking Change】
    • 组件相关调整
      • Icon 相关
        • Icon 组件不再支持 type=xxx 方式使用内置 icon
        • 自定义 svg 不再支持插件方式配置 srcSvgPaths
        • Button icon 属性不再支持通过 string 传递内置 icon 名
        • Dropdown 删除 iconType 属性,统一为 icon 属性
        • Navigation icon 不再支持通过 string 方式传入,需要传入 ReactNode
        • Notification icon 不再支持通过 string 方式传入,请统一使用 ReactNode
      • AutoComplete 正式废弃 onChangeWithObject 属性
      • Cascader triggerRender 的入参移除 onInputChange
      • Form 不再从 semi-ui/index.js 导出 Label组件,如需使用请用 Form.Label
      • Tree onRightClick 更名为 onContextMenu
      • Upload dragable 更名为 draggable
      • Table
        • 不再在 componentDidUpdate 时响应的 API
          • defaultExpandAllRows,请用 expandAllRows 替换
          • defaultExpandRowKeys,请用 expandRowKeys 替换
          • defaultExpandAllGroupRows,请用 expandAllGroupRows 替换
    • 样式相关调整
      • CSS 变量添加 semi 前缀,例如 --color-primary => --semi-color-primary
      • 在 2.x,统一将插画的宽高设置为 200 * 200px,1.x 的尺寸为 300 * 150px
      • 设计变量调整
        • Popconfirm
          • $color-popconfirm_body-text 由 --semi-color-tertiary => --semi-color-text-2
          • $color-popconfirm_header_alert-icon 由 #fa7500 => --semi-color-warning
        • Progress
          • $spacing-progress_line_text-marginLeft 由 15px => $spacing-base(16px)
          • $spacing-progress_line_text-marginRight 由 15px => $spacing-base(16px)
        • Radio
          • $spacing-radio_addon_buttonRadio_large-paddingY 由 6px => $spacing-base-tight / 2 (6px)
          • $radius-radio_cardRadioGroup 由 3px => --semi-border-radius-small(3px)
    • 插件相关调整
      • 2.x 不再支持通过 Semi 插件配置 iconLazyLoad、svgPaths、srcSvgPaths
      • 2.x 默认已支持局部暗色/亮色模式,不再需要在插件配置 themeScope。使用方式由 #semi-always-xxx => .semi-always-xxx
    • 其他调整
      • 由于 Icon 方案的调整,Icon、Empty 组件使用 icon、插画的方式与之前不同,具体请看 1.x 迁移 2.x 指南

  • 【Breaking Change】
    • Component Changes
      • Icon related
        • Icon component no longer supports type = xxx using built-in icons
        • Custom svg no longer supports plug-in configuration srcSvgPaths
        • The Button icon property no longer supports passing built-in icon names through strings
        • 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
        • Notification icons are no longer passed in by string, please use ReactNode uniformly
      • AutoComplete officially discards the onChangeWithObject property
      • Remove onInputChange from Cascader triggerRender
      • Form no longer exports Label components from semi-ui/index.js
      • Tree onRightClick renamed onContextMenu
      • Upload dragable renamed draggable
      • Table
        • API that no longer responds when componentDidUpdate
          • DefaultExpandAllRows, please replace with expandAllRows
          • Default ExpandRowKeys, please replace with expandRowKeys
          • Default ExpandAllGroupRows, please replace with expandAllGroupRows
    • Style Changes
      • CSS variable with semi prefix, for example --color-primary = > --semi-color-primary
      • In 2.x, the unified set the width and height of the illustration to 200 * 200px
      • Design Token Changes
        • Popconfirm
          • $color-popconfirm_body-text 由 --semi-color-tertiary => --semi-color-text-2
          • $color-popconfirm_header_alert-icon 由 #fa7500 => --semi-color-warning
        • Progress
          • $spacing-progress_line_text-marginLeft 由 15px => $spacing-base(16px)
          • $spacing-progress_line_text-marginRight 由 15px => $spacing-base(16px)
        • Radio
          • $spacing-radio_addon_buttonRadio_large-paddingY 由 6px => $spacing-base-tight / 2 (6px)
          • $radius-radio_cardRadioGroup 由 3px => --semi-border-radius-small(3px)
    • Plugin Changes
      • In 2.x, the iconLazyLoad, svgPaths, srcSvgPaths configurations are no longer supported
      • In 2.x, section dark mode and bright mode no longer need to configure themeScope attributes in the plug-in, and the default is built-in. The usage method is updated from adding id #semi-ways-xxx to adding class .semi-ways-xxx.
    • Other Changes
      • Due to the adjustment of the Icon, the way of using icons and illustrations for Icon and Empty components is different from before. Please see for details