gxxc-ui 1.0.2 → 1.0.4
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/AmountCellUI/index.js +1 -1
- package/dist/TagUI/index.js +1 -1
- package/dist/Tiga/material/quickType.js +1 -1
- package/dist/UploadUI/index.js +1 -1
- package/dist/VideoPreviewUI/index.js +1 -1
- package/package.json +3 -4
- package/dist/AnchorUI/index.d.ts +0 -4
- package/dist/ButtonUI/index.d.ts +0 -9
- package/dist/Components/index.d.ts +0 -2
- package/dist/DateUI/index.d.ts +0 -5
- package/dist/DescriptionsUI/index.d.ts +0 -19
- package/dist/EmptyUI/emptyImage.d.ts +0 -3
- package/dist/EmptyUI/index.d.ts +0 -9
- package/dist/FormUI/index.d.ts +0 -4
- package/dist/IconUI/index.d.ts +0 -27
- package/dist/IconUI/material/material.d.ts +0 -16
- package/dist/IconUI/material/rally.d.ts +0 -22
- package/dist/InputUI/index.d.ts +0 -7
- package/dist/LoadingUI/index.d.ts +0 -4
- package/dist/MessageUI/index.d.ts +0 -3
- package/dist/ModalUI/index.d.ts +0 -4
- package/dist/NotificationUI/index.d.ts +0 -3
- package/dist/PasswordStrongUI/index.d.ts +0 -8
- package/dist/RichEditorUI/index.d.ts +0 -10
- package/dist/SwitchUI/index.d.ts +0 -4
- package/dist/TableUI/material/Button/index.d.ts +0 -4
- package/dist/TestUI/index.d.ts +0 -3
- package/dist/TextUI/index.d.ts +0 -7
- package/dist/UploadUI/type.d.ts +0 -4
- package/dist/VesselUI/type.d.ts +0 -64
- package/dist/assets/index.d.ts +0 -1
|
@@ -6,7 +6,7 @@ import { Tooltip } from 'antd';
|
|
|
6
6
|
import lodash from 'lodash';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import CountUp from 'react-countup';
|
|
9
|
-
import { num_expand } from '
|
|
9
|
+
import { num_expand } from 'gxxc-util';
|
|
10
10
|
export default function AmountCellUI(props) {
|
|
11
11
|
var className = props.className,
|
|
12
12
|
children = props.children,
|
package/dist/TagUI/index.js
CHANGED
|
@@ -9,7 +9,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
9
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
11
|
import React, { useMemo } from 'react';
|
|
12
|
-
import { getOptionConfig } from '
|
|
12
|
+
import { getOptionConfig } from 'gxxc-util';
|
|
13
13
|
import "./index.scss";
|
|
14
14
|
|
|
15
15
|
// 配置色枚举
|
|
@@ -6,7 +6,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { CellUI, TagUI } from "../..";
|
|
9
|
-
import { num_expand_100, num_reduce_100 } from '
|
|
9
|
+
import { num_expand_100, num_reduce_100 } from 'gxxc-util';
|
|
10
10
|
/** 当前表头类型 */
|
|
11
11
|
|
|
12
12
|
/** 渲染表格的Columns */
|
package/dist/UploadUI/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import { DownloadOutlined, RotateLeftOutlined, RotateRightOutlined, SwapOutlined
|
|
|
25
25
|
import { Image, Space, Upload } from 'antd';
|
|
26
26
|
import React, { useEffect, useState } from 'react';
|
|
27
27
|
import { IconUI, MessageUI } from "./..";
|
|
28
|
-
import { file_calculate_md5, getUrlConfig } from '
|
|
28
|
+
import { file_calculate_md5, getUrlConfig } from 'gxxc-util';
|
|
29
29
|
import "./index.scss";
|
|
30
30
|
import { DraggerFileItems } from "./type";
|
|
31
31
|
// 文件名转义 后端解析地址需要排除部分符号
|
|
@@ -10,7 +10,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
import React, { useEffect, useState } from 'react';
|
|
12
12
|
import { IconUI } from "./..";
|
|
13
|
-
import { video_preview } from '
|
|
13
|
+
import { video_preview } from 'gxxc-util';
|
|
14
14
|
import "./index.scss";
|
|
15
15
|
var VideoPreviewUI = function VideoPreviewUI(props) {
|
|
16
16
|
var videoUrl = props.videoUrl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gxxc-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A react library developed with dumi",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
21
21
|
"prepare": "husky install && dumi setup",
|
|
22
22
|
"prepublishOnly": "father doctor && npm run build",
|
|
23
|
-
"start": "npm run dev"
|
|
24
|
-
"publish": "npm publish"
|
|
23
|
+
"start": "npm run dev"
|
|
25
24
|
},
|
|
26
25
|
"lint-staged": {
|
|
27
26
|
"*.{md,json}": [
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
"react-countup": "^6.5.3",
|
|
56
55
|
"react-draggable": "^4.4.6",
|
|
57
56
|
"react-router-dom": "^6.13.0",
|
|
58
|
-
"
|
|
57
|
+
"gxxc-util": "^1.0.0"
|
|
59
58
|
},
|
|
60
59
|
"devDependencies": {
|
|
61
60
|
"@commitlint/cli": "^17.1.2",
|
package/dist/AnchorUI/index.d.ts
DELETED
package/dist/ButtonUI/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from 'antd';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import './index.scss';
|
|
4
|
-
interface ButtonUIProps extends ButtonProps {
|
|
5
|
-
iconPosition?: 'start' | 'end';
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare const ButtonUI: React.FC<ButtonUIProps>;
|
|
9
|
-
export default ButtonUI;
|
package/dist/DateUI/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
interface IProps {
|
|
4
|
-
items: ItemType[];
|
|
5
|
-
isSingleLine?: boolean;
|
|
6
|
-
labelWidth?: number | string;
|
|
7
|
-
type?: 'table' | 'text';
|
|
8
|
-
layout?: 'horizontal' | 'vertical';
|
|
9
|
-
labelAlign?: 'left' | 'right';
|
|
10
|
-
colon?: boolean;
|
|
11
|
-
}
|
|
12
|
-
interface ItemType {
|
|
13
|
-
label: string;
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
span?: number;
|
|
16
|
-
noDataHide?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare const DescriptionsUI: (props: IProps) => React.JSX.Element;
|
|
19
|
-
export default DescriptionsUI;
|
package/dist/EmptyUI/index.d.ts
DELETED
package/dist/FormUI/index.d.ts
DELETED
package/dist/IconUI/index.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface IconUIProps {
|
|
3
|
-
/** 图标名称 */
|
|
4
|
-
name: string;
|
|
5
|
-
/** 图标大小 */
|
|
6
|
-
size?: string | number;
|
|
7
|
-
/** 图标填充颜色 */
|
|
8
|
-
fill?: string;
|
|
9
|
-
/** 图标描边宽度 */
|
|
10
|
-
strokeWidth?: number;
|
|
11
|
-
/** 图标主题 */
|
|
12
|
-
theme?: 'outline' | 'filled' | 'two-tone' | 'multi-color';
|
|
13
|
-
/** 图标宽度 */
|
|
14
|
-
width?: string | number;
|
|
15
|
-
/** 图标高度 */
|
|
16
|
-
height?: string | number;
|
|
17
|
-
/** 自定义类名 */
|
|
18
|
-
className?: string;
|
|
19
|
-
/** 自定义样式 */
|
|
20
|
-
style?: React.CSSProperties;
|
|
21
|
-
/** 点击事件 */
|
|
22
|
-
onClick?: (e: React.MouseEvent<SVGSVGElement>) => void;
|
|
23
|
-
/** 其他属性 */
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
}
|
|
26
|
-
declare const IconUI: React.FC<IconUIProps>;
|
|
27
|
-
export default IconUI;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
color: string;
|
|
4
|
-
width?: string | number;
|
|
5
|
-
height?: string | number;
|
|
6
|
-
}
|
|
7
|
-
export declare const Minsheng: (props: IProps) => React.JSX.Element;
|
|
8
|
-
export declare const Pingan: (props: IProps) => React.JSX.Element;
|
|
9
|
-
export declare const Iconwx: (props: IProps) => React.JSX.Element;
|
|
10
|
-
export declare const Iconzfb: (props: IProps) => React.JSX.Element;
|
|
11
|
-
export declare const Zhaoshang: (props: IProps) => React.JSX.Element;
|
|
12
|
-
export declare const Point: (props: IProps) => React.JSX.Element;
|
|
13
|
-
export declare const UploadPdf: (props: IProps) => React.JSX.Element;
|
|
14
|
-
export declare const UploadImage: (props: IProps) => React.JSX.Element;
|
|
15
|
-
export declare const UploadExcel: (props: IProps) => React.JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface IconProps {
|
|
3
|
-
size?: string | number;
|
|
4
|
-
fill?: string;
|
|
5
|
-
strokeWidth?: number;
|
|
6
|
-
theme?: 'outline' | 'filled' | 'two-tone' | 'multi-color';
|
|
7
|
-
width?: string | number;
|
|
8
|
-
height?: string | number;
|
|
9
|
-
className?: string;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
onClick?: (e: React.MouseEvent<SVGSVGElement>) => void;
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}
|
|
14
|
-
export interface IconItem {
|
|
15
|
-
name: string;
|
|
16
|
-
element: (props: IconProps) => JSX.Element;
|
|
17
|
-
}
|
|
18
|
-
/** Icon 集合 */
|
|
19
|
-
export declare const iconRally: IconItem[];
|
|
20
|
-
export declare const iconMap: Record<string, IconItem>;
|
|
21
|
-
export declare const getIconByName: (name: string) => IconItem | undefined;
|
|
22
|
-
export declare const searchIcons: (keyword: string) => IconItem[];
|
package/dist/InputUI/index.d.ts
DELETED
package/dist/ModalUI/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import '@wangeditor/editor/dist/css/style.css';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import './index.scss';
|
|
4
|
-
interface RichEditorProps {
|
|
5
|
-
value?: string;
|
|
6
|
-
onChange?: (html: string) => void;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const RichEditorUI: (props: RichEditorProps) => React.JSX.Element;
|
|
10
|
-
export default RichEditorUI;
|
package/dist/SwitchUI/index.d.ts
DELETED
package/dist/TestUI/index.d.ts
DELETED
package/dist/TextUI/index.d.ts
DELETED
package/dist/UploadUI/type.d.ts
DELETED
package/dist/VesselUI/type.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export interface TableHeaderItem {
|
|
2
|
-
sort?: number;
|
|
3
|
-
id?: number;
|
|
4
|
-
key?: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
selected?: boolean;
|
|
7
|
-
disable?: boolean;
|
|
8
|
-
title?: string;
|
|
9
|
-
dataIndex?: string;
|
|
10
|
-
width?: number;
|
|
11
|
-
fixed?: string;
|
|
12
|
-
render?: unknown;
|
|
13
|
-
type?: string;
|
|
14
|
-
transform?: any;
|
|
15
|
-
}
|
|
16
|
-
export interface ResourceList {
|
|
17
|
-
resourceId: number;
|
|
18
|
-
resourceName?: string;
|
|
19
|
-
key?: string;
|
|
20
|
-
element?: any;
|
|
21
|
-
}
|
|
22
|
-
export interface FilterParamsType {
|
|
23
|
-
page?: number;
|
|
24
|
-
size?: number;
|
|
25
|
-
searchField?: string;
|
|
26
|
-
startDate?: string;
|
|
27
|
-
endDate?: string;
|
|
28
|
-
zoneId?: number;
|
|
29
|
-
companyId?: number;
|
|
30
|
-
operateId?: number;
|
|
31
|
-
saleId?: number;
|
|
32
|
-
agentName?: string;
|
|
33
|
-
firstIndustryId?: number;
|
|
34
|
-
secondIndustryId?: number;
|
|
35
|
-
status?: number;
|
|
36
|
-
agentLevel?: number;
|
|
37
|
-
sortInfoList?: {
|
|
38
|
-
order: string;
|
|
39
|
-
sortBy: string;
|
|
40
|
-
}[];
|
|
41
|
-
exportColumn?: any[];
|
|
42
|
-
globalNo?: number;
|
|
43
|
-
checkStatus?: number;
|
|
44
|
-
exportId?: any[];
|
|
45
|
-
exportIdName?: string;
|
|
46
|
-
name?: string;
|
|
47
|
-
accountType?: number;
|
|
48
|
-
subType?: number;
|
|
49
|
-
[key: string]: any;
|
|
50
|
-
}
|
|
51
|
-
export interface Vessel {
|
|
52
|
-
tabType?: string;
|
|
53
|
-
limit: ResourceList[] | [];
|
|
54
|
-
choice?: boolean;
|
|
55
|
-
multipleChoice?: string[] | number[] | [];
|
|
56
|
-
tableSetStatus?: boolean;
|
|
57
|
-
filterParams?: FilterParamsType;
|
|
58
|
-
headerList?: TableHeaderItem[];
|
|
59
|
-
tabOneheaderList?: TableHeaderItem[];
|
|
60
|
-
tabTwoheaderList?: TableHeaderItem[];
|
|
61
|
-
tabThreeheaderList?: TableHeaderItem[];
|
|
62
|
-
tabFourheaderList?: TableHeaderItem[];
|
|
63
|
-
moreFilters?: boolean;
|
|
64
|
-
}
|
package/dist/assets/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|