Skip to content

Commit 4aadc3d

Browse files
uyarnbetavsgithub-actions[bot]RSS1102RylanBot
authored
chore: release 1.13.0-naruto (#3679)
* chore: fix live demo and guide (#3649) * fix(date-picker): handle tag removal for week and quarter modes (#3653) * fix(date-picker): handle tag removal for week and quarter modes * chore: update snapshot --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix(date-picker): improve date processing logic for multiple selections (#3658) * fix(date-picker): improve date processing logic for multiple selections * fix(date-picker): add multiple prop to panel for consistent behavior * fix(popup): outside click not closing when initially `visible=true` (#3659) * fix(ColorPicker): reduce multiple color conversions to minimize errors (#3661) * fix: reduce multiple color conversions to minimize errors * refactor: correct color assignment in slider * fix: use correct props * chore: update snapshots * fix: use optional chaining to prevent errors when systemColors is null in gradient mode * docs: update labels for clarity in color picker panel * chore: update snapshots * chore: remove unused togglePopup prop * fix(image-viewer): update open handler to accept index parameter for image preview (#3670) * fix(hooks): improve code readability and safety in scroll calculations (#3669) * feat(Icon): upgrade tdesign-icons-vue to 0.3.6 (#3672) * fix(alert): add closeBtn API and set close as deprecated (#3631) closes #3630 * chore: remove invalid attribute (#3638) * chore: remove invalid attribute * chore: fix lint * chore: update snapshot --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix(cascader): fix value-type="full", value is undefined error (#3622) * fix(menu): fix submenu parent item active status on mounted (#3675) * fix(menu): fix submenu parent item active status on mounted * chore: update snapshot * refactor(Statistic): change color attribute type to string and update docs description (#3671) * refactor(Statistic): change color attribute type to string and update docs description * test(Statistic): add tests for trend increase and decrease icons * chore: update snapshot * feat(Statistic): add color prop tests and update documentation for color styles * fix(tests): update import path for COLOR_MAP in Statistic tests * test(Statistic): refactor colorKeys test to check style attribute instead of contentStyle * chore: update snapshot * chore: update settings.json * docs: 更新颜色风格描述,明确支持深浅色模式切换 --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * feat(QRCode): add QRCode Component (#3652) * feat: docs & type & prop * feat: add QRCode * fix: test * fix: lint * chore: update snapshot * chore: p * chore: slot * chore: optimize * chore: optimize * chore: optimize * chore: optimize * fix: lint * chore: update snapshot * chore: update * chore: update coverage * chore: update common * chore: update demo --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: wū yāng <uyarnchen@gmail.com> * fix(tree): add `title` for checkable items (#3633) * fix(tree): add `title` to checkable items * chore: update snapshot --------- Co-authored-by: Uyarn <uyarnchen@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * feat(upload): expand the scope of the click event of `draggable` to the entire card area (#3614) * fix(upload): expand the scope of the click event of `theme="display"` to the entire card area * fix(upload): update `canTriggerUpload` logic to ensure file status is checked correctly * chore: update snapshot * chore: revert change * fix(Dragger): rename canTriggerUpload to hasActiveFile for clarity --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Uyarn <uyarnchen@gmail.com> * docs: update getting-started (#3678) * docs: update getting-started * chore: update volar * docs(alert): usage example moved to closeBtn (#3676) * docs(alert): usage example moved to closeBtn * chore: update snapshot --------- Co-authored-by: Uyarn <uyarnchen@gmail.com> * chore: release 1.13.0 (#3677) * chore: release 1.13.0 * chore: changelog's changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: update new components * chore: fix lint * chore: fix lint * chore: fix lint * chore: update snapshot --------- Co-authored-by: betavs <34408516+betavs@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: 阿菜 Cai <jimmyrss1102@gmail.com> Co-authored-by: Rylan <rylanbot@qq.com> Co-authored-by: TDesign bot <93915689+tdesign-bot@users.noreply.github.com> Co-authored-by: ngyyuusora <jiliangsoft@live.com> Co-authored-by: liweijie0812 <674416404@qq.com> Co-authored-by: Wesley <985189328@qq.com>
1 parent 3fb4914 commit 4aadc3d

File tree

109 files changed

+7111
-1371
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+7111
-1371
lines changed

.vscode/settings.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,12 @@
2222
"editor.formatOnSave": true,
2323
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
2424
},
25-
"cSpell.words": ["tdesign", "popconfirm", "swiper", "cascader"]
25+
"cSpell.words": [
26+
"cascader",
27+
"popconfirm",
28+
"swiper",
29+
"tdesign",
30+
"vnode",
31+
"qrcode"
32+
]
2633
}

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,30 @@ toc: false
55
docClass: timeline
66
---
77

