@jiaozhiye/qm-design-react 1.7.52 → 1.7.53

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,6 +1,6 @@
1
1
  import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import type { ComponentSize } from '../../_utils/types';
3
+ import type { CSSProperties, ComponentSize } from '../../_utils/types';
4
4
  import type { ButtonProps } from '../../antd';
5
5
  type IProps = ButtonProps & {
6
6
  size?: ComponentSize;
@@ -10,6 +10,8 @@ type IProps = ButtonProps & {
10
10
  preview?: boolean;
11
11
  closeAfterPrint?: boolean;
12
12
  click?: () => void;
13
+ className?: string;
14
+ style?: CSSProperties;
13
15
  };
14
16
  type IState = {
15
17
  visible: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { IFormItem, IFormData } from '../../form/src/types';
3
3
  import type { IFetch, IColumn, IRowKey, IRecord } from '../../table/src/table/types';
4
- import type { ComponentSize } from '../../_utils/types';
4
+ import type { CSSProperties, ComponentSize } from '../../_utils/types';
5
5
  type ITableConfig = {
6
6
  fetch?: IFetch;
7
7
  columns?: IColumn[];
@@ -17,6 +17,8 @@ type IProps = {
17
17
  multiple?: boolean;
18
18
  filters?: IFormItem[];
19
19
  table?: ITableConfig;
20
+ className?: string;
21
+ style?: CSSProperties;
20
22
  onClose: (data: IRecord | null, keys?: IRowKey[]) => void;
21
23
  };
22
24
  export type SearchHelperProps = IProps;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { ComponentSize } from '../../_utils/types';
2
+ import type { CSSProperties, ComponentSize } from '../../_utils/types';
3
3
  import type { IFetch, IRecord, ICheckStrategy } from '../../table/src/table/types';
4
4
  import type { TreeProps } from '../../antd';
5
5
  type IProps = TreeProps & {
@@ -21,6 +21,8 @@ type IProps = TreeProps & {
21
21
  checkStrategy?: ICheckStrategy;
22
22
  showSearchBar?: boolean;
23
23
  showCollapse?: boolean;
24
+ className?: string;
25
+ style?: CSSProperties;
24
26
  onSelectChange?: (records: IRecord[] | IRecord) => void;
25
27
  onCheckChange?: (records: IRecord[] | IRecord) => void;
26
28
  onDragChange?: (info: any, data: IRecord) => void;
@@ -50,6 +52,8 @@ declare const SearchTree: React.ForwardRefExoticComponent<TreeProps<import("rc-t
50
52
  checkStrategy?: ICheckStrategy | undefined;
51
53
  showSearchBar?: boolean | undefined;
52
54
  showCollapse?: boolean | undefined;
55
+ className?: string | undefined;
56
+ style?: React.CSSProperties | undefined;
53
57
  onSelectChange?: ((records: IRecord[] | IRecord) => void) | undefined;
54
58
  onCheckChange?: ((records: IRecord[] | IRecord) => void) | undefined;
55
59
  onDragChange?: ((info: any, data: IRecord) => void) | undefined;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { IFetch, IRecord, ICheckStrategy } from '../../table/src/table/types';
3
- import type { ComponentSize } from '../../_utils/types';
3
+ import type { CSSProperties, ComponentSize } from '../../_utils/types';
4
4
  type IProps = {
5
5
  size?: ComponentSize;
6
6
  multiple?: boolean;
@@ -15,6 +15,8 @@ type IProps = {
15
15
  checkStrategy?: ICheckStrategy;
16
16
  defaultExpandAll?: boolean;
17
17
  };
18
+ className?: string;
19
+ style?: CSSProperties;
18
20
  onClose: (data: IRecord | null) => void;
19
21
  };
20
22
  export type TreeHelperProps = IProps;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { IFormItem, IFormData } from '../../form/src/types';
3
3
  import type { IFetch, IColumn, IRowKey, IRecord } from '../../table/src/table/types';
4
- import type { ComponentSize } from '../../_utils/types';
4
+ import type { CSSProperties, ComponentSize } from '../../_utils/types';
5
5
  type ITableConfig = {
6
6
  fetch?: IFetch;
7
7
  columns?: IColumn[];
@@ -24,6 +24,8 @@ type IProps = {
24
24
  };
25
25
  tableParamsMap?: (() => Record<string, string>) | Record<string, string>;
26
26
  };
27
+ className?: string;
28
+ style?: CSSProperties;
27
29
  onClose: (data: IRecord | null, keys?: IRowKey[]) => void;
28
30
  };
29
31
  export type TreeTableHelperProps = IProps;
@@ -0,0 +1,3 @@
1
+ import Watermark from './src/watermark';
2
+ export type { WatermarkProps } from './src/watermark';
3
+ export default Watermark;
@@ -0,0 +1,38 @@
1
+ export interface WatermarkFont {
2
+ /**
3
+ * @zh 字体颜色
4
+ * @en Font color
5
+ * @defaultValue rgba(0, 0, 0, 0.15)
6
+ */
7
+ color?: string;
8
+ /**
9
+ * @zh 字体大小
10
+ * @en Font size
11
+ * @defaultValue 16
12
+ */
13
+ fontSize?: number;
14
+ /**
15
+ * @zh 字体类型
16
+ * @en Font family
17
+ * @defaultValue sans-serif
18
+ */
19
+ fontFamily?: string;
20
+ /**
21
+ * @zh 字体样式
22
+ * @en Font style
23
+ * @defaultValue normal
24
+ */
25
+ fontStyle?: 'none' | 'normal' | 'italic' | 'oblique';
26
+ /**
27
+ * @zh 字体对齐方式
28
+ * @en Font align
29
+ * @defaultValue center
30
+ */
31
+ textAlign?: 'start' | 'end' | 'left' | 'right' | 'center';
32
+ /**
33
+ * @zh 字体粗细
34
+ * @en Font weight
35
+ * @defaultValue normal
36
+ */
37
+ fontWeight?: 'normal' | 'bold' | 'bolder' | 'lighter' | number;
38
+ }
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export default function useMutationObserver(elRef: React.RefObject<HTMLElement>, cb: MutationCallback, options?: MutationObserverInit): void;
@@ -0,0 +1,4 @@
1
+ export declare const getPixelRatio: (context: any) => number;
2
+ export declare const canvasToGray: (canvas: HTMLCanvasElement) => void;
3
+ export declare const camelToKebab: (camelCase: string) => string;
4
+ export declare const styleToString: (style: React.CSSProperties) => string;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import type { WatermarkFont } from './interface';
3
+ type IProps = {
4
+ content?: string | string[];
5
+ image?: string;
6
+ width?: number;
7
+ height?: number;
8
+ gap?: [number, number];
9
+ offset?: [number, number];
10
+ rotate?: number;
11
+ font?: WatermarkFont;
12
+ zIndex?: number;
13
+ alpha?: number;
14
+ antiTamper?: boolean;
15
+ grayscale?: boolean;
16
+ style?: React.CSSProperties;
17
+ className?: string;
18
+ children?: React.ReactNode;
19
+ };
20
+ export type WatermarkProps = IProps;
21
+ declare const Watermark: React.FC<IProps>;
22
+ export default Watermark;
@@ -0,0 +1,6 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2023-12-14 13:24:17
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2023-12-14 13:24:17
6
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiaozhiye/qm-design-react",
3
- "version": "1.7.52",
3
+ "version": "1.7.53",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",