@guo514360255/antd-lib 1.9.0 → 1.9.2

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.
@@ -5,11 +5,11 @@
5
5
  */
6
6
  import { CustomColumnProps } from '@guo514360255/antd-lib/src';
7
7
 
8
- interface CustomDescriptionsProps {
8
+ export interface CustomDescriptionsProps {
9
9
  /**
10
10
  * 处理详情数据
11
11
  */
12
- handleDetailData: (data: any) => any;
12
+ handleDetailData?: (data: any) => any;
13
13
 
14
14
  /**
15
15
  * 请求接口
@@ -5,12 +5,12 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
5
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
6
6
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
7
7
  var _excluded = ["request", "handleDetailData", "columns", "values"];
8
- import { findTreeNodeByKey, isEmptyValue } from "../utils/util";
9
8
  import { Descriptions, Image, Spin } from 'antd';
10
9
  import isNumber from 'lodash/isNumber';
11
10
  import isObject from 'lodash/isObject';
12
11
  import isString from 'lodash/isString';
13
12
  import React, { useEffect, useState } from 'react';
13
+ import { findTreeNodeByKey, isEmptyValue } from "../utils/util";
14
14
  /*
15
15
  * @Author: 郭郭
16
16
  * @Date: 2026/4/8
@@ -52,7 +52,6 @@ var CustomDescriptions = function CustomDescriptions(_ref) {
52
52
  _values.forEach(function (item) {
53
53
  var _ref3 = findTreeNodeByKey(options, item) || {},
54
54
  label = _ref3.label;
55
- console.log(label, '...label...');
56
55
  result.push(label || value);
57
56
  });
58
57
  return result.join(',');
@@ -9,7 +9,7 @@ import { CustomColumnProps } from '../compontent';
9
9
  /**
10
10
  * 详情props
11
11
  */
12
- interface CustomDetailModalProps {
12
+ export interface CustomDetailModalProps {
13
13
  /**
14
14
  * 标题
15
15
  */
@@ -1,4 +1,4 @@
1
- import { CustomDetailModalProps } from "./detailModal";
1
+ import type { CustomDetailModalProps } from './detailModal';
2
2
  import React from 'react';
3
3
  import './index.less';
4
4
  declare const CustomModal: React.ForwardRefExoticComponent<Omit<CustomDetailModalProps, "ref"> & React.RefAttributes<any>>;
@@ -6,7 +6,7 @@
6
6
 
7
7
  import { CustomColumnProps } from '@guo514360255/antd-lib/src';
8
8
 
9
- interface CustomFormProps {
9
+ export interface CustomFormProps {
10
10
  /**
11
11
  * 表单字段
12
12
  */
@@ -9,7 +9,7 @@ import { CustomColumnProps } from '../compontent';
9
9
  /**
10
10
  * form props
11
11
  */
12
- interface CustomFormModalProps {
12
+ export interface CustomFormModalProps {
13
13
  /**
14
14
  * 标题
15
15
  */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { CustomScrollProps } from "./scroll";
2
+ import type { CustomScrollProps } from './scroll';
3
3
  import './index.less';
4
4
  declare const CustomScroll: {
5
5
  (props: CustomScrollProps): JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import type { CustomScrollItemProps } from "./scrollItem";
2
+ import type { CustomScrollItemProps } from './scrollItem';
3
3
  declare const Item: (props: CustomScrollItemProps) => JSX.Element;
4
4
  export default Item;
@@ -1,4 +1,4 @@
1
- import { CustomTableProps } from "./table";
1
+ import type { CustomTableProps } from './table';
2
2
  import React from 'react';
3
3
  import './index.less';
4
4
  declare const CustomTable: React.ForwardRefExoticComponent<Omit<CustomTableProps, "ref"> & React.RefAttributes<any>>;
@@ -6,7 +6,7 @@
6
6
 
7
7
  import { ProColumns } from '@ant-design/pro-table';
8
8
 
9
- interface CustomTableProps {
9
+ export interface CustomTableProps {
10
10
  /**
11
11
  * 表格标题
12
12
  */
@@ -1,3 +1,3 @@
1
- import type { CustomTagProps } from "./tag";
1
+ import type { CustomTagProps } from './tag';
2
2
  declare const CustomTag: ({ value, valueEnum, options }: CustomTagProps) => any;
3
3
  export default CustomTag;
@@ -6,7 +6,7 @@
6
6
 
7
7
  import type { TagProps } from 'antd';
8
8
 
9
- interface CustomTagProps {
9
+ export interface CustomTagProps {
10
10
  /**
11
11
  * 标签名称
12
12
  */
@@ -9,7 +9,7 @@ import type { Rules } from '@rc-component/async-validator';
9
9
  import type { ButtonProps } from 'antd';
10
10
  import type { ImgCropProps } from 'antd-img-crop';
11
11
 
12
- interface CustomColumnProps extends ProColumns {
12
+ export interface CustomColumnProps extends ProColumns {
13
13
  /**
14
14
  * 字段类型
15
15
  */
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ export type { CustomFormProps } from './CustomForm/form';
12
12
  export { default as CustomDescriptions } from './CustomDescriptions';
13
13
  export type { CustomDescriptionsProps } from './CustomDescriptions/descriptions';
14
14
  export { default as CustomTag } from './CustomTag';
15
+ export type { CustomTagProps } from './CustomTag/tag';
15
16
  export { default as CustomUpload } from './CustomUpload';
16
17
  export { default as DynamicIcon } from './DynamicIcon';
17
18
  export { default as FormItem } from './FormItem';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guo514360255/antd-lib",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "description": "react design 5 lib",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",