Merge pull request #381 from 1Panel-dev/pr@main@fix-bugs

fix: 修复快捷修改组件问题和优化支持一键清空输入内容
This commit is contained in:
wangdan-fit2cloud 2024-05-07 17:09:20 +08:00 committed by GitHub
commit 8204d5ff44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@
:maxlength="quickCreateMaxlength || '-'"
:show-word-limit="quickCreateMaxlength ? true : false"
@keydown.enter="submitHandle"
clearable
/>
<el-button type="primary" @click="submitHandle" :disabled="loading">创建</el-button>

View File

@ -23,11 +23,12 @@
:show-word-limit="maxlength ? true : false"
@blur="isEdit = false"
@keyup.enter="submit"
clearable
></el-input>
</div>
<span class="ml-4">
<el-button type="primary" text @click.stop="submit" :disabled="loading">
<el-button type="primary" text @mousedown="submit" :disabled="loading">
<el-icon><Select /></el-icon>
</el-button>
</span>