mirror of https://github.com/halo-dev/halo-admin
Support install remote theme form ui.
parent
0dd9c477e2
commit
2e27b3947b
|
@ -30,7 +30,7 @@
|
||||||
<a-col :md="6" :sm="24">
|
<a-col :md="6" :sm="24">
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="loadAttachments">查询</a-button>
|
<a-button type="primary" @click="loadAttachments">查询</a-button>
|
||||||
<a-button style="margin-left: 8px;">重置</a-button>
|
<a-button style="margin-left: 8px;" @click="resetParam">重置</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
<a-pagination
|
<a-pagination
|
||||||
:total="pagination.total"
|
:total="pagination.total"
|
||||||
:defaultPageSize="pagination.size"
|
:defaultPageSize="pagination.size"
|
||||||
:pageSizeOptions="['18', '36', '54']"
|
:pageSizeOptions="['18', '36', '54','72','90','108']"
|
||||||
showSizeChanger
|
showSizeChanger
|
||||||
@change="handlePaginationChange"
|
@change="handlePaginationChange"
|
||||||
@showSizeChange="handlePaginationChange"
|
@showSizeChange="handlePaginationChange"
|
||||||
|
@ -316,6 +316,10 @@ export default {
|
||||||
updateAttachment() {
|
updateAttachment() {
|
||||||
this.$message.success('修改')
|
this.$message.success('修改')
|
||||||
this.editable = false
|
this.editable = false
|
||||||
|
},
|
||||||
|
resetParam() {
|
||||||
|
this.queryParam.keyword = null
|
||||||
|
this.loadAttachments()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,17 +15,17 @@
|
||||||
<img :alt="theme.name" :src="theme.screenshots" slot="cover">
|
<img :alt="theme.name" :src="theme.screenshots" slot="cover">
|
||||||
<template class="ant-card-actions" slot="actions">
|
<template class="ant-card-actions" slot="actions">
|
||||||
<div v-if="theme.activated">
|
<div v-if="theme.activated">
|
||||||
<a-icon type="unlock" theme="twoTone"/> 已启用
|
<a-icon type="unlock" theme="twoTone"/>已启用
|
||||||
</div>
|
</div>
|
||||||
<div v-else @click="handleActivateClick(theme)">
|
<div v-else @click="handleActivateClick(theme)">
|
||||||
<a-icon type="lock"/> 启用
|
<a-icon type="lock"/>启用
|
||||||
</div>
|
</div>
|
||||||
<div @click="handleEditClick(theme)">
|
<div @click="handleEditClick(theme)">
|
||||||
<a-icon type="setting"/> 设置
|
<a-icon type="setting"/>设置
|
||||||
</div>
|
</div>
|
||||||
<a-dropdown placement="topCenter">
|
<a-dropdown placement="topCenter">
|
||||||
<a class="ant-dropdown-link" href="#">
|
<a class="ant-dropdown-link" href="#">
|
||||||
<a-icon type="ellipsis"/> 更多
|
<a-icon type="ellipsis"/>更多
|
||||||
</a>
|
</a>
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item :key="1" :disabled="theme.activated">
|
<a-menu-item :key="1" :disabled="theme.activated">
|
||||||
|
@ -36,10 +36,10 @@
|
||||||
okText="确定"
|
okText="确定"
|
||||||
cancelText="取消"
|
cancelText="取消"
|
||||||
>
|
>
|
||||||
<a-icon type="delete"/> 删除
|
<a-icon type="delete"/>删除
|
||||||
</a-popconfirm>
|
</a-popconfirm>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
<a-icon type="delete"/> 删除
|
<a-icon type="delete"/>删除
|
||||||
</span>
|
</span>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
|
@ -142,20 +142,34 @@
|
||||||
<div class="upload-button">
|
<div class="upload-button">
|
||||||
<a-button type="primary" shape="circle" icon="plus" size="large" @click="showUploadModal"></a-button>
|
<a-button type="primary" shape="circle" icon="plus" size="large" @click="showUploadModal"></a-button>
|
||||||
</div>
|
</div>
|
||||||
<a-modal title="上传主题" v-model="uploadVisible" :footer="null">
|
<a-modal title="安装主题" v-model="uploadVisible" :footer="null" :bodyStyle="{ padding: '0 24px 24px' }">
|
||||||
<a-upload-dragger
|
<a-tabs defaultActiveKey="1">
|
||||||
name="file"
|
<a-tab-pane tab="本地上传" key="1">
|
||||||
:multiple="true"
|
<a-upload-dragger
|
||||||
accept="application/zip"
|
name="file"
|
||||||
:customRequest="handleUpload"
|
:multiple="true"
|
||||||
@change="handleChange"
|
accept="application/zip"
|
||||||
>
|
:customRequest="handleUpload"
|
||||||
<p class="ant-upload-drag-icon">
|
@change="handleChange"
|
||||||
<a-icon type="inbox"/>
|
>
|
||||||
</p>
|
<p class="ant-upload-drag-icon">
|
||||||
<p class="ant-upload-text">点击选择主题或将主题拖拽到此处</p>
|
<a-icon type="inbox"/>
|
||||||
<p class="ant-upload-hint">支持单个或批量上传,仅支持 ZIP 格式的文件</p>
|
</p>
|
||||||
</a-upload-dragger>
|
<p class="ant-upload-text">点击选择主题或将主题拖拽到此处</p>
|
||||||
|
<p class="ant-upload-hint">支持单个或批量上传,仅支持 ZIP 格式的文件</p>
|
||||||
|
</a-upload-dragger>
|
||||||
|
</a-tab-pane>
|
||||||
|
<a-tab-pane tab="远程拉取" key="2">
|
||||||
|
<a-form layout="vertical">
|
||||||
|
<a-form-item label="远程地址:" >
|
||||||
|
<a-input />
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item>
|
||||||
|
<a-button type="primary">确定</a-button>
|
||||||
|
</a-form-item>
|
||||||
|
</a-form>
|
||||||
|
</a-tab-pane>
|
||||||
|
</a-tabs>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue