Browse Source

按钮权限

master
陈薪名 1 year ago
parent
commit
e6be1b585b
  1. 2
      src/components/XButton/src/ButtonBase.vue
  2. 3
      src/utils/disposition/defaultButtons.ts

2
src/components/XButton/src/ButtonBase.vue

@ -5,7 +5,7 @@
:type="item.type" :type="item.type"
:color="item.color" :color="item.color"
:link = "item.link ? item.link : false" :link = "item.link ? item.link : false"
v-hasPermi="[item.hasPermi]" v-hasPermi="[item.hasPermi] || []"
@click="buttonBaseClick(item.name,item,$event)" @click="buttonBaseClick(item.name,item,$event)"
> >
<Icon v-if="item.icon" :icon="item.icon" class="mr-1px" /> <Icon v-if="item.icon" :icon="item.icon" class="mr-1px" />

3
src/utils/disposition/defaultButtons.ts

@ -84,7 +84,8 @@ export function defaultFreshBtn(option:any) {
type: 'primary', type: 'primary',
icon: 'ep:refresh', icon: 'ep:refresh',
color: '', color: '',
float:'right' float:'right',
hasPermi: ''
}) })
} }

Loading…
Cancel
Save