xph-crud 0.3.4 → 0.3.5
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.js +915 -838
- package/dist/index.umd.cjs +10 -10
- package/dist/types/common/src/components/actions/types/actionItem.d.ts +32 -31
- package/dist/types/form/src/components/ApiAutoComplete/index.d.ts +4 -1
- package/dist/types/form/src/components/ApiSelect/index.d.ts +4 -1
- package/dist/types/form/src/components/ApiTransfer/index.d.ts +4 -1
- package/dist/types/form/src/components/ApiTreeSelect/index.d.ts +4 -1
- package/dist/types/form/src/types/component.d.ts +2 -0
- package/dist/types/table/src/components/table/components/cellFunc/components/copy.d.ts +5 -0
- package/dist/types/table/src/components/table/components/cellFunc/components/index.d.ts +4 -0
- package/dist/types/table/src/components/table/components/cellFunc/types/cellFunc.d.ts +14 -0
- package/dist/types/table/src/hooks/index.d.ts +2 -0
- package/dist/types/table/src/hooks/useCopyToClipboard.d.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ICurCellFuncProps, IMainProps } from '../types';
|
|
3
|
+
|
|
4
|
+
declare const Copy: (Comp: React.JSXElementConstructor<any>, curCellFuncProps: ICurCellFuncProps<{}, {}, "copy">, mainProps: IMainProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default Copy;
|
|
@@ -12,5 +12,9 @@ declare const cellComponentMap: {
|
|
|
12
12
|
tag: {
|
|
13
13
|
Comp: (Comp: import('react').JSXElementConstructor<any>, curCellFuncProps: import('../types').ICurCellFuncProps<{}, {}, "tag">, mainProps: import('../types').IMainProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
};
|
|
15
|
+
/** 复制 */
|
|
16
|
+
copy: {
|
|
17
|
+
Comp: (Comp: import('react').JSXElementConstructor<any>, curCellFuncProps: import('../types').ICurCellFuncProps<{}, {}, "copy">, mainProps: import('../types').IMainProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
};
|
|
15
19
|
};
|
|
16
20
|
export { cellComponentMap };
|
|
@@ -28,6 +28,20 @@ export type TCellComponentPropsMap<CellFuncExtendPropsMap extends TXphExtendComp
|
|
|
28
28
|
};
|
|
29
29
|
}>;
|
|
30
30
|
};
|
|
31
|
+
copy: {
|
|
32
|
+
/**
|
|
33
|
+
* 复制的文本
|
|
34
|
+
*/
|
|
35
|
+
text?: string | ((record: any) => string);
|
|
36
|
+
/**
|
|
37
|
+
* 大小
|
|
38
|
+
*/
|
|
39
|
+
size?: "small" | "default" | "large";
|
|
40
|
+
/**
|
|
41
|
+
* 自定义点击事件
|
|
42
|
+
*/
|
|
43
|
+
onClick?: (record: any) => void;
|
|
44
|
+
};
|
|
31
45
|
} & CellFuncExtendPropsMap;
|
|
32
46
|
type Without<T, K> = {
|
|
33
47
|
[P in Exclude<keyof T, K>]?: never;
|
|
@@ -18,3 +18,5 @@ export { default as useExtendTable } from './useExtendTable';
|
|
|
18
18
|
export * from './useExtendTable';
|
|
19
19
|
export { default as useCrudFormDialog } from './useCrudFormDialog';
|
|
20
20
|
export * from './useCrudFormDialog';
|
|
21
|
+
export { default as useCopyToClipboard } from './useCopyToClipboard';
|
|
22
|
+
export * from './useCopyToClipboard';
|