mirror of https://github.com/halo-dev/halo-admin
Fix theme list actions bug
parent
fa20df3a1d
commit
3c48d35bbf
|
@ -30,24 +30,21 @@
|
||||||
>
|
>
|
||||||
<div v-if="theme.activated">
|
<div v-if="theme.activated">
|
||||||
<a-icon
|
<a-icon
|
||||||
type="check-circle"
|
type="unlock"
|
||||||
theme="twoTone"
|
theme="twoTone"
|
||||||
/>
|
/>
|
||||||
激活中
|
激活中
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div
|
||||||
<a-icon
|
v-else
|
||||||
type="setting"
|
@click="handleActivateClick(theme)"
|
||||||
@click="handleActivateClick(theme)"
|
>
|
||||||
/>
|
<a-icon type="lock" />
|
||||||
设置
|
激活
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div @click="handleEditClick(theme)">
|
||||||
<a-icon
|
<a-icon type="setting" />
|
||||||
type="edit"
|
设置
|
||||||
@click="handleEditClick(theme)"
|
|
||||||
/>
|
|
||||||
编辑
|
|
||||||
</div>
|
</div>
|
||||||
<a-dropdown placement="topCenter">
|
<a-dropdown placement="topCenter">
|
||||||
<a
|
<a
|
||||||
|
@ -62,13 +59,19 @@
|
||||||
:disabled="theme.activated"
|
:disabled="theme.activated"
|
||||||
>
|
>
|
||||||
<a-popconfirm
|
<a-popconfirm
|
||||||
|
v-if="!theme.activated"
|
||||||
:title="'确定删除【' + theme.name + '】主题?'"
|
:title="'确定删除【' + theme.name + '】主题?'"
|
||||||
@confirm="deleteTheme(theme.id)"
|
@confirm="deleteTheme(theme.id)"
|
||||||
okText="确定"
|
okText="确定"
|
||||||
cancelText="取消"
|
cancelText="取消"
|
||||||
>
|
>
|
||||||
|
<a-icon type="delete" />
|
||||||
删除
|
删除
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
|
<span v-else>
|
||||||
|
<a-icon type="delete" />
|
||||||
|
删除
|
||||||
|
</span>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
|
|
Loading…
Reference in New Issue