Skip to content

Commit af9cab6

Browse files
committed
docs: update README
1 parent 3a36dd5 commit af9cab6

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

0 commit comments

Comments
 (0)