File tree 4 files changed +12
-4
lines changed
uni_modules/uni-search-bar
components/uni-search-bar
4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 5
5
</uni-card >
6
6
7
7
<uni-section title =" 基本用法" type =" line" >
8
- <uni-search-bar @confirm =" search" :focus =" true" v-model =" searchValue" @blur =" blur" @focus =" focus" @input =" input" class =" search-result-text" @cancel =" cancel" @clear =" clear" text-color =" #ff261d" >
8
+ <uni-search-bar textColor = " #3c35f4 " @confirm =" search" :focus =" true" v-model =" searchValue" @blur =" blur" @focus =" focus" @input =" input" class =" search-result-text" @cancel =" cancel" @clear =" clear" text-color =" #ff261d" >
9
9
</uni-search-bar >
10
10
<view class =" search-result" >
11
11
<text class =" search-result-text" >当前输入为:{{ searchValue }}</text >
Original file line number Diff line number Diff line change
1
+ ## 1.2.9(2024-04-17)
2
+ - 修复 textColor不生效的bug
1
3
## 1.2.8(2024-02-22)
2
4
- 修复 清空按钮emit值错误的bug
3
5
## 1.2.7(2024-02-21)
Original file line number Diff line number Diff line change 8
8
</slot >
9
9
</view >
10
10
<input v-if =" show || searchVal" :focus =" showSync" :disabled =" readonly" :placeholder =" placeholderText" :maxlength =" maxlength"
11
- class =" uni-searchbar__box-search-input" confirm-type =" search" type =" text" v-model =" searchVal"
11
+ class =" uni-searchbar__box-search-input" confirm-type =" search" type =" text" v-model =" searchVal" :style = " {color:textColor} "
12
12
@confirm =" confirm" @blur =" blur" @focus =" emitFocus" />
13
13
<text v-else class =" uni-searchbar__text-placeholder" >{{ placeholder }}</text >
14
14
<view v-if =" show && (clearButton==='always'||clearButton==='auto'&&searchVal!=='') && !readonly"
49
49
* @value none 一直不显示
50
50
* @property {String} cancelText 取消按钮的文字
51
51
* @property {String} bgColor 输入框背景颜色
52
+ * @property {String} textColor 输入文字颜色
52
53
* @property {Boolean} focus 是否自动聚焦
53
54
* @property {Boolean} readonly 组件只读,不能有任何操作,只做展示
54
55
* @event {Function} confirm uniSearchBar 的输入框 confirm 事件,返回参数为uniSearchBar的value,e={value:Number}
86
87
type: String ,
87
88
default: " #F8F8F8"
88
89
},
90
+ textColor: {
91
+ type: String ,
92
+ default: " #F8F8F8"
93
+ },
89
94
maxlength: {
90
95
type: [Number , String ],
91
96
default: 100
Original file line number Diff line number Diff line change 1
1
{
2
2
"id" : " uni-search-bar" ,
3
3
"displayName" : " uni-search-bar 搜索栏" ,
4
- "version" : " 1.2.8 " ,
4
+ "version" : " 1.2.9 " ,
5
5
"description" : " 搜索栏组件,通常用于搜索商品、文章等" ,
6
6
"keywords" : [
7
7
" uni-ui" ,
45
45
"platforms" : {
46
46
"cloud" : {
47
47
"tcb" : " y" ,
48
- "aliyun" : " y"
48
+ "aliyun" : " y" ,
49
+ "alipay" : " n"
49
50
},
50
51
"client" : {
51
52
"App" : {
You can’t perform that action at this time.
0 commit comments