Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Aug 23, 2019
1 parent 70116e5 commit b6869c8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dist/xe-clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
return doc.execCommand('copy', !!showDefault);
}
/**
* Copy the contents to the clipboard.
* Copy text to clipboard.
*
* @param {String} content Content
* @param {String} content Text
*/


Expand Down
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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.
*/
declare var XEClipboard: XEClipboardMethods;

Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ function copyText (showDefault) {
}

/**
* Copy the contents to the clipboard.
* Copy text to clipboard.
*
* @param {String} content Content
* @param {String} content Text
*/
function XEClipboard (content) {
var result = false
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"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.",
"main": "index.js",
"unpkg": "dist/xe-clipboard.js",
"jsdelivr": "dist/xe-clipboard.js",
"typings": "types/index.d.ts",
"typings": "index.d.ts",
"scripts": {
"lib": "gulp build",
"lint": "eslint index.js",
"test": "npm run lint"
},
"files": [
"dist",
"index.d.ts",
"index.js"
"index.js",
"*.d.ts"
],
"devDependencies": {
"@babel/core": "^7.4.4",
Expand Down

0 comments on commit b6869c8

Please sign in to comment.