Skip to content

Commit 53db535

Browse files
fix(QRCode): fix render error with empty valu (#5982)
* fix: none value * chore: stash changelog [ci skip] * chore: update changelog --------- Co-authored-by: tdesign-bot <[email protected]>
1 parent bd09c1b commit 53db535

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/components/qrcode/qrcode.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ export default defineComponent({
2828
// color[fgColor]:自定义颜色 > 主题色适配 > 默认颜色[#000000]
2929
const finalFgColor = computed(() => props.color || themeFgColor.value || DEFAULT_FRONT_COLOR);
3030

31-
if (!props.value) {
32-
return null;
33-
}
34-
3531
const imageSettings = computed<ImageSettings>(() => {
3632
return {
3733
src: props.icon,
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
pr_number: 5982
3+
contributor: Wesley-0808
4+
---
5+
6+
- fix(QRCode): 修复初始 value 值为空时,组件无法渲染的问题 @Wesley-0808 ([#5982](https://github.com/Tencent/tdesign-vue-next/pull/5982))

0 commit comments

Comments
 (0)