admin管理员组

文章数量:1640617

 

关键点在于readonly-input类名映射变量 --el-input-bg-color

<template>
            <el-col :span="12" class="mb20 cursor"        @click="previewText(form.patientCondition,'患者病况')">
					<el-form-item label="患者病况 " prop="patientCondition">
						<el-input v-model="form.patientCondition"
						class="readonly-input"
						 :rows="5"  type="textarea" placeholder="请输入患者病况" readonly/>
					</el-form-item>
				</el-col>
</template>
<style scoped lang="scss">

.readonly-input {
	--el-input-bg-color: rgb(245, 247, 250);
}
</style>

本文标签: 属性可采用样式事件Input