From 43ab37931500bb16a0947dd801fa33ca19d1db06 Mon Sep 17 00:00:00 2001 From: jry Date: Tue, 9 Apr 2024 20:46:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#308=E4=BF=AE=E5=A4=8Dtag=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=BC=BA=E5=A4=B1iconColor=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uview-plus/components/u-tag/props.js | 7 ++- .../uview-plus/libs/config/props/tag.js | 59 ++++++++++--------- 2 files changed, 35 insertions(+), 31 deletions(-) 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