Skip to content

Commit

Permalink
chore: release 1.8.3 (#2988)
Browse files Browse the repository at this point in the history
* chore: release 1.8.3

* chore: release 1.8.3

* chore: release 1.8.3
  • Loading branch information
uyarn committed Dec 15, 2023
1 parent 81465f6 commit b238390
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 22 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ toc: false
docClass: timeline
---

## 🌈 1.8.2 `2023-12-15`
## 🌈 1.8.3 `2023-12-15`
### 🚀 Features
- `Upload`: 新增支持 `uploadPastedFiles`,用于控制是否允许用户粘贴文件上传,默认允许 @chaishi ([#2966](https://github.com/Tencent/tdesign-vue/pull/2966))
- Dropdown: 移除对left的item样式特殊处理 @uyarn [common#1677](https://github.com/Tencent/tdesign-common/pull/1677)
### 🐞 Bug Fixes
- `DatePicker`: 修复选择同一个月内的日期后,打开面板左右月份一样的问题 @Lyan-u ([#2972](https://github.com/Tencent/tdesign-vue/pull/2972))
- `Drawer`: 处理点击esc无法关闭的问题 @betavs ([#2967](https://github.com/Tencent/tdesign-vue/pull/2967))
- `ImageViewer`: 滚轮缩放符合操作直觉 @sinbadmaster ([#2974](https://github.com/Tencent/tdesign-vue/pull/2974))
- `SSR`: 修复 `SSR` 场景使用报错的问题 @uyarn ([#2985](https://github.com/Tencent/tdesign-vue/pull/2985))
- `Tree`: 处理 `height` 属性无效的问题 @betavs ([#2968](https://github.com/Tencent/tdesign-vue/pull/2968))
- `Tree`: 解决初始化节点选中态异常的问题 @TabSpace ([#2985](https://github.com/Tencent/tdesign-vue/pull/2985))
- `Upload`: 卡片式文件上传,修复取消上传时,文件依然显示问题,[issue#2955](https://github.com/Tencent/tdesign-vue/issues/2955) @chaishi ([#2966](https://github.com/Tencent/tdesign-vue/pull/2966))
- `Upload`: 卡片式文件上传,修复取消上传时,文件依然显示的问题 [issue#2955](https://github.com/Tencent/tdesign-vue/issues/2955) @chaishi ([#2966](https://github.com/Tencent/tdesign-vue/pull/2966))

## 🌈 1.8.1 `2023-12-07`
### 🚀 Features
Expand All @@ -31,7 +32,7 @@ docClass: timeline
- `Table`: @chaishi
- 修复分页场景,动态切换分页数据从 undefined 到具体真实数据时,分页无效的问题 [#2867](https://github.com/Tencent/tdesign-vue/issues/2867) ([#2954](https://github.com/Tencent/tdesign-vue/pull/2954))
- 修复分页功能在序号、行选择、行拖拽排序等场景的问题 ([#2962](https://github.com/Tencent/tdesign-vue/pull/2962))
- 修复可编辑表格的 `row-edit` 事件没有触发问题 ([#2934](https://github.com/Tencent/tdesign-vue/pull/2934))
- 修复可编辑表格的 `row-edit` 事件没有触发的问题 ([#2934](https://github.com/Tencent/tdesign-vue/pull/2934))
- `ImageViewer`: 修复在抽屉组件等组件中使用图片预览组件,按下 `esc` 键抽屉组件和图片预览组件会同时关闭的问题 @sinbadmaster ([#2958](https://github.com/Tencent/tdesign-vue/pull/2958))
- `AutoComplete`: 修复匹配特殊字符报错的问题 @ZWkang ([#2943](https://github.com/Tencent/tdesign-vue/pull/2943))
- `Dropdown`:处理禁用状态可点击的问题 @betavs ([issue #3693](https://github.com/Tencent/tdesign-vue-next/issues/3693))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdesign-vue",
"purename": "tdesign",
"version": "1.8.2",
"version": "1.8.3",
"description": "tdesign-vue",
"title": "tdesign-vue",
"keywords": [
Expand Down
24 changes: 6 additions & 18 deletions src/dropdown/dropdown-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ScopedSlotReturnValue } from 'vue/types/vnode';
import {
defineComponent, h, ref, onMounted, reactive, set,
} from '@vue/composition-api';
import { ChevronRightIcon as TdChevronRightIcon, ChevronLeftIcon as TdChevronLeftIcon } from 'tdesign-icons-vue';
import { ChevronRightIcon as TdChevronRightIcon } from 'tdesign-icons-vue';
import isFunction from 'lodash/isFunction';

import DropdownItem from './dropdown-item';
Expand Down Expand Up @@ -65,9 +65,8 @@ export default defineComponent({
},
// 处理options渲染的场景
renderOptions(data: Array<DropdownOption>, deep: number) {
const { ChevronRightIcon, ChevronLeftIcon } = useGlobalIcon({
const { ChevronRightIcon } = useGlobalIcon({
ChevronRightIcon: TdChevronRightIcon,
ChevronLeftIcon: TdChevronLeftIcon,
});
const arr: Array<unknown> = [];
let renderContent;
Expand Down Expand Up @@ -95,21 +94,10 @@ export default defineComponent({
},
}}
>
{this.direction === 'right' ? (
<div class={`${this.dropdownClass}__item-content`}>
<span class={`${this.dropdownClass}__item-text`}>
{this.renderOptionContent(optionItem.content)}
</span>
<ChevronRightIcon class={`${this.dropdownClass}__item-direction`} size="16" />
</div>
) : (
<div class={`${this.dropdownClass}__item-content`}>
<ChevronLeftIcon class={`${this.dropdownClass}__item-direction`} size="16" />
<span class={`${this.dropdownClass}__item-text`}>
{this.renderOptionContent(optionItem.content)}
</span>
</div>
)}
<div class={`${this.dropdownClass}__item-content`}>
<span class={`${this.dropdownClass}__item-text`}>{this.renderOptionContent(optionItem.content)}</span>
<ChevronRightIcon class={`${this.dropdownClass}__item-direction`} size="16" />
</div>
<div
class={[
`${this.dropdownClass}__submenu-wrapper`,
Expand Down

0 comments on commit b238390

Please sign in to comment.