|
|
@ -47,8 +47,14 @@ |
|
|
|
@change="handlePaginationChange" |
|
|
|
@change="handlePaginationChange" |
|
|
|
></a-pagination> |
|
|
|
></a-pagination> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<a-divider class="divider-transparent"/> |
|
|
|
<a-divider class="divider-transparent" /> |
|
|
|
<div class="bottom-control"> |
|
|
|
<div class="bottom-control"> |
|
|
|
|
|
|
|
<a-button |
|
|
|
|
|
|
|
type="dashed" |
|
|
|
|
|
|
|
style="marginRight: 8px" |
|
|
|
|
|
|
|
v-if="isChooseAvatar" |
|
|
|
|
|
|
|
@click="handleSelectGravatar" |
|
|
|
|
|
|
|
>使用 Gravatar</a-button> |
|
|
|
<a-button |
|
|
|
<a-button |
|
|
|
@click="handleShowUploadModal" |
|
|
|
@click="handleShowUploadModal" |
|
|
|
type="primary" |
|
|
|
type="primary" |
|
|
@ -103,6 +109,11 @@ export default { |
|
|
|
type: String, |
|
|
|
type: String, |
|
|
|
required: false, |
|
|
|
required: false, |
|
|
|
default: '选择附件' |
|
|
|
default: '选择附件' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
isChooseAvatar: { |
|
|
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
|
|
required: false, |
|
|
|
|
|
|
|
default: false |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
@ -150,6 +161,9 @@ export default { |
|
|
|
handleSelectAttachment(item) { |
|
|
|
handleSelectAttachment(item) { |
|
|
|
this.$emit('listenToSelect', item) |
|
|
|
this.$emit('listenToSelect', item) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
handleSelectGravatar() { |
|
|
|
|
|
|
|
this.$emit('listenToSelectGravatar') |
|
|
|
|
|
|
|
}, |
|
|
|
handlePaginationChange(page, pageSize) { |
|
|
|
handlePaginationChange(page, pageSize) { |
|
|
|
this.pagination.page = page |
|
|
|
this.pagination.page = page |
|
|
|
this.pagination.size = pageSize |
|
|
|
this.pagination.size = pageSize |
|
|
|