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