浏览代码

fix: 右侧按钮加入权限判断

Tong 2 年之前
父节点
当前提交
dd3170aeeb
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/components/XTTitle/src/Title.vue

+ 2 - 0
src/components/XTTitle/src/Title.vue

@@ -15,6 +15,7 @@
         <div
           v-for="item in rightData"
           :key="item.type"
+          v-auth="item.auth"
           :class="['xt-title_item', item.icon ? 'xt-title_item--icon' : 'xt-title_item--btn']"
         >
           <a-upload
@@ -57,6 +58,7 @@
       btnText?: string;
       btnType?: string | 'primary' | 'ghost' | 'dashed' | 'link' | 'text' | 'default';
       btnIcon?: string;
+      auth?: Array<string>;
     }>;
     upload?: {
       accept: string;