Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 38c3f9a3
authored
Mar 30, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 输入框自适应
1 parent
24548856
Pipeline
#156
for
38c3f9a3
failed
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
apps/web/venus-usedcar-quality/src/components/CustomizeForm/Index.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/customizeUploadFile.vue
apps/web/venus-usedcar-quality/src/components/CustomizeForm/Index.vue
View file @
38c3f9a
...
@@ -292,10 +292,10 @@ defineExpose({
...
@@ -292,10 +292,10 @@ defineExpose({
<!-- 文本输入框 -->
<!-- 文本输入框 -->
<div
v-if=
"item.interactionType == 'text_input'"
>
<div
v-if=
"item.interactionType == 'text_input'"
>
<van-field
v-model=
"item.value"
clearable
:label=
"item.nodeName"
<van-field
type=
"textarea"
rows=
"1"
v-model=
"item.value"
clearable
:label=
"item.nodeName"
:maxlength=
"getValidationRules(item).maxLength || 120"
:placeholder=
"item.placeholder"
:maxlength=
"getValidationRules(item).maxLength || 120"
:placeholder=
"item.placeholder"
:required=
"item.required === 1"
:disabled=
"item.editPermission == '0'"
input-align=
"right"
:required=
"item.required === 1"
:disabled=
"item.editPermission == '0'"
input-align=
"right"
label-width=
"120px"
/>
label-width=
"120px"
autosize
/>
</div>
</div>
<!-- 长文本输入框 -->
<!-- 长文本输入框 -->
...
@@ -314,7 +314,7 @@ defineExpose({
...
@@ -314,7 +314,7 @@ defineExpose({
:min=
"getValidationRules(item).min || 0"
:placeholder=
"item.placeholder"
:min=
"getValidationRules(item).min || 0"
:placeholder=
"item.placeholder"
:required=
"item.required === 1"
step=
"0.01"
type=
"number"
:required=
"item.required === 1"
step=
"0.01"
type=
"number"
@
input=
"(e) =>
{ item.value = parseFloat(item.value)?.toFixed(getValidationRules(item).decimalDigits || 2) || '' }"
@
input=
"(e) =>
{ item.value = parseFloat(item.value)?.toFixed(getValidationRules(item).decimalDigits || 2) || '' }"
input-align="right" label-width="120px">
input-align="right" label-width="120px"
autosize
>
<template
v-if=
"item.suffix"
#
right-icon
>
<template
v-if=
"item.suffix"
#
right-icon
>
<span>
{{
item
.
suffix
}}
</span>
<span>
{{
item
.
suffix
}}
</span>
</
template
>
</
template
>
...
...
apps/web/venus-usedcar-quality/src/components/CustomizeForm/customizeUploadFile.vue
View file @
38c3f9a
...
@@ -122,8 +122,8 @@ function previewVideo(url: string) {
...
@@ -122,8 +122,8 @@ function previewVideo(url: string) {
<!-- 视频预览 -->
<!-- 视频预览 -->
<van-image-preview
v-model:show=
"videoShow"
:images=
"sourceUrl"
:close-on-click-image=
"false"
>
<van-image-preview
v-model:show=
"videoShow"
:images=
"sourceUrl"
:close-on-click-image=
"false"
>
<template
#
image=
"
{ src }">
<template
#
image=
"
{ src }">
<video
style=
"width: 100%;"
:src=
"src"
controls
>
<video
style=
"width: 100%;"
controls
>
您的浏览器不支持 video 标签。
<source
:src=
"src"
/>
</video>
</video>
</
template
>
</
template
>
</van-image-preview>
</van-image-preview>
...
@@ -149,6 +149,7 @@ function previewVideo(url: string) {
...
@@ -149,6 +149,7 @@ function previewVideo(url: string) {
</div>
</div>
</div>
</div>
<div
v-for=
"(url, index) in pickerValue"
:key=
"index"
class=
"uploadBox"
>
<div
v-for=
"(url, index) in pickerValue"
:key=
"index"
class=
"uploadBox"
>
<!-- 删除按钮 -->
<div
class=
"deleteBox"
@
click=
"handleDelete(url)"
>
<div
class=
"deleteBox"
@
click=
"handleDelete(url)"
>
<van-icon
color=
"#999999"
name=
"clear"
size=
"20"
/>
<van-icon
color=
"#999999"
name=
"clear"
size=
"20"
/>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment