Closed LonelySnowman closed 4 days ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 58.05%. Comparing base (
bc10336
) to head (85c16cf
). Report is 54 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
感谢参与贡献,这里有两个体验的问题:
提交的时候两个按钮都会有加载状态,期望只显示一个。可以考虑在按钮的 loading 属性上也加上 keepAddingSubmit
条件。
保存并继续添加
按钮建议放在提交旁边,如果三个按钮同时放在一起不好看,可以考虑将 取消
按钮放置在最右边,类似于:
<div class="flex justify-between">
<VSpace>
<VButton>提交</VButton>
<VButton>提交并继续添加</VButton>
</VSpace>
<VButtion>关闭</VButton>
</div>
@ruibaby 在一个按钮 loading 过程中需要对另一个按钮禁用么,如果用户在一个按钮加载时又去触发另一个按钮会导致表单提交两次。
@ruibaby 在一个按钮 loading 过程中需要对另一个按钮禁用么,如果用户在一个按钮加载时又去触发另一个按钮会导致表单提交两次。
那可以直接给按钮的 disabled 属性设置 saving。
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: ruibaby
The full list of commands accepted by this bot can be found here.
The pull request process is described here
What type of PR is this?
/kind feature
What this PR does / why we need it:
文章分类和标签 Modal 添加 ”保存并继续添加” 按钮,便于连续添加。
Which issue(s) this PR fixes:
Fixes https://github.com/halo-dev/halo/issues/6127
Special notes for your reviewer:
Does this PR introduce a user-facing change?