@pisell/materials 1.0.734 → 1.0.736

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 (174) 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/es/components/Pagination/index.d.ts +1 -1
  7. package/es/components/TimeResourceSelector/index.d.ts +21 -0
  8. package/es/components/appVersionControl/index.d.ts +1 -0
  9. package/es/components/collapse/index.d.ts +15 -0
  10. package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  11. package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  12. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
  16. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +6 -0
  17. package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
  18. package/es/components/drag-sort-tree/index.d.ts +4 -0
  19. package/es/components/login-and-register/index.d.ts +82 -0
  20. package/es/components/page/index.d.ts +6 -0
  21. package/es/components/pisell-config-provider/index.d.ts +12 -0
  22. package/es/components/pisellAvatar/index.d.ts +19 -0
  23. package/es/components/pisellCard/index.d.ts +20 -0
  24. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  25. package/es/components/pisellDropdown/index.d.ts +20 -0
  26. package/es/components/pisellEmpty/index.d.ts +19 -0
  27. package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
  28. package/es/components/pisellImageCarousels/index.d.ts +18 -0
  29. package/es/components/pisellInformationEntry/index.d.ts +33 -0
  30. package/es/components/pisellList01/index.d.ts +17 -0
  31. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  32. package/es/components/pisellSectionHeaders/index.d.ts +21 -0
  33. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  34. package/es/components/productCard/components/Action/index.d.ts +4 -0
  35. package/es/components/productCard/components/AmountFooter/index.d.ts +4 -0
  36. package/es/components/productCard/components/Divider/index.d.ts +4 -0
  37. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  38. package/es/components/productCard/components/Header/index.d.ts +4 -0
  39. package/es/components/productCard/components/MultiDay/index.d.ts +4 -0
  40. package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
  41. package/es/components/productCard/components/Note/index.d.ts +4 -0
  42. package/es/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  43. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
  44. package/es/components/productCard/components/Packages/components/options/index.d.ts +4 -0
  45. package/es/components/productCard/components/Packages/index.d.ts +4 -0
  46. package/es/components/productCard/components/Packages/utils.d.ts +20 -0
  47. package/es/components/productCard/components/Sales/index.d.ts +4 -0
  48. package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  49. package/es/components/productCard/components/Time/index.d.ts +4 -0
  50. package/es/components/productCard/hooks/useOpenNote.d.ts +3 -0
  51. package/es/components/productCard/index.d.ts +5 -0
  52. package/es/components/productCard/locales.d.ts +45 -0
  53. package/es/components/productCard/status.d.ts +32 -0
  54. package/es/components/productCard/types.d.ts +78 -0
  55. package/es/components/productCard/utils.d.ts +31 -0
  56. package/es/components/section-footers/index.d.ts +9 -0
  57. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  58. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  59. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  60. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  61. package/es/components/table/Actions/component/ExportImport/index.d.ts +8 -0
  62. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  63. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  64. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  65. package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  66. package/es/components/table/Actions/index.d.ts +1 -0
  67. package/es/components/table/BasicTable/index.d.ts +1 -0
  68. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  69. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  70. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  71. package/es/components/table/Gallery/index.d.ts +5 -0
  72. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  73. package/es/components/table/Table/index.d.ts +4 -0
  74. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  75. package/es/components/table/Table/utils.d.ts +173 -0
  76. package/es/components/table/TableFilter/numberFilter.d.ts +6 -0
  77. package/es/components/table/TableFilter/selectFilter.d.ts +10 -0
  78. package/es/components/table/TableFilter/stringFilter.d.ts +6 -0
  79. package/es/components/table/View/index.d.ts +1 -0
  80. package/es/components/table/hooks/useTableSetting.d.ts +22 -0
  81. package/es/components/table/hooks/useTransDataSource.d.ts +12 -0
  82. package/es/components/table/types.d.ts +253 -0
  83. package/es/components/virtual-keyboard/Time/index.d.ts +13 -0
  84. package/es/components/walletCard/Guest/index.d.ts +4 -0
  85. package/es/components/walletCard/index.d.ts +65 -0
  86. package/es/index.d.ts +140 -0
  87. package/es/locales/en-US.d.ts +263 -0
  88. package/es/locales/zh-CN.d.ts +258 -0
  89. package/es/locales/zh-TW.d.ts +258 -0
  90. package/lib/components/Pagination/index.d.ts +1 -1
  91. package/lib/components/TimeResourceSelector/index.d.ts +21 -0
  92. package/lib/components/appVersionControl/index.d.ts +1 -0
  93. package/lib/components/collapse/index.d.ts +15 -0
  94. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  95. package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  96. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +1 -0
  97. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +98 -0
  98. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  99. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +79 -0
  100. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +6 -0
  101. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
  102. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  103. package/lib/components/login-and-register/index.d.ts +82 -0
  104. package/lib/components/page/index.d.ts +6 -0
  105. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  106. package/lib/components/pisellAvatar/index.d.ts +19 -0
  107. package/lib/components/pisellCard/index.d.ts +20 -0
  108. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  109. package/lib/components/pisellDropdown/index.d.ts +20 -0
  110. package/lib/components/pisellEmpty/index.d.ts +19 -0
  111. package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
  112. package/lib/components/pisellImageCarousels/index.d.ts +18 -0
  113. package/lib/components/pisellInformationEntry/index.d.ts +33 -0
  114. package/lib/components/pisellList01/index.d.ts +17 -0
  115. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  116. package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
  117. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  118. package/lib/components/productCard/components/Action/index.d.ts +4 -0
  119. package/lib/components/productCard/components/AmountFooter/index.d.ts +4 -0
  120. package/lib/components/productCard/components/Divider/index.d.ts +4 -0
  121. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  122. package/lib/components/productCard/components/Header/index.d.ts +4 -0
  123. package/lib/components/productCard/components/MultiDay/index.d.ts +4 -0
  124. package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
  125. package/lib/components/productCard/components/Note/index.d.ts +4 -0
  126. package/lib/components/productCard/components/Packages/components/collapsibleList/index.d.ts +10 -0
  127. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -0
  128. package/lib/components/productCard/components/Packages/components/options/index.d.ts +4 -0
  129. package/lib/components/productCard/components/Packages/index.d.ts +4 -0
  130. package/lib/components/productCard/components/Packages/utils.d.ts +20 -0
  131. package/lib/components/productCard/components/Sales/index.d.ts +4 -0
  132. package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  133. package/lib/components/productCard/components/Time/index.d.ts +4 -0
  134. package/lib/components/productCard/hooks/useOpenNote.d.ts +3 -0
  135. package/lib/components/productCard/index.d.ts +5 -0
  136. package/lib/components/productCard/locales.d.ts +45 -0
  137. package/lib/components/productCard/status.d.ts +32 -0
  138. package/lib/components/productCard/types.d.ts +78 -0
  139. package/lib/components/productCard/utils.d.ts +31 -0
  140. package/lib/components/section-footers/index.d.ts +9 -0
  141. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -0
  142. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -0
  143. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -0
  144. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -0
  145. package/lib/components/table/Actions/component/ExportImport/index.d.ts +8 -0
  146. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  147. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  148. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  149. package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -0
  150. package/lib/components/table/Actions/index.d.ts +1 -0
  151. package/lib/components/table/BasicTable/index.d.ts +1 -0
  152. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  153. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  154. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  155. package/lib/components/table/Gallery/index.d.ts +5 -0
  156. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  157. package/lib/components/table/Table/index.d.ts +4 -0
  158. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  159. package/lib/components/table/Table/utils.d.ts +173 -0
  160. package/lib/components/table/TableFilter/numberFilter.d.ts +6 -0
  161. package/lib/components/table/TableFilter/selectFilter.d.ts +10 -0
  162. package/lib/components/table/TableFilter/stringFilter.d.ts +6 -0
  163. package/lib/components/table/View/index.d.ts +1 -0
  164. package/lib/components/table/hooks/useTableSetting.d.ts +22 -0
  165. package/lib/components/table/hooks/useTransDataSource.d.ts +12 -0
  166. package/lib/components/table/types.d.ts +253 -0
  167. package/lib/components/virtual-keyboard/Time/index.d.ts +13 -0
  168. package/lib/components/walletCard/Guest/index.d.ts +4 -0
  169. package/lib/components/walletCard/index.d.ts +65 -0
  170. package/lib/index.d.ts +140 -0
  171. package/lib/locales/en-US.d.ts +263 -0
  172. package/lib/locales/zh-CN.d.ts +258 -0
  173. package/lib/locales/zh-TW.d.ts +258 -0
  174. package/package.json +3 -3
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellSectionHeadersProps {
4
+ /** 是否占据空间(true: 占据空间, false: 不占据空间) */
5
+ /** 左侧返回区域 */
6
+ backNode?: React.ReactNode;
7
+ /** 中间内容区域 */
8
+ centerNode?: React.ReactNode;
9
+ /** 右侧操作区域 */
10
+ actionNode?: React.ReactNode;
11
+ /** 自定义类名 */
12
+ className?: string;
13
+ /** 自定义样式 */
14
+ style?: React.CSSProperties;
15
+ /** 返回按钮点击事件 */
16
+ onBack?: () => void;
17
+ /** 操作区域点击事件 */
18
+ onAction?: () => void;
19
+ }
20
+ declare const PisellSectionHeaders: React.FC<PisellSectionHeadersProps>;
21
+ export default PisellSectionHeaders;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../../../pisell-config-provider/context';
3
+ export interface AmountProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ /** 平台 */
5
+ platform?: PisellContextType['platform'];
6
+ /** 当前数值 */
7
+ value?: number | string;
8
+ /** 小数点后位数 默认是小数点后2位 */
9
+ precision?: number;
10
+ /** 显示货币符号 指的是 ¥$ 等货币符号等显隐,默认是展示 */
11
+ showCurrencySymbol?: boolean;
12
+ /** 千分位 指的是长金额的千分位逗号隔开,比如“123, 245, 315” 这种展现形式,默认是关闭 */
13
+ useThousandsSeparator?: boolean;
14
+ /** 整数位隐藏小数 指的是如果价格为整数,后面的".00" 将被省略以节省页面空间 */
15
+ hideDecimalForWholeNumbers?: boolean;
16
+ /** 货币符号 */
17
+ symbol?: string;
18
+ }
19
+ declare const Amount: (props: AmountProps) => JSX.Element;
20
+ export default Amount;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Action: ({ item, onAction }: any) => JSX.Element;
4
+ export default Action;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
4
+ export default Footer;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Divider: ({ type }: any) => JSX.Element;
4
+ export default Divider;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const DeleteButton: ({ onDelete }: any) => JSX.Element;
4
+ export default DeleteButton;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Header: (props: any) => JSX.Element;
4
+ export default Header;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
4
+ export default MultiDay;
@@ -0,0 +1,14 @@
1
+ interface InputItem {
2
+ start_date: string;
3
+ end_date: string;
4
+ total: number;
5
+ num: number;
6
+ }
7
+ interface OutputItem {
8
+ start_date: string;
9
+ end_date: string;
10
+ total: number;
11
+ num: number;
12
+ }
13
+ export declare function formatDateRanges(list: InputItem[]): OutputItem[];
14
+ export {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Note: (props: any) => JSX.Element | null;
4
+ export default Note;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface CollapsibleListProps<T> {
4
+ list: T[];
5
+ renderItem: (item: T, index: number) => React.ReactNode;
6
+ className?: string;
7
+ style?: React.CSSProperties;
8
+ }
9
+ declare const CollapsibleList: React.FC<CollapsibleListProps<any>>;
10
+ export default CollapsibleList;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
4
+ export default Options;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Packages: ({ item, isShowPackageNote }: any) => JSX.Element | null;
4
+ export default Packages;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @title: 金额是否是负
3
+ * @description:
4
+ * @param {string} type
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2024-11-22 10:01
8
+ */
9
+ export declare const minusSign: (item: any, type?: string) => "" | "-";
10
+ /**
11
+ * @title: 金额格式化
12
+ * @description:
13
+ * @param {number} price
14
+ * @param {string} amountSymbol
15
+ * @param {number} digit
16
+ * @return {*}
17
+ * @Author: WangHan
18
+ * @Date: 2024-11-22 10:58
19
+ */
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
4
+ export default Sales;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Like: ({ status, onLike, className, style, }: {
4
+ style?: any;
5
+ status: string;
6
+ onLike?: any;
7
+ className?: string | undefined;
8
+ }) => JSX.Element;
9
+ export default Like;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Time: ({ item, isShowHolder, onLike }: any) => JSX.Element | null;
4
+ export default Time;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
3
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ProductCardTypes } from './types';
3
+ import './index.less';
4
+ declare const ProductCard: React.FC<ProductCardTypes>;
5
+ export default ProductCard;
@@ -0,0 +1,45 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.product.card.day': (val: number) => string;
4
+ 'pisell2.product.card.day.event': (val: number) => string;
5
+ 'pisell2.product.card.discount.reason': string;
6
+ 'pisell2.product.card.discount.note': string;
7
+ 'pisell2.product.card.discount.add.note': string;
8
+ 'pisell2.product.card.discount.edit.note': string;
9
+ 'pisell2.product.card.confirm': string;
10
+ 'pisell2.product.card.cancel': string;
11
+ 'pisell2.product.card.note.pla': string;
12
+ 'pisell2.product.card.items.package': string;
13
+ 'pisell2.product.card.view-all': string;
14
+ 'pisell2.product.card.view-less': string;
15
+ };
16
+ 'zh-CN': {
17
+ 'pisell2.product.card.day': (val: number) => string;
18
+ 'pisell2.product.card.day.event': (val: number) => string;
19
+ 'pisell2.product.card.discount.reason': string;
20
+ 'pisell2.product.card.discount.note': string;
21
+ 'pisell2.product.card.discount.add.note': string;
22
+ 'pisell2.product.card.discount.edit.note': string;
23
+ 'pisell2.product.card.confirm': string;
24
+ 'pisell2.product.card.cancel': string;
25
+ 'pisell2.product.card.note.pla': string;
26
+ 'pisell2.product.card.items.package': string;
27
+ 'pisell2.product.card.view-all': string;
28
+ 'pisell2.product.card.view-less': string;
29
+ };
30
+ 'zh-HK': {
31
+ 'pisell2.product.card.day': (val: number) => string;
32
+ 'pisell2.product.card.day.event': (val: number) => string;
33
+ 'pisell2.product.card.discount.reason': string;
34
+ 'pisell2.product.card.discount.note': string;
35
+ 'pisell2.product.card.discount.add.note': string;
36
+ 'pisell2.product.card.discount.edit.note': string;
37
+ 'pisell2.product.card.confirm': string;
38
+ 'pisell2.product.card.cancel': string;
39
+ 'pisell2.product.card.note.pla': string;
40
+ 'pisell2.product.card.items.package': string;
41
+ 'pisell2.product.card.view-all': string;
42
+ 'pisell2.product.card.view-less': string;
43
+ };
44
+ };
45
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import { ProductCardTypes, bundleType, optionType, productType } from './types';
2
+ /**
3
+ * @title: 套餐数据
4
+ * @description:
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2025-01-02 23:21
8
+ */
9
+ export declare const defaultBundle: bundleType;
10
+ /**
11
+ * @description: 单规格
12
+ * @return {*}
13
+ * @Author: WangHan
14
+ * @Date: 2025-01-02 23:00
15
+ */
16
+ export declare const defaultOption: optionType;
17
+ /**
18
+ * @title: 商品商品类型
19
+ * @description:
20
+ * @return {*}
21
+ * @Author: WangHan
22
+ * @Date: 2025-01-02 22:48
23
+ */
24
+ export declare const defaultProduct: productType;
25
+ /**
26
+ * @title: 默认数据
27
+ * @description:
28
+ * @return {*}
29
+ * @Author: WangHan
30
+ * @Date: 2024-12-12 16:49
31
+ */
32
+ export declare const defaultValue: ProductCardTypes;
@@ -0,0 +1,78 @@
1
+ export declare type bundleType = {
2
+ id: number;
3
+ name: string;
4
+ num: number;
5
+ price: number;
6
+ total: number;
7
+ origin_total?: number;
8
+ price_type?: string;
9
+ options?: optionType[];
10
+ };
11
+ /**
12
+ * @description:
13
+ * @return {*}
14
+ * @Author: WangHan
15
+ * @Date: 2025-01-02 23:00
16
+ */
17
+ export declare type optionType = {
18
+ id: number;
19
+ name: string;
20
+ num: number;
21
+ price: number;
22
+ total: number;
23
+ origin_total?: number;
24
+ };
25
+ /**
26
+ * @title: 商品商品类型
27
+ * @description:
28
+ * @return {*}
29
+ * @Author: WangHan
30
+ * @Date: 2025-01-02 22:48
31
+ */
32
+ export declare type productType = {
33
+ _id: string | number;
34
+ id: number;
35
+ name: string;
36
+ price: number;
37
+ total: number;
38
+ num: number;
39
+ origin_total?: number;
40
+ image?: string;
41
+ isShowNote?: boolean;
42
+ note?: string;
43
+ like_status?: string;
44
+ bundle?: bundleType[];
45
+ options?: optionType[];
46
+ isShowAction?: boolean;
47
+ actionText?: string;
48
+ errorMessage?: string;
49
+ product_option_string?: string;
50
+ discount_reason?: string;
51
+ relation_products?: any[];
52
+ resource_id?: string | number;
53
+ relation_form_name?: string;
54
+ holder_title?: string;
55
+ start_date?: string;
56
+ end_date?: string;
57
+ is_show_duration?: boolean;
58
+ is_show_week?: boolean;
59
+ };
60
+ /**
61
+ * 排序总配置
62
+ */
63
+ export declare type ProductCardTypes = {
64
+ dataSource: productType;
65
+ isShowImage?: boolean;
66
+ isShowHolder?: boolean;
67
+ isShowNote?: boolean;
68
+ isShowPackageNote?: boolean;
69
+ isShowDelete?: boolean;
70
+ disabledEdit?: boolean;
71
+ locale?: string;
72
+ symbol?: string;
73
+ onAction?: (val: any) => void;
74
+ onDelete?: (val: any) => void;
75
+ onNote?: (val: any) => void;
76
+ onLike?: (val: any) => void;
77
+ onCard?: (val: any) => void;
78
+ };
@@ -0,0 +1,31 @@
1
+ import 'dayjs/locale/zh-cn';
2
+ import 'dayjs/locale/en';
3
+ import 'dayjs/locale/zh-tw';
4
+ /**
5
+ * @title: 是否英文
6
+ * @description:
7
+ * @param {any} item
8
+ * @return {*}
9
+ * @Author: WangHan
10
+ * @Date: 2024-12-28 22:49
11
+ */
12
+ export declare const isEn: (item: any) => boolean;
13
+ /**
14
+ * @title: 跨日预约时间
15
+ * @description:
16
+ * @param {any} item
17
+ * @return {*}
18
+ * @Author: WangHan
19
+ * @Date: 2024-12-28 22:50
20
+ */
21
+ export declare const formatMultiDayDate: (item: any) => string;
22
+ /**
23
+ * @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
24
+ * @description:
25
+ * @param {any} item
26
+ * @param {any} currentDate
27
+ * @return {*}
28
+ * @Author: zhiwei.Wang
29
+ * @Date: 2024-04-26 14:04
30
+ */
31
+ export declare const getServiceTime: (item: any, currentDate: any) => string;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ interface SectionFooterProps {
3
+ left?: React.ReactNode;
4
+ middle?: React.ReactNode;
5
+ right?: React.ReactNode;
6
+ className?: string;
7
+ }
8
+ declare const SectionFooters: (props: SectionFooterProps) => JSX.Element;
9
+ export default SectionFooters;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from '../../../../../types';
2
3
  import './index.less';
3
4
  declare const ExportFile: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from "../../../../../types";
2
3
  import "./index.less";
3
4
  declare const ExportTable: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from '../../../../../types';
2
3
  import './index.less';
3
4
  declare const ImportLog: (props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ExportImportType } from '../../../../../types';
2
3
  import './index.less';
3
4
  declare type ImportTableProps = {
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ExportImportType } from '../../../types';
3
+ import './index.less';
4
+ declare type ExportImportProps = {
5
+ exportImport: ExportImportType;
6
+ };
7
+ declare const ExportImport: ({ exportImport }: ExportImportProps) => JSX.Element;
8
+ export default ExportImport;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @title: 格式化导出导入接口地址
3
+ * @description:
4
+ * @param {string} url
5
+ * @return {*}
6
+ * @Author: WangHan
7
+ * @Date: 2024-09-05 11:39
8
+ */
9
+ export declare const formatApiUrl: (url: string) => string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, ModeType } from "../../../types";
2
3
  import "./index.less";
3
4
  declare type GallerySettingProps = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceGroupType } from "../../../types";
2
3
  declare type GroupProps = {
3
4
  setting: DataSourceGroupType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GridViewType, ModeType } from "../../../types";
2
3
  declare type ViewModeProps = {
3
4
  view: GridViewType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterType } from "../../filter/types";
2
3
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
3
4
  import "./index.less";
@@ -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 { GallerySettingType, GallerySettingValueType } from "../../../../../types";
2
3
  declare type CoverProps = {
3
4
  cover?: GallerySettingType["cover"];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType } from "../../../../../types";
2
3
  import "./index.less";
3
4
  declare type TitleProps = GallerySettingType["title"] & {
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { GallerySettingType, GallerySettingValueType } from "../../../types";
3
+ import "./index.less";
4
+ declare type GalleryItemProps = {
5
+ record: Record<string, any>;
6
+ gallery: GallerySettingType;
7
+ columnsMap: Map<string, Record<string, any>>;
8
+ index: number;
9
+ gallerySetting: GallerySettingValueType;
10
+ columns: Record<string, any>[];
11
+ onClick: React.MouseEventHandler<HTMLDivElement>;
12
+ };
13
+ declare const GalleryItem: (props: GalleryItemProps) => JSX.Element;
14
+ export default GalleryItem;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { GalleryProps } from './types';
3
+ import './index.less';
4
+ declare const _default: React.MemoExoticComponent<(props: GalleryProps) => JSX.Element>;
5
+ export default _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectField: () => JSX.Element;
3
2
  export default SelectField;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const _default: React.NamedExoticComponent<any>;
4
+ export default _default;
@@ -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;