diff --git a/src/components/DialogJustForm.vue b/src/components/DialogJustForm.vue index 3d9d437..520299a 100644 --- a/src/components/DialogJustForm.vue +++ b/src/components/DialogJustForm.vue @@ -46,21 +46,16 @@ :disabled="detailMode" /> - - 选择文件 -
只能上传jpg/png文件,且不超过500kb
-
+ /> +
import { pick as __pick } from "@/utils/filters"; import Cookies from "js-cookie"; +import uploadBtn from "@/components/uploadBtn"; function reConstructTreeData(listObj) { const entry = []; @@ -114,6 +110,7 @@ function reConstructTreeData(listObj) { export default { name: "DialogJustForm", + components: { uploadBtn }, props: { configs: { type: Object, diff --git a/src/components/uploadBtn/components/FileList.vue b/src/components/uploadBtn/components/FileList.vue index eaf5e65..ef22e6f 100644 --- a/src/components/uploadBtn/components/FileList.vue +++ b/src/components/uploadBtn/components/FileList.vue @@ -1,8 +1,8 @@ @@ -39,7 +43,7 @@ export default { props: { label: { type: String, - default: "文件列表", + default: "", }, title: { type: String, @@ -86,4 +90,42 @@ export default { .fade-leave-active { transition: opacity 100ms linear; } + +.mt-2 { + margin-top: 16px; +} + +button { + background: none; + border: none; +} + +ul, +li { + padding: 0; + margin: 0; + list-style: none; +} + +.filelist > li { + display: flex; + justify-content: space-between; + align-items: center; + padding: 6px 0; +} + +.top-search { + position: absolute; + top: 0; + right: 0; + margin-top: 6px; + margin-right: 6px; + cursor: pointer; +} + +.search-btn { + display: inline-block; + width: 24px; + height: 24px; +} diff --git a/src/components/uploadBtn/index.vue b/src/components/uploadBtn/index.vue index d6f9a53..ee9b4f4 100644 --- a/src/components/uploadBtn/index.vue +++ b/src/components/uploadBtn/index.vue @@ -1,28 +1,28 @@