Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[t-checkbox] 升级到1.4.8后报错。 "TypeError: Cannot read properties of undefined (reading 'propsData')" #2597

Closed
qinshenxue opened this issue Jul 20, 2023 · 3 comments
Labels
🐞 bug Something isn't working

Comments

@qinshenxue
Copy link

qinshenxue commented Jul 20, 2023

tdesign-vue 版本

1.4.8

重现链接

https://codesandbox.io/s/tdesign-vue-demo-forked-gmt5hv?file=/src/demo.vue

重现步骤

在1.4.8版本之前使用t-checkbox-group,插槽内结构自定义无报错。

 <t-checkbox-group size="small" v-model="checked">
        <div class="dates-table">
          <div class="row head">
            <div class="col" v-for="i in week" :key="i">
              {{ i }}
            </div>
          </div>
          <div class="body">
            <div class="row">
              <div class="col" v-for="(item, index) in calendar" :key="index">
                <t-checkbox
                  :key="index"
                  v-if="item && item.date"
                  :value="item.date"
                >
                  <span>{{ item.date.slice(5) }}</span>
                </t-checkbox>
              </div>
            </div>
          </div>
        </div>
      </t-checkbox-group>

正常的时候应该渲染如下图
image

升级到1.4.8之后,上面代码无法正常渲染,控制台报错
image

期望结果

能够像1.4.8版本之前正常渲染,无报错

实际结果

报错,无法正常渲染

框架版本

Vue(2.6.14)

浏览器版本

chrome 114

系统版本

windows 10

Node版本

nodejs 14

补充说明

No response

@github-actions
Copy link
Contributor

👋 @qinshenxue,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn uyarn added the 🐞 bug Something isn't working label Jul 21, 2023
@chaishi
Copy link
Collaborator

chaishi commented Jul 22, 2023

resolved in #2604

@chaishi chaishi added the to be published fixed, not be published label Jul 22, 2023
@xiaosansiji
Copy link
Collaborator

fixed in 1.5.0

@chaishi chaishi removed the to be published fixed, not be published label Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants