refactor(admin): 接入 PasswordInput,删除分类改用 Modal 确认

- 登录弹窗与系统改密统一用 @stash/ui 的 PasswordInput(改密页补上显隐切换)
- 删除分类不再用 window.confirm,改用 Modal + 危险按钮(组件库推荐的组合)
- 删除页面私有的 PasswordInput 组件与 .password-field 样式
This commit is contained in:
2026-10-29 20:46:11 +08:00
parent 5de1382262
commit fe9d1b2659
4 changed files with 61 additions and 77 deletions
+2 -13
View File
@@ -1,4 +1,4 @@
/* 页面级样式:只保留「组件库没有」的部分(背景、外壳、封面兜底、正文版式)。
/* 页面级样式:只保留「组件库没有」的部分(背景、外壳、封面兜底、正文版式)。
颜色 / 间距 / 字号全部取自 @stash/ui 的令牌。 */
.app {
@@ -907,18 +907,7 @@
}
}
/* ---------- 登录密码框 / 条目操作条 / 设置页细节 ---------- */
.password-field {
display: flex;
align-items: center;
gap: var(--su-space-2);
}
.password-field > :first-child {
flex: 1;
min-width: 0;
}
/* ---------- 条目操作条 / 设置页细节 ---------- */
.item-stat {
display: inline-flex;