Browse Source

Merge remote-tracking branch 'origin/master'

es6
guy 2 years ago
parent
commit
95cd8d4fb8
  1. 12
      examples/响应式布局.html
  2. 5
      src/base/combination/combo.js
  3. 3
      src/less/base/combo/combo.less
  4. 6
      src/less/core/utils/common.less
  5. 6
      src/less/core/wrapper/inline.less
  6. 18
      src/less/core/wrapper/inline.old.less

12
examples/响应式布局.html

@ -53,13 +53,13 @@
box-shadow: 0 2px 5px rgb(0 0 0 / 16%), 0 2px 10px rgb(0 0 0 / 12%); box-shadow: 0 2px 5px rgb(0 0 0 / 16%), 0 2px 10px rgb(0 0 0 / 12%);
} }
.nav-logo { .nav-logo {
background-image: url(https://qn.wangchuan.cc/pullrequest-logo.svg); background-image: url(http://qn.wangchuan.cc/pullrequest-logo.svg);
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: 50%; background-position: 50%;
background-size: contain; background-size: contain;
} }
.image { .image {
background-image: url(https://qn.wangchuan.cc/hero-graphic.png); background-image: url(http://qn.wangchuan.cc/hero-graphic.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: contain; background-size: contain;
} }
@ -79,7 +79,7 @@
border: 1px solid #4aa4e0; border: 1px solid #4aa4e0;
} }
.wave { .wave {
background-image: url(https://qn.wangchuan.cc/wave.png); background-image: url(http://qn.wangchuan.cc/wave.png);
background-size: cover; background-size: cover;
background-repeat: repeat-x; background-repeat: repeat-x;
} }
@ -205,7 +205,7 @@
maxWidth: "100%", maxWidth: "100%",
maxHeight: "100%", maxHeight: "100%",
}, },
src: "https://qn.wangchuan.cc/hero-graphic.png", src: "http://qn.wangchuan.cc/hero-graphic.png",
width: "auto", width: "auto",
height: "auto", height: "auto",
}, },
@ -318,7 +318,7 @@
maxWidth: "100%", maxWidth: "100%",
maxHeight: "100%", maxHeight: "100%",
}, },
src: "https://qn.wangchuan.cc/velocity.png", src: "http://qn.wangchuan.cc/velocity.png",
width: "auto", width: "auto",
height: "auto", height: "auto",
}, },
@ -358,7 +358,7 @@
maxWidth: "100%", maxWidth: "100%",
maxHeight: "100%", maxHeight: "100%",
}, },
src: "https://qn.wangchuan.cc/secure.png", src: "http://qn.wangchuan.cc/secure.png",
width: "auto", width: "auto",
height: "auto", height: "auto",
}, },

5
src/base/combination/combo.js

@ -48,11 +48,6 @@
}); });
}, },
// 复写visual相关代码,让其通过class实现显隐藏
__setElementVisible: function (visible) {
this.element[visible ? "removeClass" : "addClass"]("bi-combo-hidden");
},
render: function () { render: function () {
var self = this, o = this.options; var self = this, o = this.options;
this._initCombo(); this._initCombo();

3
src/less/base/combo/combo.less

@ -21,9 +21,6 @@
} }
} }
} }
&.bi-combo-hidden:not(.bi-combo-popup) {
display: none !important;
}
&.bi-combo-popup, &.bi-combo-hover, &:hover { &.bi-combo-popup, &.bi-combo-hover, &:hover {
&.bi-border, &.bi-border-bottom { &.bi-border, &.bi-border-bottom {

6
src/less/core/utils/common.less

@ -570,7 +570,7 @@
// hover-visible的原子化形式 // hover-visible的原子化形式
.bi-hover-visible-container { .bi-hover-visible-container {
&:where(:not(&:hover)) .bi-hover-visible-item { &:where(:not(&:hover)) .bi-hover-visible-item:not(.bi-combo-popup) {
display: none; display: none;
} }
@ -591,11 +591,11 @@
// } // }
//} //}
& .bi-hover-visible-item { & .bi-hover-visible-item:not(.bi-combo-popup) {
visibility: hidden; visibility: hidden;
} }
&:hover .bi-hover-visible-item { &:hover .bi-hover-visible-item:not(.bi-combo-popup) {
visibility: visible; visibility: visible;
} }
} }

6
src/less/core/wrapper/inline.less

@ -15,10 +15,4 @@
display: inline-block !important; display: inline-block !important;
} }
} }
& > .bi-combo {
&.bi-combo-popup {
display: inline-block !important;
}
}
} }

18
src/less/core/wrapper/inline.old.less

@ -14,12 +14,6 @@
display: inline-block !important; display: inline-block !important;
} }
} }
& > .bi-combo {
&.bi-combo-popup {
display: inline-block !important;
}
}
} }
.bi-inline-horizontal-adapt-layout { .bi-inline-horizontal-adapt-layout {
@ -38,12 +32,6 @@
display: inline-block !important; display: inline-block !important;
} }
} }
& > .bi-combo {
&.bi-combo-popup {
display: inline-block !important;
}
}
} }
.bi-inline-vertical-adapt-layout { .bi-inline-vertical-adapt-layout {
@ -62,10 +50,4 @@
display: inline-block !important; display: inline-block !important;
} }
} }
& > .bi-combo {
&.bi-combo-popup {
display: inline-block !important;
}
}
} }

Loading…
Cancel
Save