@ibiz-template-plugin/ibiz-file-previewer 0.0.15 → 0.0.16
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/dist/index.es.js +35 -2
- package/dist/index.legacy.js +1 -1
- package/dist/types/src/util/util.d.ts +12 -0
- package/package.json +1 -1
|
@@ -12,3 +12,15 @@ export declare const fileNameToFileType: (fileName: string) => FileType;
|
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
14
|
export declare const throttle: <T extends (...args: any[]) => any>(func: T, wait: number) => ((...args: Parameters<T>) => void);
|
|
15
|
+
/**
|
|
16
|
+
* 拷贝文本至剪贴板降级方案
|
|
17
|
+
* @param text
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
export declare const fallbackCopyTextToClipboard: (text: string) => boolean;
|
|
21
|
+
/**
|
|
22
|
+
* 拷贝文本至剪贴板
|
|
23
|
+
* @param text
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
export declare const copyTextToClipboard: (text: string) => Promise<boolean>;
|