完善公共组件

This commit is contained in:
zyn
2023-11-14 09:19:08 +08:00
parent 99ed3e4fe8
commit fd7cbaabdd
5 changed files with 208 additions and 14 deletions
@@ -7,16 +7,21 @@
clearable
></el-input>
<div style="display: flex;justify-content: space-between">
<div style="width: 80%;margin-top: 13px">
<div v-for="file in FileList"
:key="file.id"
@click="onPreview(file)"
style="color: #409eff;cursor:pointer"
class="fileClass">
{{ file.name }}
</div>
<div style="margin-top: 13px" :style="{width: view ? '100%' : '80%'}">
<template v-if="FileList.length > 0">
<div v-for="file in FileList"
:key="file.id"
@click="onPreview(file)"
style="color: #409eff;cursor:pointer"
class="fileClass">
{{ file.name }}
</div>
</template>
<template v-else>
<div v-if="view" style="line-height: 22px">-</div>
</template>
</div>
<div style="width: 20%;">
<div v-if="!view" style="width: 20%;">
<el-button :disabled="disabled"
type="primary"
class="common-button-primary"
@@ -85,6 +90,10 @@ export default {
size: {
type: Number,
default: 200
},
view: {
type: Boolean,
default: false
}
},
created () {