Skip to content

Commit 64bf4eb

Browse files
authored
Merge pull request dcloudio#877 from 18148764734:master
fix: easyinput dialog segmentedcontrol修复
2 parents 0364887 + 94d830b commit 64bf4eb

File tree

11 files changed

+17
-43
lines changed

11 files changed

+17
-43
lines changed

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@
5858
"title" : "uni-ui",
5959
"template" : "template.h5.html"
6060
},
61-
"vueVersion" : "3"
61+
"vueVersion" : "2"
6262
}

uni_modules/uni-easyinput/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.1.18(2024-04-11)
2+
- 修复 easyinput组件双向绑定问题
13
## 1.1.17(2024-03-28)
24
- 修复 在头条小程序下丢失事件绑定的问题
35
## 1.1.16(2024-03-20)

uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
// #ifdef MP-TOUTIAO
143143
virtualHost: false,
144144
// #endif
145-
// #ifdef MP-TOUTIAO
145+
// #ifndef MP-TOUTIAO
146146
virtualHost: true
147147
// #endif
148148
},

uni_modules/uni-easyinput/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "uni-easyinput",
33
"displayName": "uni-easyinput 增强输入框",
4-
"version": "1.1.17",
4+
"version": "1.1.18",
55
"description": "Easyinput 组件是对原生input组件的增强",
66
"keywords": [
77
"uni-ui",

uni_modules/uni-popup/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.9.1(2024-04-02)
2+
- 修复 uni-popup-dialog vue3下使用value无法进行绑定的bug(双向绑定兼容旧写法)
13
## 1.9.0(2024-03-28)
24
- 修复 uni-popup-dialog 双向绑定时初始化逻辑修正
35
## 1.8.9(2024-03-20)

uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue

-2
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,7 @@
179179
// this.popup.closeMask()
180180
if (this.mode === 'input') {
181181
this.dialogType = 'info'
182-
// #ifdef VUE2
183182
this.val = this.value;
184-
// #endif
185183
// #ifdef VUE3
186184
this.val = this.modelValue;
187185
// #endif

uni_modules/uni-popup/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "uni-popup",
33
"displayName": "uni-popup 弹出层",
4-
"version": "1.9.0",
4+
"version": "1.9.1",
55
"description": " Popup 组件,提供常用的弹层",
66
"keywords": [
77
"uni-ui",

uni_modules/uni-segmented-control/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.2.3(2024-04-02)
2+
- 修复 修复在微信小程序下inactiveColor失效bug
13
## 1.2.2(2024-03-28)
24
- 修复 在vue2下:style动态绑定导致编译失败的bug
35
## 1.2.1(2024-03-20)

uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.vue

+5-35
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
<view :class="[styleType === 'text'?'segmented-control--text' : 'segmented-control--button' ]"
33
:style="{ borderColor: styleType === 'text' ? '' : activeColor }" class="segmented-control">
44
<view v-for="(item, index) in values" :class="[styleType === 'text' ? '' : 'segmented-control__item--button',
5-
index === currentIndex && styleType === 'button' ? 'segmented-control__item--button--active' : '',
65
index === 0 && styleType === 'button' ? 'segmented-control__item--button--first' : '',
7-
index === values.length - 1 && styleType === 'button' ? 'segmented-control__item--button--last':'']" :key="index" :style="{backgroundColor: index === currentIndex && styleType === 'button' ? activeColor : styleType === 'button' ?inActiveColor:'transparent', borderColor: index === currentIndex && styleType === 'text' || styleType === 'button' ? activeColor : inActiveColor}" class="segmented-control__item" @click="_onClick(index)">
6+
index === values.length - 1 && styleType === 'button' ? 'segmented-control__item--button--last':'']" :key="index"
7+
:style="{backgroundColor: index === currentIndex && styleType === 'button' ? activeColor : styleType === 'button' ?inActiveColor:'transparent', borderColor: index === currentIndex && styleType === 'text' || styleType === 'button' ? activeColor : inActiveColor}"
8+
class="segmented-control__item" @click="_onClick(index)">
89
<view>
910
<text
10-
:style="index===currentIndex?{color : styleType === 'text' ? activeColor : '#fff'}:{color : styleType === 'text' ?'#000' : activeColor}"
11+
:style="{color:index === currentIndex? styleType === 'text'? activeColor: '#fff': styleType === 'text'? '#000': activeColor}"
1112
class="segmented-control__text"
1213
:class="styleType === 'text' && index === currentIndex ? 'segmented-control__item--text': ''">{{ item }}</text>
1314
</view>
@@ -70,38 +71,7 @@
7071
}
7172
}
7273
},
73-
computed: {
74-
getTextStyle() {
75-
return (index) => {
76-
let style = {};
77-
if (index === this.currentIndex) {
78-
style.color = this.styleType === 'text' ? this.activeColor : '#fff';
79-
} else {
80-
style.color = this.styleType === 'text' ?
81-
'#000' : this.activeColor;
82-
}
83-
return style;
84-
}
85-
},
86-
computedBackgroundClass() {
87-
return index => [this.styleType === 'text' ? '' : 'segmented-control__item--button',
88-
index === this.currentIndex && this.styleType === 'button' ? 'segmented-control__item--button--active' : '',
89-
index === 0 && this.styleType === 'button' ? 'segmented-control__item--button--first' : '',
90-
index === this.values.length - 1 && this.styleType === 'button' ? 'segmented-control__item--button--last' :
91-
''
92-
]
93-
},
94-
computedBackgroundStyle() {
95-
return index => {
96-
return {
97-
backgroundColor: index === this.currentIndex && this.styleType === 'button' ? this.activeColor : this
98-
.styleType === 'button' ? this.inActiveColor : 'transparent',
99-
borderColor: index === this.currentIndex && this.styleType === 'text' || this.styleType === 'button' ? this
100-
.activeColor : this.inActiveColor
101-
}
102-
}
103-
}
104-
},
74+
computed: {},
10575
created() {
10676
this.currentIndex = this.current
10777
},

uni_modules/uni-segmented-control/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "uni-segmented-control",
33
"displayName": "uni-segmented-control 分段器",
4-
"version": "1.2.2",
4+
"version": "1.2.3",
55
"description": "分段器由至少 2 个分段控件组成,用作不同视图的显示",
66
"keywords": [
77
"uni-ui",

uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
* @property {Boolean} autoClose = [true|false] 滑动打开当前组件,是否关闭其他组件
143143
* @property {Number} threshold 滑动缺省值
144144
* @property {Array} leftOptions 左侧选项内容及样式
145-
* @property {Array} rgihtOptions 右侧选项内容及样式
145+
* @property {Array} rightOptions 右侧选项内容及样式
146146
* @event {Function} click 点击选项按钮时触发事件,e = {content,index} ,content(点击内容)、index(下标)
147147
* @event {Function} change 组件打开或关闭时触发,left\right\none
148148
*/

0 commit comments

Comments
 (0)