Bootstrap

自定义elemetui中el-radio 的样式

默认的样子

自己修改的样式 代码如下

<template>
	<div class="placeOrder">
		<el-radio-group v-model="radio" size="small">
			<el-radio label="1" border>备选项1</el-radio>
			<el-radio label="2" border>备选项2</el-radio>
		</el-radio-group>
	</div>
</template>
<script>
	export default {
		data() {
			return {
				radio: '1'
			};
		}
	}
</script>
<style scoped="scoped" lang="scss">
	.placeOrder {
		/deep/.el-radio__input {
			display: none;
		}
		/deep/.el-radio.is-bordered.is-checked::before {
			content: "";
			display: block;
			background-image: url(../../assets/image/radio.png);
			width: 11px;
			height: 12px;
			position: absolute;
			bottom: 0;
			right: 0;
		}
		/deep/.el-
;