@ccs-ui/rc-pro 1.1.11 → 1.1.12

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.
@@ -444,7 +444,8 @@ function SearchComponent(_ref) {
444
444
  padding: 16
445
445
  },
446
446
  style: _objectSpread({
447
- borderRadius: 0
447
+ borderRadius: 0,
448
+ boxShadow: 'none'
448
449
  }, hasBorder ? {
449
450
  borderBottom: 0
450
451
  } : {}),
@@ -477,7 +477,7 @@ var InternalProTable = function InternalProTable(props) {
477
477
  }), /*#__PURE__*/_jsxs("div", {
478
478
  className: "".concat(classPrefix, "-table-content"),
479
479
  style: _objectSpread({
480
- padding: isInModalOrDrawer || inProGrid ? '0 16px 16px 16px' : 16
480
+ padding: isInModalOrDrawer || inProGrid ? 0 : 16
481
481
  }, tableStyle),
482
482
  ref: tableRef,
483
483
  children: [renderTable(), children]
@@ -12,7 +12,6 @@ import { TabsContext } from "../context";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { Fragment as _Fragment } from "react/jsx-runtime";
14
14
  export default (function (_ref) {
15
- var _children$items;
16
15
  var children = _ref.children;
17
16
  var _ref2 = (children === null || children === void 0 ? void 0 : children.props) || {},
18
17
  _ref2$items = _ref2.items,
@@ -38,7 +37,7 @@ export default (function (_ref) {
38
37
  $set: items
39
38
  }
40
39
  }));
41
- }, [children === null || children === void 0 ? void 0 : (_children$items = children.items) === null || _children$items === void 0 ? void 0 : _children$items.map(function (t) {
40
+ }, [items === null || items === void 0 ? void 0 : items.map(function (t) {
42
41
  return t.key;
43
42
  }).join(',')]);
44
43
  var _theme$useToken = theme.useToken(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "A react pro components",
5
5
  "license": "MIT",
6
6
  "module": "es/index.js",
package/es/ccs.d.ts DELETED
@@ -1,209 +0,0 @@
1
- import { ButtonProps, MenuProps, ThemeConfig } from 'antd';
2
- import { Rule } from 'antd/es/form';
3
- import { ColumnGroupType, ColumnType } from 'antd/es/table';
4
- import { MutableRefObject, ReactElement, ReactNode } from 'react';
5
- type MenuTreeNodeData = {
6
- buttonUrlId: number;
7
- createTime: string;
8
- icon?: string;
9
- menuCode: string;
10
- menuDesc: string;
11
- menuName: string;
12
- menuType: number;
13
- menuUrl: string;
14
- parentMenuCode: string;
15
- sortId: number;
16
- state: number;
17
- updateTime: string;
18
- urlName: string;
19
- urlPath: string;
20
- };
21
- type MenuParentType = {
22
- key: string;
23
- url: string;
24
- name: string;
25
- };
26
- type MenuTreeNode = {
27
- nodeId: string;
28
- nodeName: string;
29
- icon: string;
30
- leaf: boolean;
31
- nodeData: MenuTreeNodeData;
32
- children?: MenuTreeNode[];
33
- topUrl?: string;
34
- parents?: MenuParentType[];
35
- };
36
- type UserDetail = {
37
- /** 头像 */
38
- avatar?: string;
39
- /** 用户名 */
40
- workerName: string;
41
- };
42
- type TableData<T> = {
43
- /** loading */
44
- loading?: boolean;
45
- /** 总条数 */
46
- totalNum?: number;
47
- /** 单页记录数 */
48
- pageSize?: number;
49
- /** 页码 */
50
- pageNo?: number;
51
- /** Array List 数据 */
52
- result?: T[];
53
- };
54
- type HttpResult<T = any> = {
55
- code: string;
56
- success: boolean;
57
- data: T;
58
- msg: string;
59
- };
60
- type PageType<T> = {
61
- hasNext: boolean;
62
- totalNum: number;
63
- pageNo: number;
64
- pageSize: number;
65
- result: T[];
66
- };
67
- type HttpPageResult<T = any> = Omit<HttpResult<T>, 'data'> & {
68
- data: PageType<T>;
69
- };
70
- type HttpListResult<T = any> = Omit<HttpResult<T>, 'data'> & {
71
- data: T[];
72
- };
73
- type OrderProp = {
74
- ascending: boolean;
75
- prop: string;
76
- };
77
- type QueryLimit = {
78
- fetchSize: number;
79
- startIndex: number;
80
- };
81
- type PageQuery<T = any> = {
82
- /** 查询的开始行数和取多少行,从0开始 */
83
- limit?: QueryLimit;
84
- /** 排序字段,一般前端不传,由后端指定 */
85
- orderProps?: OrderProp[];
86
- /** 页码 */
87
- pageNo?: number;
88
- /** 页长 */
89
- pageSize?: number;
90
- /** 查询条件 */
91
- query: T;
92
- };
93
- type ListQuery<T = any> = {
94
- /** 查询的开始行数和取多少行,从0开始 */
95
- limit?: QueryLimit;
96
- /** 排序字段,一般前端不传,由后端指定 */
97
- orderProps?: OrderProp[];
98
- /** 查询条件 */
99
- query: T;
100
- };
101
- type RecordType = Record<string, any>;
102
- type RouteHistory = {
103
- menuName: string;
104
- pathName: string;
105
- time: Date;
106
- };
107
- type TableDataType<T> = {
108
- /** loading */
109
- loading?: boolean;
110
- /** 总条数 */
111
- totalNum?: number;
112
- /** 单页记录数 */
113
- pageSize?: number;
114
- /** 页码 */
115
- pageNo?: number;
116
- /** Array List 数据 */
117
- result?: T[];
118
- };
119
- type TableInstance<T = any> = {
120
- /** 获取form表单数据 */
121
- formValues: Record<string, any>;
122
- /** 获取当前表单数据 */
123
- data: TableDataType<T>;
124
- /** 查询数据,根据条件,从第一页开始显示 */
125
- onSearch: () => void;
126
- /** 刷新数据、根据条件,当前页 */
127
- onReload: () => void;
128
- /** 异步树、局部刷新方法 */
129
- onPartialReload: (id: React.Key) => void;
130
- /** 重置数据,清空选择 */
131
- onReset: () => void;
132
- /** 改变data 数据 */
133
- onChangeData: React.Dispatch<React.SetStateAction<TableDataType<T>>>;
134
- };
135
- type AuthButtonItem = {
136
- key: string;
137
- label: string;
138
- auth?: string;
139
- type?: ButtonProps['type'];
140
- disabled?: boolean;
141
- hidden?: boolean;
142
- danger?: boolean;
143
- icon?: ReactNode;
144
- confirm?: string;
145
- };
146
- type TriggerChildrenProps<T = any> = {
147
- /** 选中值 */
148
- value?: T;
149
- /** 选择框loading状态 */
150
- onLoading?: (loading: boolean) => void;
151
- /** 关闭弹框 */
152
- onVisible?: (visible: boolean) => void;
153
- /** 选中值改变事件 */
154
- onChange?: ({}: T) => void;
155
- /** 选择框显示名称 */
156
- onChangeLabel?: (text: string | undefined) => void;
157
- };
158
- type ShowDependType = {
159
- name: string;
160
- value: any;
161
- };
162
- type TableFormItem = {
163
- /** label 标题 */
164
- label?: string;
165
- /** form name */
166
- name: string;
167
- /** form item element */
168
- value: ReactElement;
169
- /** 主条件 */
170
- isMain?: boolean;
171
- /** 数据依赖、依赖项对应的name数组 */
172
- depends?: string[];
173
- /** 显示依赖 */
174
- showDepends?: ShowDependType[];
175
- /** 必填规则 */
176
- rules?: Rule[];
177
- /** 格式化值 */
178
- onFormat?: (e: any) => any;
179
- };
180
- type GlobalConfig = {
181
- /** 项目名称 */
182
- AppName: string;
183
- /** 主题 */
184
- AppTheme: 'default' | 'dark';
185
- /** ant组件配置 */
186
- AppThemeConfig: ThemeConfig;
187
- /** 菜单展开模式 */
188
- MenuExpandMode: MenuProps['mode'];
189
- /** 菜单展开宽度 */
190
- MenuExpandWidth: number;
191
- /** 菜单收起宽度 */
192
- MenuCollapsedWidth: number;
193
- /** tabs缓存页 */
194
- IsTabsPage: boolean;
195
- /** http 请求通用前缀 */
196
- Api: string;
197
- /** 路由上下文 */
198
- Context: string;
199
- /** 图片上传地址 */
200
- UploadUrl?: string;
201
- /** 图片下载地址 */
202
- DownloadUrl?: string;
203
- };
204
- type TableFormItems = TableFormItem[];
205
- type TableInstanceRef<T = any> = MutableRefObject<TableInstance<T> | undefined> | React.RefObject<TableInstance<T>>;
206
- type TableColumns<RecordType = any> = ((ColumnGroupType<RecordType> | ColumnType<RecordType>) & {
207
- hidden?: boolean;
208
- })[];
209
- export type { PageType, RecordType, MenuTreeNode, PageQuery, ListQuery, HttpResult, GlobalConfig, HttpListResult, HttpPageResult, AuthButtonItem, MenuTreeNodeData, UserDetail, RouteHistory, TableData, TableFormItems, TableColumns, TableInstance, TableInstanceRef, TriggerChildrenProps, };
@@ -1,18 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- import { RGBColor } from 'react-color';
3
- import './index.less';
4
- export type PropsType = {
5
- /** 指定选中项 */
6
- value?: RGBColor;
7
- /** 占位 */
8
- placeholder?: string;
9
- /** 内部样式 */
10
- style?: CSSProperties;
11
- /** 选择完成后的回调 */
12
- onChange?: (value: RGBColor) => void;
13
- };
14
- /**
15
- * 颜色选择组件
16
- */
17
- declare const ColorPicker: ({ onChange, value, style }: PropsType) => import("react/jsx-runtime").JSX.Element;
18
- export default ColorPicker;
@@ -1,20 +0,0 @@
1
- import { DatePickerProps } from 'antd';
2
- import { PickerPanelDateProps } from 'antd/es/calendar/generateCalendar';
3
- import { RangePickerProps } from 'antd/es/date-picker';
4
- import { Dayjs } from 'dayjs';
5
- type CcsDatePickerProps = {
6
- value?: string;
7
- picker?: 'year' | 'month' | 'date';
8
- onChange?: (e: string) => void;
9
- } & Omit<PickerPanelDateProps<Dayjs>, 'value' | 'onChange' | 'picker'> & Omit<DatePickerProps, 'value' | 'onChange' | 'picker'>;
10
- type CcsRangePickerProps = {
11
- showTime?: boolean;
12
- value?: [string, string];
13
- picker?: 'year' | 'month' | 'date';
14
- onChange?: (e: [string, string]) => void;
15
- } & Omit<RangePickerProps, 'value' | 'onChange'>;
16
- declare function CcsDatePicker({ value, onChange, ...restProps }: CcsDatePickerProps): import("react/jsx-runtime").JSX.Element;
17
- declare namespace CcsDatePicker {
18
- var RangePicker: ({ value, onChange, ...restProps }: CcsRangePickerProps) => import("react/jsx-runtime").JSX.Element;
19
- }
20
- export default CcsDatePicker;
@@ -1,16 +0,0 @@
1
- import { FormInstance, FormProps } from 'antd';
2
- import React, { CSSProperties, ReactNode } from 'react';
3
- type PropsType = {
4
- children: ReactNode;
5
- formProps: FormProps;
6
- styles?: CSSProperties;
7
- };
8
- export type DialogFormRef = {
9
- formInstance: FormInstance;
10
- };
11
- /**
12
- * 添加form实例
13
- * @returns
14
- */
15
- declare const DialogForm: React.ForwardRefExoticComponent<PropsType & React.RefAttributes<DialogFormRef>>;
16
- export default DialogForm;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- export default function usePatchElement(): [
3
- React.ReactElement[],
4
- (element: React.ReactElement) => Function
5
- ];
@@ -1,10 +0,0 @@
1
- export declare class EventInstance<T = any, ActionType = any> {
2
- private subscriptions;
3
- emit: (val: T, actionType?: ActionType) => void;
4
- useSubscription: (callback: (val: T) => void, actionType?: ActionType) => T;
5
- }
6
- /**
7
- * 组件消息订阅方式传值
8
- * @returns
9
- */
10
- export default function Event<T = void, ActionType = any>(): EventInstance<T, ActionType>;
@@ -1,2 +0,0 @@
1
- declare const useOnceEvent: (fn: (...params: any) => void) => (...args: any) => void;
2
- export default useOnceEvent;
@@ -1,11 +0,0 @@
1
- type CcsLoadingProps = {
2
- /**
3
- * loading 状态
4
- * @default false
5
- */
6
- loading?: boolean;
7
- /** loading 文字说明 */
8
- loadingTip?: string;
9
- };
10
- declare const Loading: ({ loading, loadingTip }: CcsLoadingProps) => import("react/jsx-runtime").JSX.Element | null;
11
- export default Loading;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export type GridContextType = {
3
- inProGrid: boolean;
4
- };
5
- export declare const GridContext: React.Context<GridContextType>;
@@ -1,25 +0,0 @@
1
- import { CardProps } from 'antd';
2
- import { CSSProperties, FC, ReactNode } from 'react';
3
- import './index.less';
4
- type ClassProps = {
5
- className?: string;
6
- style?: CSSProperties;
7
- };
8
- type CcsProGridProps = ClassProps & {
9
- title?: string;
10
- titleExtra?: ReactNode;
11
- bordered?: boolean;
12
- hideTitle?: boolean;
13
- children?: ReactNode;
14
- };
15
- type ColProps = CardProps & {
16
- colSpan?: string | number;
17
- colStyle?: CSSProperties;
18
- colClassName?: string;
19
- };
20
- type GridInstance = FC<CcsProGridProps> & {
21
- Col: typeof GridCol;
22
- };
23
- declare const GridCol: ({ colSpan, colClassName, colStyle, ...otherProps }: ColProps) => import("react/jsx-runtime").JSX.Element;
24
- declare const ProGrid: GridInstance;
25
- export default ProGrid;
@@ -1,2 +0,0 @@
1
- declare function useProGrid(): import("./context").GridContextType;
2
- export default useProGrid;
@@ -1,9 +0,0 @@
1
- export type CcsStatusTagProps = {
2
- value: any;
3
- options: {
4
- value: any;
5
- label: string;
6
- tag: string[];
7
- }[];
8
- };
9
- export default function CcsStatusTag({ value, options, }: CcsStatusTagProps): any;
@@ -1,16 +0,0 @@
1
- import { TimePickerProps } from 'antd';
2
- import { RangePickerTimeProps } from 'antd/es/date-picker/generatePicker';
3
- import { Dayjs } from 'dayjs';
4
- type CcsTimePickerProps = {
5
- value?: string;
6
- onChange?: (e: string) => void;
7
- } & Omit<TimePickerProps, 'value' | 'onChange'>;
8
- type CcsRangePickerProps = {
9
- value?: [string, string];
10
- onChange?: (e: [string, string]) => void;
11
- } & Omit<RangePickerTimeProps<Dayjs>, 'value' | 'onChange' | 'picker'>;
12
- declare function CcsDatePicker({ value, onChange, ...restProps }: CcsTimePickerProps): import("react/jsx-runtime").JSX.Element;
13
- declare namespace CcsDatePicker {
14
- var RangePicker: ({ value, onChange, ...restProps }: CcsRangePickerProps) => import("react/jsx-runtime").JSX.Element;
15
- }
16
- export default CcsDatePicker;
@@ -1,48 +0,0 @@
1
- import { CSSProperties, ReactElement } from 'react';
2
- import { SizeType } from 'antd/es/config-provider/SizeContext';
3
- import './index.less';
4
- export type CcsTriggerProps = {
5
- /** 下拉框宽度 */
6
- width?: number;
7
- /** 下拉框高度 */
8
- height?: number;
9
- /**
10
- * @description input size:'small' | 'middle' | 'large'
11
- * @default 'middle'
12
- */
13
- size?: SizeType;
14
- /**
15
- * @description 禁用选择
16
- * @default false
17
- */
18
- disabled?: boolean;
19
- /** 选择内容 */
20
- children?: ReactElement;
21
- /** Form.Item value */
22
- value?: any;
23
- /** style */
24
- style?: CSSProperties;
25
- /** class */
26
- className?: string;
27
- /** input placeholder */
28
- placeholder?: string;
29
- /**
30
- * 是否在首次显示前渲染弹出内容
31
- * @default false
32
- */
33
- forceRender?: boolean;
34
- /**
35
- * @description popup挂载的html节点,默认:document.body、true:当前dom
36
- * @default document.body
37
- */
38
- popupContainer?: boolean;
39
- /** Form.Item onChange */
40
- onChange?: (value?: any) => void;
41
- };
42
- /**
43
- * 适用于Form.Item中的 trigger组件,其内容自行定义,遵循ant form 自定义组件规范
44
- * @param CcsTriggerPropsType
45
- * @returns
46
- */
47
- declare const TriggerComponent: (props: CcsTriggerProps) => import("react/jsx-runtime").JSX.Element;
48
- export default TriggerComponent;
package/es/types.d.ts DELETED
File without changes
@@ -1,105 +0,0 @@
1
- import dayjs from 'dayjs';
2
- type DayjsType = dayjs.Dayjs & {
3
- fromNow(withoutSuffix?: boolean): string;
4
- from(compared: dayjs.ConfigType, withoutSuffix?: boolean): string;
5
- toNow(withoutSuffix?: boolean): string;
6
- to(compared: dayjs.ConfigType, withoutSuffix?: boolean): string;
7
- };
8
- export default class utils {
9
- /**
10
- * 是函数?
11
- * @param obj
12
- * @returns
13
- */
14
- static isFunction(obj: any): obj is Function;
15
- /**
16
- * 获取stroage
17
- * @param key
18
- * @returns
19
- */
20
- static getStroage(key: string): Promise<unknown>;
21
- /**
22
- * 设置stroage
23
- * @param key
24
- * @param value
25
- * @returns
26
- */
27
- static setStroage(key: string, value: any): Promise<any>;
28
- /** 删除stroage */
29
- static removeStroage(key: string): Promise<void>;
30
- static showLogWarning(message: string): void;
31
- /**
32
- * 开发环境抛警告
33
- * @param valid
34
- * @param message
35
- */
36
- static showWarning(valid: boolean, message: string): void;
37
- /** nodejs 环境 */
38
- static isNode: boolean;
39
- /**
40
- * 浏览器环境
41
- * @returns
42
- */
43
- static isBrowser(): boolean;
44
- /**
45
- * 格式化成dayjs
46
- * @param date
47
- * @returns
48
- */
49
- static dayjs(date?: string | number | Date | dayjs.Dayjs | null | undefined): DayjsType;
50
- /**
51
- * 空判断
52
- * @param val
53
- * @returns
54
- */
55
- static isEmpty: (val: unknown) => boolean;
56
- /**
57
- * 非空
58
- * @param val
59
- * @returns
60
- */
61
- static isNotEmpty: (val: unknown) => boolean;
62
- /**
63
- * json转base64
64
- * @param value
65
- * @returns
66
- */
67
- static jsonToBase64(value: any): string;
68
- /**
69
- * base64转json
70
- * @param value
71
- * @returns
72
- */
73
- static base64ToJson<T = any>(value: string): T | null;
74
- /**
75
- * JSON.parse
76
- * @param value
77
- * @returns
78
- */
79
- static jsonParse<T = any>(value: string): T;
80
- /**
81
- * string to HEX
82
- * @param {*} str
83
- */
84
- static stringToHex(str: string): string;
85
- /**
86
- * string to dayjs
87
- * @param val
88
- * @param formartType // YYYY-MM-DD HH:mm:ss https://dayjs.fenxianglu.cn/category/display.html#%E6%A0%BC%E5%BC%8F%E5%8C%96
89
- * @returns
90
- */
91
- static dayjsFmt(val: string | undefined, formartType?: string): dayjs.Dayjs | undefined;
92
- /**
93
- * 空对象?
94
- * @param obj
95
- * @returns
96
- */
97
- static objIsEmpty(obj: any): boolean;
98
- /**
99
- * 判断值不为空
100
- * @param str string,object,array
101
- * @returns
102
- */
103
- static isNil(str: any): boolean;
104
- }
105
- export {};
@@ -1,52 +0,0 @@
1
- import { CSSProperties, ReactNode, RefObject } from 'react';
2
- type Position = {
3
- left: number;
4
- top: number;
5
- };
6
- export type RowRendererProps = {
7
- rowHeight: number;
8
- index: number;
9
- };
10
- export type VirtualInstance = {
11
- scrollTop: (top: number) => void;
12
- };
13
- export type VirtualListProps = {
14
- /** 容器高度 */
15
- height?: number;
16
- /** 记录条数 */
17
- rowCount: number;
18
- /** 行高 */
19
- rowHeight: number;
20
- /**
21
- * 自动隐藏滚动条
22
- * @default true
23
- */
24
- autoHideScroll?: boolean;
25
- /** 显示条数 */
26
- overscanRowCount: number;
27
- /** 条数改变定位顶部 */
28
- rowCountChangeScrollTop?: boolean;
29
- /** instance */
30
- virtualRef?: RefObject<VirtualInstance>;
31
- style?: CSSProperties;
32
- className?: string;
33
- /** 渲染row */
34
- rowRenderer: ({ rowHeight, index }: RowRendererProps) => ReactNode;
35
- /** scroll event */
36
- onScroll?: (position: Position) => void;
37
- };
38
- export type VirtualListItemProps = Pick<VirtualListProps, 'rowHeight' | 'rowRenderer'> & {
39
- index: number;
40
- };
41
- export type ListItemProps = {
42
- prefix: ReactNode;
43
- title: ReactNode;
44
- extra?: ReactNode;
45
- extraIcon?: ReactNode;
46
- height: number;
47
- className?: string;
48
- description?: ReactNode;
49
- onClick?: () => void;
50
- };
51
- declare const VirtualList: ({ height, rowCount, rowHeight, className, style, virtualRef, onScroll, rowRenderer, autoHideScroll, overscanRowCount, rowCountChangeScrollTop, }: VirtualListProps) => import("react/jsx-runtime").JSX.Element;
52
- export default VirtualList;
@@ -1,69 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- export type WaterMarkProps = {
3
- /** 水印文字内容 */
4
- content?: string;
5
- /** 类名 */
6
- className?: string;
7
- /** 样式 */
8
- style?: React.CSSProperties;
9
- /** 水印样式 */
10
- markStyle?: React.CSSProperties;
11
- /** 水印类名 */
12
- markClassName?: string;
13
- /** 水印之间的水平间距 */
14
- gapX?: number;
15
- /** 水印之间的垂直间距 */
16
- gapY?: number;
17
- /** 追加的水印元素的z-index */
18
- zIndex?: number;
19
- /** 水印的宽度 */
20
- width?: number;
21
- /** 水印的高度 */
22
- height?: number;
23
- /** 水印在canvas 画布上绘制的垂直偏移量,正常情况下,水印绘制在中间位置, 即 offsetTop = gapY / 2 */
24
- offsetTop?: number;
25
- /** 水印在canvas 画布上绘制的水平偏移量, 正常情况下,水印绘制在中间位置, 即 offsetTop = gapX / 2 */
26
- offsetLeft?: number;
27
- /** 水印绘制时,旋转的角度,单位 ° */
28
- rotate?: number;
29
- /** ClassName 前缀 */
30
- prefixCls?: string;
31
- /** 高清印图片源, 为了高清屏幕显示,建议使用 2倍或3倍图,优先使用图片渲染水印。 */
32
- image?: string;
33
- /**
34
- * @description 文字颜色
35
- * @default rgba(0,0,0,.15)
36
- */
37
- fontColor?: string;
38
- /**
39
- * @description 文字样式
40
- * @default normal
41
- */
42
- fontStyle?: 'none' | 'normal' | 'italic' | 'oblique';
43
- /**
44
- * @description 文字族
45
- * @default sans-serif
46
- */
47
- fontFamily?: string;
48
- /**
49
- * @description 文字粗细
50
- * @default normal
51
- */
52
- fontWeight?: 'normal' | 'light' | 'weight' | number;
53
- /**
54
- * @description 文字大小
55
- * @default 16
56
- */
57
- fontSize?: number | string;
58
- /**
59
- * 组件 children
60
- */
61
- children?: ReactNode;
62
- };
63
- /**
64
- * 水印组件
65
- * @param WaterMarkProps
66
- * @returns
67
- */
68
- declare const WaterMarkComponent: (props: WaterMarkProps) => import("react/jsx-runtime").JSX.Element;
69
- export default WaterMarkComponent;