xe-clipboard
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -33,5 +33,5 @@ 'use strict'; | ||
/** | ||
* Copy the contents to the clipboard. | ||
* Copy text to clipboard. | ||
* | ||
* @param {String} content Content | ||
* @param {String} content Text | ||
*/ | ||
@@ -38,0 +38,0 @@ |
@@ -46,5 +46,5 @@ (function (global, factory) { | ||
/** | ||
* Copy the contents to the clipboard. | ||
* Copy text to clipboard. | ||
* | ||
* @param {String} content Content | ||
* @param {String} content Text | ||
*/ | ||
@@ -51,0 +51,0 @@ |
export interface XEClipboardMethods { | ||
/** | ||
* Copy the contents to the clipboard. | ||
* @param content Content | ||
* Copy text to clipboard. | ||
* @param content Text | ||
*/ | ||
copy(content: string): boolean; | ||
copy(content: string | number): boolean; | ||
} | ||
/** | ||
* Copy the contents to the clipboard. | ||
* Copy text to clipboard. | ||
*/ | ||
@@ -12,0 +12,0 @@ declare var XEClipboard: XEClipboardMethods; |
@@ -29,5 +29,5 @@ 'use strict' | ||
/** | ||
* Copy the contents to the clipboard. | ||
* Copy text to clipboard. | ||
* | ||
* @param {String} content Content | ||
* @param {String} content Text | ||
*/ | ||
@@ -34,0 +34,0 @@ function XEClipboard (content) { |
{ | ||
"name": "xe-clipboard", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "Copy the contents to the clipboard, support commonly used H5 browser IE, Chrome, Firefox, Opera, Safari, IOS, Android.", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"jsdelivr": "dist/xe-clipboard.js", | ||
"typings": "types/index.d.ts", | ||
"typings": "index.d.ts", | ||
"scripts": { | ||
@@ -17,4 +17,4 @@ "lib": "gulp build", | ||
"dist", | ||
"index.d.ts", | ||
"index.js" | ||
"index.js", | ||
"*.d.ts" | ||
], | ||
@@ -21,0 +21,0 @@ "devDependencies": { |
@@ -9,3 +9,3 @@ # xe-clipboard | ||
It depends on the [execCommand](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand) APIs, support commonly used H5 browser IE, Chrome, Firefox, Opera, Safari, IOS, Android. | ||
compressed by gzip: < 1KB | ||
compressed by gzip: < 0.5KB | ||
@@ -35,3 +35,3 @@ ## Browser Support | ||
```html | ||
<button class="button">复制</button> | ||
<button class="button">Copy</button> | ||
``` | ||
@@ -51,2 +51,2 @@ | ||
Copyright (c) 2017-present, Xu Liangzhan | ||
MIT License, 2017-present, Xu Liangzhan |
9767