Skip to content

Commit

Permalink
Merge pull request #980 from ksc-fe/revision-menu
Browse files Browse the repository at this point in the history
feat: 更新快照
  • Loading branch information
warrior-bing authored Mar 21, 2024
2 parents 1b7ee2d + 5321646 commit 4fed9cc
Show file tree
Hide file tree
Showing 7 changed files with 224 additions and 199 deletions.
1 change: 1 addition & 0 deletions components/ellipsis/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ setDefault(() => {

export const makeStyles = cache(function makeStyles(k: string, maxLines: number) {
return css`
width: 100%;
&.${k}-multiline {
.k-ellipsis-wrapper {
white-space: normal;
Expand Down
24 changes: 24 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,30 @@ order: 99
sidebar: doc
---

## v3.2.2

1. `Add` `Divider`组件,支持分割线 [#979](https://github.com/ksc-fe/kpc/pull/979)
2. `Add` `Ellipsis`组件,支持超长省略,超出展示tooltip [#979](https://github.com/ksc-fe/kpc/pull/979)
3. `Add` `MenuTitle`, `MenuItem`组件默认支持`Ellipsis`[#979](https://github.com/ksc-fe/kpc/pull/979)
4. `Fix` 修复Table无数据提示文案修改 [#967](https://github.com/ksc-fe/kpc/issues/967)
5. `Fix` 修复Webpack V4下,sideEffects失效,导致tree-shaking问题 [#974](https://github.com/ksc-fe/kpc/issues/974)
6. `Fix` 修复Select nowrap不折行,当隐藏的项过多,Tooltip会展示不下 [#974](https://github.com/ksc-fe/kpc/issues/970)
7. `Fix` 修复v1 v2/v3版本共存 [#895](https://github.com/ksc-fe/kpc/issues/895)

### @king-design/react

1. `Fix` 修复React元素做King-Design直接子元素,King-Design组件内部无法正确卸载它 [#969](https://github.com/ksc-fe/kpc/issues/969)
2. `Fix` 修复React事件冒泡问题 [#973](https://github.com/ksc-fe/kpc/issues/973)
2. `Fix` 修复组件事件中多次设置state,会触发多次更新 [#977](https://github.com/ksc-fe/kpc/issues/977)

### @king-design/vue-legacy

1. `Fix` 修复Menu header插槽存在Icon组件,折叠再展开,点击MenuItem报错 [#976](https://github.com/ksc-fe/kpc/issues/976)

### @king-design/vue

1. `Fix` 修复Tooltip如果存在注释,会报存在多个子元素的错误 [#975](https://github.com/ksc-fe/kpc/issues/975)

## v3.2.1

### @king-design/react
Expand Down
42 changes: 21 additions & 21 deletions packages/kpc-vue-next/__tests__/__snapshots__/Vue Next Demos.md

Large diffs are not rendered by default.

110 changes: 55 additions & 55 deletions packages/kpc-vue/__tests__/__snapshots__/Vue Legacy Demos.md

Large diffs are not rendered by default.

128 changes: 64 additions & 64 deletions test/__snapshots__/Demos.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/__snapshots__/Ellipsis.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
#### `should support drag Ellipsis`

```
"<div class=\"k-split k-horizontal css-1ug4f89 k-last-auto\" style=\"width: 400px;\"><div class=\"k-split-first\" style=\"width: 100px;\"><div class=\"k-ellipsis css-1o7ph7r\"><div class=\"c-ellipsis css-1hvr061 panel\" style=\"cursor: pointer;\">测试测试测试测试测试测试</div><!--portal--></div><br><div class=\"k-ellipsis css-1o7ph7r\"><div class=\"c-ellipsis k-multiline css-1hf2oyx panel\" style=\"cursor: pointer;\">最大几行忽略最大几行忽略最大几行忽略</div><!--portal--></div></div><div class=\"k-split-line-wrapper\"><div class=\"k-split-line\"><div class=\"k-split-drag-lines\"></div></div></div><div class=\"k-split-last\" style=\"width: auto;\"><div class=\"k-ellipsis css-1o7ph7r\"><div class=\"c-ellipsis css-1hvr061 panel\" style=\"cursor: default;\">不展示tooltip不展示tooltip</div></div></div></div>"
"<div class=\"k-split k-horizontal css-1ug4f89 k-last-auto\" style=\"width: 400px;\"><div class=\"k-split-first\" style=\"width: 100px;\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper panel\">测试测试测试测试测试测试</div><!--portal--></div><br><div class=\"k-ellipsis k-multiline css-hqv409\"><div class=\"c-ellipsis k-ellipsis-wrapper panel\">最大几行忽略最大几行忽略最大几行忽略</div><!--portal--></div></div><div class=\"k-split-line-wrapper\"><div class=\"k-split-line\"><div class=\"k-split-drag-lines\"></div></div></div><div class=\"k-split-last\" style=\"width: auto;\"><div class=\"k-ellipsis css-1jf5h5f\"><div class=\"c-ellipsis k-ellipsis-wrapper panel\">不展示tooltip不展示tooltip</div></div></div></div>"
```

Loading

0 comments on commit 4fed9cc

Please sign in to comment.