Browse Source

feat: button type 属性不再支持颜色

main
xingyu 2 years ago
parent
commit
3147206e8e
  1. 4
      src/views/system/area/index.vue
  2. 4
      src/views/system/dept/index.vue
  3. 4
      src/views/system/menu/index.vue

4
src/views/system/area/index.vue

@ -40,10 +40,10 @@ function handleCreate() {
<a-button type="primary" :pre-icon="IconEnum.ADD" @click="handleCreate"> <a-button type="primary" :pre-icon="IconEnum.ADD" @click="handleCreate">
IP 查询 IP 查询
</a-button> </a-button>
<a-button type="info" @click="expandAll"> <a-button @click="expandAll">
{{ t('component.tree.expandAll') }} {{ t('component.tree.expandAll') }}
</a-button> </a-button>
<a-button type="info" @click="collapseAll"> <a-button @click="collapseAll">
{{ t('component.tree.unExpandAll') }} {{ t('component.tree.unExpandAll') }}
</a-button> </a-button>
</template> </template>

4
src/views/system/dept/index.vue

@ -89,10 +89,10 @@ onMounted(async () => {
<a-button v-auth="['system:dept:create']" type="primary" :pre-icon="IconEnum.ADD" @click="handleCreate"> <a-button v-auth="['system:dept:create']" type="primary" :pre-icon="IconEnum.ADD" @click="handleCreate">
{{ t('action.create') }} {{ t('action.create') }}
</a-button> </a-button>
<a-button type="info" @click="expandAll"> <a-button @click="expandAll">
{{ t('component.tree.expandAll') }} {{ t('component.tree.expandAll') }}
</a-button> </a-button>
<a-button type="info" @click="collapseAll"> <a-button @click="collapseAll">
{{ t('component.tree.unExpandAll') }} {{ t('component.tree.unExpandAll') }}
</a-button> </a-button>
</template> </template>

4
src/views/system/menu/index.vue

@ -79,10 +79,10 @@ function refreshMenu() {
<a-button v-auth="['system:menu:create']" type="primary" :pre-icon="IconEnum.ADD" @click="handleCreate"> <a-button v-auth="['system:menu:create']" type="primary" :pre-icon="IconEnum.ADD" @click="handleCreate">
{{ t('action.create') }} {{ t('action.create') }}
</a-button> </a-button>
<a-button type="info" @click="expandAll"> <a-button @click="expandAll">
{{ t('component.tree.expandAll') }} {{ t('component.tree.expandAll') }}
</a-button> </a-button>
<a-button type="info" @click="collapseAll"> <a-button @click="collapseAll">
{{ t('component.tree.unExpandAll') }} {{ t('component.tree.unExpandAll') }}
</a-button> </a-button>
<a-button color="warning" pre-icon="ep:refresh" @click="refreshMenu"> <a-button color="warning" pre-icon="ep:refresh" @click="refreshMenu">