是
tabbar
tabbar-item的字体颜色会根据点击项改变,能否增加新特性,点击tabbar-item让的src也可以改变?
使用 slot:icon-active 来实现切换。
万分感谢
跳转link,icon-active无反应,要点击两次才切换效果
初学,卡在这了,请问怎么解决的?
把src设成函数,监听点击的事件,js动态改变src路径
来自 魅蓝 Note6
-------- 原始邮件 --------
发件人:xiaoyoutongzhi notifications@github.com
时间:2018年8月7日 17:19
收件人:airyland/vux vux@noreply.github.com
抄送:1960665027 18276061387@163.com,Comment comment@noreply.github.com
主题:Re: [airyland/vux] [Feature Request] vux的tabbar可以像切换tabbar文字颜色一样切换的src吗 (#2705)
初学,卡在这了,请问怎么解决的?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/airyland/vux","title":"airyland/vux","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/airyland/vux"}},"updates":{"snippets":[{"icon":"PERSON","message":"@xiaoyoutongzhi in #2705: 初学,卡在这了,请问怎么解决的?"}],"action":{"name":"View Issue","url":"https://github.com/airyland/vux/issues/2705#issuecomment-410991629"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/airyland/vux/issues/2705#issuecomment-410991629", "url": "https://github.com/airyland/vux/issues/2705#issuecomment-410991629", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } }, { "@type": "MessageCard", "@context": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB", "title": "Re: [airyland/vux] [Feature Request] vux的tabbar可以像切换tabbar文字颜色一样切换\u003cimg slot='icon' src=\"\"\u003e的src吗 (#2705)", "sections": [ { "text": "", "activityTitle": "xiaoyoutongzhi", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@xiaoyoutongzhi", "facts": [ ] } ], "potentialAction": [ { "name": "Add a comment", "@type": "ActionCard", "inputs": [ { "isMultiLine": true, "@type": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"airyland/vux\",\n\"issueId\": 2705,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "targets": [ { "os": "default", "uri": "https://github.com/airyland/vux/issues/2705#issuecomment-410991629" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 329768683\n}" } ], "themeColor": "26292E" } ]
跳转link,icon-active无反应,要点击两次才切换效果
这个问题解决了吗,我现在也遇上这种问题了,每一个都得点击两侧
Most helpful comment
跳转link,icon-active无反应,要点击两次才切换效果