@jiaozhiye/qm-design-react 1.7.60 → 1.8.1

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.
@@ -306,7 +306,6 @@ export type IColumn = {
306
306
  export type IDerivedColumn = IColumn & {
307
307
  type?: string;
308
308
  level?: number;
309
- parentDataIndex?: string;
310
309
  };
311
310
  export type IDerivedRowKey = {
312
311
  level: number;
@@ -38,7 +38,8 @@ export declare const getGroupValidData: (list: IRecord[]) => IRecord<any>[];
38
38
  export declare const createOrderBy: (sorter: ISorter) => string;
39
39
  export declare const createWhereSQL: (filters: any, showType?: boolean) => string;
40
40
  export declare const groupByProps: (array?: IRecord[], props?: string[]) => any[][];
41
- export declare const deepGetRowkey: (arr: any[], value: IRowKey) => IRowKey[] | undefined;
41
+ export declare const deepGetColumn: (arr: IColumn[], value: string) => IColumn[] | undefined;
42
+ export declare const deepGetRowkey: (arr: IRecord[], value: IRowKey) => IRowKey[] | undefined;
42
43
  export declare const deepFindRecord: (arr: IRecord[], fn: (node: IRecord) => boolean) => Nullable<IRecord>;
43
44
  export declare const deepTreeFilter: (tree: any[], fn: (node: unknown) => boolean) => any[];
44
45
  export declare const flatToTree: (list: any[], id: string, pid: string) => any[];
@@ -16,7 +16,11 @@ type IProps = {
16
16
  disabled?: boolean;
17
17
  className?: string;
18
18
  style?: CSSProperties;
19
- onChange?: (value: string) => void;
19
+ onChange?: (value: string, editor: any) => void;
20
+ onResizeEditor?: (option: {
21
+ width: number;
22
+ height: number;
23
+ }, ev: any) => void;
20
24
  };
21
25
  export type TinymceProps = IProps;
22
26
  declare class QmTinymce extends Component<IProps> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiaozhiye/qm-design-react",
3
- "version": "1.7.60",
3
+ "version": "1.8.1",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",
@@ -61,7 +61,7 @@
61
61
  "copy-to-clipboard": "^3.3.2",
62
62
  "cropperjs": "^1.5.12",
63
63
  "dayjs": "1.x",
64
- "exceljs": "^4.3.0",
64
+ "exceljs": "^4.4.0",
65
65
  "localforage": "^1.10.0",
66
66
  "lodash-es": "^4.17.21",
67
67
  "memoize-one": "^6.0.0",
@@ -89,6 +89,7 @@
89
89
  "@rollup/plugin-json": "^4.1.0",
90
90
  "@rollup/plugin-node-resolve": "^14.1.0",
91
91
  "@rollup/plugin-replace": "^4.0.0",
92
+ "@rollup/plugin-terser": "^0.4.4",
92
93
  "@rollup/plugin-typescript": "^8.5.0",
93
94
  "@types/lodash-es": "^4.17.6",
94
95
  "@types/react": "^17.0.58",
@@ -124,7 +125,6 @@
124
125
  "react-dom": "17.0.2",
125
126
  "rimraf": "^3.0.2",
126
127
  "rollup": "^2.79.1",
127
- "rollup-plugin-terser": "^7.0.2",
128
128
  "style-loader": "^3.3.2",
129
129
  "ts-loader": "^9.4.4",
130
130
  "typescript": "^4.9.5",