gxxc-ui 1.0.3 → 1.0.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.
@@ -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 'sic-util';
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,
@@ -32,10 +32,10 @@ export var Operate = function Operate(props) {
32
32
  trigger: "click",
33
33
  placement: "bottom",
34
34
  content: renderPopoverContent(childrenArray)
35
- }, /*#__PURE__*/React.createElement(IconUI, {
35
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(IconUI, {
36
36
  className: "sicTableuiOperate-more",
37
37
  name: "More"
38
- })), (childrenArray === null || childrenArray === void 0 ? void 0 : childrenArray.length) === 0 && /*#__PURE__*/React.createElement(TextUI, null, " - "));
38
+ }))), (childrenArray === null || childrenArray === void 0 ? void 0 : childrenArray.length) === 0 && /*#__PURE__*/React.createElement(TextUI, null, " - "));
39
39
  };
40
40
  return /*#__PURE__*/React.createElement("div", {
41
41
  className: "sicTableuiOperate"
@@ -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 'sic-util';
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 'sic-util';
9
+ import { num_expand_100, num_reduce_100 } from 'gxxc-util';
10
10
  /** 当前表头类型 */
11
11
 
12
12
  /** 渲染表格的Columns */
@@ -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 'sic-util';
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 'sic-util';
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",
3
+ "version": "1.0.5",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -54,7 +54,7 @@
54
54
  "react-countup": "^6.5.3",
55
55
  "react-draggable": "^4.4.6",
56
56
  "react-router-dom": "^6.13.0",
57
- "sic-util": "^0.2.8"
57
+ "gxxc-util": "^1.0.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@commitlint/cli": "^17.1.2",
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const AnchorUI: (props: any) => React.JSX.Element;
4
- export default AnchorUI;
@@ -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;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function index(): React.JSX.Element;
@@ -1,5 +0,0 @@
1
- import 'dayjs/locale/zh-cn';
2
- import React from 'react';
3
- import './index.scss';
4
- declare const DateUI: (props: any) => React.JSX.Element;
5
- export default DateUI;
@@ -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;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const EmptyImage: () => React.JSX.Element;
3
- export default EmptyImage;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- interface IProps {
4
- className?: string;
5
- image?: any;
6
- text?: string;
7
- }
8
- declare const EmptyUI: (props: IProps) => React.JSX.Element;
9
- export default EmptyUI;
@@ -1,4 +0,0 @@
1
- import './index.scss';
2
- /** 继承关系,继续完善 */
3
- declare const FormUI: any;
4
- export default FormUI;
@@ -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[];
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const InputUI: {
4
- (props: any): React.JSX.Element;
5
- Range: (props: any) => React.JSX.Element;
6
- };
7
- export default InputUI;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const LoadingUI: (props: any) => React.JSX.Element;
4
- export default LoadingUI;
@@ -1,3 +0,0 @@
1
- import { message as MessageUI } from 'antd';
2
- import './index.scss';
3
- export default MessageUI;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const ModalUI: (props: any) => React.JSX.Element;
4
- export default ModalUI;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const NotificationUI: (props: any) => React.JSX.Element;
3
- export default NotificationUI;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- interface IProps {
4
- value: string;
5
- style?: any;
6
- }
7
- declare const PasswordStrongUI: (props: IProps) => React.JSX.Element;
8
- export default PasswordStrongUI;
@@ -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;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- declare const SwitchUI: (props: any) => React.JSX.Element;
4
- export default SwitchUI;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- /** 表格组件-按钮功能 */
4
- export declare const Button: (props: any) => React.JSX.Element;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const TestUI: (props: any) => React.JSX.Element;
3
- export default TestUI;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- interface TextUIProps extends React.HTMLAttributes<HTMLDivElement> {
4
- type?: 'primary' | 'danger';
5
- }
6
- declare const TextUI: (props: TextUIProps) => React.JSX.Element;
7
- export default TextUI;
@@ -1,4 +0,0 @@
1
- export declare const DraggerFileItems: (type: string) => {
2
- icon3: string;
3
- text3: string;
4
- };
@@ -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
- }
@@ -1 +0,0 @@
1
- export {};