From 7d2fc5f1ce9767b7d931fbb73cb2b267b6e8b219 Mon Sep 17 00:00:00 2001 From: lockingreal <1191515088@qq.com> Date: Sun, 27 Mar 2022 17:54:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84upload=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/docs/zh-CN/components/upload.md | 314 +++++------------------- example/src/router/zh-CN.ts | 6 + example/src/view/utils/menus.ts | 6 + src/component/upload/index.less | 18 +- src/component/upload/index.vue | 248 ++++++++++++------- src/index.ts | 3 + 6 files changed, 254 insertions(+), 341 deletions(-) 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..355c46a3 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 };