Input
When To Use
When opening the plug-in, the content needs to be automatically selected. In the case of an example, it needs to be selected to facilitate the user to type and clear. This input box can provide basic capabilities
TIP
This component fully supports the input attribute of ant design
Examples
<template>
<h-input v-model:value="userInput" autoSelect :save-options="{autoSave:true,key:'user-input'}"/>
</template>
<script setup lang="ts">
import { ref } from 'vue';
const userInput = ref('');
</script>
API
Props
Property | Description | Type | default |
---|---|---|---|
autoSelect | Automatically select the content of the input box when the component is mounted | boolean | false |
autoFillInputCondition | Clipboard automatic backfill judgment function | Function | null |
saveOptions | Automatically upload and initialize component data. Note ⚠️: Multiple key values under the same tool need to be unique. | object | autoSave:false,key:"" |