|
|
@@ -49,7 +49,7 @@
|
|
|
type="text"
|
|
|
v-model.number="customInput"
|
|
|
maxlength="4"
|
|
|
- placeholder="请输入1-2000的尺寸值"
|
|
|
+ placeholder="请输入1-3000的尺寸值"
|
|
|
class="w-full px-3 py-2 border rounded-md"
|
|
|
@keypress="handleKeyPress"
|
|
|
@input="handleInput"
|
|
|
@@ -547,8 +547,8 @@ const handleKeyPress = (event) => {
|
|
|
}
|
|
|
};
|
|
|
const handleInput = (value) => {
|
|
|
- if (value > 2000) {
|
|
|
- customInput.value = 2000;
|
|
|
+ if (value > 3000) {
|
|
|
+ customInput.value = 3000;
|
|
|
} else if (value < 1) {
|
|
|
customInput.value = 1;
|
|
|
}
|
|
|
@@ -631,8 +631,8 @@ const saveSetting = async (index) => {
|
|
|
|
|
|
if (selectedSizes.includes('custom')) {
|
|
|
if (!customInput.value || isNaN(customInput.value) ||
|
|
|
- customInput.value < 1 || customInput.value > 2000) {
|
|
|
- ElMessage.error('请输入1-2000之间的有效数值');
|
|
|
+ customInput.value < 1 || customInput.value > 3000) {
|
|
|
+ ElMessage.error('请输入1-3000之间的有效数值');
|
|
|
return false;
|
|
|
}
|
|
|
|