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

[Dialog] this.$dialog.confirm 无法动态更改options值 #2751

Closed
Jiachang-Cai opened this issue Aug 30, 2023 · 5 comments
Closed

[Dialog] this.$dialog.confirm 无法动态更改options值 #2751

Jiachang-Cai opened this issue Aug 30, 2023 · 5 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@Jiachang-Cai
Copy link

Jiachang-Cai commented Aug 30, 2023

tdesign-vue 版本

1.6.4

重现链接

https://stackblitz.com/edit/tvmnz9?file=src%2Fdemo.vue

重现步骤

点击确认无法更改loading 状态

期望结果

更改loading 状态

实际结果

点击确认无法更改loading 状态

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

github-actions bot commented Aug 30, 2023

♥️ 有劳 @zhaodanchun @chaishi @Zack921 @huoyuhao 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @Jiachang-Cai

@Jiachang-Cai Jiachang-Cai changed the title [Dialog] this.$dialog.confirm 无法动态更改options 值了 之前都可以 [Dialog] this.$dialog.confirm 无法动态更改options值 Aug 30, 2023
@chaishi
Copy link
Collaborator

chaishi commented Sep 2, 2023

示例用法:
https://stackblitz.com/edit/tvmnz9-pmxchd?file=src%2Fdemo.vue

onConfirm: () => {
  confirmDialog.update({ confirmBtn: { content: '提交中', loading: true } });
  const timer = setTimeout(() => {
    confirmDialog.update({ confirmBtn: { content: '提交', loading: false } });
    confirmDialog.hide();
    clearTimeout(timer);
  }, 500);
},

@chaishi
Copy link
Collaborator

chaishi commented Sep 2, 2023

后续加载状态设置的更多解决方案:
#2769

@Jiachang-Cai
Copy link
Author

Jiachang-Cai commented Sep 4, 2023

后续更多解决方案: #2769

这个解决方案能解决动态更改按钮文字?

@uyarn uyarn added the to be published fixed, not be published label Sep 5, 2023
@chaishi chaishi added invalid This doesn't seem right and removed to be published fixed, not be published labels Sep 6, 2023
@chaishi chaishi closed this as completed Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants