Skip to content

Commit

Permalink
Merge pull request #136 from XiaoMi/hotfix/select-style
Browse files Browse the repository at this point in the history
Hotfix/select style
  • Loading branch information
xingkaibiluo authored Mar 25, 2019
2 parents a360568 + 869a96c commit 174317d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
4 changes: 4 additions & 0 deletions components/cascader/Cascader.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ class Cascader extends Component {
}

handleClick (e) {
if (this.state.popperShow) {
this.hidePopper()
return
}
// e.stopPropagation()
if (!this.props.disabled) {
this.showPopper()
Expand Down
2 changes: 0 additions & 2 deletions components/popover/style/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ $popper-arrow-gap: -5px !default;

.hi-popover {
position: relative;
line-height: 30px;
font-size: 16px;
display: inline-block;
}

Expand Down
17 changes: 9 additions & 8 deletions components/select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,18 +263,19 @@ class Select extends Component {
}

handleInputClick (e) {
this.selectInput.focus()
// if (e) {
// e.stopPropagation()
// }
let {
dropdownShow
} = this.state

if (this.props.disabled) {
if (dropdownShow) {
this.hideDropdown()
return
}

let {
dropdownShow
} = this.state
this.selectInput.focus()
if (this.props.disabled) {
return
}

if (!dropdownShow) {
this.showDropdown()
Expand Down
1 change: 1 addition & 0 deletions components/select/style/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ $selectColor:#f7f7f7 !default;
display: inline-block;
width: 100%;
font-size: 14px;
overflow: hidden;

&.is-disabled {
opacity: 0.4;
Expand Down
4 changes: 3 additions & 1 deletion site/view/Home/style/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@import './variable';

/* common */

.header {
z-index: 1999;
}
.container {
width: 1177px;
margin: 0 auto;
Expand Down

0 comments on commit 174317d

Please sign in to comment.