# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/bxt3hbq
深入理解 Vue3 自定義指令 ClickOutside 的實現**
當我們在開發一些組件的時候,比如下拉框或者一些模態框等組件,我們希望在點擊元素之外的時候就能夠把相應的元素收起來或者隱藏;這看似十分簡單的需求,其實隱藏着很多的判斷邏輯和代碼技巧在裏面,筆者就結合這幾天閱讀 element-plus 和 naive-ui-admin 源碼的經驗,總結分享自己的一些經驗和想法。在學習源碼之前,我們先進行鋪墊一下,瞭解一下簡單幾個工具函數的使用,方便後續理解。工具函數 ⌘ Read more