feat(PageContent): ✨ 左侧工具栏增加type配置参数
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
<el-button
|
||||
v-hasPerm="[`${contentConfig.pageName}:${item.auth}`]"
|
||||
:icon="item.icon"
|
||||
type="default"
|
||||
:type="item.type ?? 'default'"
|
||||
@click="handleToolbar(item.name)"
|
||||
>
|
||||
{{ item.text }}
|
||||
|
||||
@@ -108,6 +108,7 @@ export interface IContentConfig<T = any> {
|
||||
icon?: string;
|
||||
name: string;
|
||||
text: string;
|
||||
type?: "primary" | "success" | "warning" | "danger" | "info";
|
||||
}
|
||||
>;
|
||||
// 表格工具栏右侧图标
|
||||
|
||||
Reference in New Issue
Block a user