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

[Bug 上报] 同一个page中存在多个table组件,使用插槽自定义列内容时,如果有@click事件,将会覆盖只执行其中一个方法. #490

Closed
lidianru opened this issue Aug 4, 2024 · 3 comments
Labels
🐞bug: need confirm 待确认的bug

Comments

@lidianru
Copy link

lidianru commented Aug 4, 2024

Wot Design Uni 版本号

1.3.6

平台

微信小程序

复现Demo地址

重现步骤

<view class="mt-20rpx" v-if="tab === 0">
          <wd-table :data="dataList5">
            <wd-table-col prop="name" label="门店统计" width="30%"></wd-table-col>
            <wd-table-col prop="writeOffCount" label="体验卷核销数量" width="40%"></wd-table-col>
            <wd-table-col prop="detail5" label="详情" width="30%">
              <template #value="{ row }">
                <view @click="toDataList5Detail(row)">查看</view>
              </template>
            </wd-table-col>
          </wd-table>
        </view>
        <view class="mt-20rpx">
          <wd-table :data="dataList6">
            <wd-table-col prop="name" label="员工统计" width="30%"></wd-table-col>
            <wd-table-col prop="writeOffCount" label="体验卷核销数量" width="40%"></wd-table-col>
            <wd-table-col prop="detail6" label="详情" width="30%">
              <template #value="{ row }">
                <view @click="toDataList6Detail(row)">查看</view>
              </template>
            </wd-table-col>
          </wd-table>
        </view>

期望的结果是什么?

希望能够正常运行其中定义的toDataList5Detail和toDataList6Detail函数.

实际的结果是什么?

定义了两个函数,但是编译后,无论是点击toDataList5Detail还是toDataList6Detail,执行的都是toDataList6Detail这个函数

环境信息

  • 开发平台: 微信小程序
  • 操作系统: windows11
  • HbuildX: 4.24

其他补充信息

No response

@lidianru lidianru added the 🐞bug: need confirm 待确认的bug label Aug 4, 2024
@Moonofweisheng Moonofweisheng added the need reproduce 需要补充复现demo label Aug 5, 2024
Copy link

github-actions bot commented Aug 5, 2024

你好,@lidianru

我们需要你提供一个最小重现demo,以便于我们帮你排查问题。你可以通过 fork wot-starter-retail 并添加相关复现逻辑来提供。

@lidianru
Copy link
Author

lidianru commented Aug 6, 2024

@Moonofweisheng 抱歉,我新建了一个空项目想复现这个问题,结果在空项目中是正常的,所以应该是我框架中的其他东西影响到了.

@github-actions github-actions bot removed the need reproduce 需要补充复现demo label Aug 6, 2024
@lidianru lidianru closed this as completed Aug 6, 2024
Copy link

github-actions bot commented Sep 5, 2024

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞bug: need confirm 待确认的bug
Projects
None yet
Development

No branches or pull requests

2 participants