refactor: remove the button to remove the thumbnail from the post settings (#427)

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/429/head
Ryan Wang 3 years ago committed by GitHub
parent aabce58dc7
commit 2de19ca187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,8 +88,11 @@
class="img" class="img"
@click="attachmentSelectVisible = true" @click="attachmentSelectVisible = true"
/> />
<a-input v-model="form.model.thumbnail" placeholder="点击封面图选择图片,或者输入外部链接"></a-input> <a-input
<a-button type="dashed" @click="form.model.thumbnail = null">移除</a-button> v-model="form.model.thumbnail"
allow-clear
placeholder="点击封面图选择图片,或者输入外部链接"
></a-input>
</a-space> </a-space>
</div> </div>
</a-form-item> </a-form-item>

@ -76,8 +76,11 @@
class="img" class="img"
@click="attachmentSelectVisible = true" @click="attachmentSelectVisible = true"
/> />
<a-input v-model="form.model.thumbnail" placeholder="点击封面图选择图片,或者输入外部链接"></a-input> <a-input
<a-button type="dashed" @click="form.model.thumbnail = null">移除</a-button> v-model="form.model.thumbnail"
allow-clear
placeholder="点击封面图选择图片,或者输入外部链接"
></a-input>
</a-space> </a-space>
</div> </div>
</a-form-item> </a-form-item>
@ -149,6 +152,7 @@ import pinyin from 'tiny-pinyin'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
// apis // apis
import apiClient from '@/utils/api-client' import apiClient from '@/utils/api-client'
export default { export default {
name: 'SheetSettingModal', name: 'SheetSettingModal',
mixins: [mixin, mixinDevice], mixins: [mixin, mixinDevice],

Loading…
Cancel
Save