docs(ui-consistency): 優化規範文件,明確標準操作優先使用主題色
This commit is contained in:
@@ -123,8 +123,8 @@ tooltip
|
|||||||
// ✅ 成功操作
|
// ✅ 成功操作
|
||||||
<Button className="button-filled-success">確認</Button>
|
<Button className="button-filled-success">確認</Button>
|
||||||
|
|
||||||
// ✅ 資訊操作
|
// ✅ 資訊操作(用於系統提示、說明等非業務主流程)
|
||||||
<Button className="button-filled-info">查看詳情</Button>
|
<Button className="button-filled-info">系統資訊</Button>
|
||||||
|
|
||||||
// ✅ 警告操作
|
// ✅ 警告操作
|
||||||
<Button className="button-filled-warning">警告</Button>
|
<Button className="button-filled-warning">警告</Button>
|
||||||
@@ -177,6 +177,23 @@ tooltip
|
|||||||
</Can>
|
</Can>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### 表格操作列檢視按鈕
|
||||||
|
|
||||||
|
```tsx
|
||||||
|
<Can permission="resource.view">
|
||||||
|
<Link href={route('resource.show', item.id)}>
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
|
className="button-outlined-primary"
|
||||||
|
title="檢視"
|
||||||
|
>
|
||||||
|
<Eye className="h-4 w-4" />
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
|
</Can>
|
||||||
|
```
|
||||||
|
|
||||||
#### 表格操作列編輯按鈕
|
#### 表格操作列編輯按鈕
|
||||||
|
|
||||||
```tsx
|
```tsx
|
||||||
|
|||||||
Reference in New Issue
Block a user