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 组件,表尾能否做合并行需求功能? #1047

Closed
synctimes163 opened this issue Jun 22, 2022 · 6 comments
Closed

table 组件,表尾能否做合并行需求功能? #1047

synctimes163 opened this issue Jun 22, 2022 · 6 comments
Labels
💪🏻 enhancement New feature or request to be published to be published

Comments

@synctimes163
Copy link

synctimes163 commented Jun 22, 2022

这个功能解决了什么问题

table 组件,表尾能否做合并行需求功能?

可以解决,表尾固定到表格底部,展示动态列内容。

image

示例数据:
`
{
"Code": 0,
"Msg": "success",
"Data": {
"MaterialDetails": [{
"No": "MA00003",
"MaterialNo": "MA00003",
"TargetPrice": 0.00000,
"TargetPriceCurrency": 1,
}, {

              "No": "MA00002",
              "MaterialNo": "MA00002",
              "TargetPrice": 0.00000,
              "TargetPriceCurrency": 1
          }],
          "SuppliersQuotedprices": [{
              "SuppliersNo": "GYS001",
              "SuppliersName": "供应商A",
              "MinNumber": 0,
              "SuppliersInMaterialPrices": [{
                  "MaterialNo": "MA00002",
                  "F_CreatorTime": "2022-06-21 10:45:37",
                  "PriceCurrency": 0,
                  "Price":7
              }, {
                  "MaterialNo": "MA00003",
                  "F_CreatorTime": "2022-06-21 10:45:37",
                  "PriceCurrency": 0,
                  "Price": 6
              }]
          },
          {
              "SuppliersNo": "GYS002",
              "SuppliersName": "供应商B",
              "MinNumber": 3,
              "SuppliersInMaterialPrices": [{
                  "MaterialNo": "MA00002",
                  "F_CreatorTime": "2022-06-21 10:45:37",
                  "PriceCurrency": 0,
                  "Price": 5
              }]
          },
          {
              "SuppliersNo": "GYS003",
              "SuppliersName": "供应商C",
              "MinNumber": 5,
              "SuppliersInMaterialPrices": []
          }]
      }
  }`

SuppliersQuotedprices 是动态加成列。
我用element-ui2.0 也没找到合并表尾,期望tdesign 能实现。

image

image
image

你建议的方案是什么

支持表尾做合并行功能

@github-actions
Copy link
Contributor

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

@timi137137
Copy link
Contributor

是个好建议,可以称为Summary插槽,例子Ant Design Vue 需要看看其他项目的通用性,或者我个人出一个单独的组件,待讨论

@chaishi
Copy link
Collaborator

chaishi commented Jul 2, 2022

已在群里为用户提供解决方案:因 table 组件支持冻结固定任意一行在底部,用户可以设置最后一行为总结行,然后固定即可。

2022-07-02.14.27.57.mov

@chaishi
Copy link
Collaborator

chaishi commented Jul 2, 2022

后续会考虑支持 表尾合并行,因有备选方案,不紧急

@chaishi
Copy link
Collaborator

chaishi commented Aug 7, 2022

Vue2 resolved in Tencent/tdesign-vue#1217
Vue3 resolved in #1357

@PengYYYYY PengYYYYY added to be published to be published and removed 🏃 in progress someone is developing labels Aug 9, 2022
@github-actions github-actions bot mentioned this issue Aug 9, 2022
15 tasks
@PengYYYYY
Copy link
Collaborator

0.19.1 已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪🏻 enhancement New feature or request to be published to be published
Projects
None yet
Development

No branches or pull requests

4 participants