打开窗口选择要上传的文件的按钮 .
安装
npm install @fluid-topics/ft-file-button
yarn add @fluid-topics/ft-file-button
使用量
import { html } from "lit"
import "@fluid-topics/ft-file-button"
function render() {
return html` <ft-file-button accept="*.pdf">Upload a file</ft-file-button> `
}