@pisell/materials 3.3.47 → 3.3.49

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 (149) 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/es/components/TimeResourceSelector/index.d.ts +21 -0
  6. package/es/components/badge/index.d.ts +8 -0
  7. package/es/components/buttonGroupPreview/index.d.ts +19 -0
  8. package/es/components/cardPro/index.d.ts +4 -0
  9. package/es/components/collapse/index.d.ts +15 -0
  10. package/es/components/cropPhoto/index.d.ts +3 -0
  11. package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  12. package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +33 -0
  16. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  17. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  18. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  19. package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  20. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  21. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  22. package/es/components/div/index.d.ts +19 -0
  23. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  24. package/es/components/iconfont/index.d.ts +8 -0
  25. package/es/components/login-and-register/index.d.ts +82 -0
  26. package/es/components/page/index.d.ts +6 -0
  27. package/es/components/pisell-config-provider/index.d.ts +12 -0
  28. package/es/components/pisellAnchor/index.d.ts +23 -0
  29. package/es/components/pisellAvatar/index.d.ts +19 -0
  30. package/es/components/pisellCard/index.d.ts +20 -0
  31. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  32. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  33. package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
  34. package/es/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  35. package/es/components/pisellDraggable/index.d.ts +35 -0
  36. package/es/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  37. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
  38. package/es/components/pisellDropSort/types.d.ts +58 -0
  39. package/es/components/pisellDropdown/index.d.ts +20 -0
  40. package/es/components/pisellEmpty/index.d.ts +19 -0
  41. package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
  42. package/es/components/pisellImageCarousels/index.d.ts +18 -0
  43. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  44. package/es/components/pisellInformationEntry/index.d.ts +33 -0
  45. package/es/components/pisellList01/index.d.ts +17 -0
  46. package/es/components/pisellMenu/PisellMenu.d.ts +11 -0
  47. package/es/components/pisellMenu/types.d.ts +27 -0
  48. package/es/components/pisellNavigationMenu/types.d.ts +85 -0
  49. package/es/components/pisellQrcode/index.d.ts +10 -0
  50. package/es/components/pisellSectionHeaders/index.d.ts +21 -0
  51. package/es/components/pisellStatisticList/index.d.ts +21 -0
  52. package/es/components/productCard/components/Action/index.d.ts +4 -0
  53. package/es/components/productCard/components/Divider/index.d.ts +4 -0
  54. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  55. package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
  56. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  57. package/es/components/productCard/components/Time/components/Like/index.d.ts +10 -0
  58. package/es/components/productCard/components/Time/index.d.ts +4 -0
  59. package/es/components/section-footers/index.d.ts +9 -0
  60. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  61. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  62. package/es/components/table/Table/fields/index.d.ts +2 -2
  63. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  64. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  65. package/es/components/table/Table/utils.d.ts +1 -1
  66. package/es/components/table/View/index.d.ts +0 -1
  67. package/es/components/tabs/index.d.ts +16 -0
  68. package/es/components/walletCard/Guest/index.d.ts +4 -0
  69. package/es/components/walletCard/Guide/index.d.ts +4 -0
  70. package/es/components/walletCard/index.d.ts +67 -0
  71. package/es/locales/en-US.d.ts +278 -0
  72. package/es/locales/index.d.ts +1 -0
  73. package/es/locales/zh-CN.d.ts +273 -0
  74. package/es/locales/zh-TW.d.ts +273 -0
  75. package/es/utils/index.d.ts +1 -1
  76. package/es/utils/platform.d.ts +1 -1
  77. package/lib/components/TimeResourceSelector/index.d.ts +21 -0
  78. package/lib/components/badge/index.d.ts +8 -0
  79. package/lib/components/buttonGroupPreview/index.d.ts +19 -0
  80. package/lib/components/cardPro/index.d.ts +4 -0
  81. package/lib/components/collapse/index.d.ts +15 -0
  82. package/lib/components/cropPhoto/index.d.ts +3 -0
  83. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  84. package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  85. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  86. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  87. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +33 -0
  88. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  89. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  90. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  91. package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  92. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  93. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  94. package/lib/components/div/index.d.ts +19 -0
  95. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  96. package/lib/components/iconfont/index.d.ts +8 -0
  97. package/lib/components/login-and-register/index.d.ts +82 -0
  98. package/lib/components/page/index.d.ts +6 -0
  99. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  100. package/lib/components/pisellAnchor/index.d.ts +23 -0
  101. package/lib/components/pisellAvatar/index.d.ts +19 -0
  102. package/lib/components/pisellCard/index.d.ts +20 -0
  103. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  104. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  105. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
  106. package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  107. package/lib/components/pisellDraggable/index.d.ts +35 -0
  108. package/lib/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  109. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
  110. package/lib/components/pisellDropSort/types.d.ts +58 -0
  111. package/lib/components/pisellDropdown/index.d.ts +20 -0
  112. package/lib/components/pisellEmpty/index.d.ts +19 -0
  113. package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
  114. package/lib/components/pisellImageCarousels/index.d.ts +18 -0
  115. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  116. package/lib/components/pisellInformationEntry/index.d.ts +33 -0
  117. package/lib/components/pisellList01/index.d.ts +17 -0
  118. package/lib/components/pisellMenu/PisellMenu.d.ts +11 -0
  119. package/lib/components/pisellMenu/types.d.ts +27 -0
  120. package/lib/components/pisellNavigationMenu/types.d.ts +85 -0
  121. package/lib/components/pisellQrcode/index.d.ts +10 -0
  122. package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
  123. package/lib/components/pisellStatisticList/index.d.ts +21 -0
  124. package/lib/components/productCard/components/Action/index.d.ts +4 -0
  125. package/lib/components/productCard/components/Divider/index.d.ts +4 -0
  126. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +4 -0
  127. package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
  128. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  129. package/lib/components/productCard/components/Time/components/Like/index.d.ts +10 -0
  130. package/lib/components/productCard/components/Time/index.d.ts +4 -0
  131. package/lib/components/section-footers/index.d.ts +9 -0
  132. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  133. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  134. package/lib/components/table/Table/fields/index.d.ts +2 -2
  135. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  136. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  137. package/lib/components/table/Table/utils.d.ts +1 -1
  138. package/lib/components/table/View/index.d.ts +0 -1
  139. package/lib/components/tabs/index.d.ts +16 -0
  140. package/lib/components/walletCard/Guest/index.d.ts +4 -0
  141. package/lib/components/walletCard/Guide/index.d.ts +4 -0
  142. package/lib/components/walletCard/index.d.ts +67 -0
  143. package/lib/locales/en-US.d.ts +278 -0
  144. package/lib/locales/index.d.ts +1 -0
  145. package/lib/locales/zh-CN.d.ts +273 -0
  146. package/lib/locales/zh-TW.d.ts +273 -0
  147. package/lib/utils/index.d.ts +1 -1
  148. package/lib/utils/platform.d.ts +1 -1
  149. package/package.json +1 -1
@@ -0,0 +1,58 @@
1
+ import { CSSProperties } from 'react';
2
+ import type { Props as TreeItem } from '../pisellDraggable/components/TreeItem/TreeItem';
3
+ import type { TreeItem as TreeItemType } from '../pisellDraggable/types';
4
+ export interface DropSortItem extends TreeItemType {
5
+ [key: string]: any;
6
+ }
7
+ export interface PisellDropSortProps {
8
+ /** value */
9
+ value: DropSortItem[];
10
+ /** 允许拖拽 */
11
+ allowDrag?: boolean;
12
+ /** 允许删除 */
13
+ allowDelete?: boolean;
14
+ /** 允许添加子节点 */
15
+ allowAddChild?: boolean;
16
+ /** 允许添加根节点 */
17
+ allowAddRoot?: boolean;
18
+ /** 是否允许显示隐藏 */
19
+ allowIsShow?: boolean;
20
+ /** 是否禁用 */
21
+ disabled?: boolean;
22
+ /** 节点间距 */
23
+ spacing?: number;
24
+ /** 最大层级数 */
25
+ maxLevel?: number;
26
+ /** 是否显示边框 */
27
+ showBorder?: boolean;
28
+ /** 样式 */
29
+ style?: CSSProperties;
30
+ /** 类名 */
31
+ className?: string;
32
+ /** 数据源变化回调 */
33
+ onChange?: (items: DropSortItem[]) => void;
34
+ /** 删除节点回调 */
35
+ onDelete?: (itemProps: TreeItem) => void;
36
+ /** 添加节点回调 */
37
+ onAdd?: (itemProps: TreeItem) => void;
38
+ /** 自定义渲染节点 */
39
+ renderItem?: (itemProps: TreeItem) => React.ReactNode;
40
+ /** 添加根节点回调 */
41
+ onAddRoot?: () => void;
42
+ /** 左侧自定义内容 */
43
+ leftContent?: React.ReactNode;
44
+ /** 右侧自定义内容 */
45
+ rightContent?: React.ReactNode;
46
+ /** 空状态自定义内容 */
47
+ emptyContent?: React.ReactNode;
48
+ /** 设计模式 */
49
+ __designMode?: string;
50
+ /** 是否自定义操作 */
51
+ isCustomAction?: boolean;
52
+ /** 获取item样式 */
53
+ getItemStyle?: (itemProps: TreeItem) => React.CSSProperties;
54
+ /** 自定义拖拽判断函数,返回false时阻止拖拽 */
55
+ canDrop?: (dragItem: DropSortItem, dropTarget: DropSortItem, parentId: string | number | null) => boolean;
56
+ /** 节点缩进宽度 */
57
+ indentationWidth?: number;
58
+ }
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface MenuItemType {
4
+ key: string;
5
+ label: string;
6
+ icon?: React.ReactNode;
7
+ shortcut?: string;
8
+ divider?: boolean;
9
+ }
10
+ export interface PisellDropdownProps {
11
+ trigger?: React.ReactNode;
12
+ items?: MenuItemType[];
13
+ showShortcut?: boolean;
14
+ triggerType?: ('click' | 'hover')[];
15
+ className?: string;
16
+ style?: React.CSSProperties;
17
+ onSelect?: (key: string) => void;
18
+ }
19
+ declare const PisellDropdown: React.FC<PisellDropdownProps>;
20
+ export default PisellDropdown;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { EmptyProps } from 'antd';
3
+ import { PisellContextType } from '../pisell-config-provider/context';
4
+ import './index.less';
5
+ export interface PisellEmptyProps extends EmptyProps {
6
+ /** 平台 */
7
+ platform?: PisellContextType['platform'];
8
+ /** 额外内容描述 */
9
+ extraDescription?: React.ReactNode;
10
+ /** 额外内容描述 */
11
+ icon?: React.ReactNode;
12
+ /** 自定义底部额外操作区域 */
13
+ footer?: React.ReactNode;
14
+ [key: string]: any;
15
+ /** 最大宽度 */
16
+ maxWidth?: number;
17
+ }
18
+ declare const PisellEmpty: (props: PisellEmptyProps) => JSX.Element;
19
+ export default PisellEmpty;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellHeaderProgressBarProps {
4
+ title?: React.ReactNode;
5
+ stepText?: React.ReactNode;
6
+ showClose?: boolean;
7
+ /** 是否启用投影 */
8
+ enableShadow?: boolean;
9
+ /** 是否启用描边 */
10
+ enableBorder?: boolean;
11
+ /** 描边粗细 */
12
+ borderWidth?: number;
13
+ /** 描边颜色 */
14
+ borderColor?: string;
15
+ /** 头部背景颜色 */
16
+ backgroundColor?: string;
17
+ /** 自定义类名 */
18
+ className?: string;
19
+ /** 自定义样式 */
20
+ style?: React.CSSProperties;
21
+ /** 是否显示返回键 */
22
+ showBack?: boolean;
23
+ /** 返回按钮点击事件 */
24
+ onBack?: () => void;
25
+ /** 关闭按钮点击事件 */
26
+ onClose?: () => void;
27
+ }
28
+ declare const PisellHeaderProgressBar: React.FC<PisellHeaderProgressBarProps>;
29
+ export default PisellHeaderProgressBar;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import 'swiper/swiper-bundle.css';
3
+ import './index.less';
4
+ export interface PisellImageCarouselsProps {
5
+ dataSource?: string[];
6
+ width?: number | string;
7
+ height?: number;
8
+ showArrows?: boolean;
9
+ showDots?: boolean;
10
+ autoplay?: boolean;
11
+ interval?: number;
12
+ borderRadius?: number;
13
+ loop?: boolean;
14
+ className?: string;
15
+ style?: React.CSSProperties;
16
+ }
17
+ declare const PisellImageCarousels: React.FC<PisellImageCarouselsProps>;
18
+ export default PisellImageCarousels;
@@ -0,0 +1,4 @@
1
+ export declare const useNativeScanner: (onChange?: ((val: string) => void) | undefined) => {
2
+ activeNativeScanner: () => void;
3
+ isTerminal: any;
4
+ };
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../pisell-config-provider/context';
3
+ import './index.less';
4
+ export declare type EntryModeType = {
5
+ /**
6
+ * 录入模式名称
7
+ * scanCode: 扫码录入
8
+ * input: 手动录入
9
+ * scanner: 扫码枪录入
10
+ * nfc: NFC录入
11
+ */
12
+ type: 'scanCode' | 'input' | 'scanner' | 'nfc';
13
+ /**
14
+ * 录入模式文案 没有使用默认文案
15
+ */
16
+ name?: string;
17
+ };
18
+ export interface PisellInformationEntryProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'onChange'> {
19
+ /** 平台 */
20
+ platform?: PisellContextType['platform'];
21
+ /** 录入模式 */
22
+ entryModes: EntryModeType[];
23
+ /** 标题文案 */
24
+ title?: React.ReactNode;
25
+ /** 搜索框描述文案 */
26
+ searchDescribe?: React.ReactNode;
27
+ /** 录入信息值改变 */
28
+ onChange?: (val: string) => void;
29
+ /** 录入类型切换时候触发的 */
30
+ onChangeType?: (val: null | EntryModeType['type']) => void;
31
+ }
32
+ declare const PisellInformationEntry: (props: PisellInformationEntryProps) => JSX.Element;
33
+ export default PisellInformationEntry;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellList01Props {
4
+ dataSource?: any[];
5
+ showSearch: boolean;
6
+ showCategory: boolean;
7
+ placeholder?: string;
8
+ renderItem?: (item: any, index: number) => React.ReactNode;
9
+ className?: string;
10
+ style?: React.CSSProperties;
11
+ onChange?: (anchor: string) => void;
12
+ onSearch?: (value: any) => void;
13
+ isShowEmpty?: boolean;
14
+ description?: any;
15
+ }
16
+ declare const PisellList01: React.FC<PisellList01Props>;
17
+ export default PisellList01;
@@ -0,0 +1,11 @@
1
+ import { Menu as AntdMenu } from 'antd';
2
+ import React from 'react';
3
+ import './PisellMenu.less';
4
+ import type { PisellMenuProps } from './types';
5
+ declare type PisellMenuComponent = React.FC<PisellMenuProps> & {
6
+ Item: typeof AntdMenu.Item;
7
+ SubMenu: typeof AntdMenu.SubMenu;
8
+ ItemGroup: typeof AntdMenu.ItemGroup;
9
+ };
10
+ declare const PisellMenu: PisellMenuComponent;
11
+ export default PisellMenu;
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import type { MenuProps } from 'antd';
3
+ export interface PisellMenuProps extends Omit<MenuProps, 'items'> {
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ mode?: 'vertical' | 'horizontal' | 'inline';
7
+ theme?: 'light' | 'dark';
8
+ defaultOpenKeys?: string[];
9
+ defaultSelectedKeys?: string[];
10
+ inlineCollapsed?: boolean;
11
+ openKeys?: string[];
12
+ selectedKeys?: string[];
13
+ onOpenChange?: (openKeys: string[]) => void;
14
+ dataSource?: any;
15
+ __designMode?: string;
16
+ other?: PisellMenuProps;
17
+ }
18
+ export interface MenuItemType {
19
+ key: string;
20
+ label: string;
21
+ path: string;
22
+ children?: MenuItemType[];
23
+ icon?: string | React.ReactNode;
24
+ hide?: boolean;
25
+ type?: 'group' | 'divider';
26
+ isGroup?: boolean;
27
+ }
@@ -0,0 +1,85 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Props as TreeItem } from "../pisellDraggable/components/TreeItem/TreeItem";
3
+ export interface NavigationMenuItem {
4
+ id: string;
5
+ /** 标题 */
6
+ title: string;
7
+ /** 图标 */
8
+ icon?: string;
9
+ /** 描述 */
10
+ description?: string;
11
+ /** 子菜单 */
12
+ children?: NavigationMenuItem[];
13
+ /** 版本 */
14
+ version?: string;
15
+ /** 是否是分组 */
16
+ isGroup?: boolean;
17
+ /** 是否允许添加子菜单 */
18
+ allowAddChild?: boolean;
19
+ /** 是否允许删除 */
20
+ allowDelete?: boolean;
21
+ /** 是否允许编辑 */
22
+ allowEdit?: boolean;
23
+ /** 是否允许添加子菜单 */
24
+ allowAddSubmenu?: boolean;
25
+ /** 是否允许添加页面 */
26
+ allowAddPage?: boolean;
27
+ /** 其他属性 */
28
+ [key: string]: any;
29
+ }
30
+ export interface PisellNavigationMenuProps {
31
+ /** 导航菜单数据 */
32
+ value: NavigationMenuItem[];
33
+ /** 是否允许拖拽排序 */
34
+ allowDrag?: boolean;
35
+ /** 是否允许删除菜单项 */
36
+ allowDelete?: boolean;
37
+ /** 是否允许添加子菜单 */
38
+ allowAddChild?: boolean;
39
+ /** 是否允许添加根菜单 */
40
+ allowAddRoot?: boolean;
41
+ /** 是否允许显示隐藏 */
42
+ allowIsShow?: boolean;
43
+ /** 是否禁用 */
44
+ disabled?: boolean;
45
+ /** 菜单项间距 */
46
+ spacing?: number;
47
+ /** 最大层级数 */
48
+ maxLevel?: number;
49
+ /** 样式 */
50
+ style?: CSSProperties;
51
+ /** 类名 */
52
+ className?: string;
53
+ /** 数据变化回调 */
54
+ onChange?: (items: NavigationMenuItem[]) => void;
55
+ /** 设计模式 */
56
+ __designMode?: string;
57
+ /** 标题 */
58
+ title?: string;
59
+ /** 添加子菜单回调 */
60
+ onAddSubMenu?: (item?: NavigationMenuItem) => void;
61
+ /** 添加页面回调 */
62
+ onAddPage?: (item?: NavigationMenuItem) => void;
63
+ /** 编辑回调 */
64
+ onEdit?: (item: NavigationMenuItem) => void;
65
+ /** 删除回调 */
66
+ onDelete?: (item: NavigationMenuItem) => void;
67
+ /** 左侧自定义内容 */
68
+ leftContent?: React.ReactNode;
69
+ /** 右侧自定义内容 */
70
+ rightContent?: React.ReactNode;
71
+ /** 获取item样式 */
72
+ getItemStyle?: (itemProps: TreeItem) => React.CSSProperties;
73
+ /** 自定义拖拽判断函数,返回false时阻止拖拽 */
74
+ canDrop?: (dragItem: NavigationMenuItem, dropTarget: NavigationMenuItem, parentId: string | number | null) => boolean;
75
+ /** 显示隐藏回调 */
76
+ onIsShow?: (item: NavigationMenuItem) => void;
77
+ /** 节点缩进宽度 */
78
+ indentationWidth?: number;
79
+ /** 隐藏描述 */
80
+ hideDescription?: boolean;
81
+ /** 悬浮时展示action */
82
+ showActionOnHover?: boolean;
83
+ /** 是否展示标题标签 */
84
+ showTitleTags?: boolean;
85
+ }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface PisellQrcodeProps {
4
+ size?: number;
5
+ platform: 'pc' | 'h5' | 'ipad';
6
+ value: string;
7
+ className: string;
8
+ }
9
+ declare const PisellQrcode: React.FC<PisellQrcodeProps>;
10
+ export default PisellQrcode;
@@ -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,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellStatisticListProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ isHasBorder?: boolean;
5
+ backgroundColors?: string[];
6
+ labelColor?: string;
7
+ valueColor?: string;
8
+ data: {
9
+ label: string;
10
+ value: string;
11
+ isLink?: boolean;
12
+ link?: string;
13
+ tip?: string;
14
+ children?: {
15
+ label: string;
16
+ value: string;
17
+ }[];
18
+ }[];
19
+ }
20
+ declare const PisellStatisticList: (props: PisellStatisticListProps) => JSX.Element;
21
+ export default PisellStatisticList;
@@ -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 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,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 {};
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Like: ({ status, onLike, className, style, isShowChangeResource, }: {
4
+ style?: any;
5
+ status: string;
6
+ onLike?: any;
7
+ className?: string | undefined;
8
+ isShowChangeResource?: boolean | undefined;
9
+ }) => JSX.Element;
10
+ export default Like;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Time: ({ item, isShowHolder, onLike, isShowChangeResource, changeResource, changeHolder, isShowChangeHolder, holderMode, onAddHolder, isShowAddHolderButton, onClearHolder, onClearResource, }: any) => JSX.Element | null;
4
+ export default Time;
@@ -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;
@@ -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,5 +1,5 @@
1
1
  declare const useGapSize: (gap: number | number[]) => {
2
- horizontal: any;
3
- vertical: any;
2
+ horizontal: number;
3
+ vertical: number;
4
4
  };
