dolphin-weex-ui 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -1
- package/dist/index.native.js +207 -168
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +184 -174
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/dof-actionsheet/index.vue +1 -1
- package/packages/dof-bottom-bar/index.vue +1 -1
- package/packages/dof-button/index.vue +90 -12
- package/packages/dof-button/type.js +30 -30
- package/packages/dof-slider-bar/index.vue +483 -460
- package/packages/dof-step-flow-h/index.vue +173 -165
package/dist/index.native.js
CHANGED
|
@@ -7695,13 +7695,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7695
7695
|
var STYLE_MAP = exports.STYLE_MAP = {
|
|
7696
7696
|
primary: {
|
|
7697
7697
|
default: {
|
|
7698
|
-
backgroundColor: '#267AFF'
|
|
7698
|
+
// backgroundColor: '#267AFF'
|
|
7699
7699
|
},
|
|
7700
7700
|
base: {
|
|
7701
|
-
backgroundColor: '#E9F1FF'
|
|
7701
|
+
// backgroundColor: '#E9F1FF'
|
|
7702
7702
|
},
|
|
7703
7703
|
plain: {
|
|
7704
|
-
backgroundColor: '#FFFFFF',
|
|
7704
|
+
// backgroundColor: '#FFFFFF',
|
|
7705
7705
|
borderWidth: '2px',
|
|
7706
7706
|
borderColor: '#267AFF'
|
|
7707
7707
|
},
|
|
@@ -7712,13 +7712,13 @@ var STYLE_MAP = exports.STYLE_MAP = {
|
|
|
7712
7712
|
},
|
|
7713
7713
|
purple: {
|
|
7714
7714
|
default: {
|
|
7715
|
-
backgroundColor: '#995EFC'
|
|
7715
|
+
// backgroundColor: '#995EFC'
|
|
7716
7716
|
},
|
|
7717
7717
|
base: {
|
|
7718
|
-
backgroundColor: '#EEE6FF'
|
|
7718
|
+
// backgroundColor: '#EEE6FF'
|
|
7719
7719
|
},
|
|
7720
7720
|
plain: {
|
|
7721
|
-
backgroundColor: '#FFFFFF',
|
|
7721
|
+
// backgroundColor: '#FFFFFF',
|
|
7722
7722
|
borderWidth: '2px',
|
|
7723
7723
|
borderColor: '#995EFC'
|
|
7724
7724
|
},
|
|
@@ -7729,13 +7729,13 @@ var STYLE_MAP = exports.STYLE_MAP = {
|
|
|
7729
7729
|
},
|
|
7730
7730
|
slate: {
|
|
7731
7731
|
default: {
|
|
7732
|
-
backgroundColor: '#6575FF'
|
|
7732
|
+
// backgroundColor: '#6575FF'
|
|
7733
7733
|
},
|
|
7734
7734
|
base: {
|
|
7735
|
-
backgroundColor: '#E6E8FF'
|
|
7735
|
+
// backgroundColor: '#E6E8FF'
|
|
7736
7736
|
},
|
|
7737
7737
|
plain: {
|
|
7738
|
-
backgroundColor: '#FFFFFF',
|
|
7738
|
+
// backgroundColor: '#FFFFFF',
|
|
7739
7739
|
borderWidth: '2px',
|
|
7740
7740
|
borderColor: '#6575FF'
|
|
7741
7741
|
},
|
|
@@ -7746,13 +7746,13 @@ var STYLE_MAP = exports.STYLE_MAP = {
|
|
|
7746
7746
|
},
|
|
7747
7747
|
aqua: {
|
|
7748
7748
|
default: {
|
|
7749
|
-
backgroundColor: '#29C3FF'
|
|
7749
|
+
// backgroundColor: '#29C3FF'
|
|
7750
7750
|
},
|
|
7751
7751
|
base: {
|
|
7752
|
-
backgroundColor: '#E6F8FF'
|
|
7752
|
+
// backgroundColor: '#E6F8FF'
|
|
7753
7753
|
},
|
|
7754
7754
|
plain: {
|
|
7755
|
-
backgroundColor: '#FFFFFF',
|
|
7755
|
+
// backgroundColor: '#FFFFFF',
|
|
7756
7756
|
borderWidth: '2px',
|
|
7757
7757
|
borderColor: '#29C3FF'
|
|
7758
7758
|
},
|
|
@@ -7763,13 +7763,13 @@ var STYLE_MAP = exports.STYLE_MAP = {
|
|
|
7763
7763
|
},
|
|
7764
7764
|
turquoise: {
|
|
7765
7765
|
default: {
|
|
7766
|
-
backgroundColor: '#00CBB8'
|
|
7766
|
+
// backgroundColor: '#00CBB8'
|
|
7767
7767
|
},
|
|
7768
7768
|
base: {
|
|
7769
|
-
backgroundColor: '#E6FFFD'
|
|
7769
|
+
// backgroundColor: '#E6FFFD'
|
|
7770
7770
|
},
|
|
7771
7771
|
plain: {
|
|
7772
|
-
backgroundColor: '#FFFFFF',
|
|
7772
|
+
// backgroundColor: '#FFFFFF',
|
|
7773
7773
|
borderWidth: '2px',
|
|
7774
7774
|
borderColor: '#00CBB8'
|
|
7775
7775
|
},
|
|
@@ -7780,13 +7780,13 @@ var STYLE_MAP = exports.STYLE_MAP = {
|
|
|
7780
7780
|
},
|
|
7781
7781
|
yellow: {
|
|
7782
7782
|
default: {
|
|
7783
|
-
backgroundColor: '#FFAA10'
|
|
7783
|
+
// backgroundColor: '#FFAA10'
|
|
7784
7784
|
},
|
|
7785
7785
|
base: {
|
|
7786
|
-
backgroundColor: '#FFF4E0'
|
|
7786
|
+
// backgroundColor: '#FFF4E0'
|
|
7787
7787
|
},
|
|
7788
7788
|
plain: {
|
|
7789
|
-
backgroundColor: '#FFFFFF',
|
|
7789
|
+
// backgroundColor: '#FFFFFF',
|
|
7790
7790
|
borderWidth: '2px',
|
|
7791
7791
|
borderColor: '#FFAA10'
|
|
7792
7792
|
},
|
|
@@ -7797,13 +7797,13 @@ var STYLE_MAP = exports.STYLE_MAP = {
|
|
|
7797
7797
|
},
|
|
7798
7798
|
orange: {
|
|
7799
7799
|
default: {
|
|
7800
|
-
backgroundColor: '#FF8225'
|
|
7800
|
+
// backgroundColor: '#FF8225'
|
|
7801
7801
|
},
|
|
7802
7802
|
base: {
|
|
7803
|
-
backgroundColor: '#FFF0E6'
|
|
7803
|
+
// backgroundColor: '#FFF0E6'
|
|
7804
7804
|
},
|
|
7805
7805
|
plain: {
|
|
7806
|
-
backgroundColor: '#FFFFFF',
|
|
7806
|
+
// backgroundColor: '#FFFFFF',
|
|
7807
7807
|
borderWidth: '2px',
|
|
7808
7808
|
borderColor: '#FF8225'
|
|
7809
7809
|
},
|
|
@@ -7814,13 +7814,13 @@ var STYLE_MAP = exports.STYLE_MAP = {
|
|
|
7814
7814
|
},
|
|
7815
7815
|
tomato: {
|
|
7816
7816
|
default: {
|
|
7817
|
-
backgroundColor: '#FF6A4C'
|
|
7817
|
+
// backgroundColor: '#FF6A4C'
|
|
7818
7818
|
},
|
|
7819
7819
|
base: {
|
|
7820
|
-
backgroundColor: '#FFEaE6'
|
|
7820
|
+
// backgroundColor: '#FFEaE6'
|
|
7821
7821
|
},
|
|
7822
7822
|
plain: {
|
|
7823
|
-
backgroundColor: '#FFFFFF',
|
|
7823
|
+
// backgroundColor: '#FFFFFF',
|
|
7824
7824
|
borderWidth: '2px',
|
|
7825
7825
|
borderColor: '#FF6A4C'
|
|
7826
7826
|
},
|
|
@@ -7831,13 +7831,13 @@ var STYLE_MAP = exports.STYLE_MAP = {
|
|
|
7831
7831
|
},
|
|
7832
7832
|
gray: {
|
|
7833
7833
|
default: {
|
|
7834
|
-
backgroundColor: '#7C879B'
|
|
7834
|
+
// backgroundColor: '#7C879B'
|
|
7835
7835
|
},
|
|
7836
7836
|
base: {
|
|
7837
|
-
backgroundColor: '#CFD7E6'
|
|
7837
|
+
// backgroundColor: '#CFD7E6'
|
|
7838
7838
|
},
|
|
7839
7839
|
plain: {
|
|
7840
|
-
backgroundColor: '#FFFFFF',
|
|
7840
|
+
// backgroundColor: '#FFFFFF',
|
|
7841
7841
|
borderWidth: '2px',
|
|
7842
7842
|
borderColor: '#7C879B'
|
|
7843
7843
|
},
|
|
@@ -7882,13 +7882,13 @@ var STYLE_MAP = exports.STYLE_MAP = {
|
|
|
7882
7882
|
},
|
|
7883
7883
|
colmo: {
|
|
7884
7884
|
default: {
|
|
7885
|
-
backgroundColor: '#B35336'
|
|
7885
|
+
// backgroundColor: '#B35336'
|
|
7886
7886
|
},
|
|
7887
7887
|
base: {
|
|
7888
|
-
backgroundColor: '#292c30'
|
|
7888
|
+
// backgroundColor: '#292c30'
|
|
7889
7889
|
},
|
|
7890
7890
|
plain: {
|
|
7891
|
-
backgroundColor: 'transparent',
|
|
7891
|
+
// backgroundColor: 'transparent',
|
|
7892
7892
|
borderWidth: '2px',
|
|
7893
7893
|
borderColor: '#B35336'
|
|
7894
7894
|
},
|
|
@@ -17305,7 +17305,9 @@ exports.default = {
|
|
|
17305
17305
|
},
|
|
17306
17306
|
defaultBtnStyle: {
|
|
17307
17307
|
type: Object,
|
|
17308
|
-
default: function _default() {
|
|
17308
|
+
default: function _default() {
|
|
17309
|
+
return {};
|
|
17310
|
+
}
|
|
17309
17311
|
},
|
|
17310
17312
|
itemStyle: {
|
|
17311
17313
|
type: Object,
|
|
@@ -35417,12 +35419,6 @@ var animation = weex.requireModule('animation'); //
|
|
|
35417
35419
|
//
|
|
35418
35420
|
//
|
|
35419
35421
|
//
|
|
35420
|
-
//
|
|
35421
|
-
//
|
|
35422
|
-
//
|
|
35423
|
-
//
|
|
35424
|
-
//
|
|
35425
|
-
//
|
|
35426
35422
|
|
|
35427
35423
|
var dom = weex.requireModule('dom');
|
|
35428
35424
|
|
|
@@ -35445,7 +35441,9 @@ exports.default = {
|
|
|
35445
35441
|
props: {
|
|
35446
35442
|
selectRange: {
|
|
35447
35443
|
type: Array,
|
|
35448
|
-
default:
|
|
35444
|
+
default: function _default() {
|
|
35445
|
+
return [0, 0];
|
|
35446
|
+
}
|
|
35449
35447
|
},
|
|
35450
35448
|
length: {
|
|
35451
35449
|
type: Number,
|
|
@@ -35517,7 +35515,8 @@ exports.default = {
|
|
|
35517
35515
|
created: function created() {
|
|
35518
35516
|
if (_utils2.default.env.isWeb()) {
|
|
35519
35517
|
this.env = 'web';
|
|
35520
|
-
this.DPR = window.devicePixelRatio ? window.devicePixelRatio : 1;
|
|
35518
|
+
// this.DPR = window.devicePixelRatio ? window.devicePixelRatio : 1;
|
|
35519
|
+
this.DPR = 2;
|
|
35521
35520
|
} else {
|
|
35522
35521
|
this.DPR = weex.config.env.scale;
|
|
35523
35522
|
}
|
|
@@ -35618,7 +35617,6 @@ exports.default = {
|
|
|
35618
35617
|
}
|
|
35619
35618
|
},
|
|
35620
35619
|
methods: {
|
|
35621
|
-
|
|
35622
35620
|
// 更新单选值或最小值
|
|
35623
35621
|
weexHandler1: function weexHandler1(e) {
|
|
35624
35622
|
var _this2 = this;
|
|
@@ -35724,7 +35722,7 @@ exports.default = {
|
|
|
35724
35722
|
if (this.env === 'weex') {
|
|
35725
35723
|
return;
|
|
35726
35724
|
}
|
|
35727
|
-
this.startX = e.
|
|
35725
|
+
this.startX = e.changedTouches[0].pageX;
|
|
35728
35726
|
this.startDiffX1 = this.diffX1;
|
|
35729
35727
|
this.startDiffX2 = this.diffX2;
|
|
35730
35728
|
},
|
|
@@ -35733,7 +35731,7 @@ exports.default = {
|
|
|
35733
35731
|
return;
|
|
35734
35732
|
}
|
|
35735
35733
|
|
|
35736
|
-
var deltaX = (e.
|
|
35734
|
+
var deltaX = (e.changedTouches[0].pageX - this.startX) * this.DPR;
|
|
35737
35735
|
var diff = this.startDiffX1 + deltaX;
|
|
35738
35736
|
|
|
35739
35737
|
var max = this.length;
|
|
@@ -35761,7 +35759,7 @@ exports.default = {
|
|
|
35761
35759
|
return;
|
|
35762
35760
|
}
|
|
35763
35761
|
|
|
35764
|
-
var deltaX = (e.
|
|
35762
|
+
var deltaX = (e.changedTouches[0].pageX - this.startX) * this.DPR;
|
|
35765
35763
|
var diff = this.startDiffX2 + deltaX;
|
|
35766
35764
|
var min = this.diffX1 + this.minDist;
|
|
35767
35765
|
var max = this.length;
|
|
@@ -37332,7 +37330,7 @@ exports.default = {
|
|
|
37332
37330
|
|
|
37333
37331
|
|
|
37334
37332
|
Object.defineProperty(exports, "__esModule", {
|
|
37335
|
-
|
|
37333
|
+
value: true
|
|
37336
37334
|
});
|
|
37337
37335
|
|
|
37338
37336
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
@@ -37353,148 +37351,159 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
37353
37351
|
//
|
|
37354
37352
|
//
|
|
37355
37353
|
//
|
|
37354
|
+
//
|
|
37355
|
+
//
|
|
37356
|
+
//
|
|
37357
|
+
//
|
|
37358
|
+
//
|
|
37359
|
+
//
|
|
37360
|
+
//
|
|
37361
|
+
//
|
|
37362
|
+
//
|
|
37363
|
+
//
|
|
37364
|
+
//
|
|
37356
37365
|
|
|
37357
37366
|
var domModule = weex.requireModule('dom');
|
|
37358
37367
|
exports.default = {
|
|
37359
|
-
|
|
37360
|
-
|
|
37361
|
-
|
|
37362
|
-
|
|
37363
|
-
|
|
37364
|
-
|
|
37365
|
-
},
|
|
37366
|
-
stylesConfig: {
|
|
37367
|
-
type: Object,
|
|
37368
|
-
default: function _default() {
|
|
37369
|
-
return {};
|
|
37370
|
-
}
|
|
37371
|
-
},
|
|
37372
|
-
showLine: {
|
|
37373
|
-
type: Boolean,
|
|
37374
|
-
default: false
|
|
37375
|
-
}
|
|
37368
|
+
props: {
|
|
37369
|
+
list: {
|
|
37370
|
+
type: Array,
|
|
37371
|
+
default: function _default() {
|
|
37372
|
+
return [];
|
|
37373
|
+
}
|
|
37376
37374
|
},
|
|
37377
|
-
|
|
37378
|
-
|
|
37379
|
-
|
|
37380
|
-
|
|
37381
|
-
|
|
37382
|
-
};
|
|
37375
|
+
stylesConfig: {
|
|
37376
|
+
type: Object,
|
|
37377
|
+
default: function _default() {
|
|
37378
|
+
return {};
|
|
37379
|
+
}
|
|
37383
37380
|
},
|
|
37381
|
+
showLine: {
|
|
37382
|
+
type: Boolean,
|
|
37383
|
+
default: false
|
|
37384
|
+
}
|
|
37385
|
+
},
|
|
37386
|
+
data: function data() {
|
|
37387
|
+
return {
|
|
37388
|
+
componentWidth: 750,
|
|
37389
|
+
activeIndex: -1,
|
|
37390
|
+
linePos: []
|
|
37391
|
+
};
|
|
37392
|
+
},
|
|
37384
37393
|
|
|
37385
|
-
|
|
37386
|
-
|
|
37387
|
-
|
|
37394
|
+
watch: {
|
|
37395
|
+
list: function list(newVal) {
|
|
37396
|
+
var _this = this;
|
|
37388
37397
|
|
|
37389
|
-
|
|
37390
|
-
|
|
37391
|
-
|
|
37392
|
-
|
|
37393
|
-
|
|
37394
|
-
|
|
37398
|
+
this.$nextTick(function () {
|
|
37399
|
+
setTimeout(function () {
|
|
37400
|
+
_this.init();
|
|
37401
|
+
}, 100);
|
|
37402
|
+
});
|
|
37403
|
+
}
|
|
37404
|
+
},
|
|
37405
|
+
computed: {
|
|
37406
|
+
formattedList: function formattedList() {
|
|
37407
|
+
var formattedList = this.formatList(this.list);
|
|
37408
|
+
return formattedList;
|
|
37395
37409
|
},
|
|
37396
|
-
|
|
37397
|
-
|
|
37398
|
-
|
|
37399
|
-
},
|
|
37400
|
-
rowStyles: function rowStyles() {
|
|
37401
|
-
var _stylesConfig$rowStyl = this.stylesConfig.rowStyles,
|
|
37402
|
-
rowStyles = _stylesConfig$rowStyl === undefined ? {} : _stylesConfig$rowStyl;
|
|
37403
|
-
|
|
37404
|
-
//处理行
|
|
37410
|
+
rowStyles: function rowStyles() {
|
|
37411
|
+
var _stylesConfig$rowStyl = this.stylesConfig.rowStyles,
|
|
37412
|
+
rowStyles = _stylesConfig$rowStyl === undefined ? {} : _stylesConfig$rowStyl;
|
|
37405
37413
|
|
|
37406
|
-
|
|
37407
|
-
}
|
|
37408
|
-
},
|
|
37409
|
-
methods: {
|
|
37410
|
-
init: function init() {
|
|
37411
|
-
var _this2 = this;
|
|
37414
|
+
//处理行
|
|
37412
37415
|
|
|
37413
|
-
|
|
37414
|
-
|
|
37415
|
-
|
|
37416
|
-
|
|
37417
|
-
|
|
37418
|
-
|
|
37419
|
-
_this2.linePos[0]['margin-left'] = data.size.width / 2 + 8;
|
|
37420
|
-
});
|
|
37421
|
-
}
|
|
37422
|
-
this.list.forEach(function (item, index, arr) {
|
|
37423
|
-
// 确定条线的宽度
|
|
37424
|
-
domModule.getComponentRect(_this2.$refs['point' + index][0], function (data) {
|
|
37425
|
-
if (index == 0) {
|
|
37426
|
-
_this2.linePos[index]['data-right'] = data.size.right;
|
|
37427
|
-
} else {
|
|
37428
|
-
_this2.linePos[index]['data-right'] = data.size.right;
|
|
37429
|
-
_this2.linePos[index - 1]['width'] = data.size.left - _this2.linePos[index - 1]['data-right'];
|
|
37430
|
-
}
|
|
37431
|
-
});
|
|
37432
|
-
});
|
|
37433
|
-
},
|
|
37434
|
-
formatList: function formatList(list) {
|
|
37435
|
-
var _this3 = this;
|
|
37436
|
-
|
|
37437
|
-
var tempList = JSON.parse(JSON.stringify(list));
|
|
37438
|
-
var _stylesConfig = this.stylesConfig,
|
|
37439
|
-
_stylesConfig$actived = _stylesConfig.activedColor,
|
|
37440
|
-
activedColor = _stylesConfig$actived === undefined ? '#00de51' : _stylesConfig$actived,
|
|
37441
|
-
_stylesConfig$pointSt = _stylesConfig.pointStyles,
|
|
37442
|
-
pointStyles = _stylesConfig$pointSt === undefined ? {} : _stylesConfig$pointSt,
|
|
37443
|
-
_stylesConfig$lineSty = _stylesConfig.lineStyles,
|
|
37444
|
-
lineStyles = _stylesConfig$lineSty === undefined ? {} : _stylesConfig$lineSty,
|
|
37445
|
-
_stylesConfig$descSty = _stylesConfig.descStyles,
|
|
37446
|
-
descStyles = _stylesConfig$descSty === undefined ? {} : _stylesConfig$descSty,
|
|
37447
|
-
_stylesConfig$columnS = _stylesConfig.columnStyles,
|
|
37448
|
-
columnStyles = _stylesConfig$columnS === undefined ? {} : _stylesConfig$columnS;
|
|
37449
|
-
|
|
37450
|
-
|
|
37451
|
-
tempList.forEach(function (item, index) {
|
|
37452
|
-
if (item.isActived) _this3.activeIndex = index;
|
|
37453
|
-
});
|
|
37416
|
+
return _extends({}, rowStyles);
|
|
37417
|
+
}
|
|
37418
|
+
},
|
|
37419
|
+
methods: {
|
|
37420
|
+
init: function init() {
|
|
37421
|
+
var _this2 = this;
|
|
37454
37422
|
|
|
37455
|
-
|
|
37456
|
-
|
|
37457
|
-
|
|
37458
|
-
|
|
37423
|
+
this.list.forEach(function (item) {
|
|
37424
|
+
_this2.linePos.push({ width: 0 });
|
|
37425
|
+
});
|
|
37426
|
+
// 确定第一条线的左边距离
|
|
37427
|
+
if (this.linePos.length > 0) {
|
|
37428
|
+
domModule.getComponentRect(this.$refs['item0'][0], function (data) {
|
|
37429
|
+
_this2.linePos[0]['margin-left'] = data.size.width / 2 + 8 + 'px';
|
|
37430
|
+
});
|
|
37431
|
+
}
|
|
37432
|
+
this.list.forEach(function (item, index, arr) {
|
|
37433
|
+
// 确定条线的宽度
|
|
37434
|
+
domModule.getComponentRect(_this2.$refs['point' + index][0], function (data) {
|
|
37435
|
+
if (index == 0) {
|
|
37436
|
+
_this2.linePos[index]['data-right'] = data.size.right;
|
|
37437
|
+
} else {
|
|
37438
|
+
_this2.linePos[index]['data-right'] = data.size.right;
|
|
37439
|
+
_this2.linePos[index - 1]['width'] = data.size.left - _this2.linePos[index - 1]['data-right'] + 'px';
|
|
37440
|
+
}
|
|
37441
|
+
});
|
|
37442
|
+
});
|
|
37443
|
+
},
|
|
37444
|
+
formatList: function formatList(list) {
|
|
37445
|
+
var _this3 = this;
|
|
37459
37446
|
|
|
37460
|
-
|
|
37461
|
-
|
|
37447
|
+
var tempList = JSON.parse(JSON.stringify(list));
|
|
37448
|
+
var _stylesConfig = this.stylesConfig,
|
|
37449
|
+
_stylesConfig$actived = _stylesConfig.activedColor,
|
|
37450
|
+
activedColor = _stylesConfig$actived === undefined ? '#00de51' : _stylesConfig$actived,
|
|
37451
|
+
_stylesConfig$pointSt = _stylesConfig.pointStyles,
|
|
37452
|
+
pointStyles = _stylesConfig$pointSt === undefined ? {} : _stylesConfig$pointSt,
|
|
37453
|
+
_stylesConfig$lineSty = _stylesConfig.lineStyles,
|
|
37454
|
+
lineStyles = _stylesConfig$lineSty === undefined ? {} : _stylesConfig$lineSty,
|
|
37455
|
+
_stylesConfig$descSty = _stylesConfig.descStyles,
|
|
37456
|
+
descStyles = _stylesConfig$descSty === undefined ? {} : _stylesConfig$descSty,
|
|
37457
|
+
_stylesConfig$columnS = _stylesConfig.columnStyles,
|
|
37458
|
+
columnStyles = _stylesConfig$columnS === undefined ? {} : _stylesConfig$columnS;
|
|
37459
|
+
|
|
37460
|
+
|
|
37461
|
+
tempList.forEach(function (item, index) {
|
|
37462
|
+
if (item.isActived) _this3.activeIndex = index;
|
|
37463
|
+
});
|
|
37462
37464
|
|
|
37463
|
-
|
|
37464
|
-
|
|
37465
|
-
|
|
37466
|
-
|
|
37465
|
+
var result = [];
|
|
37466
|
+
result = tempList.map(function (item, index) {
|
|
37467
|
+
//处理列
|
|
37468
|
+
item['columnStyles'] = _extends({}, item['columnStyles'], columnStyles);
|
|
37467
37469
|
|
|
37468
|
-
|
|
37469
|
-
|
|
37470
|
-
if (index < _this3.activeIndex) {
|
|
37471
|
-
item['lineStyles']['border-top-color'] = activedColor;
|
|
37472
|
-
item['lineStyles']['opacity'] = 1;
|
|
37473
|
-
}
|
|
37470
|
+
//处理节点point
|
|
37471
|
+
item['pointStyles'] = _extends({}, item['pointStyles'], pointStyles);
|
|
37474
37472
|
|
|
37475
|
-
|
|
37476
|
-
|
|
37477
|
-
|
|
37478
|
-
|
|
37479
|
-
item['descStyles']['opacity'] = 1;
|
|
37480
|
-
}
|
|
37473
|
+
if (index <= _this3.activeIndex) {
|
|
37474
|
+
item['pointStyles']['background-color'] = activedColor;
|
|
37475
|
+
item['pointStyles']['opacity'] = 1;
|
|
37476
|
+
}
|
|
37481
37477
|
|
|
37482
|
-
|
|
37483
|
-
|
|
37478
|
+
//处理节点线条
|
|
37479
|
+
item['lineStyles'] = _extends({}, item['lineStyles'], lineStyles);
|
|
37480
|
+
if (index < _this3.activeIndex) {
|
|
37481
|
+
item['lineStyles']['border-top-color'] = activedColor;
|
|
37482
|
+
item['lineStyles']['opacity'] = 1;
|
|
37483
|
+
}
|
|
37484
37484
|
|
|
37485
|
-
|
|
37486
|
-
|
|
37485
|
+
//处理内容
|
|
37486
|
+
item['descStyles'] = _extends({}, item['descStyles'], descStyles);
|
|
37487
|
+
if (item.isActived && activedColor) {
|
|
37488
|
+
item['descStyles']['color'] = activedColor;
|
|
37489
|
+
item['descStyles']['opacity'] = 1;
|
|
37487
37490
|
}
|
|
37488
|
-
},
|
|
37489
|
-
mounted: function mounted() {
|
|
37490
|
-
var _this4 = this;
|
|
37491
37491
|
|
|
37492
|
-
|
|
37493
|
-
|
|
37494
|
-
|
|
37495
|
-
|
|
37496
|
-
});
|
|
37492
|
+
return item;
|
|
37493
|
+
});
|
|
37494
|
+
|
|
37495
|
+
return result;
|
|
37497
37496
|
}
|
|
37497
|
+
},
|
|
37498
|
+
mounted: function mounted() {
|
|
37499
|
+
var _this4 = this;
|
|
37500
|
+
|
|
37501
|
+
this.$nextTick(function () {
|
|
37502
|
+
setTimeout(function () {
|
|
37503
|
+
_this4.init();
|
|
37504
|
+
}, 100);
|
|
37505
|
+
});
|
|
37506
|
+
}
|
|
37498
37507
|
};
|
|
37499
37508
|
|
|
37500
37509
|
/***/ }),
|
|
@@ -42165,7 +42174,6 @@ module.exports = {
|
|
|
42165
42174
|
"height": "96",
|
|
42166
42175
|
"borderRadius": "48",
|
|
42167
42176
|
"backgroundColor": "#ffffff",
|
|
42168
|
-
"flex": 1,
|
|
42169
42177
|
"flexDirection": "row",
|
|
42170
42178
|
"justifyContent": "center",
|
|
42171
42179
|
"alignItems": "center"
|
|
@@ -46080,93 +46088,123 @@ module.exports = {
|
|
|
46080
46088
|
"backgroundColor:active": "rgba(255,255,255,0.1)"
|
|
46081
46089
|
},
|
|
46082
46090
|
"dof-btn-highlight-primary-default": {
|
|
46091
|
+
"backgroundColor": "#267aff",
|
|
46083
46092
|
"backgroundColor:active": "#226de5"
|
|
46084
46093
|
},
|
|
46085
46094
|
"dof-btn-highlight-primary-base": {
|
|
46095
|
+
"backgroundColor": "#e9f1ff",
|
|
46086
46096
|
"backgroundColor:active": "#d1d8e5"
|
|
46087
46097
|
},
|
|
46088
46098
|
"dof-btn-highlight-primary-plain": {
|
|
46099
|
+
"backgroundColor": "#ffffff",
|
|
46089
46100
|
"backgroundColor:active": "rgba(38,122,255,0.1)"
|
|
46090
46101
|
},
|
|
46091
46102
|
"dof-btn-highlight-purple-default": {
|
|
46103
|
+
"backgroundColor": "#995efc",
|
|
46092
46104
|
"backgroundColor:active": "#8a54e3"
|
|
46093
46105
|
},
|
|
46094
46106
|
"dof-btn-highlight-purple-base": {
|
|
46107
|
+
"backgroundColor": "#eee6ff",
|
|
46095
46108
|
"backgroundColor:active": "#d5cee5"
|
|
46096
46109
|
},
|
|
46097
46110
|
"dof-btn-highlight-purple-plain": {
|
|
46111
|
+
"backgroundColor": "#ffffff",
|
|
46098
46112
|
"backgroundColor:active": "rgba(153,94,252,0.1)"
|
|
46099
46113
|
},
|
|
46100
46114
|
"dof-btn-highlight-slate-default": {
|
|
46115
|
+
"backgroundColor": "#6575ff",
|
|
46101
46116
|
"backgroundColor:active": "#5b69e6"
|
|
46102
46117
|
},
|
|
46103
46118
|
"dof-btn-highlight-slate-base": {
|
|
46119
|
+
"backgroundColor": "#e6e8ff",
|
|
46104
46120
|
"backgroundColor:active": "#ced0e5"
|
|
46105
46121
|
},
|
|
46106
46122
|
"dof-btn-highlight-slate-plain": {
|
|
46123
|
+
"backgroundColor": "#ffffff",
|
|
46107
46124
|
"backgroundColor:active": "rgba(101,117,255,0.1)"
|
|
46108
46125
|
},
|
|
46109
46126
|
"dof-btn-highlight-aqua-default": {
|
|
46127
|
+
"backgroundColor": "#29c3ff",
|
|
46110
46128
|
"backgroundColor:active": "#24afe6"
|
|
46111
46129
|
},
|
|
46112
46130
|
"dof-btn-highlight-aqua-base": {
|
|
46131
|
+
"backgroundColor": "#e6f8ff",
|
|
46113
46132
|
"backgroundColor:active": "#cedee5"
|
|
46114
46133
|
},
|
|
46115
46134
|
"dof-btn-highlight-aqua-plain": {
|
|
46135
|
+
"backgroundColor": "#ffffff",
|
|
46116
46136
|
"backgroundColor:active": "rgba(41,195,255,0.1)"
|
|
46117
46137
|
},
|
|
46118
46138
|
"dof-btn-highlight-turquoise-default": {
|
|
46139
|
+
"backgroundColor": "#00cbb8",
|
|
46119
46140
|
"backgroundColor:active": "#00b7a5"
|
|
46120
46141
|
},
|
|
46121
46142
|
"dof-btn-highlight-turquoise-base": {
|
|
46143
|
+
"backgroundColor": "#e6fffd",
|
|
46122
46144
|
"backgroundColor:active": "#cee5e3"
|
|
46123
46145
|
},
|
|
46124
46146
|
"dof-btn-highlight-turquoise-plain": {
|
|
46147
|
+
"backgroundColor": "#ffffff",
|
|
46125
46148
|
"backgroundColor:active": "rgba(0,203,184,0.1)"
|
|
46126
46149
|
},
|
|
46127
46150
|
"dof-btn-highlight-yellow-default": {
|
|
46151
|
+
"backgroundColor": "#ffaa10",
|
|
46128
46152
|
"backgroundColor:active": "#e5980e"
|
|
46129
46153
|
},
|
|
46130
46154
|
"dof-btn-highlight-yellow-base": {
|
|
46155
|
+
"backgroundColor": "#fff4e0",
|
|
46131
46156
|
"backgroundColor:active": "#e5dbc9"
|
|
46132
46157
|
},
|
|
46133
46158
|
"dof-btn-highlight-yellow-plain": {
|
|
46159
|
+
"backgroundColor": "#ffffff",
|
|
46134
46160
|
"backgroundColor:active": "rgba(255,170,16,0.1)"
|
|
46135
46161
|
},
|
|
46136
46162
|
"dof-btn-highlight-orange-default": {
|
|
46163
|
+
"backgroundColor": "#ff8225",
|
|
46137
46164
|
"backgroundColor:active": "#e67521"
|
|
46138
46165
|
},
|
|
46139
46166
|
"dof-btn-highlight-orange-base": {
|
|
46167
|
+
"backgroundColor": "#fff0e6",
|
|
46140
46168
|
"backgroundColor:active": "#e5d7ce"
|
|
46141
46169
|
},
|
|
46142
46170
|
"dof-btn-highlight-orange-plain": {
|
|
46171
|
+
"backgroundColor": "#ffffff",
|
|
46143
46172
|
"backgroundColor:active": "rgba(255,130,37,0.1)"
|
|
46144
46173
|
},
|
|
46145
46174
|
"dof-btn-highlight-tomato-default": {
|
|
46175
|
+
"backgroundColor": "#ff6a4c",
|
|
46146
46176
|
"backgroundColor:active": "#e65f44"
|
|
46147
46177
|
},
|
|
46148
46178
|
"dof-btn-highlight-tomato-base": {
|
|
46179
|
+
"backgroundColor": "#ffeae6",
|
|
46149
46180
|
"backgroundColor:active": "#e6d3cf"
|
|
46150
46181
|
},
|
|
46151
46182
|
"dof-btn-highlight-tomato-plain": {
|
|
46183
|
+
"backgroundColor": "#ffffff",
|
|
46152
46184
|
"backgroundColor:active": "rgba(255,106,76,0.1)"
|
|
46153
46185
|
},
|
|
46154
46186
|
"dof-btn-highlight-gray-default": {
|
|
46187
|
+
"backgroundColor": "#7c879b",
|
|
46155
46188
|
"backgroundColor:active": "#6f798b"
|
|
46156
46189
|
},
|
|
46157
46190
|
"dof-btn-highlight-gray-base": {
|
|
46191
|
+
"backgroundColor": "#cfd7e6",
|
|
46158
46192
|
"backgroundColor:active": "#b9c1ce"
|
|
46159
46193
|
},
|
|
46160
46194
|
"dof-btn-highlight-gray-plain": {
|
|
46195
|
+
"backgroundColor": "#ffffff",
|
|
46161
46196
|
"backgroundColor:active": "rgba(124,135,155,0.1)"
|
|
46162
46197
|
},
|
|
46163
46198
|
"dof-btn-highlight-colmo-default": {
|
|
46199
|
+
"backgroundColor": "#b35336",
|
|
46164
46200
|
"backgroundColor:active": "#743d2a"
|
|
46165
46201
|
},
|
|
46166
46202
|
"dof-btn-highlight-colmo-base": {
|
|
46203
|
+
"backgroundColor": "#292c30",
|
|
46167
46204
|
"backgroundColor:active": "rgba(0,0,0,0.3)"
|
|
46168
46205
|
},
|
|
46169
46206
|
"dof-btn-highlight-colmo-plain": {
|
|
46207
|
+
"backgroundColor": "rgba(0,0,0,0)",
|
|
46170
46208
|
"backgroundColor:active": "#636569"
|
|
46171
46209
|
},
|
|
46172
46210
|
"btn-text": {
|
|
@@ -50129,7 +50167,8 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
50129
50167
|
return [(index < _vm.formattedList.length - 1) ? _c('div', {
|
|
50130
50168
|
key: 'line' + index,
|
|
50131
50169
|
class: ['step-line', _vm.showLine && 'hline'],
|
|
50132
|
-
style:
|
|
50170
|
+
style: Object.assign({}, item.lineStyles,
|
|
50171
|
+
_vm.linePos[index])
|
|
50133
50172
|
}) : _vm._e()]
|
|
50134
50173
|
})], 2), _vm._l((_vm.formattedList), function(item, index) {
|
|
50135
50174
|
return _c('div', {
|