diff --git a/.all-contributorsrc b/.all-contributorsrc index 08a707910f..fead53513c 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -837,6 +837,15 @@ "contributions": [ "translation" ] + }, + { + "login": "drsantam", + "name": "Santam Chakraborty", + "avatar_url": "https://avatars.githubusercontent.com/u/10681456?v=4", + "profile": "https://github.com/drsantam", + "contributions": [ + "translation" + ] } ], "contributorsPerLine": 7, diff --git a/README.md b/README.md index d6dfb705db..03af937ccd 100644 --- a/README.md +++ b/README.md @@ -449,6 +449,7 @@ Our mission is to provide the most powerful no-code interface for databases whic
Yohan Boniface

🌍 +
Santam Chakraborty

🌍 diff --git a/packages/nc-gui-v2/components/cell/Text.vue b/packages/nc-gui-v2/components/cell/Text.vue index b1de025b8d..653842a105 100644 --- a/packages/nc-gui-v2/components/cell/Text.vue +++ b/packages/nc-gui-v2/components/cell/Text.vue @@ -1,100 +1,28 @@ - - + diff --git a/packages/nc-gui-v2/components/cell/TextArea.vue b/packages/nc-gui-v2/components/cell/TextArea.vue index d27590877d..e02de3d753 100644 --- a/packages/nc-gui-v2/components/cell/TextArea.vue +++ b/packages/nc-gui-v2/components/cell/TextArea.vue @@ -5,70 +5,34 @@ interface Props { modelValue?: string } -const { modelValue: value } = defineProps() +const props = defineProps() -const emit = defineEmits(['update:modelValue']) +const emits = defineEmits(['update:modelValue']) const editEnabled = inject('editEnabled', false) -const root = ref() +const vModel = useVModel(props, 'modelValue', emits) -const localState = computed({ - get: () => value, - set: (val) => emit('update:modelValue', val), -}) - -onMounted(() => { - root.value?.focus() -}) - -/* export default { - name: 'TextAreaCell', - props: { - value: String, - }, - computed: { - localState: { - get() { - return this.value - }, - set(val) { - this.$emit('input', val) - }, - }, - parentListeners() { - const $listeners = {} - - if (this.$listeners.blur) { - $listeners.blur = this.$listeners.blur - } - if (this.$listeners.focus) { - $listeners.focus = this.$listeners.focus - } - - return $listeners - }, - }, - created() { - this.localState = this.value - }, - mounted() { - this.$refs.textarea && this.$refs.textarea.focus() - }, -} */ +const onSetRef = (el: HTMLInputElement) => { + el.focus() +}