el-button新的type可选值

el-button新的type可选值

el-button的type属性的可选值有:primary / success / warning / danger / info / text,而且不仅可以用官方所给可选值,还可以根据项目的需求创建type

...
	<el-button 
		size="small"
		type="danger1"
		@click="handleDelete(scope.$index, scope.row)">
		删除
	el-button>
...
<style lang="less">
...
.el-button--danger1 {
	background-color: rgb(183, 146, 247) !important;
}
...
style>

你可能感兴趣的:(vue,前端,vue,elementui)