fix: 修复活动题型选区多次点击重复触发 select 事件 (#155)
This commit is contained in:
parent
627eabd8b2
commit
24881d7cdc
@ -71,7 +71,6 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
const handleSelect = (index) => {
|
const handleSelect = (index) => {
|
||||||
console.log('materialGroup-handleSelect', index)
|
|
||||||
emit('select', index)
|
emit('select', index)
|
||||||
}
|
}
|
||||||
const handleChange = (data) => {
|
const handleChange = (data) => {
|
||||||
|
@ -88,8 +88,11 @@ const showCopy = computed(() => {
|
|||||||
|
|
||||||
const clickFormItem = () => {
|
const clickFormItem = () => {
|
||||||
const index = props.qIndex
|
const index = props.qIndex
|
||||||
|
|
||||||
|
if (!props.isSelected) {
|
||||||
emit('select', index)
|
emit('select', index)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
const onCopy = () => {
|
const onCopy = () => {
|
||||||
const index = props.qIndex
|
const index = props.qIndex
|
||||||
emit('changeSeq', { type: 'copy', index })
|
emit('changeSeq', { type: 'copy', index })
|
||||||
@ -196,7 +199,7 @@ const onMove = () => {}
|
|||||||
.logic-text {
|
.logic-text {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #c8c9cd;
|
color: #c8c9cd;
|
||||||
padding: 0 .4rem;
|
padding: 0 0.4rem;
|
||||||
line-height: 26px;
|
line-height: 26px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user