@jiaozhiye/qm-design-react 1.1.0-beta.13 → 1.1.0-beta.14

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.
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export declare const cloneElement: (element: React.ReactNode, ...restArgs: any[]) => {} | null | undefined;
2
+ export declare const cloneElement: (element: React.ReactNode, ...rest: any[]) => React.ReactElement | null;
@@ -27,7 +27,7 @@ export declare type ComponentSize = 'small' | 'middle' | 'large';
27
27
  export declare type Locale = 'zh-cn' | 'en';
28
28
  export declare type IDict = {
29
29
  text: string;
30
- value: string;
30
+ value: string | number;
31
31
  disabled?: boolean;
32
32
  children?: Array<IDict> | Nullable<undefined>;
33
33
  };
@@ -0,0 +1,3 @@
1
+ import CopyToClipboard from './src/copy-to-clipboard';
2
+ export type { QmCopyToClipboardProps } from './src/copy-to-clipboard';
3
+ export default CopyToClipboard;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ declare type IProps = {
3
+ text: string;
4
+ showMessage?: boolean;
5
+ options?: {
6
+ debug?: boolean;
7
+ message?: string;
8
+ format?: string;
9
+ };
10
+ onCopy?: (text: string, result: boolean) => void;
11
+ children?: React.ReactNode;
12
+ };
13
+ export declare type QmCopyToClipboardProps = IProps;
14
+ declare const CopyToClipboard: React.FC<IProps>;
15
+ export default CopyToClipboard;
@@ -0,0 +1,12 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:05:57
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-07-31 22:38:07
6
+ */
7
+ @import '../../style/common';
8
+
9
+ @prefix-clipboard: ~'@{qm-prefix}-clipboard';
10
+
11
+ .@{prefix-clipboard} {
12
+ }
package/lib/index.d.ts CHANGED
@@ -42,6 +42,8 @@ export type { QmTreeTableHelperProps } from './tree-table-helper';
42
42
  export { default as QmTreeTableHelper } from './tree-table-helper';
43
43
  export type { QmTreeHelperProps } from './tree-helper';
44
44
  export { default as QmTreeHelper } from './tree-helper';
45
+ export type { QmCopyToClipboardProps } from './copy-to-clipboard';
46
+ export { default as QmCopyToClipboard } from './copy-to-clipboard';
45
47
  export type { QmPrintProps } from './print';
46
48
  export { default as QmPrint } from './print';
47
49
  export { default as pinyin } from './pinyin';