fix(Design): 修复上传组件最小数量大于最大数量的问题

- 将 van-field 组件的 type 从 "number" 改为 "digit",以限制输入为非负整数
- 添加 minMax 函数,在输入最小数量时同步更新最大数量
- 在最小数量输入框失焦时调用 minMax 函数,并触发保存选项事件
This commit is contained in:
陈昱达
2025-03-21 17:59:15 +08:00
parent 5fd7efd61c
commit 03f79ee66a
6 changed files with 68 additions and 53 deletions

View File

@@ -41,7 +41,7 @@
<div class="flex align-center van-cell">
<contenteditable
v-model="it.option"
className="contenteditable-input"
:className="active ? 'contenteditable-input' : ''"
:active="active"
>
<template #right-icon>
@@ -79,7 +79,7 @@
<div class="flex align-center van-cell">
<contenteditable
v-model="it.option"
className="contenteditable-input"
:className="active ? 'contenteditable-input' : ''"
:active="active"
>
<template #right-icon>