Web Demo Mobile Demo Angular Demo Vue Demo React Demo
源代码
<template>
  <div>
		<h2>Custom Dialog Style</h2>
		<LinkButton @click="$refs.d1.open()">Open Dialog</LinkButton>
		<Dialog ref="d1"
				dialogCls="mydlg"
				headerCls="mydlg-header"
				footerCls="mydlg-footer"
				:modal="true"
				borderType="none">
			<div slot="header">Please Confirm</div>
			<p style="text-align:center;margin:50px 0;font-size:16px">Are you sure you want to continue?</p>
			<div slot="footer">
				<ButtonGroup style="width:100%;height:50px">
					<LinkButton class="f-full" :plain="true" btnCls="mybtn">Ok</LinkButton>
					<LinkButton class="f-full" :plain="true" btnCls="mybtn">Cancel</LinkButton>
				</ButtonGroup>
			</div>
		</Dialog>
  </div>
</template>

<script>
export default {};
</script>
<style>
.mydlg {
  width: 400px;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 7px 8px -4px rgba(0, 0, 0, 0.2),
    0 13px 19px 2px rgba(0, 0, 0, 0.14), 0 5px 24px 4px rgba(0, 0, 0, 0.12);
}
.mydlg .mydlg-header {
  line-height: 40px;
  background: #ef3e29;
  color: #fff;
  font-weight: bold;
  border: 0;
}
.mydlg .mydlg-footer {
  border-color: #ddd;
  background: #fff;
}
.mybtn,
.mybtn:hover {
  border-radius: 0;
}
</style>