5
5
  export default useGapSize;
@@ -198,12 +198,12 @@ export declare const fieldList: ({
198
198
  field_icon: string;
199
199
  field_name: string;
200
200
  field_type: string;
201
- default_value: string;
201
+ default_value: boolean;
202
202
  } | {
203
203
  field_icon: string;
204
204
  field_name: string;
205
205
  field_type: string;
206
- default_value: boolean;
206
+ default_value: string;
207
207
  } | {
208
208
  field_icon: string;
209
209
  field_name: string;
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): any;
5
+ }): boolean;
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[] | Record<string, any>[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): any;
5
+ }): boolean;
@@ -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
- }) => ("filter_setting" | "view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting")[];
158
+ }) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GridViewProps } from '../types';
3
2
  declare const View: (props: GridViewProps & {
4
3
  setTableSetting: (values: Record<string, any>) => void;
@@ -0,0 +1,16 @@
1
+ import { Component } from 'react';
2
+ import { TabsProps } from 'antd';
3
+ import './index.less';
4
+ declare class Tabs extends Component<any> {
5
+ state: {
6
+ activeKey: any;
7
+ };
8
+ componentDidMount(): void;
9
+ private _handleChange;
10
+ setActiveKey: (key: string) => void;
11
+ getActiveKey: () => any;
12
+ renderIconLabelTabBar: TabsProps['renderTabBar'];
13
+ filterHiddenTabs: (tabs: any[]) => any[];
14
+ render(): JSX.Element;
15
+ }
16
+ export default Tabs;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Guest: (props: any) => JSX.Element;
4
+ export default Guest;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ declare const Guide: (props: any) => JSX.Element;
4
+ export default Guide;
@@ -0,0 +1,67 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare global {
4
+ namespace JSX {
5
+ interface IntrinsicElements {
6
+ [elemName: string]: any;
7
+ }
8
+ }
9
+ }
10
+ export interface WalletCardItem {
11
+ key: string;
12
+ label?: string;
13
+ hidden?: boolean;
14
+ value?: number;
15
+ }
16
+ export interface WalletCardProps {
17
+ /** 二维码弹窗适配平台 */
18
+ platform?: 'pc' | 'h5' | 'ipad';
19
+ /** 卡片主题 */
20
+ mode?: 'dark' | 'light';
21
+ /** 默认还是完整显示code */
22
+ cardStyle?: 'normal' | 'full';
23
+ /** 条形码还是二维码 */
24
+ codeType?: 'barCode' | 'orCode';
25
+ /** 二维码方向 */
26
+ codeDirection?: 'bottom' | 'top';
27
+ /** 自定义背景图 */
28
+ customBackgroundImage?: string;
29
+ /** 图标:可以是React组件或图片URL */
30
+ showIcon?: boolean;
31
+ showWalletName?: boolean;
32
+ iconImg?: string;
33
+ /** 钱包名称 */
34
+ walletName?: string;
35
+ /** 店铺名称 */
36
+ shopName?: string;
37
+ /** 是否显示店铺名称 */
38
+ showShopName?: boolean;
39
+ /** 卡号 */
40
+ cardNo?: string;
41
+ /** 是否显示卡号 */
42
+ showCardNo?: boolean;
43
+ /** 是否显示二维码 */
44
+ showCode?: boolean;
45
+ /** 点击二维码/条形码的回调 */
46
+ onCodeClick?: () => void;
47
+ /** 货币符号 */
48
+ symbol: string;
49
+ /** 点击卡片的回调 */
50
+ onClick?: () => void;
51
+ /** 自定义类名 */
52
+ className?: string;
53
+ items: WalletCardItem[];
54
+ /** 自定义样式 */
55
+ style?: React.CSSProperties;
56
+ title?: string;
57
+ subTitle?: string;
58
+ align?: 'left' | 'center';
59
+ buttonText?: string;
60
+ [key: string]: any;
61
+ /** 是否已登录 */
62
+ isLogin?: boolean;
63
+ /** 是否是引导页 */
64
+ isGuide?: boolean;
65
+ }
66
+ declare const WalletCard: React.FC<WalletCardProps>;
67
+ export default WalletCard;