fix(功能用例): 修复因富文本框光标导致的滚动条位置初始化不对问题
--bug=1036910 --user=宋天阳 【用例管理】新建/编辑功能用例,页面显示在中间位置,应该显示在最上方 https://www.tapd.cn/55049933/s/1489434
This commit is contained in:
parent
e7555e436c
commit
a7b11a91a2
|
@ -345,7 +345,7 @@
|
|||
suggestion,
|
||||
}),
|
||||
],
|
||||
autofocus: 'start',
|
||||
autofocus: false,
|
||||
onUpdate: () => {
|
||||
debounceOnUpdate();
|
||||
},
|
||||
|
|
|
@ -509,15 +509,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
function beforeUpload(file: File) {
|
||||
const _maxSize = 50 * 1024 * 1024;
|
||||
if (file.size > _maxSize) {
|
||||
Message.warning(t('ms.upload.overSize'));
|
||||
return Promise.resolve(false);
|
||||
}
|
||||
return Promise.resolve(true);
|
||||
}
|
||||
|
||||
function associatedFile() {
|
||||
associatedDrawer.value = true;
|
||||
}
|
||||
|
@ -761,7 +752,7 @@
|
|||
// 自定义字段赋值
|
||||
fApi.value.setValue(tmpObj);
|
||||
// 平台默认模板系统字段单独处理
|
||||
if (isPlatformDefaultTemplate && form.value.platformSystemFields) {
|
||||
if (isPlatformDefaultTemplate.value && form.value.platformSystemFields) {
|
||||
Object.keys(form.value.platformSystemFields).forEach((key) => {
|
||||
form.value.platformSystemFields[key] = tmpObj[key];
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue