kn-hooks 0.0.30 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -94,7 +94,7 @@ webpack增加`bable-plugin-import`插件,给babel plugins增加配置
94
94
  ```js
95
95
  const clipboard= useClipboard();
96
96
  const onCopy=()=>{
97
- clipboard.copy('text',()=>{console.log('success')})
97
+ clipboard('text',()=>{console.log('success')})
98
98
  }
99
99
  ```
100
100
  <a id="module_useclipboard__funcopy"></a>
@@ -22,7 +22,7 @@
22
22
  ```js
23
23
  const clipboard= useClipboard();
24
24
  const onCopy=()=>{
25
- clipboard.copy('text',()=>{console.log('success')})
25
+ clipboard('text',()=>{console.log('success')})
26
26
  }
27
27
  ```
28
28
  <a id="module_useclipboard__funcopy"></a>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kn-hooks",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "scripts": {
5
5
  "dev": "cross-env env_api=dev env_package=dev webpack-dev-server --progress",
6
6
  "build": "cross-env env_api=prod env_package=prod webpack --config webpack.config.js",
@@ -17,7 +17,7 @@ import ClipboardJS from 'clipboard';
17
17
  * @example
18
18
  const clipboard= useClipboard();
19
19
  const onCopy=()=>{
20
- clipboard.copy('text',()=>{console.log('success')})
20
+ clipboard('text',()=>{console.log('success')})
21
21
  }
22
22
  */
23
23
  const useClipboard = (props) => {