From 400c2aa49c819a8c5441d4e929d98065ccfe06f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?w=C5=AB=20y=C4=81ng?= Date: Fri, 28 Jun 2024 12:24:25 +0800 Subject: [PATCH] chore: release 1.9.7-naruto (#3221) * fix: fix stackblitz demo run (#3215) * fix: dialog ssr (#3219) * chore: release 1.9.7 (#3220) * chore: release 1.9.7 * chore: changelog's changes --------- Co-authored-by: github-actions[bot] --------- Co-authored-by: Zuo <646392141@qq.com> Co-authored-by: github-actions[bot] --- CHANGELOG.md | 4 ++++ package.json | 2 +- site/src/components/stackblitz/content.js | 6 +++--- src/dialog/dialog.tsx | 1 + 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8572d9ddd..866374a4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ toc: false docClass: timeline --- +## 🌈 1.9.7 `2024-06-28` +### 🐞 Bug Fixes +- `Dialog`: 修复 `Dialog` 组件在 `SSR` 环境下的使用问题 @qqw78901 ([#3219](https://github.com/Tencent/tdesign-vue/pull/3219)) + ## 🌈 1.9.6 `2024-06-26` ### 🐞 Bug Fixes - `Tree`: 修复 `1.9.5` 版本使用拖拽功能的报错问题 @uyarn ([#3212](https://github.com/Tencent/tdesign-vue/pull/3212)) diff --git a/package.json b/package.json index 57b4a9d46..a78d3b4ec 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tdesign-vue", "purename": "tdesign", - "version": "1.9.6-naruto", + "version": "1.9.7-naruto", "description": "tdesign-vue", "title": "tdesign-vue", "keywords": [ diff --git a/site/src/components/stackblitz/content.js b/site/src/components/stackblitz/content.js index d9acbade5..d38cc0a4d 100644 --- a/site/src/components/stackblitz/content.js +++ b/site/src/components/stackblitz/content.js @@ -46,9 +46,9 @@ export const styleContent = ` `; export const stackblitzRc = ` - { - "installDependencies": false, - "startCommand": "turbo && turbo dev" + { + "installDependencies": true, + "startCommand": "npm run dev" } `; diff --git a/src/dialog/dialog.tsx b/src/dialog/dialog.tsx index 4b196d11b..c25977318 100644 --- a/src/dialog/dialog.tsx +++ b/src/dialog/dialog.tsx @@ -149,6 +149,7 @@ export default mixins(ActionMixin, getConfigReceiverMixins('d watch: { visible: { handler(value) { + if (typeof window === 'undefined') return; if (value) { this.animationEnd = false; if ((this.isModal && !this.showInAttachedElement) || this.isFullScreen) {