Skip to content

Commit

Permalink
style(editor): project preferences textarea in subject
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Jan 30, 2022
1 parent 6b3bdff commit 1583689
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
:tooltip="t('editor.project.configuration.tooltip.subject')"
/>
</section>
<InputText
<InputTextArea
v-model="PROJECT.subject"
class="wb-configuration-input-text"
class="wb-configuration-input-text overflow-x-hidden resize-none"
rows="5"
/>
</div>
<div class="wb-configuration">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<template>
<textarea ref="inp" v-model="cmp" :class="css" />
</template>

<script setup lang="ts">
import { ref, computed } from 'vue'
const props = defineProps({
modelValue: {
required: true,
type: String,
},
css: {
required: false,
type: String,
},
})
const emit = defineEmits(['update:modelValue'])
const inp = ref<HTMLElement | null>(null)
const cmp = computed({
get() {
return props.modelValue
},
set(val: any) {
emit('update:modelValue', val)
},
})
</script>

0 comments on commit 1583689

Please sign in to comment.