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

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

Loading…
Cancel
Save