HeadlessCopyText ​

无头复制文本原语,提供状态与逻辑,UI 完全由默认插槽自定义。

使用
反馈
文档

基础用法 ​

带动画反馈 ​

API ​

Props ​

名称类型默认值必填说明
textstring—是Plain text written to the clipboard.
disabledboolean | undefinedfalse—Prevent copy commands while preserving the slot state.
resetDelaynumber | undefined2000—Time before the copied state resets. Set to 0 to keep it until the next command.

Emits ​

名称参数说明
error—
copy[text: string]—

Slots ​

名称作用域说明
default—

Expose ​

名称类型说明
copy—
reset() => void—

组件贡献者 ​