From 8e40a69fcfe8bc799fee141fec953a2b0892dbd4 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期一, 09 十月 2023 15:54:26 +0800 Subject: [PATCH] 修改wifi扫描的交互 --- src/pages/ai/FileUpload/files.vue | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-) diff --git a/src/pages/ai/FileUpload/files.vue b/src/pages/ai/FileUpload/files.vue new file mode 100644 index 0000000..1380ba9 --- /dev/null +++ b/src/pages/ai/FileUpload/files.vue @@ -0,0 +1,42 @@ +<template> + <div class="uploader-files"> + <slot :files="files"> + <ul> + <li v-for="file in files" :key="file.id"> + <uploader-file :file="file"></uploader-file> + </li> + </ul> + </slot> + </div> +</template> + +<script> +import { uploaderMixin } from './common/mixins' +import UploaderFile from './file.vue' + +const COMPONENT_NAME = 'uploader-files' + +export default { + name: COMPONENT_NAME, + mixins: [uploaderMixin], + computed: { + files() { + return this.uploader.files + } + }, + components: { + UploaderFile + } +} +</script> + +<style> +.uploader-files { + position: relative; +} +.uploader-files > ul { + list-style: none; + margin: 0; + padding: 0; +} +</style> -- Gitblit v1.8.0