Skip to content

Commit 1176029

Browse files
committed
fix: 修复数字类型输入框可以输入1-3的缺陷
--bug=1048215 --user=王孝刚 【应用】显示设置-图标默认位置输入框输入1-2提交后提示字段不能为空 https://www.tapd.cn/57709429/s/1599573
1 parent e01bce1 commit 1176029

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

ui/src/views/application-overview/component/LimitDialog.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
v-model="form.access_num"
2020
:min="0"
2121
:step="1"
22+
:max="10000"
2223
:value-on-clear="0"
2324
controls-position="right"
2425
style="width: 268px"

ui/src/views/application-overview/component/XPackDisplaySettingDialog.vue

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
/>
141141
<img
142142
v-else
143-
src="@/assets/logo/logo.svg"
143+
src="/ui/public/MaxKB.gif"
144144
height="50px"
145145
style="width: 40px; height: 40px; display: block"
146146
/>
@@ -178,7 +178,7 @@
178178
</el-upload>
179179
</div>
180180
<el-text type="info" size="small"
181-
>建议尺寸 64*64,支持 JPG、PNG, GIF,大小不超过 10 MB</el-text
181+
>建议尺寸 64*64,支持 JPG、PNGGIF,大小不超过 10 MB</el-text
182182
>
183183
</el-card>
184184
<el-card shadow="never" class="mb-8">
@@ -233,6 +233,9 @@
233233
v-model="form.float_location.x.value"
234234
:min="0"
235235
:step="1"
236+
:precision="0"
237+
:value-on-clear="0"
238+
step-strictly
236239
controls-position="right"
237240
/>
238241
<span class="ml-4">px</span>
@@ -248,6 +251,9 @@
248251
v-model="form.float_location.y.value"
249252
:min="0"
250253
:step="1"
254+
:precision="0"
255+
:value-on-clear="0"
256+
step-strictly
251257
controls-position="right"
252258
/>
253259
<span class="ml-4">px</span>
@@ -268,6 +274,7 @@
268274
v-model="form.disclaimer_value"
269275
style="width: 422px; margin-bottom: 10px"
270276
@change="changeValue"
277+
:maxlength="128"
271278
/>
272279
</el-tooltip>
273280
</el-space>
@@ -313,7 +320,7 @@ const defaultSetting = {
313320
avatar: '',
314321
float_icon: '',
315322
user_avatar: '',
316-
disclaimer: true,
323+
disclaimer: false,
317324
disclaimer_value: '「以上内容均由 AI 生成,仅供参考和借鉴」',
318325
custom_theme: {
319326
theme_color: '',
@@ -338,7 +345,7 @@ const xpackForm = ref<any>({
338345
avatar: '',
339346
float_icon: '',
340347
user_avatar: '',
341-
disclaimer: true,
348+
disclaimer: false,
342349
disclaimer_value: '「以上内容均由 AI 生成,仅供参考和借鉴」',
343350
custom_theme: {
344351
theme_color: '',

0 commit comments

Comments
 (0)