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

@ -1,5 +1,5 @@
<template>
<div>
<div class="commonInfo">
<a-input disabled :value="name" :size="size" :bordered="bordered" />
</div>
</template>
@ -89,3 +89,11 @@
}
});
</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
});
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));
function parseRangeVal(val, component) {