@pisell/materials 1.0.839 → 1.0.841
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/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +4 -4
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +4 -4
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.js +1 -1
- package/es/components/pisellDraggable/index.js +25 -13
- package/es/components/pisellDropSort/components/SortableItem/index.js +5 -1
- package/es/components/pisellDropSort/components/SortableItem/index.less +0 -1
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +40 -7
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.less +14 -0
- package/es/locales/en-US.js +1 -1
- package/es/locales/zh-CN.js +1 -1
- package/es/locales/zh-TW.js +3 -0
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.js +1 -1
- package/lib/components/pisellDraggable/index.js +12 -6
- package/lib/components/pisellDropSort/components/SortableItem/index.js +4 -0
- package/lib/components/pisellDropSort/components/SortableItem/index.less +0 -1
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +27 -8
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.less +14 -0
- package/lib/locales/en-US.js +3 -0
- package/lib/locales/zh-CN.js +3 -0
- package/lib/locales/zh-TW.js +3 -0
- package/package.json +1 -1
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +0 -8
- package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -23
- 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/pisellMenu/types.d.ts +0 -26
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/es/components/pisellNavigationMenu/types.d.ts +0 -79
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +0 -8
- package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -23
- 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/pisellMenu/types.d.ts +0 -26
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +0 -5
- package/lib/components/pisellNavigationMenu/types.d.ts +0 -79
package/package.json
CHANGED
|
@@ -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,23 +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
|
-
}
|
|
23
|
-
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) => 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,26 +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
|
-
}
|
|
@@ -1,79 +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
|
-
}
|
|
@@ -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,23 +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
|
-
}
|
|
23
|
-
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) => 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,26 +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
|
-
}
|
|
@@ -1,79 +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
|
-
}
|