17 lines
432 B
Vue
17 lines
432 B
Vue
<script setup lang="ts">
|
||
import { Input, Label, TextField } from "@heroui-vue/components";
|
||
</script>
|
||
|
||
<template>
|
||
<!-- 上游 render 自定义根节点;Vue 将 data-* 透传到 TextField 根,不支持替换元素类型。 -->
|
||
<TextField
|
||
class="w-full max-w-64"
|
||
data-custom="foo"
|
||
name="email"
|
||
type="email"
|
||
>
|
||
<Label>邮箱</Label>
|
||
<Input placeholder="输入你的邮箱" />
|
||
</TextField>
|
||
</template>
|