新增:Form组件支持响应式配置,路由支持外部地址(内联)

This commit is contained in:
xiaoma
2021-08-09 16:16:16 +08:00
parent ade138997d
commit 0979b5af5d
9 changed files with 124 additions and 12 deletions

View File

@@ -102,11 +102,7 @@
type="primary"
text
icon-placement="right"
v-if="
isInline &&
getSchema.length > (getProps.gridProps?.cols || 0) &&
getProps.showAdvancedButton
"
v-if="overflow && isInline && getProps.showAdvancedButton"
@click="unfoldToggle"
>
<template #icon>
@@ -212,6 +208,7 @@
return {
...gridProps,
collapsed: isInline.value ? gridCollapsed.value : false,
responsive: 'screen',
};
});

View File

@@ -101,8 +101,8 @@
const state = reactive({
showModal: false,
previewUrl: '',
originalImgList: [],
imgList: [],
originalImgList: [] as string[],
imgList: [] as string[],
});
//赋值默认图片显示
@@ -176,7 +176,7 @@
const result = res[infoField];
//成功
if (code === ResultEnum.SUCCESS) {
let imgUrl = getImgUrl(result.photo);
let imgUrl: string = getImgUrl(result.photo);
state.imgList.push(imgUrl);
state.originalImgList.push(result.photo);
emit('uploadChange', state.originalImgList);
@@ -220,6 +220,7 @@
&:hover {
background: 0 0;
.upload-card-item-info::before {
opacity: 1;
}