diff --git a/example/docs/zh-CN/components/upload.md b/example/docs/zh-CN/components/upload.md index 9a8795fc..e87316ca 100644 --- a/example/docs/zh-CN/components/upload.md +++ b/example/docs/zh-CN/components/upload.md @@ -13,7 +13,7 @@ ::: demo 使用 `lay-upload` 标签, 创建一个按钮上传单文件 +::: + +::: title 多文件上传 +::: + +::: demo 使用 `lay-upload` 标签, 并使用 `multiple` 创建一个可上传多个文件的上传组件 + + + + diff --git a/src/index.ts b/src/index.ts index dc2c3513..8d6cef05 100644 --- a/src/index.ts +++ b/src/index.ts @@ -81,6 +81,7 @@ import LayFullscreen from "./component/fullscreen/index"; import LayDatePicker from "./component/datePicker/index"; import LayNoticeBar from "./component/noticeBar/index"; import LayTransition from "./component/transition/index"; +import LayUpload from "./component/upload/index"; import LayConfigProvider from "./provider"; import { InstallOptions } from "./types"; @@ -160,6 +161,7 @@ const components: Record = { LayDatePicker, LayNoticeBar, LayTransition, + LayUpload, }; const install = (app: App, options?: InstallOptions): void => { @@ -247,6 +249,7 @@ export { LayDatePicker, LayNoticeBar, LayTransition, + LayUpload, }; export { layer };