From fb9e15ee997646e7ac4ae40b23e60f7cdf42614f Mon Sep 17 00:00:00 2001 From: azhe Date: Thu, 10 Aug 2023 15:53:39 +0800 Subject: [PATCH] chore: release/1.6.0 (#2678) * feat: release 1.6.0 * feat: update common * chore: changelog's changes --------- Co-authored-by: github-actions[bot] --- CHANGELOG.md | 16 ++++++++++++++++ package.json | 2 +- src/_common | 2 +- src/hooks/useImagePreviewUrl.ts | 2 +- test/snap/__snapshots__/ssr.test.js.snap | 8 ++++---- 5 files changed, 23 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a377ef3ba..c0493cd00b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,22 @@ toc: false docClass: timeline --- +## 🌈 1.6.0 `2023-08-10` +### 🚀 Features +- `Icon`: 新增 960 个图标;调整图标命名 `photo` 为 `camera`,`books`为`bookmark`, `stop-cirle-1`为`stop-circle-stroke`;移除`money-circle`图标,具体请查看图标页面 @uyarn ([#2677](https://github.com/Tencent/tdesign-vue/pull/2677)) +- `Table`: 可编辑表格,新增 `edit.keepEditMode` ,用于控制单元格始终保持为编辑态 @chaishi ([#2662](https://github.com/Tencent/tdesign-vue/pull/2662)) +- `Image`: @chaishi ([#2665](https://github.com/Tencent/tdesign-vue/pull/2665)) + - 属性 `src` 支持传入 File 文件类型显示图片 + - 新增支持 `fallback` ,用于设置图片加载失败时的兜底图 + - 新增支持 `referrerpolicy` 属性 +- `ImageViewer`: 属性 `images` 支持传入 File 文件类型预览图片 @chaishi ([#2665](https://github.com/Tencent/tdesign-vue/pull/2665)) +- `Upload`: 文件上传列表支持显示缩略图,通过 `showThumbnail` 属性控制 @chaishi ([#2665](https://github.com/Tencent/tdesign-vue/pull/2665)) +- `Link`: 新增透传 `download` 属性,支持浏览器直接下载,https://github.com/Tencent/tdesign-vue/issues/2628 @xiaosansiji ([#2659](https://github.com/Tencent/tdesign-vue/pull/2659)) +### 🐞 Bug Fixes +- `InputAdornment`: 修复装饰文字折行的问题 @PengYYYYY ([common#1553](https://github.com/Tencent/tdesign-common/pull/1553)) +### 🚧 Others +- `官网`: 新增分类展示全部图标的 UI @uyarn ([#2677](https://github.com/Tencent/tdesign-vue/pull/2677)) + ## 🌈 1.5.2 `2023-08-01` ### 🚀 Features - `Table`: diff --git a/package.json b/package.json index b186842150..b6bd72a969 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tdesign-vue", "purename": "tdesign", - "version": "1.5.2-naruto", + "version": "1.6.0-naruto", "description": "tdesign-vue", "title": "tdesign-vue", "keywords": [ diff --git a/src/_common b/src/_common index 05f588ae6c..6b4dde5c4f 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit 05f588ae6c1d71255320a7d7f6ff61b7cd14318c +Subproject commit 6b4dde5c4f8a09514b011038d8d453ad692adb39 diff --git a/src/hooks/useImagePreviewUrl.ts b/src/hooks/useImagePreviewUrl.ts index 51da092923..5358281e45 100644 --- a/src/hooks/useImagePreviewUrl.ts +++ b/src/hooks/useImagePreviewUrl.ts @@ -1,6 +1,6 @@ import { ComputedRef, ref, Ref, watch, -} from '@vue/composition-api'; +} from 'vue'; import { getFileUrlByFileRaw } from '../_common/js/upload/utils'; export function useImagePreviewUrl(imgUrl: Ref | ComputedRef) { diff --git a/test/snap/__snapshots__/ssr.test.js.snap b/test/snap/__snapshots__/ssr.test.js.snap index 7a04269611..76ba1eea03 100644 --- a/test/snap/__snapshots__/ssr.test.js.snap +++ b/test/snap/__snapshots__/ssr.test.js.snap @@ -144,9 +144,9 @@ exports[`ssr snapshot test > renders ./src/card/_example/bordered.vue correctly exports[`ssr snapshot test > renders ./src/card/_example/bordered-none.vue correctly 1`] = `"
标题
仅有内容区域的卡片形式。卡片内容区域可以是文字、图片、表单、表格等形式信息内容。可使用大中小不同的卡片尺寸,按业务需求进行呈现。
"`; -exports[`ssr snapshot test > renders ./src/card/_example/footer.vue correctly 1`] = `"
"`; +exports[`ssr snapshot test > renders ./src/card/_example/footer.vue correctly 1`] = `"
"`; -exports[`ssr snapshot test > renders ./src/card/_example/footer-actions.vue correctly 1`] = `"
"`; +exports[`ssr snapshot test > renders ./src/card/_example/footer-actions.vue correctly 1`] = `"
"`; exports[`ssr snapshot test > renders ./src/card/_example/footer-content.vue correctly 1`] = `"
"`; @@ -164,7 +164,7 @@ exports[`ssr snapshot test > renders ./src/card/_example/header-footer-actions.v exports[`ssr snapshot test > renders ./src/card/_example/header-subtitle.vue correctly 1`] = `"
标题副标题
操作
卡片内容,以描述性为主,可以是文字、图片或图文组合的形式。按业务需求进行自定义组合。
"`; -exports[`ssr snapshot test > renders ./src/card/_example/header-subtitle-footer-actions.vue correctly 1`] = `"
标题副标题
"`; +exports[`ssr snapshot test > renders ./src/card/_example/header-subtitle-footer-actions.vue correctly 1`] = `"
标题副标题
"`; exports[`ssr snapshot test > renders ./src/card/_example/hover.vue correctly 1`] = ` "
标题
操作
这是一段很长很长很长很长很长很长很长很长很长很长很长很长 @@ -402,7 +402,7 @@ exports[`ssr snapshot test > renders ./src/form/_example/clear-validate.vue corr exports[`ssr snapshot test > renders ./src/form/_example/custom-validator.vue correctly 1`] = `"
同一个校验方法可输出不同的错误信息和类型,依次输入:1234 观察变化
自定义异步校验方法
"`; -exports[`ssr snapshot test > renders ./src/form/_example/disabled.vue correctly 1`] = `"
接受
  • \\"\\"
    图片加载中
请选择单张图片文件上传
"`; +exports[`ssr snapshot test > renders ./src/form/_example/disabled.vue correctly 1`] = `"
接受
  • \\"\\"
    图片加载中
请选择单张图片文件上传
"`; exports[`ssr snapshot test > renders ./src/form/_example/error-message.vue correctly 1`] = `"
这里可以展示一段说明文字
一句话介绍自己
"`;