mirror of https://github.com/jeecgboot/jeecg-boot
【issues/7664】JVxeTable的textarea组件@blur会重复发生 ---
parent
a00e4684b5
commit
17dc1916aa
|
@ -13,9 +13,9 @@
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
<a-textarea ref="textareaRef" :value="innerValue" :disabled="disabled" :style="textareaStyle" v-bind="attrs" @input="onInputChange" />
|
<a-textarea ref="textareaRef" :value="innerValue" :disabled="disabled" :style="textareaStyle" v-bind="attrs" @input="onInputChange" @blur="onInputBlur" />
|
||||||
</template>
|
</template>
|
||||||
<a-input :class="`${prefixCls}-input`" :value="innerValue" :disabled="disabled" v-bind="attrs" @change="onInputChange">
|
<a-input :class="`${prefixCls}-input`" :value="innerValue" :disabled="disabled" v-bind="attrs" @change="onInputChange" @blur="onInputBlur">
|
||||||
<template #suffix>
|
<template #suffix>
|
||||||
<Icon icon="ant-design:fullscreen-outlined" @click.stop="onShowPopup" />
|
<Icon icon="ant-design:fullscreen-outlined" @click.stop="onShowPopup" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
popContainer: propTypes.oneOfType([propTypes.string, propTypes.func]).def(''),
|
popContainer: propTypes.oneOfType([propTypes.string, propTypes.func]).def(''),
|
||||||
});
|
});
|
||||||
const attrs = useAttrs();
|
const attrs = useAttrs();
|
||||||
const emit = defineEmits(['change', 'update:value']);
|
const emit = defineEmits(['change', 'update:value', 'blur']);
|
||||||
|
|
||||||
const visible = ref<boolean>(false);
|
const visible = ref<boolean>(false);
|
||||||
const innerValue = ref<string>('');
|
const innerValue = ref<string>('');
|
||||||
|
@ -92,6 +92,10 @@
|
||||||
emit('change', value);
|
emit('change', value);
|
||||||
emit('update:value', value);
|
emit('update:value', value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const onInputBlur = (event) => {
|
||||||
|
emit('blur', event);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
|
Loading…
Reference in New Issue