dolphin-weex-ui 1.3.1 → 1.3.2
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 +21 -0
- package/dist/index.native.js +71 -66
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +66 -62
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/dof-cell/index.vue +4 -1
- package/packages/dof-diamond-tab/index.vue +3 -4
- package/packages/dof-switch/index.vue +58 -56
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
# 升级日志
|
|
2
|
+
|
|
3
|
+
## 1.3.2
|
|
4
|
+
|
|
5
|
+
- [ ! ] dof-cell 新增左侧图标插槽 slot name="leftImg"
|
|
6
|
+
- [ ! ] dof-switch 新增 borderColor,backgroundColor等参数支持colmo样式
|
|
7
|
+
- [ ! ] date: 2023/07/24
|
|
8
|
+
|
|
9
|
+
## 1.3.1
|
|
10
|
+
|
|
11
|
+
- [ + ] dof-diamond-tab 新增菱形标签组件
|
|
12
|
+
- [ + ] midea-circle-progress-view 新增圆环进度原生组件
|
|
13
|
+
- [ ! ] dof-slider 新增滑动条渐变样式(示例中可切换标签查看新样式)
|
|
14
|
+
- [ ! ] dof-card-icon 新增参数支持配置背景,指示箭头,点击反馈,震动反馈等
|
|
15
|
+
- [ ! ] dof-modal 新增参数支持配置直角,背景,图片弹窗,单选弹窗等新样式
|
|
16
|
+
- [ ! ] dof-card-small 新增参数支持配置直角,背景,右上角标记,点击反馈等新样式
|
|
17
|
+
- [ ! ] dof-button 新增 type:colmo[#B35336]
|
|
18
|
+
- [ ! ] dof-switch 新增 type:colmo[#B35336]
|
|
19
|
+
- [ ! ] dof-popup 新增 borderRadius参数支持配置直角
|
|
20
|
+
- [ ! ] dof-actionsheet 新增 borderRadius参数支持配置直角
|
|
21
|
+
- [ ! ] date: 2023/07/20
|
|
22
|
+
|
|
2
23
|
## 1.2.2
|
|
3
24
|
- [!] dof-result 组件增加背景色参数
|
|
4
25
|
- date: 2023/06/26
|
package/dist/index.native.js
CHANGED
|
@@ -17010,6 +17010,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
17010
17010
|
//
|
|
17011
17011
|
//
|
|
17012
17012
|
//
|
|
17013
|
+
//
|
|
17014
|
+
//
|
|
17015
|
+
//
|
|
17013
17016
|
|
|
17014
17017
|
var icon = __webpack_require__(1);
|
|
17015
17018
|
var modal = weex.requireModule('modal');
|
|
@@ -20227,7 +20230,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
20227
20230
|
//
|
|
20228
20231
|
//
|
|
20229
20232
|
//
|
|
20230
|
-
//
|
|
20231
20233
|
|
|
20232
20234
|
exports.default = {
|
|
20233
20235
|
props: {
|
|
@@ -34856,6 +34858,9 @@ var _utils = __webpack_require__(119);
|
|
|
34856
34858
|
//
|
|
34857
34859
|
//
|
|
34858
34860
|
//
|
|
34861
|
+
//
|
|
34862
|
+
//
|
|
34863
|
+
//
|
|
34859
34864
|
|
|
34860
34865
|
// 带switch按钮的cell
|
|
34861
34866
|
var animation = weex.requireModule('animation');
|
|
@@ -34884,6 +34889,22 @@ exports.default = {
|
|
|
34884
34889
|
blindHelptext: {
|
|
34885
34890
|
type: String,
|
|
34886
34891
|
default: ''
|
|
34892
|
+
},
|
|
34893
|
+
borderColor: {
|
|
34894
|
+
type: String,
|
|
34895
|
+
default: ''
|
|
34896
|
+
},
|
|
34897
|
+
backgroundColor: {
|
|
34898
|
+
type: String,
|
|
34899
|
+
default: ''
|
|
34900
|
+
},
|
|
34901
|
+
isScale: {
|
|
34902
|
+
typeof: Boolean,
|
|
34903
|
+
default: true
|
|
34904
|
+
},
|
|
34905
|
+
dotColor: {
|
|
34906
|
+
typeof: String,
|
|
34907
|
+
default: ''
|
|
34887
34908
|
}
|
|
34888
34909
|
},
|
|
34889
34910
|
computed: {
|
|
@@ -34899,30 +34920,14 @@ exports.default = {
|
|
|
34899
34920
|
return this.disabled ? { opacity: 0.3 } : this.loading ? { opacity: 0 } : { opacity: 1 };
|
|
34900
34921
|
},
|
|
34901
34922
|
dotStyle: function dotStyle() {
|
|
34902
|
-
|
|
34903
|
-
|
|
34904
|
-
|
|
34905
|
-
|
|
34906
|
-
|
|
34907
|
-
|
|
34908
|
-
|
|
34909
|
-
|
|
34910
|
-
} else {
|
|
34911
|
-
return {
|
|
34912
|
-
backgroundColor: '#8a8a8f'
|
|
34913
|
-
};
|
|
34914
|
-
}
|
|
34915
|
-
} else {
|
|
34916
|
-
if (checked === true) {
|
|
34917
|
-
return {
|
|
34918
|
-
backgroundColor: '#000000'
|
|
34919
|
-
};
|
|
34920
|
-
} else {
|
|
34921
|
-
return {
|
|
34922
|
-
backgroundColor: '#ffffff'
|
|
34923
|
-
};
|
|
34924
|
-
}
|
|
34925
|
-
}
|
|
34923
|
+
return {};
|
|
34924
|
+
},
|
|
34925
|
+
customStyle: function customStyle() {
|
|
34926
|
+
var res = {};
|
|
34927
|
+
// res.borderWidth = '4px'
|
|
34928
|
+
if (this.borderColor) res.borderColor = this.borderColor;
|
|
34929
|
+
if (this.backgroundColor) res.backgroundColor = this.backgroundColor;
|
|
34930
|
+
return res;
|
|
34926
34931
|
}
|
|
34927
34932
|
},
|
|
34928
34933
|
data: function data() {
|
|
@@ -34930,11 +34935,21 @@ exports.default = {
|
|
|
34930
34935
|
},
|
|
34931
34936
|
mounted: function mounted() {
|
|
34932
34937
|
if (this.checked) {
|
|
34933
|
-
var dotColor = this.type === 'white' ? '#000000' : '#ffffff';
|
|
34938
|
+
var dotColor = this.dotColor ? this.dotColor : this.type === 'white' ? '#000000' : '#ffffff';
|
|
34934
34939
|
animation.transition(this.$refs.switchDot, {
|
|
34935
34940
|
styles: {
|
|
34936
34941
|
backgroundColor: dotColor,
|
|
34937
|
-
transform: 'translateX(
|
|
34942
|
+
transform: 'translateX(46px) scale(2.25)'
|
|
34943
|
+
},
|
|
34944
|
+
duration: 0
|
|
34945
|
+
});
|
|
34946
|
+
} else {
|
|
34947
|
+
var _dotColor = this.type === 'white' ? '#ffffff' : '#8A8A8F';
|
|
34948
|
+
|
|
34949
|
+
animation.transition(this.$refs.switchDot, {
|
|
34950
|
+
styles: {
|
|
34951
|
+
transform: !this.isScale ? 'translateX(2px) scale(2.25)' : 'translateX(2px) scale(1.0)',
|
|
34952
|
+
backgroundColor: _dotColor
|
|
34938
34953
|
},
|
|
34939
34954
|
duration: 0
|
|
34940
34955
|
});
|
|
@@ -34956,31 +34971,18 @@ exports.default = {
|
|
|
34956
34971
|
var dotColor = this.type === 'white' ? '#000000' : '#ffffff';
|
|
34957
34972
|
animation.transition(this.$refs.switchDot, {
|
|
34958
34973
|
styles: {
|
|
34959
|
-
|
|
34960
|
-
|
|
34961
|
-
duration: 0,
|
|
34962
|
-
delay: 10
|
|
34963
|
-
});
|
|
34964
|
-
animation.transition(this.$refs.switchDot, {
|
|
34965
|
-
styles: {
|
|
34966
|
-
transform: 'translateX(52px) scale(2.25)'
|
|
34974
|
+
transform: 'translateX(46px) scale(2.25)',
|
|
34975
|
+
backgroundColor: this.dotColor ? this.dotColor : dotColor
|
|
34967
34976
|
},
|
|
34968
34977
|
duration: 300,
|
|
34969
34978
|
timingFunction: 'ease-out'
|
|
34970
34979
|
});
|
|
34971
34980
|
} else if (newVal === false && oldVal === true) {
|
|
34972
|
-
var
|
|
34981
|
+
var _dotColor2 = this.type === 'white' ? '#ffffff' : '#8A8A8F';
|
|
34973
34982
|
animation.transition(this.$refs.switchDot, {
|
|
34974
34983
|
styles: {
|
|
34975
|
-
backgroundColor:
|
|
34976
|
-
|
|
34977
|
-
duration: 0,
|
|
34978
|
-
delay: 10
|
|
34979
|
-
});
|
|
34980
|
-
animation.transition(this.$refs.switchDot, {
|
|
34981
|
-
styles: {
|
|
34982
|
-
backgroundColor: _dotColor,
|
|
34983
|
-
transform: 'translateX(0px) scale(1)'
|
|
34984
|
+
backgroundColor: _dotColor2,
|
|
34985
|
+
transform: this.isScale ? 'translateX(2px) scale(1)' : 'translateX(2px) scale(2.25)'
|
|
34984
34986
|
},
|
|
34985
34987
|
duration: 300,
|
|
34986
34988
|
timingFunction: 'ease-out'
|
|
@@ -40514,63 +40516,63 @@ module.exports = {
|
|
|
40514
40516
|
"marginRight": "12"
|
|
40515
40517
|
},
|
|
40516
40518
|
"switch-active-default": {
|
|
40517
|
-
"
|
|
40519
|
+
"borderColor": "#267aff",
|
|
40518
40520
|
"backgroundColor": "#267aff"
|
|
40519
40521
|
},
|
|
40520
40522
|
"switch-active-purple": {
|
|
40521
|
-
"
|
|
40523
|
+
"borderColor": "#995efc",
|
|
40522
40524
|
"backgroundColor": "#995efc"
|
|
40523
40525
|
},
|
|
40524
40526
|
"switch-active-slate": {
|
|
40525
|
-
"
|
|
40527
|
+
"borderColor": "#6575ff",
|
|
40526
40528
|
"backgroundColor": "#6575ff"
|
|
40527
40529
|
},
|
|
40528
40530
|
"switch-active-aqua": {
|
|
40529
|
-
"
|
|
40531
|
+
"borderColor": "#29c3ff",
|
|
40530
40532
|
"backgroundColor": "#29c3ff"
|
|
40531
40533
|
},
|
|
40532
40534
|
"switch-active-turquoise": {
|
|
40533
|
-
"
|
|
40535
|
+
"borderColor": "#00cbb8",
|
|
40534
40536
|
"backgroundColor": "#00cbb8"
|
|
40535
40537
|
},
|
|
40536
40538
|
"switch-active-orange-red": {
|
|
40537
|
-
"
|
|
40539
|
+
"borderColor": "#ff6a4c",
|
|
40538
40540
|
"backgroundColor": "#ff6a4c"
|
|
40539
40541
|
},
|
|
40540
40542
|
"switch-active-red": {
|
|
40541
|
-
"
|
|
40543
|
+
"borderColor": "#e61e1e",
|
|
40542
40544
|
"backgroundColor": "#e61e1e"
|
|
40543
40545
|
},
|
|
40544
40546
|
"switch-active-brown": {
|
|
40545
|
-
"
|
|
40547
|
+
"borderColor": "#86696b",
|
|
40546
40548
|
"backgroundColor": "#86696b"
|
|
40547
40549
|
},
|
|
40548
40550
|
"switch-active-tomato": {
|
|
40549
|
-
"
|
|
40551
|
+
"borderColor": "#fe674a",
|
|
40550
40552
|
"backgroundColor": "#fe674a"
|
|
40551
40553
|
},
|
|
40552
40554
|
"switch-active-orange": {
|
|
40553
|
-
"
|
|
40555
|
+
"borderColor": "#ff8225",
|
|
40554
40556
|
"backgroundColor": "#ff8225"
|
|
40555
40557
|
},
|
|
40556
40558
|
"switch-active-yellow": {
|
|
40557
|
-
"
|
|
40559
|
+
"borderColor": "#ffaa10",
|
|
40558
40560
|
"backgroundColor": "#ffaa10"
|
|
40559
40561
|
},
|
|
40560
40562
|
"switch-active-gray": {
|
|
40561
|
-
"
|
|
40563
|
+
"borderColor": "#7c879b",
|
|
40562
40564
|
"backgroundColor": "#7c879b"
|
|
40563
40565
|
},
|
|
40564
40566
|
"switch-active-white": {
|
|
40565
|
-
"
|
|
40567
|
+
"borderColor": "#ffffff",
|
|
40566
40568
|
"backgroundColor": "#ffffff"
|
|
40567
40569
|
},
|
|
40568
40570
|
"switch-active-deepSteelblue": {
|
|
40569
|
-
"
|
|
40571
|
+
"borderColor": "#1f94d2",
|
|
40570
40572
|
"backgroundColor": "#1f94d2"
|
|
40571
40573
|
},
|
|
40572
40574
|
"switch-active-colmo": {
|
|
40573
|
-
"
|
|
40575
|
+
"borderColor": "#b35336",
|
|
40574
40576
|
"backgroundColor": "#b35336"
|
|
40575
40577
|
},
|
|
40576
40578
|
"switch-disabled": {
|
|
@@ -40717,7 +40719,10 @@ module.exports = {
|
|
|
40717
40719
|
},
|
|
40718
40720
|
"label-text": {
|
|
40719
40721
|
"fontFamily": "PingFangSC-Regular",
|
|
40720
|
-
"
|
|
40722
|
+
"paddingTop": "1",
|
|
40723
|
+
"paddingRight": "1",
|
|
40724
|
+
"paddingBottom": "1",
|
|
40725
|
+
"paddingLeft": "1"
|
|
40721
40726
|
},
|
|
40722
40727
|
"first-tab": {
|
|
40723
40728
|
"borderLeftWidth": "2",
|
|
@@ -43206,13 +43211,13 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
43206
43211
|
staticClass: ["img-container", "circle-bg"],
|
|
43207
43212
|
class: [_vm.badgeNum && 'Dotright32'],
|
|
43208
43213
|
style: _vm.avatarIconBgSizeComp
|
|
43209
|
-
}, [_c('image', {
|
|
43214
|
+
}, [_vm._t("leftImg", [_c('image', {
|
|
43210
43215
|
staticClass: ["left-img"],
|
|
43211
43216
|
style: _vm.avatarIconSizeComp,
|
|
43212
43217
|
attrs: {
|
|
43213
43218
|
"src": _vm.avatarIcon
|
|
43214
43219
|
}
|
|
43215
|
-
})]), (_vm.hasDot) ? _c('div', {
|
|
43220
|
+
})])], 2), (_vm.hasDot) ? _c('div', {
|
|
43216
43221
|
staticClass: ["dot-tip"],
|
|
43217
43222
|
class: [_vm.badgeNum && 'dotRight'],
|
|
43218
43223
|
style: _vm.badgeStyle
|
|
@@ -45631,7 +45636,8 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
45631
45636
|
}) : _vm._e(), _c('div', {
|
|
45632
45637
|
ref: "switch",
|
|
45633
45638
|
class: [_vm.type === 'white' ? 'switch-white' : 'switch', _vm.checked && _vm.switchActiveClass],
|
|
45634
|
-
style: _vm.mrSwitchStyle,
|
|
45639
|
+
style: Object.assign({}, _vm.mrSwitchStyle,
|
|
45640
|
+
_vm.customStyle),
|
|
45635
45641
|
attrs: {
|
|
45636
45642
|
"accessible": true,
|
|
45637
45643
|
"ariaLabel": _vm.blindHelptext
|
|
@@ -45740,8 +45746,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
45740
45746
|
staticClass: ["label-text"],
|
|
45741
45747
|
style: {
|
|
45742
45748
|
fontSize: _vm.textFontSize,
|
|
45743
|
-
color: _vm.tabActive === i || _vm.touchActive === i ? _vm.activeTextColor : _vm.textColor
|
|
45744
|
-
borderColor: _vm.touchActive === i ? _vm.touchColor : _vm.bgColor
|
|
45749
|
+
color: _vm.tabActive === i || _vm.touchActive === i ? _vm.activeTextColor : _vm.textColor
|
|
45745
45750
|
}
|
|
45746
45751
|
}, [_vm._v(_vm._s(tab.label.length > _vm.labelMaxLen ? tab.label.slice(0, _vm.labelMaxLen) + '...' : tab.label))])]), (i !== _vm.tabData.length - 1) ? _c('div', {
|
|
45747
45752
|
staticClass: ["tabLine"],
|