fix 不可编辑

This commit is contained in:
Ironsp
2026-10-16 16:59:55 +08:00
parent f7722e19df
commit 50c1a4af22

View File

@@ -23,7 +23,9 @@ function onUserPhone(event: Event): void {
}
function onRemark(event: Event): void {
emit('update', { supplementaryRemarks: (event.target as HTMLTextAreaElement).value })
emit('update', {
supplementaryRemarks: (event.target as HTMLTextAreaElement).value,
})
}
</script>
@@ -31,7 +33,9 @@ function onRemark(event: Event): void {
<div class="demand-confirm">
<div class="demand-confirm__row">
<div class="demand-confirm__field">
<label class="demand-confirm__label" for="demand-user-name">用户名称</label>
<label class="demand-confirm__label" for="demand-user-name"
>用户名称</label
>
<input
id="demand-user-name"
class="demand-confirm__input"
@@ -40,10 +44,13 @@ function onRemark(event: Event): void {
:value="props.demand.userName"
placeholder="请输入用户名称"
@input="onUserName"
>
disabled
/>
</div>
<div class="demand-confirm__field">
<label class="demand-confirm__label" for="demand-user-phone">用户手机号</label>
<label class="demand-confirm__label" for="demand-user-phone"
>用户手机号</label
>
<input
id="demand-user-phone"
class="demand-confirm__input"
@@ -52,7 +59,8 @@ function onRemark(event: Event): void {
:value="props.demand.userPhone"
placeholder="请输入用户手机号"
@input="onUserPhone"
>
disabled
/>
</div>
</div>
@@ -67,7 +75,9 @@ function onRemark(event: Event): void {
placeholder="其他需要说明的事项…"
@input="onRemark"
/>
<span class="demand-confirm__count">{{ remarkLength }}/{{ REMARK_MAX }}字</span>
<span class="demand-confirm__count"
>{{ remarkLength }}/{{ REMARK_MAX }}字</span
>
</div>
</div>
</div>