From ff14003be0cfb64d05df7cc0cd3e20bb5a9136ac Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 3 Aug 2022 08:42:21 +0200 Subject: [PATCH] chore(gui-v2): update text and textarea cells --- packages/nc-gui-v2/components/cell/Text.vue | 40 ++----------------- .../nc-gui-v2/components/cell/TextArea.vue | 24 +++++------ 2 files changed, 14 insertions(+), 50 deletions(-) diff --git a/packages/nc-gui-v2/components/cell/Text.vue b/packages/nc-gui-v2/components/cell/Text.vue index d2acea4503..7243a1d409 100644 --- a/packages/nc-gui-v2/components/cell/Text.vue +++ b/packages/nc-gui-v2/components/cell/Text.vue @@ -8,50 +8,16 @@ interface Props { const props = defineProps() -const emit = defineEmits(['update:modelValue']) +const emits = defineEmits(['update:modelValue']) const editEnabled = inject(EditModeInj, ref(false)) -const vModel = useVModel(props, 'modelValue', emit) +const vModel = useVModel(props, 'modelValue', emits) const focus = (el: HTMLInputElement) => el.focus() - - - diff --git a/packages/nc-gui-v2/components/cell/TextArea.vue b/packages/nc-gui-v2/components/cell/TextArea.vue index b911cc5268..fc9a2b7057 100644 --- a/packages/nc-gui-v2/components/cell/TextArea.vue +++ b/packages/nc-gui-v2/components/cell/TextArea.vue @@ -8,26 +8,24 @@ interface Props { const props = defineProps() -const emit = defineEmits(['update:modelValue']) +const emits = defineEmits(['update:modelValue']) const editEnabled = inject(EditModeInj, ref(false)) -const vModel = useVModel(props, 'modelValue', emit) +const vModel = useVModel(props, 'modelValue', emits) const focus = (el: HTMLTextAreaElement) => el.focus()