diff --git a/demo/confirm/src/components/confirm.js b/demo/confirm/src/components/confirm.js
index 637df43d9..1aaf5d106 100644
--- a/demo/confirm/src/components/confirm.js
+++ b/demo/confirm/src/components/confirm.js
@@ -22,6 +22,7 @@ class Confirm extends React.Component{
return(
{this.state.text}
+
此操作不可逆,确定要继续吗?
{this.state.btnOptions.length>0 && this.state.btnOptions.map((item,index)=>{
return (
diff --git a/demo/confirm/src/components/style.css b/demo/confirm/src/components/style.css
index 2d84c036e..92d0cca0a 100644
--- a/demo/confirm/src/components/style.css
+++ b/demo/confirm/src/components/style.css
@@ -18,9 +18,9 @@ li{
.confirmContainer{
position: relative;
width: 300px;
- height: 160px;
background-color: #fff;
border-radius: 10px;
+ overflow: hidden;
}
.confirmContainer .title{
width: 100%;
@@ -32,20 +32,33 @@ li{
color: #555;
font-weight: bold;
}
-.confirmContainer .handle{
- position: absolute;
- bottom: 0;
- left: 0;
+.confirmContainer .content{
width: 100%;
- height: 30px;
+ height: 160px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ font-size: 16px;
+ color: #555;
+ font-weight: bold;
+}
+.confirmContainer .handle{
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ width: 100%;
+ border-top: 1px solid rgb(220,220,220);
}
.confirmContainer .handle .btn{
- float: left;
width: 50%;
- height: 30px;
- line-height: 30px;
+ height: 40px;
+ line-height: 40px;
text-align: center;
color: #333;
font-weight: bold;
cursor: pointer;
+ &:hover{
+ color: #fff;
+ background-color: blueviolet;
+ }
}
\ No newline at end of file