需要用头像组件avatar,鼠标点击头像组件的时候,希望弹出dropdown-button组件的内容,
无
无,有没有临时解决方案啊?
rjzwgtxy1#
临时解决方案,可以显示一个汉字头像先用着:{ "type": "dropdown-button", "align": "right", "className": "pull-right tou", "trigger": "hover", "level": "link", "hideCaret": true, "icon": "<svg class=\"\" width=\"22\" height=\"22\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"50%\" cy=\"50%\" r=\"50%\" fill=\"#2c3f7b\" /><text x=\"50%\" y=\"50%\" alignment-baseline=\"middle\" text-anchor=\"middle\" font-family=\"Arial\" font-size=\"10\" fill=\"#fff\">中</text></svg>", "size": "xs", "buttons": [] }
{ "type": "dropdown-button", "align": "right", "className": "pull-right tou", "trigger": "hover", "level": "link", "hideCaret": true, "icon": "<svg class=\"\" width=\"22\" height=\"22\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"50%\" cy=\"50%\" r=\"50%\" fill=\"#2c3f7b\" /><text x=\"50%\" y=\"50%\" alignment-baseline=\"middle\" text-anchor=\"middle\" font-family=\"Arial\" font-size=\"10\" fill=\"#fff\">中</text></svg>", "size": "xs", "buttons": [] }
1条答案
按热度按时间rjzwgtxy1#
临时解决方案,可以显示一个汉字头像先用着:
{ "type": "dropdown-button", "align": "right", "className": "pull-right tou", "trigger": "hover", "level": "link", "hideCaret": true, "icon": "<svg class=\"\" width=\"22\" height=\"22\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"50%\" cy=\"50%\" r=\"50%\" fill=\"#2c3f7b\" /><text x=\"50%\" y=\"50%\" alignment-baseline=\"middle\" text-anchor=\"middle\" font-family=\"Arial\" font-size=\"10\" fill=\"#fff\">中</text></svg>", "size": "xs", "buttons": [] }