Skip to content

Commit 7fd339c

Browse files
author
issayah
committed
BFormTextarea script setup conversion
1 parent 3f64867 commit 7fd339c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/BFormTextarea/BFormTextarea.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
</template>
2424

2525
<script lang="ts">
26-
import {computed, defineComponent} from 'vue'
27-
import useFormInput, {COMMON_INPUT_PROPS} from '../../composables/useFormInput'
26+
import {computed, defineComponent, StyleValue} from 'vue'
27+
import useFormInput, {COMMON_INPUT_PROPS} from '@/composables/useFormInput'
2828
2929
export default defineComponent({
3030
name: 'BFormTextarea',
@@ -44,7 +44,9 @@ export default defineComponent({
4444
'is-invalid': props.state === false,
4545
}))
4646
47-
const computedStyles = computed(() => (props.noResize ? {resize: 'none'} : undefined))
47+
const computedStyles = computed<StyleValue | undefined>(() =>
48+
props.noResize ? {resize: 'none'} : undefined
49+
)
4850
4951
const {input, computedId, computedAriaInvalid, onInput, onChange, onBlur, focus, blur} =
5052
useFormInput(props, emit)

0 commit comments

Comments
 (0)