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">
|
||||
<span class="table-page-search-submitButtons">
|
||||
<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>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -65,7 +65,7 @@
|
|||
<a-pagination
|
||||
:total="pagination.total"
|
||||
:defaultPageSize="pagination.size"
|
||||
:pageSizeOptions="['18', '36', '54']"
|
||||
:pageSizeOptions="['18', '36', '54','72','90','108']"
|
||||
showSizeChanger
|
||||
@change="handlePaginationChange"
|
||||
@showSizeChange="handlePaginationChange"
|
||||
|
@ -316,6 +316,10 @@ export default {
|
|||
updateAttachment() {
|
||||
this.$message.success('修改')
|
||||
this.editable = false
|
||||
},
|
||||
resetParam() {
|
||||
this.queryParam.keyword = null
|
||||
this.loadAttachments()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -142,7 +142,9 @@
|
|||
<div class="upload-button">
|
||||
<a-button type="primary" shape="circle" icon="plus" size="large" @click="showUploadModal"></a-button>
|
||||
</div>
|
||||
<a-modal title="上传主题" v-model="uploadVisible" :footer="null">
|
||||
<a-modal title="安装主题" v-model="uploadVisible" :footer="null" :bodyStyle="{ padding: '0 24px 24px' }">
|
||||
<a-tabs defaultActiveKey="1">
|
||||
<a-tab-pane tab="本地上传" key="1">
|
||||
<a-upload-dragger
|
||||
name="file"
|
||||
:multiple="true"
|
||||
|
@ -156,6 +158,18 @@
|
|||
<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>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue