@pisell/materials 2.2.85 → 2.2.86

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.
Files changed (103) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  8. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  9. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  10. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  11. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  12. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  13. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  14. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  15. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  16. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  17. package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
  18. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  19. package/es/components/list/index.d.ts +1 -0
  20. package/es/components/lowCodePage/index.d.ts +1 -0
  21. package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
  22. package/es/components/pisellLoading/index.d.ts +1 -0
  23. package/es/components/pisellWalletPassCard/index.d.ts +1 -0
  24. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  25. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  26. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  27. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  28. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  29. package/es/components/productCard/cartSkuCard/index.d.ts +1 -0
  30. package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
  31. package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  32. package/es/components/productCard/components/Header/index.d.ts +1 -0
  33. package/es/components/productCard/components/Header/index.js +4 -3
  34. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  35. package/es/components/productCard/components/Note/index.d.ts +1 -0
  36. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  37. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  38. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  39. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  40. package/es/components/productCard/components/Sales/index.d.ts +1 -0
  41. package/es/components/productCard/components/Sales/index.js +1 -1
  42. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  43. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  44. package/es/components/qrcode/index.d.ts +1 -0
  45. package/es/components/table/BasicTable/index.d.ts +1 -0
  46. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  47. package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
  48. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
  49. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  50. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  51. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  52. package/es/components/table/Table/utils.d.ts +1 -1
  53. package/es/components/table/View/index.d.ts +1 -0
  54. package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
  55. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  56. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +1 -1
  57. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  58. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  59. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
  60. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  61. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  62. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  63. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  64. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  65. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
  66. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  67. package/lib/components/list/index.d.ts +1 -0
  68. package/lib/components/lowCodePage/index.d.ts +1 -0
  69. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
  70. package/lib/components/pisellLoading/index.d.ts +1 -0
  71. package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
  72. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +1 -0
  73. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +1 -0
  74. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  75. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +1 -0
  76. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +1 -0
  77. package/lib/components/productCard/cartSkuCard/index.d.ts +1 -0
  78. package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
  79. package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  80. package/lib/components/productCard/components/Header/index.d.ts +1 -0
  81. package/lib/components/productCard/components/Header/index.js +4 -3
  82. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  83. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  84. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  85. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  86. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  87. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  88. package/lib/components/productCard/components/Sales/index.d.ts +1 -0
  89. package/lib/components/productCard/components/Sales/index.js +1 -1
  90. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
  91. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  92. package/lib/components/qrcode/index.d.ts +1 -0
  93. package/lib/components/table/BasicTable/index.d.ts +1 -0
  94. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  95. package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
  96. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
  97. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  98. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  99. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  100. package/lib/components/table/Table/utils.d.ts +1 -1
  101. package/lib/components/table/View/index.d.ts +1 -0
  102. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
  103. package/package.json +1 -1
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  export default FormItem;
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "default" | "custom" | "api" | undefined;
46
+ optionSourceType?: "custom" | "default" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from '../../../filter/types';
2
3
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
3
4
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const useDataSourceKey: () => {
2
3
  dataSourceKey: string | undefined;
3
4
  dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
@@ -52,7 +52,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
52
52
  width: number;
53
53
  align: "center" | "left" | "right";
54
54
  fixed: false | "left" | "right";
55
- type: "link" | "button";
55
+ type: "button" | "link";
56
56
  items: OperationItem[];
57
57
  } | undefined;
58
58
  operationContent?: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { JsonProps } from "./type";
2
3
  import "./ReadPretty.less";
3
4
  declare const JsonReadPretty: (props: JsonProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PasswordProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const PasswordReadPretty: (props: PasswordProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
3
  options?: any;
4
- optionSourceType?: "default" | "custom" | "api" | undefined;
4
+ optionSourceType?: "custom" | "default" | "api" | undefined;
5
5
  labelField: string;
6
6
  valueField: string;
7
7
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UploadProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
@@ -35,7 +35,7 @@ declare const formFieldMap: {
35
35
  };
36
36
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
37
37
  options?: any;
38
- optionSourceType?: "default" | "custom" | "api" | undefined;
38
+ optionSourceType?: "custom" | "default" | "api" | undefined;
39
39
  labelField: string;
40
40
  valueField: string;
41
41
  extraParams?: Record<string, any> | undefined;
@@ -60,11 +60,13 @@ declare const formFieldMap: {
60
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
62
  };
63
- declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
64
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
65
65
  } & {
66
66
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
67
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
67
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
68
+ onChange: (value: string) => void;
69
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
68
70
  JSON: import("react").FC<any>;
69
71
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
70
72
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -84,19 +86,17 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
84
86
  name?: string | undefined;
85
87
  fieldKey?: string | undefined;
86
88
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
87
- }) | (import("react").FC<{}> & {
89
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
88
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
89
91
  } & {
90
92
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
91
93
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
92
94
  options?: any;
93
- optionSourceType?: "default" | "custom" | "api" | undefined;
95
+ optionSourceType?: "custom" | "default" | "api" | undefined;
94
96
  labelField: string;
95
97
  valueField: string;
96
98
  extraParams?: Record<string, any> | undefined;
97
99
  } & {
98
100
  dataSource?: any;
99
- }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
100
- onChange: (value: string) => void;
101
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
102
102
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
3
  import { Dayjs } from 'dayjs';
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const List: {
3
4
  (props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type LowCodePageProps = {
2
3
  id: number;
3
4
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps, ButtonProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  export interface CopyProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SpinProps } from 'antd';
2
3
  import './index.less';
3
4
  declare type MaskType = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface PisellWalletPassCardProps {
3
4
  id: number;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DiscountReason: (props: any) => JSX.Element;
2
3
  export default DiscountReason;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  isShowImage?: boolean;
@@ -6,7 +6,7 @@
6
6
  * @Author: WangHan
7
7
  * @Date: 2024-11-22 10:01
8
8
  */
9
- export declare const minusSign: (item: any, type?: string) => "-" | "";
9
+ export declare const minusSign: (item: any, type?: string) => "" | "-";
10
10
  /**
11
11
  * @title: 金额格式化
12
12
  * @description:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  hideDivider?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Specs: (props: any) => JSX.Element | null;
3
4
  export default Specs;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { ProductCardTypes } from '../types';
3
4
  interface ISKUCardProps extends ProductCardTypes {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EditButton: ({ onEdit }: any) => JSX.Element;
3
4
  export default EditButton;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Header: (props: any) => JSX.Element;
3
4
  export default Header;
@@ -26,7 +26,8 @@ var Header = function Header(props) {
26
26
  name = item.name,
27
27
  price = item.price,
28
28
  symbol = item.symbol,
29
- disabled = item.disabled;
29
+ disabled = item.disabled,
30
+ relation_products = item.relation_products;
30
31
 
31
32
  /**
32
33
  * @title: 是否显示价格
@@ -39,8 +40,8 @@ var Header = function Header(props) {
39
40
  var showPrice = useMemo(function () {
40
41
  // 如果有报价单则不需要显示价格
41
42
 
42
- return (bundle === null || bundle === void 0 ? void 0 : bundle.length) > 0 || (options === null || options === void 0 ? void 0 : options.length) > 0;
43
- }, [bundle, options]);
43
+ return (bundle === null || bundle === void 0 ? void 0 : bundle.length) > 0 || (options === null || options === void 0 ? void 0 : options.length) > 0 || ((relation_products === null || relation_products === void 0 ? void 0 : relation_products.length) || 0) > 0;
44
+ }, [bundle, options, relation_products]);
44
45
 
45
46
  /**
46
47
  * @title: 样式是否居中
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
4
  export default MultiDay;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Note: (props: any) => JSX.Element | null;
3
4
  export default Note;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
4
  export default Options;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Packages: ({ item, isShowPackageNote }: any) => JSX.Element | null;
3
4
  export default Packages;
@@ -6,7 +6,7 @@
6
6
  * @Author: WangHan
7
7
  * @Date: 2024-11-22 10:01
8
8
  */
9
- export declare const minusSign: (item: any, type?: string) => "-" | "";
9
+ export declare const minusSign: (item: any, type?: string) => "" | "-";
10
10
  /**
11
11
  * @title: 金额格式化
12
12
  * @description:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
4
  export default Sales;
@@ -23,7 +23,7 @@ var Sales = function Sales(_ref) {
23
23
  price: p === null || p === void 0 ? void 0 : p.selling_price,
24
24
  symbol: item.symbol,
25
25
  num: p === null || p === void 0 ? void 0 : p.product_quantity,
26
- total: p === null || p === void 0 ? void 0 : p.payment_price
26
+ total: p === null || p === void 0 ? void 0 : p.selling_price
27
27
  });
28
28
  });
29
29
  return ((_other_products = other_products) === null || _other_products === void 0 ? void 0 : _other_products.length) > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface SelectHolderModalProps {
3
4
  visible: boolean;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectHolderMultiple: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
2
3
  export default SelectHolderMultiple;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const QRCode: (props: any) => JSX.Element;
2
3
  export default QRCode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableProps } from 'antd';
2
3
  declare const BasicTable: (props: TableProps<any>) => JSX.Element;
3
4
  export default BasicTable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type RenderFieldsProps = {
3
4
  fields: string[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import filter from "./filterUtil";
2
3
  declare const _default: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SortRow: ({ children, rowKey, onSortChange }: any) => JSX.Element;
3
4
  export default SortRow;
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_setting")[];
158
+ }) => ("filter_setting" | "group_by" | "order_by" | "column_setting" | "view_mode" | "gallery_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GridViewProps } from '../types';
2
3
  declare const View: (props: GridViewProps & {
3
4
  setTableSetting: (values: Record<string, any>) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface NumberProps {
2
3
  max?: number;
3
4
  min?: number;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  export default FormItem;
@@ -43,7 +43,7 @@ export declare const withDataSource: <P extends unknown>(WrappedComponent: React
43
43
  }) => JSX.Element;
44
44
  export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
45
  options?: any;
46
- optionSourceType?: "default" | "custom" | "api" | undefined;
46
+ optionSourceType?: "custom" | "default" | "api" | undefined;
47
47
  labelField: string;
48
48
  valueField: string;
49
49
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from '../../../filter/types';
2
3
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
3
4
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const useDataSourceKey: () => {
2
3
  dataSourceKey: string | undefined;
3
4
  dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
@@ -52,7 +52,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
52
52
  width: number;
53
53
  align: "center" | "left" | "right";
54
54
  fixed: false | "left" | "right";
55
- type: "link" | "button";
55
+ type: "button" | "link";
56
56
  items: OperationItem[];
57
57
  } | undefined;
58
58
  operationContent?: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { JsonProps } from "./type";
2
3
  import "./ReadPretty.less";
3
4
  declare const JsonReadPretty: (props: JsonProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PasswordProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const PasswordReadPretty: (props: PasswordProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
3
  options?: any;
4
- optionSourceType?: "default" | "custom" | "api" | undefined;
4
+ optionSourceType?: "custom" | "default" | "api" | undefined;
5
5
  labelField: string;
6
6
  valueField: string;
7
7
  extraParams?: Record<string, any> | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UploadProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
@@ -35,7 +35,7 @@ declare const formFieldMap: {
35
35
  };
36
36
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
37
37
  options?: any;
38
- optionSourceType?: "default" | "custom" | "api" | undefined;
38
+ optionSourceType?: "custom" | "default" | "api" | undefined;
39
39
  labelField: string;
40
40
  valueField: string;
41
41
  extraParams?: Record<string, any> | undefined;
@@ -60,11 +60,13 @@ declare const formFieldMap: {
60
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
62
  };
63
- declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
64
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
65
65
  } & {
66
66
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
67
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
67
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
68
+ onChange: (value: string) => void;
69
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
68
70
  JSON: import("react").FC<any>;
69
71
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
70
72
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -84,19 +86,17 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
84
86
  name?: string | undefined;
85
87
  fieldKey?: string | undefined;
86
88
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
87
- }) | (import("react").FC<{}> & {
89
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
88
90
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
89
91
  } & {
90
92
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
91
93
  }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
92
94
  options?: any;
93
- optionSourceType?: "default" | "custom" | "api" | undefined;
95
+ optionSourceType?: "custom" | "default" | "api" | undefined;
94
96
  labelField: string;
95
97
  valueField: string;
96
98
  extraParams?: Record<string, any> | undefined;
97
99
  } & {
98
100
  dataSource?: any;
99
- }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
100
- onChange: (value: string) => void;
101
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
102
102
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
3
  import { Dayjs } from 'dayjs';
3
4
  import './index.less';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const List: {
3
4
  (props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type LowCodePageProps = {
2
3
  id: number;
3
4
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps, ButtonProps } from 'antd';
2
3
  import { PisellContextType } from "../../../pisell-config-provider/context";
3
4
  export interface CopyProps extends InputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SpinProps } from 'antd';
2
3
  import './index.less';
3
4
  declare type MaskType = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export interface PisellWalletPassCardProps {
3
4
  id: number;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DiscountReason: (props: any) => JSX.Element;
2
3
  export default DiscountReason;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface IProps {
3
4
  isShowImage?: boolean;
@@ -6,7 +6,7 @@
6
6
  * @Author: WangHan
7
7
  * @Date: 2024-11-22 10:01
8
8
  */
9
- export declare const minusSign: (item: any, type?: string) => "-" | "";
9
+ export declare const minusSign: (item: any, type?: string) => "" | "-";
10
10
  /**
11
11
  * @title: 金额格式化
12
12
  * @description: