refactor(frontend): 优化订单状态卡片和产品卡片的交互和样式

- OrderStatusCard 重构布局,按钮移到右上角,新增悬停阴影和圆角设计
- ProductCard 大幅重构 UI 样式,增强视觉层次和交互反馈
- 修复 TabBar / use-tabbar hooks 在特定场景下的状态同步问题
- CategoryFormModal / ProductFormModal 同步样式适配
This commit is contained in:
小蟑螂
2026-05-05 21:53:29 +08:00
parent c6025a7c2c
commit 0a02207dfd
9 changed files with 724 additions and 383 deletions
@@ -86,6 +86,17 @@ export function useTabs() {
* @param tab
*/
function getTabDisableState(tab: RouteLocationNormalized = route) {
if (!tab || typeof tab.path !== 'string') {
return {
disabledCloseAll: true,
disabledCloseCurrent: true,
disabledCloseLeft: true,
disabledCloseOther: true,
disabledCloseRight: true,
disabledRefresh: true,
};
}
const tabs = tabbarStore.getTabs;
const affixTabs = tabbarStore.affixTabs;
const index = tabs.findIndex((item) => item.path === tab.path);