[Claude Code] After prompt #1
This commit is contained in:
@@ -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>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
export { default as Button } from './button/Button.vue'
|
||||||
@@ -1,10 +1,24 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div v-if="mode==='cover'">
|
||||||
|
<!-- 封面的文件上传,只可传一张图片,上传成功后,封面图片会替换 -->
|
||||||
|
</div>
|
||||||
|
<div v-if="mode==='dialog'">
|
||||||
|
<!-- 文件上传弹窗,可传多个文件,上传成功后,文件列表会更新 -->
|
||||||
|
</div>
|
||||||
|
<div v-if="mode==='content'">
|
||||||
|
<!-- 嵌入原div文件上传内容,可传多个文件,上传成功后,文件列表会更新 -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<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>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
export * from './fileupload'
|
export * from './fileupload'
|
||||||
|
export * from './base'
|
||||||
Reference in New Issue
Block a user