@airpower/web 1.2.2 → 1.2.3

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.d.ts CHANGED
@@ -76,5 +76,6 @@ export * from './service/AbstractService';
76
76
  export * from './service/type';
77
77
  export * from './shared';
78
78
  export * from './type';
79
+ export * from './util/ClipboardUtil';
79
80
  export * from './validator/type';
80
81
  export * from './validator/WebValidator';
package/dist/main.js CHANGED
@@ -20057,6 +20057,16 @@ class AbstractCurdService extends AbstractService {
20057
20057
  return entity;
20058
20058
  }
20059
20059
  }
20060
+ class ClipboardUtil {
20061
+ /**
20062
+ * ### 剪切板复制指定的内容
20063
+ * @param content 复制的内容
20064
+ */
20065
+ static async copy(content) {
20066
+ const { toClipboard } = useClipboard();
20067
+ return toClipboard(content);
20068
+ }
20069
+ }
20060
20070
  export {
20061
20071
  _sfc_main$v as AButton,
20062
20072
  ACall,
@@ -20088,6 +20098,7 @@ export {
20088
20098
  AbstractCurdService,
20089
20099
  AbstractService,
20090
20100
  Alias,
20101
+ ClipboardUtil,
20091
20102
  CryptoUtil,
20092
20103
  DateTimeFormatter,
20093
20104
  DateTimeType,
@@ -0,0 +1,12 @@
1
+ /**
2
+ * ### 剪贴板工具类
3
+ *
4
+ * @author Hamm.cn
5
+ */
6
+ export declare class ClipboardUtil {
7
+ /**
8
+ * ### 剪切板复制指定的内容
9
+ * @param content 复制的内容
10
+ */
11
+ static copy(content: string): Promise<unknown>;
12
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/web",
3
3
  "type": "module",
4
- "version": "1.2.2",
4
+ "version": "1.2.3",
5
5
  "description": "AirPower-Web",
6
6
  "author": {
7
7
  "name": "Hamm",