实现 https://jihulab.com/gitlab-cn/gitlab/-/issues/1628 的前端部分
upstream MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/102499