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

[Table] empty 属性权重过高 #1131

Closed
81867370 opened this issue Oct 19, 2023 · 2 comments · Fixed by #1136
Closed

[Table] empty 属性权重过高 #1131

81867370 opened this issue Oct 19, 2023 · 2 comments · Fixed by #1136

Comments

@81867370
Copy link

tdesign-mobile-vue 版本

1.0.5

重现链接

No response

重现步骤

添加 empty 属性 只会显示 empty 属性元素

<t-table
      row-key="index"
      :data="data"
      empty=“暂无数据”
      :columns="columns"
      :show-header="showHeader"
      cell-empty-content="-"
      @row-click="handleRowClick"
      @cell-click="handleCellClick"
      @scroll="handleScroll"
    >
      <!-- 插槽方式 自定义单元格:cell 的值为插槽名称,参数有:{col, colIndex, row, rowIndex}  -->
      <template #type-slot-name="{ col, row }">
        {{ row[col.colKey] }}
      </template>

      <!-- 插槽方式 自定义单元格, colKey 的值默认为插槽名称  -->
      <template #status="{ col, row }">
        {{ row[col.colKey] }}
      </template>
    </t-table>

期望结果

默认没数据 显示暂无数据, empty 属性标签根据 data 变化

实际结果

No response

框架版本

3.2.45

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

@fennghuang
Copy link
Collaborator

感谢反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants