feat: 信息体只读样式修改,添加定宽

This commit is contained in:
GAOANG
2024-04-15 16:04:20 +08:00
parent 9852bd8a30
commit 4eb745630e
4 changed files with 13 additions and 3 deletions

View File

@ -1143,6 +1143,8 @@ export const infoComponents = [
width: '100%', width: '100%',
placeholder: '', placeholder: '',
infoType: 0, // 0当前用户 1当前组织 2当前时间 infoType: 0, // 0当前用户 1当前组织 2当前时间
labelWidthMode: 'fix',
labelFixWidth: 120,
loadAgain: false, //二次加载 loadAgain: false, //二次加载
showLabel: true, showLabel: true,
disabled: true, disabled: true,

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="commonInfo">
<a-input disabled :value="name" :size="size" :bordered="bordered" /> <a-input disabled :value="name" :size="size" :bordered="bordered" />
</div> </div>
</template> </template>
@ -89,3 +89,11 @@
} }
}); });
</script> </script>
<style scoped>
.commonInfo /deep/.ant-input-disabled {
border: none;
background-color: transparent;
color: inherit;
padding-top: 0;
}
</style>

View File

@ -11,7 +11,7 @@
model: Object model: Object
}); });
const textComponents = ['Input', 'AutoCodeRule', 'DatePicker', 'TimePicker', 'Info', 'Text', 'InputTextArea', 'InputNumber']; const textComponents = ['Input', 'AutoCodeRule', 'DatePicker', 'TimePicker', 'Text', 'InputTextArea', 'InputNumber'];
const fieldValue = ref(genFieldValue(props.value)); const fieldValue = ref(genFieldValue(props.value));
function parseRangeVal(val, component) { function parseRangeVal(val, component) {

View File

@ -417,7 +417,7 @@
} }
function readonlySupport(name) { function readonlySupport(name) {
return /Input|AutoCodeRule|DatePicker|Text|TimePicker|Info|Range/.test(name); return /Input|AutoCodeRule|DatePicker|Text|TimePicker|Range/.test(name);
} }
function getShow(schema: FormSchema): boolean { function getShow(schema: FormSchema): boolean {