Browse Source

chore: 优化下写法

es6
guy 3 years ago
parent
commit
b23b576563
  1. 2
      src/case/segment/button.segment.js
  2. 2
      src/less/base/segment/segment.less

2
src/case/segment/button.segment.js

@ -10,7 +10,7 @@ BI.SegmentButton = BI.inherit(BI.BasicButton, {
_defaultConfig: function () { _defaultConfig: function () {
var conf = BI.SegmentButton.superclass._defaultConfig.apply(this, arguments); var conf = BI.SegmentButton.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, { return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-segment-button bi-list-item-select", baseCls: (conf.baseCls || "") + " bi-segment-button bi-list-item-select bi-card",
shadow: true, shadow: true,
readonly: true, readonly: true,
hgap: 5 hgap: 5

2
src/less/base/segment/segment.less

@ -3,7 +3,6 @@
.bi-segment{ .bi-segment{
& > .center-element{ & > .center-element{
.overflow-hidden(); .overflow-hidden();
background: @color-bi-background-default;
border-right: 1px solid @color-bi-border-highlight; border-right: 1px solid @color-bi-border-highlight;
border-top: 1px solid @color-bi-border-highlight; border-top: 1px solid @color-bi-border-highlight;
border-bottom: 1px solid @color-bi-border-highlight; border-bottom: 1px solid @color-bi-border-highlight;
@ -24,7 +23,6 @@
.bi-segment { .bi-segment {
& > .center-element{ & > .center-element{
.overflow-hidden(); .overflow-hidden();
background: @color-bi-background-default-theme-dark;
border-right: 1px solid @color-bi-border-line-theme-dark; border-right: 1px solid @color-bi-border-line-theme-dark;
border-top: 1px solid @color-bi-border-line-theme-dark; border-top: 1px solid @color-bi-border-line-theme-dark;
border-bottom: 1px solid @color-bi-border-line-theme-dark; border-bottom: 1px solid @color-bi-border-line-theme-dark;

Loading…
Cancel
Save