bugfix: design弹窗转产品图/编辑产品图的placeholder
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
<textarea
|
||||
ref="textareaRef"
|
||||
class="textarea"
|
||||
:placeholder="$t('Generate.inputContent1')"
|
||||
:placeholder="inputPlaceholder"
|
||||
@input="ifMaximumLength"
|
||||
@keydown.enter.prevent="getPrductimg()"
|
||||
v-model="productimgSearchName"
|
||||
@@ -1288,6 +1288,15 @@ export default defineComponent({
|
||||
'PoseTransfer'
|
||||
)
|
||||
})
|
||||
const inputPlaceholder = computed(() => {
|
||||
if (
|
||||
productimg.scaleImageList[productimg.scaleImageIndex]?.resultType === 'Relight'
|
||||
) {
|
||||
return t('ProductImg.relightInput')
|
||||
} else {
|
||||
return t('ProductImg.productInput')
|
||||
}
|
||||
})
|
||||
|
||||
const showCompare = computed(() => {
|
||||
// isComparison.value
|
||||
@@ -1360,7 +1369,8 @@ export default defineComponent({
|
||||
setNewVideoRef,
|
||||
handlePlayNewVideo,
|
||||
isNewVideoPlaying,
|
||||
showDropdown
|
||||
showDropdown,
|
||||
inputPlaceholder
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user