fix: Remove duplicate form buttons in workflow process creation #158
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The workflow "发起流程" (Start Process) page was rendering duplicate form buttons at the bottom when switching to the form filling interface. The form-create library's built-in submit/reset buttons appeared in addition to the custom action buttons, causing UI clutter.
Root cause: Form configuration allowed default button rendering, then attempted post-render hiding via
fApi.value?.btn.show(false)- unreliable due to timing.Fix: Configure
submitBtn: falseandresetBtn: falsein form options before render:Only the Card actions template buttons now render. Matches pattern in
form-design.vue.Type of change
pnpm-lock.yamlunless you introduce a new test example.Checklist
pnpm run docs:devcommand.pnpm test.feat:,fix:,perf:,docs:, orchore:.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.