@pisell/materials 1.0.849 → 1.0.851
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +22 -22
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +14 -14
- package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +33 -0
- package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
- package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
- package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +11 -10
- package/es/components/dataSourceComponents/fields/utils.d.ts +3 -0
- package/es/components/date-picker/datePickerCpt.d.ts +1 -0
- package/es/components/filter/index.d.ts +1 -0
- package/es/components/list/index.d.ts +1 -0
- package/es/components/lowCodePage/index.d.ts +1 -0
- package/es/components/media/index.js +340 -0
- package/es/components/media/index.less +100 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/es/components/pisellLoading/index.d.ts +1 -0
- package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
- package/es/components/productCard/components/Header/index.d.ts +1 -0
- package/es/components/productCard/components/Note/index.d.ts +1 -0
- package/es/components/productCard/components/Packages/index.d.ts +1 -0
- package/es/components/productCard/components/Sales/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
- package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
- package/es/components/productCard/components/Warning/index.js +48 -0
- package/es/components/productCard/index.js +8 -8
- package/es/components/productCard/locales.js +6 -3
- package/es/components/productCard/status.js +3 -1
- package/es/components/qrcode/index.d.ts +1 -0
- package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/es/components/table/Actions/component/Group/index.d.ts +1 -0
- package/es/components/table/Actions/index.d.ts +1 -0
- package/es/components/table/BasicTable/index.d.ts +1 -0
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +1 -0
- package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/index.d.ts +1 -0
- package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/es/components/table/Table/fields/text/index.d.ts +1 -0
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/es/components/table/View/index.d.ts +1 -0
- package/es/components/walletCard/index.js +30 -3
- package/es/components/walletCard/index.less +17 -0
- package/es/locales/en-US.js +164 -59
- package/es/locales/zh-CN.js +158 -59
- package/es/locales/zh-TW.js +103 -102
- package/es/utils/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +3 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +33 -0
- package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
- package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -1
- package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +11 -10
- package/lib/components/dataSourceComponents/fields/utils.d.ts +3 -0
- package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
- package/lib/components/filter/index.d.ts +1 -0
- package/lib/components/list/index.d.ts +1 -0
- package/lib/components/lowCodePage/index.d.ts +1 -0
- package/lib/components/media/index.js +265 -0
- package/lib/components/media/index.less +100 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +1 -0
- package/lib/components/pisellLoading/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
- package/lib/components/productCard/components/Header/index.d.ts +1 -0
- package/lib/components/productCard/components/Note/index.d.ts +1 -0
- package/lib/components/productCard/components/Packages/index.d.ts +1 -0
- package/lib/components/productCard/components/Sales/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -0
- package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
- package/lib/components/productCard/components/Warning/index.js +68 -0
- package/lib/components/productCard/index.js +4 -11
- package/lib/components/productCard/locales.js +6 -3
- package/lib/components/productCard/status.js +3 -1
- package/lib/components/qrcode/index.d.ts +1 -0
- package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
- package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
- package/lib/components/table/Actions/index.d.ts +1 -0
- package/lib/components/table/BasicTable/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +1 -0
- package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +1 -0
- package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
- package/lib/components/table/Table/fields/text/index.d.ts +1 -0
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
- package/lib/components/table/View/index.d.ts +1 -0
- package/lib/components/walletCard/index.js +26 -3
- package/lib/components/walletCard/index.less +17 -0
- package/lib/locales/en-US.js +1 -8
- package/lib/locales/zh-CN.js +1 -7
- package/lib/locales/zh-TW.js +1 -0
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/wallet-card/meta.ts +81 -63
- package/package.json +3 -3
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +0 -8
- package/es/components/div/index.d.ts +0 -19
- package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +0 -9
- package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -24
- package/es/components/pisellDraggable/components/TreeItem/index.d.ts +0 -2
- package/es/components/pisellDraggable/index.d.ts +0 -35
- package/es/components/pisellDropSort/PisellDropSort.d.ts +0 -5
- package/es/components/pisellDropSort/components/SortableItem/index.d.ts +0 -26
- package/es/components/pisellDropSort/types.d.ts +0 -58
- package/es/components/pisellMenu/PisellMenu.d.ts +0 -11
- package/es/components/pisellMenu/types.d.ts +0 -27
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/es/components/pisellNavigationMenu/types.d.ts +0 -85
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -2
- package/es/components/productCard/index.d.ts +0 -5
- package/es/components/productCard/locales.d.ts +0 -81
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -83
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +0 -8
- package/lib/components/div/index.d.ts +0 -19
- package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +0 -9
- package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -24
- package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +0 -2
- package/lib/components/pisellDraggable/index.d.ts +0 -35
- package/lib/components/pisellDropSort/PisellDropSort.d.ts +0 -5
- package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +0 -26
- package/lib/components/pisellDropSort/types.d.ts +0 -58
- package/lib/components/pisellMenu/PisellMenu.d.ts +0 -11
- package/lib/components/pisellMenu/types.d.ts +0 -27
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/lib/components/pisellNavigationMenu/types.d.ts +0 -85
- package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -2
- package/lib/components/productCard/index.d.ts +0 -5
- package/lib/components/productCard/locales.d.ts +0 -81
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -83
|
@@ -1,58 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
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.minute': (val: number) => string;
|
|
6
|
-
'pisell2.product.card.discount.reason': string;
|
|
7
|
-
'pisell2.product.card.discount.note': string;
|
|
8
|
-
'pisell2.product.card.edit': string;
|
|
9
|
-
'pisell2.product.card.discount.add.note': string;
|
|
10
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
11
|
-
'pisell2.product.card.confirm': string;
|
|
12
|
-
'pisell2.product.card.cancel': string;
|
|
13
|
-
'pisell2.product.card.note.pla': string;
|
|
14
|
-
'pisell2.product.card.items.package': string;
|
|
15
|
-
'pisell2.product.card.view-all': string;
|
|
16
|
-
'pisell2.product.card.view-less': string;
|
|
17
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
18
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
19
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
20
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
21
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
22
|
-
'pisell2.product.card.sales': string;
|
|
23
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
24
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
25
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
26
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
27
|
-
};
|
|
28
|
-
'zh-CN': {
|
|
29
|
-
'pisell2.product.card.edit': string;
|
|
30
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
31
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
32
|
-
'pisell2.product.card.minute': (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
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
44
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
45
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
46
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
47
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
48
|
-
'pisell2.product.card.sales': string;
|
|
49
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
50
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
51
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
52
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
53
|
-
};
|
|
54
|
-
'zh-HK': {
|
|
55
|
-
'pisell2.product.card.edit': string;
|
|
56
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
57
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
58
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
59
|
-
'pisell2.product.card.discount.reason': string;
|
|
60
|
-
'pisell2.product.card.discount.note': string;
|
|
61
|
-
'pisell2.product.card.discount.add.note': string;
|
|
62
|
-
'pisell2.product.card.discount.edit.note': string;
|
|
63
|
-
'pisell2.product.card.confirm': string;
|
|
64
|
-
'pisell2.product.card.cancel': string;
|
|
65
|
-
'pisell2.product.card.note.pla': string;
|
|
66
|
-
'pisell2.product.card.items.package': string;
|
|
67
|
-
'pisell2.product.card.view-all': string;
|
|
68
|
-
'pisell2.product.card.view-less': string;
|
|
69
|
-
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
70
|
-
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
71
|
-
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
72
|
-
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
73
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
74
|
-
'pisell2.product.card.sales': string;
|
|
75
|
-
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
76
|
-
'pisell2.product.card.add.holder.modal.clear': string;
|
|
77
|
-
'pisell2.product.card.add.holder.modal.apply': string;
|
|
78
|
-
'pisell2.product.card.add.holder.modal.add': string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
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;
|
|
@@ -1,83 +0,0 @@
|
|
|
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
|
-
isShowChangeHolder?: boolean;
|
|
74
|
-
isShowChangeResource?: boolean;
|
|
75
|
-
isShowChangeDate?: boolean;
|
|
76
|
-
onAction?: (val: any) => void;
|
|
77
|
-
onDelete?: (val: any) => void;
|
|
78
|
-
onNote?: (val: any) => void;
|
|
79
|
-
onLike?: (val: any) => void;
|
|
80
|
-
onCard?: (val: any) => void;
|
|
81
|
-
onChangeResource?: (val: any) => void;
|
|
82
|
-
[key: string]: any;
|
|
83
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellMenuProps } from '../../pisellMenu/types';
|
|
3
|
-
/**
|
|
4
|
-
* @title: 数据源表单组件
|
|
5
|
-
* @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
|
|
6
|
-
*/
|
|
7
|
-
declare const DataSourceMenu: React.ForwardRefExoticComponent<PisellMenuProps & React.RefAttributes<any>>;
|
|
8
|
-
export default DataSourceMenu;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface DivProps {
|
|
3
|
-
/** 基础类名,默认为 'div' */
|
|
4
|
-
baseClassName?: string;
|
|
5
|
-
/** 自定义类名,会与 baseClassName 合并 */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** 渲染函数,优先级高于 children */
|
|
8
|
-
render?: () => React.ReactNode;
|
|
9
|
-
/** 子元素 */
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
/** 内联样式 */
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
/** 收集其他需要传递给 div 的 props */
|
|
14
|
-
others?: any;
|
|
15
|
-
/** 其他自定义属性 */
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
}
|
|
18
|
-
declare const _default: React.NamedExoticComponent<DivProps>;
|
|
19
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { UniqueIdentifier } from '@dnd-kit/core';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Props as TreeItemProps } from './TreeItem';
|
|
4
|
-
interface Props extends TreeItemProps {
|
|
5
|
-
id: UniqueIdentifier;
|
|
6
|
-
__designMode?: string;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: React.MemoExoticComponent<({ id, depth, ...props }: Props) => JSX.Element>;
|
|
9
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
import type { TreeItem as TreeItemType } from '../../types';
|
|
3
|
-
import './TreeItem.less';
|
|
4
|
-
export interface Props extends Omit<HTMLAttributes<HTMLLIElement>, 'id'> {
|
|
5
|
-
childCount?: number;
|
|
6
|
-
clone?: boolean;
|
|
7
|
-
collapsed?: boolean;
|
|
8
|
-
depth: number;
|
|
9
|
-
disableInteraction?: boolean;
|
|
10
|
-
disableSelection?: boolean;
|
|
11
|
-
ghost?: boolean;
|
|
12
|
-
handleProps?: any;
|
|
13
|
-
indicator?: boolean;
|
|
14
|
-
indentationWidth: number;
|
|
15
|
-
onCollapse?(): void;
|
|
16
|
-
onRemove?(): void;
|
|
17
|
-
wrapperRef?(node: HTMLLIElement): void;
|
|
18
|
-
item: TreeItemType;
|
|
19
|
-
renderItem?(item: Props, ref: React.ForwardedRef<HTMLDivElement>): React.ReactNode;
|
|
20
|
-
__designMode?: string;
|
|
21
|
-
isBlocked?: boolean;
|
|
22
|
-
isError?: boolean;
|
|
23
|
-
}
|
|
24
|
-
export declare const TreeItem: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 可拖拽树形组件
|
|
3
|
-
* 基于@dnd-kit库实现,支持拖拽排序、展开折叠、删除等功能
|
|
4
|
-
*/
|
|
5
|
-
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import type { FlattenedItem, TreeItem, TreeItems } from './types';
|
|
8
|
-
import type { Props as TreeItemProps } from './components/TreeItem/TreeItem';
|
|
9
|
-
interface Props {
|
|
10
|
-
/** 是否支持折叠功能 */
|
|
11
|
-
collapsible?: boolean;
|
|
12
|
-
/** 初始树形数据,默认使用 initialItems */
|
|
13
|
-
value?: TreeItems;
|
|
14
|
-
/** 缩进宽度,控制子节点的缩进距离 */
|
|
15
|
-
indentationWidth?: number;
|
|
16
|
-
/** 是否显示拖拽指示器 */
|
|
17
|
-
indicator?: boolean;
|
|
18
|
-
/** 是否支持删除节点功能 */
|
|
19
|
-
removable?: boolean;
|
|
20
|
-
/** 自定义渲染树节点 */
|
|
21
|
-
renderItem?: (item: TreeItemProps, ref: React.RefObject<HTMLDivElement>) => React.ReactNode;
|
|
22
|
-
/** 树形数据变化回调 */
|
|
23
|
-
onChange?: (items: TreeItems) => void;
|
|
24
|
-
/** 删除节点前 */
|
|
25
|
-
onRemoveBefore?: (item: TreeItem) => Promise<boolean>;
|
|
26
|
-
/** 设计模式 */
|
|
27
|
-
__designMode?: string;
|
|
28
|
-
/** 最大层级 */
|
|
29
|
-
maxLevel?: number;
|
|
30
|
-
/** 自定义拖拽判断函数,返回false时阻止拖拽 */
|
|
31
|
-
canDrop?: (dragItem: FlattenedItem, dropTarget: FlattenedItem, parentId: UniqueIdentifier | null, parentNode: any) => boolean;
|
|
32
|
-
}
|
|
33
|
-
export declare function SortableTree({ collapsible, value, indicator, indentationWidth, removable, renderItem, onChange, onRemoveBefore, __designMode, maxLevel, canDrop, }: Props): JSX.Element;
|
|
34
|
-
declare const Demo: (props: Props) => JSX.Element;
|
|
35
|
-
export default Demo;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Props as TreeItem } from '../../../pisellDraggable/components/TreeItem/TreeItem';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface SortableItemProps {
|
|
5
|
-
itemProps: TreeItem;
|
|
6
|
-
render?: (itemProps: TreeItem) => React.ReactNode;
|
|
7
|
-
domRef: React.RefObject<HTMLDivElement>;
|
|
8
|
-
allowAddChild?: boolean;
|
|
9
|
-
allowDelete?: boolean;
|
|
10
|
-
allowIsShow?: boolean;
|
|
11
|
-
allowDrag?: boolean;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
onAdd?: (itemProps: TreeItem) => void;
|
|
14
|
-
onDelete?: (itemProps: TreeItem) => void;
|
|
15
|
-
showBorder?: boolean;
|
|
16
|
-
spacing?: number;
|
|
17
|
-
maxLevel?: number;
|
|
18
|
-
/** 设计模式 */
|
|
19
|
-
__designMode?: string;
|
|
20
|
-
/** 是否自定义操作 */
|
|
21
|
-
isCustomAction?: boolean;
|
|
22
|
-
/** 获取item样式 */
|
|
23
|
-
getItemStyle?: (itemProps: TreeItem) => React.CSSProperties;
|
|
24
|
-
}
|
|
25
|
-
declare const SortableItem: (props: SortableItemProps) => JSX.Element;
|
|
26
|
-
export default SortableItem;
|
|
@@ -1,58 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
}
|