File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 11<!--
22 * @Date: 01/06/2021 21.20.26 +0800
33 * @Author: KnowsCount
4- * @LastEditTime: 07 /06/2021 10.50.53 +0800
4+ * @LastEditTime: 09 /06/2021 15.05.16 +0800
55 * @FilePath: /vue-selection-share/README.md
66-->
77
@@ -34,7 +34,17 @@ Vue.use(VueSelectionShare)
3434```
3535<!-- prettier-ignore-end -->
3636
37- then add ` methods ` for clicking behaviour, to ` onShare ` and ` onHighlight ` :
37+ then add the component outside of the elements that needs the popover, and the clicking behaviours:
38+
39+ <!-- prettier-ignore-start -->
40+ ``` vue.js
41+ < VueSelectionShare @share= " onShare" @highlight= " onHighlight" >
42+ < p> mother of god< / p>
43+ < / VueSelectionShare>
44+ ```
45+ <!-- prettier-ignore-end -->
46+
47+ lastly add the ` methods ` , to ` onShare ` and ` onHighlight ` :
3848
3949<!-- prettier-ignore-start -->
4050``` vue.js
Original file line number Diff line number Diff line change 11{
22 "name" : " vue-selection-share" ,
33 "private" : false ,
4- "version" : " 1.3.6 " ,
4+ "version" : " 1.3.8 " ,
55 "description" : " a medium-like text highlight sharing component" ,
66 "main" : " dist/vue-selection-share.ssr.js" ,
77 "browser" : " dist/vue-selection-share.esm.js" ,
You can’t perform that action at this time.
0 commit comments