Browse Source

Pull request #2357: 无JIAR任务 chore: 优化下写法

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'b23b576563c0a22da1133f12a30ed367150952de':
  chore: 优化下写法
es6
guy 3 years ago
parent
commit
7b8cc9429c
  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 () {
var conf = BI.SegmentButton.superclass._defaultConfig.apply(this, arguments);
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,
readonly: true,
hgap: 5

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

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

Loading…
Cancel
Save