修复选择项属性编辑器中value输入框每输入一个字符输入焦点消失的bug。

This commit is contained in:
vdpAdmin
2022-04-20 17:19:57 +08:00
parent 366486658b
commit 6d48f2271a
4 changed files with 12 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<div class="option-items-pane">
<el-radio-group v-if="(selectedWidget.type === 'radio') || ((selectedWidget.type === 'select') && !selectedWidget.options.multiple)"
v-model="optionModel.defaultValue" @change="emitDefaultValueChange">
<draggable tag="ul" :list="optionModel.optionItems" item-key="value"
<draggable tag="ul" :list="optionModel.optionItems" item-key="id"
v-bind="{group:'optionsGroup', ghostClass: 'ghost', handle: '.drag-option'}">
<template #item="{ element: option, index: idx }">
<li>