Files
workspace/code/base-project/base-vue/src/App.vue
T
2025-09-01 22:15:45 +08:00

32 lines
957 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
</script>
<template>
<div style="display: flex; gap: 12px; flex-wrap: wrap; width: 300px;">
<!-- small 输入框,使用 slot 图标 -->
<AInput size="small" placeholder="Small 输入框">
<template #prefix>
<AIcon icon="material-symbols:10k-outline" />
</template>
<template #suffix>
<AIcon icon="material-symbols:10k-outline" />
</template>
</AInput>
<!-- medium 输入框,使用 prop 图标 -->
<AInput
size="medium"
placeholder="Medium 输入框"
prefix-icon="material-symbols:10k-outline"
suffix-icon="material-symbols:10k-outline"
/>
<!-- large 输入框,prefix 用 slot,suffix 用 prop -->
<AInput size="large" placeholder="Large 输入框" suffix-icon="material-symbols:10k-outline">
<template #prefix>
<AIcon icon="material-symbols:10k-outline" />
</template>
</AInput>
</div>
</template>