You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/input/demo/search-input-loading.vue

35 lines
595 B

<docs>
---
order: 4
title:
zh-CN: 搜索框 loading
en-US: Search box with loading
---
## zh-CN
用于 `onSearch` 的时候展示 `loading`
## en-US
Search loading when onSearch.
</docs>
<template>
<div>
<a-input-search v-model:value="value" placeholder="input search loading deault" loading />
<br />
<br />
<a-input-search
v-model:value="value"
placeholder="input search loading with enterButton"
loading
enter-button
/>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
const value = ref<string>('');
</script>