Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into fix-auto-complet-vueComponent#7396
  • Loading branch information
selicens committed Mar 5, 2024
2 parents c46f6fe + 9a5f83e commit 4296290
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@

---

## 4.1.2

- 🐞 Fix table resize error reporting under vue 3.4 [#7291](https://github.com/vueComponent/ant-design-vue/issues/7291)
- 🐞 Fix the problem that the Segmented title attribute is not displayed [#7302](https://github.com/vueComponent/ant-design-vue/issues/7302)

## 4.1.1

- 🌟 QRcode adds scanned status [#7242](https://github.com/vueComponent/ant-design-vue/issues/7242)
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@

---

## 4.1.2

- 🐞 修复 table resize 在 vue 3.4 下报错问题 [#7291](https://github.com/vueComponent/ant-design-vue/issues/7291)
- 🐞 修复 Segmented title 属性不显示问题 [#7302](https://github.com/vueComponent/ant-design-vue/issues/7302)

## 4.1.1

- 🌟 QRcode 新增 scanned 状态 [#7242](https://github.com/vueComponent/ant-design-vue/issues/7242)
Expand Down
1 change: 1 addition & 0 deletions components/segmented/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const genSegmentedStyle: GenerateStyle<SegmentedToken> = (token: SegmentedToken)
insetInlineStart: 0,
borderRadius: 'inherit',
transition: `background-color ${token.motionDurationMid}`,
pointerEvents: 'none',
},

[`&:hover:not(${componentCls}-item-selected):not(${componentCls}-item-disabled)`]: {
Expand Down
2 changes: 1 addition & 1 deletion components/select/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Select component to select value from options.

### The dropdown is closed when click `dropdownRender` area?

Dropdown menu will be closed if click `dropdownRender` area, you can prevent it by wrapping `@mousedown.prevent` See the [dropdownRender example](/components/select/#components-select-demo-custom-dropdown).
Dropdown menu will be closed if click `dropdownRender` area, you can prevent the default behavior of a click event, See the [dropdownRender example](#components-select-demo-custom-dropdown-menu).

### Why is `placeholder` not displayed?

Expand Down
2 changes: 1 addition & 1 deletion components/select/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*5oPiTqPxGAUAAA

### 点击 `dropdownRender` 里的内容浮层关闭怎么办?

自定义内容点击时会关闭浮层,如果不喜欢关闭,可以添加 `@mousedown.prevent` 进行阻止。 看下 [dropdownRender 例子](/components/select-cn/#components-select-demo-custom-dropdown) 里的说明。
自定义内容点击时会关闭浮层,如果不喜欢关闭,可以通过取消点击事件的默认行为进行阻止。 看下 [dropdownRender 例子](#components-select-demo-custom-dropdown-menu) 里的说明。

### 为什么 `placeholder` 不显示 ?

Expand Down
4 changes: 2 additions & 2 deletions components/table/hooks/useColumns.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import devWarning from '../../vc-util/devWarning';
import { renderSlot } from 'vue';
import type { Ref } from 'vue';
import type { ContextSlots } from '../context';
import type { TransformColumns, ColumnsType } from '../interface';
import { SELECTION_COLUMN } from './useSelection';
import { EXPAND_COLUMN } from '../../vc-table';
import { customRenderSlot } from '../../_util/vnode';

function fillSlots<RecordType>(columns: ColumnsType<RecordType>, contextSlots: Ref<ContextSlots>) {
const $slots = contextSlots.value;
Expand All @@ -27,7 +27,7 @@ function fillSlots<RecordType>(columns: ColumnsType<RecordType>, contextSlots: R
});

if (contextSlots.value.headerCell && !column.slots?.title) {
cloneColumn.title = renderSlot(
cloneColumn.title = customRenderSlot(
contextSlots.value,
'headerCell',
{
Expand Down
7 changes: 5 additions & 2 deletions components/table/interface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type { Breakpoint } from '../_util/responsiveObserve';
import type { INTERNAL_SELECTION_ITEM } from './hooks/useSelection';
import type { VueNode } from '../_util/type';
import { tuple } from '../_util/type';
import type { CSSProperties } from 'vue';
import type { CSSProperties, VNodeArrayChildren } from 'vue';
// import { TableAction } from './Table';

export type { GetRowKey, ExpandableConfig };
Expand Down Expand Up @@ -68,7 +68,10 @@ export interface ColumnTitleProps<RecordType> {
filters?: Record<string, FilterValue>;
}

export type ColumnTitle<RecordType> = VueNode | ((props: ColumnTitleProps<RecordType>) => VueNode);
type ColumnTitleNode = VueNode | VNodeArrayChildren;
export type ColumnTitle<RecordType> =
| ColumnTitleNode
| ((props: ColumnTitleProps<RecordType>) => ColumnTitleNode);

export type FilterValue = (Key | boolean)[];
export type FilterKey = Key[] | null;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ant-design-vue",
"version": "4.1.1",
"version": "4.1.2",
"title": "Ant Design Vue",
"description": "An enterprise-class UI design language and Vue-based implementation",
"keywords": [
Expand Down Expand Up @@ -74,7 +74,7 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/vueComponent/ant-design-vue.git"
"url": "https://github.com/vueComponent/ant-design-vue.git"
},
"license": "MIT",
"funding": {
Expand Down

0 comments on commit 4296290

Please sign in to comment.