feat: 信息体只读样式修改,添加定宽
This commit is contained in:
@ -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,
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user