8+
## 🌈 1.13.0 `2025-08-07`
9+
### 🚀 Features
10+
- `QRCode`: 新增 `QRCode` 二维码组件 @Wesley-0808 ([#3652](https://github.com/Tencent/tdesign-vue/pull/3652))
11+
- `Alert`: 新增 `closeBtn` API,与其他组件保持一致,`close` 将在未来版本废弃,请尽快调整为 `closeBtn` 使用 @ngyyuusora ([#3631](https://github.com/Tencent/tdesign-vue/pull/3631))
12+
- `Tree`: 多选场景下每个节点新增 hover 提示,与单选场景保持一致 @RSS1102 ([#3633](https://github.com/Tencent/tdesign-vue/pull/3633))
13+
- `Upload`: 扩大单文件/图片风格的点击事件触发热区至整个卡片区域 @RSS1102 ([#3614](https://github.com/Tencent/tdesign-vue/pull/3614))
14+
### 🐞 Bug Fixes
15+
- `Cascader`: 修复 `value-type="full"` ,value 为 undefined时组件内部报错 @liweijie0812 ([#3622](https://github.com/Tencent/tdesign-vue/pull/3622))
16+
- `ColorPicker`: 减少颜色跨色彩空间的多次转换,降低误差 @RylanBot ([#3661](https://github.com/Tencent/tdesign-vue/pull/3661))
17+
- `DatePicker`:
18+
- 修复多选情况下周和季度模式的标签删除异常和可以重复选择的问题 @betavs ([#3653](https://github.com/Tencent/tdesign-vue/pull/3653))
19+
- 修复多选情况下周模式可以重复选择的问题 @betavs ([#3658](https://github.com/Tencent/tdesign-vue/pull/3658))
20+
- `Descriptions`: 修复无边框模式下左右内边距的异常问题 @liweijie0812 ([common#2219](https://github.com/Tencent/tdesign-common/pull/2219))
21+
- `Image`: 修复 `1.12.1` 版本后控制台报错的问题 @betavs ([#3670](https://github.com/Tencent/tdesign-vue/pull/3670))
22+
- `ImageViewer`: 修复在多图预览中点击对应图片与预览图片不一致的问题 @betavs ([#3670](https://github.com/Tencent/tdesign-vue/pull/3670))
23+
- `Loading`: 修复在 iPad 微信上图标位置错误的问题 @Nero978([#3650](https://github.com/Tencent/tdesign-vue/pull/3650))
24+
- `Menu`: 修复多级菜单在子组件存在多层封装后无法正常高亮的问题 @uyarn ([#3675](https://github.com/Tencent/tdesign-vue/pull/3675))
25+
- `Popconfirm`: 当初始 `visible` 为 true 时,点击外部时弹出窗口不关闭的问题 @RSS1102 ([#3659](https://github.com/Tencent/tdesign-vue/pull/3659))
26+
- `Popup`: 当初始 `visible` 为 true 时,点击外部时弹出窗口不关闭的问题 @RSS1102 ([#3659](https://github.com/Tencent/tdesign-vue/pull/3659))
27+
- `Select`: 修复虚拟滚动搜索后出现空白区域的问题 @betavs ([#3669](https://github.com/Tencent/tdesign-vue/pull/3669))
28+
- `Statistic`: 修改 color 属性类型为字符串,以支持任何 [CSS color](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) 支持的颜色值 @RSS1102 ([#3671](https://github.com/Tencent/tdesign-vue/pull/3671))
29+
- `Table`: 修复 `resizable` 开启时,列边框线引起的列名内容移动的问题 @QuentinHsu ([common#2224](https://github.com/Tencent/tdesign-common/pull/2224))
30+
31+
832
## 🌈 1.12.1 `2025-07-03`
933
### 🚀 Features
1034
- `locale`: 支持内置多语言的英文版本的单复数场景正常展示 @YunYouJun ([#3641](https://github.com/Tencent/tdesign-vue/pull/3641))

global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ declare module '@vue/runtime-dom' {
8383
TPopup: typeof import('tdesign-vue')['Popup'];
8484
TPrimaryTable: typeof import('tdesign-vue')['PrimaryTable'];
8585
TProgress: typeof import('tdesign-vue')['Progress'];
86+
TQrcode: typeof import('tdesign-vue')['QRCode'];
8687
TRadio: typeof import('tdesign-vue')['Radio'];
8788
TRadioButton: typeof import('tdesign-vue')['RadioButton'];
8889
TRadioGroup: typeof import('tdesign-vue')['RadioGroup'];

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tdesign-vue",
33
"purename": "tdesign",
4-
"version": "1.12.1-naruto",
4+
"version": "1.13.0-naruto",
55
"description": "tdesign-vue",
66
"title": "tdesign-vue",
77
"keywords": [
@@ -96,7 +96,7 @@
9696
"mitt": "^3.0.0",
9797
"raf": "^3.4.1",
9898
"sortablejs": "^1.15.0",
99-
"tdesign-icons-vue": "^0.3.5",
99+
"tdesign-icons-vue": "^0.3.6",
100100
"tinycolor2": "^1.4.2",
101101
"validator": "^13.5.1"
102102
},
@@ -179,7 +179,7 @@
179179
"rollup-plugin-styles": "^4.0.0",
180180
"rollup-plugin-terser": "~7.0.2",
181181
"rollup-plugin-vue": "^5.1.9",
182-
"tdesign-icons-view": "^0.3.6",
182+
"tdesign-icons-view": "^0.3.7",
183183
"tdesign-publish-cli": "^0.0.12",
184184
"tdesign-site-components": "^0.13.0",
185185
"tdesign-theme-generator": "^1.0.5",

site/docs/getting-started.en-US.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ import 'tdesign-vue/es/style/index.css';
8181
Vue.use(VueCompositionAPI); // must be the first one
8282
```
8383

84-
install `unplugin-vue-components` and `unplugin-auto-import`
84+
install `@tdesign-vue-next/auto-import-resolver`,`unplugin-vue-components` and `unplugin-auto-import`
8585

8686
```bash
8787
npm install -D unplugin-vue-components unplugin-auto-import
@@ -94,7 +94,7 @@ Then, add the above plugins to the corresponding configuration files of Webpack
9494
```js
9595
import AutoImport from 'unplugin-auto-import/vite';
9696
import Components from 'unplugin-vue-components/vite';
97-
import { TDesignResolver } from 'unplugin-vue-components/resolvers';
97+
import { TDesignResolver } from '@tdesign-vue-next/auto-import-resolver';
9898

9999
export default {
100100
plugins: [
@@ -114,7 +114,7 @@ export default {
114114
```js
115115
const AutoImport = require('unplugin-auto-import/webpack');
116116
const Components = require('unplugin-vue-components/webpack');
117-
const { TDesignResolver } = require('unplugin-vue-components/resolvers');
117+
const { TDesignResolver } = require('@tdesign-vue-next/auto-import-resolver');
118118

119119
module.exports = {
120120
// ...
@@ -129,7 +129,7 @@ module.exports = {
129129
};
130130
```
131131

132-
> You can click on this [link](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/tdesign.ts#L4) for the configuration supported by `TDesignResolver`.
132+
> You can click on this [link](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/auto-import-resolver/README.md#%E9%80%89%E9%A1%B9) for the configuration supported by `TDesignResolver`.
133133
134134
## Starter Kit
135135

site/docs/getting-started.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ import 'tdesign-vue/es/style/index.css';
9191
Vue.use(VueCompositionAPI); // 必须是项目的第一个 use
9292
```
9393

94-
并安装两个 unplugin 相关的第三方包
94+
并安装 `@tdesign-vue-next/auto-import-resolver` 和两个 unplugin 相关的第三方包
9595

9696
```bash
97-
npm install -D unplugin-vue-components unplugin-auto-import
97+
npm install -D @tdesign-vue-next/auto-import-resolver unplugin-vue-components unplugin-auto-import
9898
```
9999

100100
然后在 Webpack 或 Vite 对应的配置文件添加上述插件。
@@ -104,7 +104,7 @@ npm install -D unplugin-vue-components unplugin-auto-import
104104
```js
105105
import AutoImport from 'unplugin-auto-import/vite';
106106
import Components from 'unplugin-vue-components/vite';
107-
import { TDesignResolver } from 'unplugin-vue-components/resolvers';
107+
import { TDesignResolver } from '@tdesign-vue-next/auto-import-resolver';
108108

109109
export default {
110110
plugins: [
@@ -124,7 +124,7 @@ export default {
124124
```js
125125
const AutoImport = require('unplugin-auto-import/webpack');
126126
const Components = require('unplugin-vue-components/webpack');
127-
const { TDesignResolver } = require('unplugin-vue-components/resolvers');
127+
const { TDesignResolver } = require('@tdesign-vue-next/auto-import-resolver');
128128

129129
module.exports = {
130130
// ...
@@ -139,7 +139,7 @@ module.exports = {
139139
};
140140
```
141141

142-
> `TDesignResolver` 支持的配置,可以点击此[链接](https://github.com/antfu/unplugin-vue-components/blob/main/src/core/resolvers/tdesign.ts#L4)
142+
> `TDesignResolver` 支持的配置,可以点击此[链接](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/auto-import-resolver/README.md#%E9%80%89%E9%A1%B9)
143143
144144
## 快速体验
145145

site/plugins/plugin-tdoc/md-to-vue.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async function customRender({ source, file, md }) {
179179
// const usageObj = compileUsage({
180180
// componentName,
181181
// usage: pageData.usage,
182-
// demoPath: path.posix.resolve(__dirname, `../../src/${componentName}/_usage/index.vue`),
182+
// demoPath: path.posix.resolve(__dirname, `../../../src/${componentName}/_usage/index.vue`),
183183
// });
184184
// if (usageObj) {
185185
// mdSegment.usage = usageObj;
@@ -205,7 +205,7 @@ async function customRender({ source, file, md }) {
205205

206206
// 设计指南内容 不展示 design Tab 则不解析
207207
if (pageData.isComponent && pageData.tdDocTabs.some((item) => item.tab === 'design')) {
208-
const designDocPath = path.resolve(__dirname, `../../src/_common/docs/web/design/${componentName}.md`);
208+
const designDocPath = path.resolve(__dirname, `../../../src/_common/docs/web/design/${componentName}.md`);
209209

210210
if (fs.existsSync(designDocPath)) {
211211
const designDocLastUpdated =

site/site.config.mjs

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,23 @@ const docs = [
512512
component: () => import('tdesign-vue/progress/progress.md'),
513513
componentEn: () => import('tdesign-vue/progress/progress.en-US.md'),
514514
},
515+
{
516+
title: 'QRCode 二维码',
517+
titleEn: 'QRCode',
518+
name: 'qrcode',
519+
path: '/vue/components/qrcode',
520+
component: () => import('tdesign-vue/qrcode/qrcode.md'),
521+
componentEn: () => import('tdesign-vue/qrcode/qrcode.en-US.md'),
522+
},
523+
{
524+
title: 'Rate 评分',
525+
titleEn: 'Rate',
526+
name: 'rate',
527+
docType: 'data',
528+
path: '/vue/components/rate',
529+
component: () => import('tdesign-vue/rate/rate.md'),
530+
componentEn: () => import('tdesign-vue/rate/rate.en-US.md'),
531+
},
515532
{
516533
title: 'Skeleton 骨架屏',
517534
titleEn: 'Skeleton',
@@ -584,15 +601,6 @@ const docs = [
584601
component: () => import('tdesign-vue/watermark/watermark.md'),
585602
componentEn: () => import('tdesign-vue/watermark/watermark.en-US.md'),
586603
},
587-
{
588-
title: 'Rate 评分',
589-
titleEn: 'Rate',
590-
name: 'rate',
591-
docType: 'data',
592-
path: '/vue/components/rate',
593-
component: () => import('tdesign-vue/rate/rate.md'),
594-
componentEn: () => import('tdesign-vue/rate/rate.en-US.md'),
595-
},
596604
],
597605
},
598606
{

site/src/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const routes = [
3333
redirect: '/vue/overview',
3434
},
3535
{
36-
name: 'demos',
36+
name: 'demosComponent',
3737
path: '/vue/demos/:componentName/',
3838
component: () => import('./components/demo-page.vue'),
3939
},

0 commit comments

Comments
 (0)