Browse Source

文件上传

lwx_v27
liwenxuan 3 months ago
parent
commit
1840366ea4
  1. 12
      src/components/DesignForm/formControlPropertiNew.vue
  2. 3
      src/components/DesignForm/public/expand/uploadPage.vue

12
src/components/DesignForm/formControlPropertiNew.vue

@ -959,18 +959,6 @@ const attrList = computed(() => {
path: "control.name", path: "control.name",
vShow: ["upload"], vShow: ["upload"],
}, },
{
label: "列表类型",
value: control.listType,
type: "select",
dict: {
text: "text",
picture: "picture",
"picture-card": "picture-card",
},
path: "control.listType",
vShow: ["upload"],
},
{ {
label: "提示文字", label: "提示文字",
value: config.tip, value: config.tip,

3
src/components/DesignForm/public/expand/uploadPage.vue

@ -163,7 +163,8 @@ const uploadSuccess = (response: any, uploadFile: any, uploadFiles: any) => {
<el-button type="primary" plain v-if="props.config?.btnText"> <el-button type="primary" plain v-if="props.config?.btnText">
{{ props.config?.btnText }} {{ props.config?.btnText }}
</el-button> </el-button>
<i class="icon-plus" v-else></i> <!-- <i class="icon-plus" v-else></i> -->
<el-button v-else style="color:grey;font-weight: bolder;"><el-icon style="margin-right: 7px;font-weight: bolder;"><Plus /></el-icon></el-button>
</template> </template>
<template #tip v-if="props.config?.tip"> <template #tip v-if="props.config?.tip">
<div class="el-upload__tip"> <div class="el-upload__tip">

Loading…
Cancel
Save