[Claude Code] After prompt #1

This commit is contained in:
2025-12-08 11:40:20 +08:00
parent fd02caf921
commit bc1ee71fc1
5 changed files with 35 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
<template>
<button :type="type" :style="style"></button>
</template>
<script setup lang="ts">
interface Props{
type: 'button' | 'submit' | 'reset',
style: string
}
const props = defineProps<Props>()
</script>
<style lang="scss" scoped>
@import url("./button.scss");
</style>

View File

@@ -0,0 +1 @@
export { default as Button } from './button/Button.vue'

View File

@@ -1,10 +1,24 @@
<template>
<div>
<div v-if="mode==='cover'">
<!-- 封面的文件上传只可传一张图片上传成功后封面图片会替换 -->
</div>
<div v-if="mode==='dialog'">
<!-- 文件上传弹窗可传多个文件上传成功后文件列表会更新 -->
</div>
<div v-if="mode==='content'">
<!-- 嵌入原div文件上传内容可传多个文件上传成功后文件列表会更新 -->
</div>
</template>
<script setup lang="ts">
import { Button } from '@/components'
import { FILE_DOWNLOAD_URL } from '@/config'
interface Props{
mode: 'cover' | 'dialog' | 'content'
coverImg: string
fileList: FileList
}
const props = defineProps<Props>()
</script>
<style lang="scss" scoped>

View File

@@ -1 +1,2 @@
export * from './fileupload'
export * from './base'