Commit b9f53a75 by pangchong

feat: 优化

parent 15e52524
......@@ -19,7 +19,7 @@
<div :class="{ 'bg-primary-hover': isSelf, 'bg-theme-bg3': !isSelf }" class="py-[10px] px-3 rounded flex-center justify-between leading-[22px] text-theme-text1 w-full">
<div class="flex-center">
<global-icon icon="file"></global-icon>
<span class="ml-3">{{ (data.fileName || '') }}</span>
<span class="ml-3">{{ data.fileName || '' }}</span>
</div>
<global-icon icon="download" class="cursor-pointer"></global-icon>
</div>
......@@ -40,7 +40,7 @@ interface Props {
const ps = withDefaults(defineProps<Props>(), {
isSelf: false,
type: 'txt',
data: {}
data: () => {}
})
</script>
<style lang="less" scoped></style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment