34 lines
827 B
Vue
34 lines
827 B
Vue
<script setup lang="ts">
|
|
import {
|
|
Button,
|
|
InputGroup,
|
|
InputGroupInput,
|
|
InputGroupPrefix,
|
|
InputGroupSuffix,
|
|
Label,
|
|
TextField,
|
|
} from "@heroui-vue/components";
|
|
import { IconCopy, IconWorld } from "@tabler/icons-vue";
|
|
</script>
|
|
|
|
<template>
|
|
<TextField
|
|
class="w-full max-w-[280px]"
|
|
default-value="heroui.com"
|
|
name="website"
|
|
>
|
|
<Label>网站</Label>
|
|
<InputGroup>
|
|
<InputGroupPrefix>
|
|
<IconWorld class="size-4 text-muted" aria-hidden="true" />
|
|
</InputGroupPrefix>
|
|
<InputGroupInput class="w-full max-w-[280px]" />
|
|
<InputGroupSuffix class="pe-0">
|
|
<Button is-icon-only aria-label="复制" size="sm" variant="ghost">
|
|
<IconCopy class="size-4" aria-hidden="true" />
|
|
</Button>
|
|
</InputGroupSuffix>
|
|
</InputGroup>
|
|
</TextField>
|
|
</template>
|