gxxc-ui 1.0.19 → 1.0.24

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.
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function index(): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const EmptyImage: () => React.JSX.Element;
3
+ export default EmptyImage;
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,16 @@
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 {};
@@ -0,0 +1,22 @@
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[];
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.scss';
3
+ declare const LoadingUI: (props: any) => React.JSX.Element;
4
+ export default LoadingUI;
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.scss';
3
+ /** 表格组件-按钮功能 */
4
+ export declare const Button: (props: any) => React.JSX.Element;
@@ -12,7 +12,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
12
12
  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); }
13
13
  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; }
14
14
  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; }
15
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
16
15
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
16
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
17
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -40,40 +39,19 @@ export var Setting = function Setting(props) {
40
39
  // useEffect(() => {
41
40
  // }, [tableHeader]);
42
41
  var _setOpenModifyHeader = function _setOpenModifyHeader(isOpen) {
43
- setDataSource(JSON.parse(JSON.stringify(tableHeader)));
42
+ console.log("setOpenModifyHeader");
43
+ console.log(tableHeader);
44
+ setDataSource(JSON.parse(JSON.stringify(tableHeader !== null && tableHeader !== void 0 ? tableHeader : [])));
44
45
  setOpenModifyHeader(isOpen);
45
46
  };
46
47
 
47
48
  // 确认
48
49
  var handleGetSortedData = function handleGetSortedData() {
49
- var dataSourceMap = {};
50
- dataSource === null || dataSource === void 0 || dataSource.map(function (item, i) {
50
+ /// 更新排序 sort
51
+ dataSource.map(function (item, i) {
51
52
  item.sort = i + 1;
52
- dataSourceMap[item.key] = item;
53
53
  });
54
- var tableHeaderMap = {};
55
- var _iterator = _createForOfIteratorHelper(tableHeader),
56
- _step;
57
- try {
58
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
59
- var item = _step.value;
60
- tableHeaderMap[item.key] = item;
61
- }
62
- } catch (err) {
63
- _iterator.e(err);
64
- } finally {
65
- _iterator.f();
66
- }
67
- for (var _key in dataSourceMap) {
68
- var item1 = dataSourceMap[_key];
69
- var item2 = tableHeaderMap[_key];
70
- item2.disable = item1.disable;
71
- item2.key = item1.key;
72
- item2.name = item1.name;
73
- item2.selected = item1.selected;
74
- item2.sort = item1.sort;
75
- }
76
- getTableheader(tableHeader);
54
+ getTableheader(dataSource);
77
55
  _setOpenModifyHeader(false);
78
56
  };
79
57
  // 关闭
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const TestUI: (props: any) => React.JSX.Element;
3
+ export default TestUI;
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,4 @@
1
+ export declare const DraggerFileItems: (type: string) => {
2
+ icon3: string;
3
+ text3: string;
4
+ };
@@ -0,0 +1,64 @@
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
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gxxc-ui",
3
- "version": "1.0.19",
3
+ "version": "1.0.24",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",