diff --git a/src/uni_modules/uview-plus/components/u-tag/props.js b/src/uni_modules/uview-plus/components/u-tag/props.js index 35b27eebb..ac522a0ab 100644 --- a/src/uni_modules/uview-plus/components/u-tag/props.js +++ b/src/uni_modules/uview-plus/components/u-tag/props.js @@ -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 + } } } diff --git a/src/uni_modules/uview-plus/libs/config/props/tag.js b/src/uni_modules/uview-plus/libs/config/props/tag.js index 125ce947a..3b047c51a 100644 --- a/src/uni_modules/uview-plus/libs/config/props/tag.js +++ b/src/uni_modules/uview-plus/libs/config/props/tag.js @@ -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: '' + } +} \ No newline at end of file