Skip to content

Commit

Permalink
fix: #308修复tag组件缺失iconColor参数
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Apr 9, 2024
1 parent 3b60bb2 commit 43ab379
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 31 deletions.
7 changes: 5 additions & 2 deletions src/uni_modules/uview-plus/components/u-tag/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ export default {
// 内置图标,或绝对路径的图片
icon: {
type: String,
default: () => uni.$u.props.tag.icon
}
default: () => uni.$u.props.tag.icon,
}, iconColor: {
type: String,
default: () => uni.$u.props.tag.iconColor
}
}
}
Expand Down
59 changes: 30 additions & 29 deletions src/uni_modules/uview-plus/libs/config/props/tag.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
/*
* @Author : LQ
* @Description :
* @version : 1.0
* @Date : 2021-08-20 16:44:21
* @LastAuthor : LQ
* @lastTime : 2021-08-20 17:23:37
* @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
*/
export default {
// tag 组件
tag: {
type: 'primary',
disabled: false,
size: 'medium',
shape: 'square',
text: '',
bgColor: '',
color: '',
borderColor: '',
closeColor: '#C6C7CB',
name: '',
plainFill: false,
plain: false,
closable: false,
show: true,
icon: ''
}
}
/*
* @Author : LQ
* @Description :
* @version : 1.0
* @Date : 2021-08-20 16:44:21
* @LastAuthor : LQ
* @lastTime : 2021-08-20 17:23:37
* @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
*/
export default {
// tag 组件
tag: {
type: 'primary',
disabled: false,
size: 'medium',
shape: 'square',
text: '',
bgColor: '',
color: '',
borderColor: '',
closeColor: '#C6C7CB',
name: '',
plainFill: false,
plain: false,
closable: false,
show: true,
icon: '',
iconColor: ''
}
}

0 comments on commit 43ab379

Please sign in to comment.