Skip to content
On this page

MultilineInput

When To Use

This input box makes typing easier when multi-line input is required

Examples

<template>
  <h-multiline-input v-model="text" autofocus title="标题" />
</template>

<script setup lang="ts">
import { ref } from 'vue';
const text = ref('请输入多行文本');
</script>

API

Props

PropertyDescriptionTypedefault
idUsed when getting domstring
titletitlestring
modelValueinput valuestring
placeholderPlaceholder of inputstring
autofocusauto focus inputbooleanautofocus
autoSelectAutomatically select the content in the input box when the component is mountedbooleanfalse
noChangeOnMountedChange events are not triggered when the component is mountedbooleanfalse
autoFillInputConditionClipboard automatic backfill judgment functionFunctionnull
saveOptionsAutomatically upload and initialize component data.
Note ⚠️: Multiple key values under the same tool need to be unique.
objectautoSave:false,key:""

Events

Events NameDescriptionTypedefault
changeThe key-value pair change triggers the callback functionFunction