{"id":2692,"date":"2018-04-21T11:32:07","date_gmt":"2018-04-21T03:32:07","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2692"},"modified":"2018-04-21T11:32:07","modified_gmt":"2018-04-21T03:32:07","slug":"%e4%bd%bf%e7%94%a8-vue-js-%e5%ae%9e%e7%8e%b0-tooltip-%e6%b0%94%e6%b3%a1%e6%8f%90%e7%a4%ba%e6%a1%86%e3%80%81%e7%94%a8%e6%88%b7%e9%80%9a%e7%9f%a5%e5%bc%b9%e5%87%ba%e6%a1%86%e6%8f%92%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2692","title":{"rendered":"\u4f7f\u7528 Vue.js \u5b9e\u73b0 Tooltip \u6c14\u6ce1\u63d0\u793a\u6846\u3001\u7528\u6237\u901a\u77e5\u5f39\u51fa\u6846\u63d2\u4ef6"},"content":{"rendered":"<p>\n\t\u501f\u52a9 Vue.js \u6211\u4eec\u518d\u6765\u5b9e\u73b0\u4e00\u6b3e\u5f39\u51fa\u6846\u3001\u5192\u6ce1\u63d0\u793a\u63d2\u4ef6\u3002\u6548\u679c\u7c7b\u4f3c\u4e8e&nbsp;Notifications\uff0c\u5b89\u5353\u5410\u53f8\u7684\u5f62\u5f0f\u3002\n<\/p>\n<p>\n\t\u6574\u4e2a\u63d2\u4ef6\u7684\u8fd0\u884c\u6548\u679c\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Vue.js \u5b9e\u73b0Tooltip\u7528\u6237\u901a\u77e5\u5f39\u51fa\u6846\" src=\"https:\/\/www.html5tricks.com\/wp-content\/uploads\/2018\/01\/vuejs-tooltip-notification.png\" style=\"width: 610px;height: 409px\" \/>\n<\/p>\n<p>\n\t\u6574\u4e2a\u5b9e\u73b0\u7684\u8fc7\u7a0b\u5f88\u7b80\u5355\uff0c\u4e3b\u8981\u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;div class=&quot;container&quot;&gt;\r\n  &lt;div class=&quot;notification&quot;&gt;\r\n    &lt;a v-on:click=&quot;show = !show&quot; class=&quot;tooltip-bell&quot;&gt;\r\n      &lt;i class=&quot;far fa-2x fa-bell&quot;&gt;&lt;\/i&gt;\r\n      &lt;span id=&quot;circle&quot;&gt;&lt;\/span&gt;\r\n    &lt;\/a&gt;\r\n    &lt;transition name=&quot;fadeStart&quot; v-cloak&gt;\r\n      &lt;div v-if=&quot;show&quot; class=&quot;tooltip&quot;&gt;\r\n        &lt;div id=&quot;heading&quot;&gt;\r\n          &lt;div class=&quot;heading-left&quot;&gt;\r\n            &lt;h6 class=&quot;heading-title&quot;&gt;Notifications&lt;\/h6&gt;\r\n          &lt;\/div&gt;\r\n          &lt;div class=&quot;heading-right&quot;&gt;\r\n            &lt;a class=&quot;notification-link&quot; href=&quot;#&quot;&gt;See all&lt;\/a&gt;\r\n          &lt;\/div&gt;\r\n        &lt;\/div&gt;\r\n        &lt;ul class=&quot;notification-list&quot;&gt;\r\n          &lt;li class=&quot;notification-item&quot; v-for=&quot;user of users&quot;&gt;\r\n            &lt;div class=&quot;img-left&quot;&gt;\r\n              &lt;img class=&quot;user-photo&quot; alt=&quot;User Photo&quot; v-bind:src=&quot;user.picture.thumbnail&quot; \/&gt;\r\n            &lt;\/div&gt;\r\n            &lt;div class=&quot;user-content&quot;&gt;\r\n              &lt;p class=&quot;user-info&quot;&gt;&lt;span class=&quot;name&quot;&gt;{{user.name.first | capitalize}} {{user.name.last | capitalize}}&lt;\/span&gt; left a comment.&lt;\/p&gt;\r\n              &lt;p class=&quot;time&quot;&gt;1 hour ago&lt;\/p&gt;\r\n            &lt;\/div&gt;\r\n          &lt;\/li&gt;\r\n        &lt;\/ul&gt;\r\n      &lt;\/div&gt;\r\n    &lt;\/transition&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>\n\t\u770b\u8d77\u6765\u5f88\u7b80\u5355\uff0c\u6240\u4ee5\u5176\u4ed6\u7684\u7ec6\u8282\u4e0a\u7684\u4ee3\u7801\u6211\u5c31\u4e0d\u8d34\u4e86\u3002\u559c\u6b22\u7684\u670b\u53cb\u626b\u63cf\u4e0b\u65b9\u7684\u4e8c\u7ef4\u7801\u5173\u6ce8\u6211\u7684\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u56de\u590d&ldquo;vue\u5f39\u51fa\u6846&rdquo;\u8fdb\u884c\u4e0b\u8f7d\uff01<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2692\">\u4f7f\u7528 Vue.js \u5b9e\u73b0 Tooltip \u6c14\u6ce1\u63d0\u793a\u6846\u3001\u7528\u6237\u901a\u77e5\u5f39\u51fa\u6846\u63d2\u4ef6<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u501f\u52a9 Vue.js \u6211\u4eec\u518d\u6765\u5b9e\u73b0\u4e00\u6b3e\u5f39\u51fa\u6846\u3001\u5192\u6ce1\u63d0\u793a\u63d2\u4ef6\u3002\u6548\u679c\u7c7b\u4f3c\u4e8e&nbsp;Notifications\uff0c\u5b89 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[814,333,1379,1106,1138],"class_list":["post-2692","post","type-post","status-publish","format-standard","hentry","category-html5","tag-css3","tag-es6","tag-javascript","tag-vue-js"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2692"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2692\/revisions"}],"predecessor-version":[{"id":2693,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2692\/revisions\/2693"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}