@aloudata/aloudata-design 2.19.6 → 2.19.8
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/dist/LogicTree/DisplayLogicTree.d.ts +1 -1
- package/dist/LogicTree/components/DisplayLogicItem/index.d.ts +1 -1
- package/dist/LogicTree/components/DisplayLogicItem/index.js +1 -1
- package/dist/LogicTree/components/LogicItem/index.js +2 -3
- package/dist/LogicTree/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { TNode } from './type';
|
|
3
3
|
interface IProps<T> {
|
|
4
4
|
value?: TNode<T>;
|
|
5
|
-
renderCondition: (data: T) => React.ReactNode;
|
|
5
|
+
renderCondition: (data: T, nodeId: string) => React.ReactNode;
|
|
6
6
|
backgroundColor?: string;
|
|
7
7
|
}
|
|
8
8
|
export default function DisplayLogicTree<T>({ value, renderCondition, backgroundColor, }: IProps<T>): React.JSX.Element | null;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { TNode } from '../../type';
|
|
3
3
|
interface IProps<T> {
|
|
4
4
|
value: TNode<T>;
|
|
5
|
-
renderCondition: (value: T) => React.ReactNode;
|
|
5
|
+
renderCondition: (value: T, nodeId: string) => React.ReactNode;
|
|
6
6
|
backgroundColor?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare function DisplayLogicItem<T>({ value, renderCondition, backgroundColor, }: IProps<T>): React.JSX.Element | null;
|
|
@@ -82,5 +82,5 @@ export function DisplayLogicItem(_ref) {
|
|
|
82
82
|
className: "ald-logic-tree-display-record-node"
|
|
83
83
|
}, /*#__PURE__*/React.createElement("div", {
|
|
84
84
|
className: "ald-logic-tree-render-condition-wrap"
|
|
85
|
-
}, renderCondition(value.data)));
|
|
85
|
+
}, renderCondition(value.data, value.id)));
|
|
86
86
|
}
|
|
@@ -327,8 +327,7 @@ export default function LogicItem(_ref) {
|
|
|
327
327
|
size: "small",
|
|
328
328
|
popupMatchSelectWidth: false,
|
|
329
329
|
value: _logicType,
|
|
330
|
-
onChange: onChangeRelation
|
|
331
|
-
disabled: nodes.length <= 1
|
|
330
|
+
onChange: onChangeRelation
|
|
332
331
|
}), /*#__PURE__*/React.createElement(DragPreviewImage, {
|
|
333
332
|
connect: preview,
|
|
334
333
|
src: dargPreviewImg
|
|
@@ -380,7 +379,7 @@ export default function LogicItem(_ref) {
|
|
|
380
379
|
className: "ald-logic-tree-render-condition-wrap"
|
|
381
380
|
}, renderCondition(value.data, {
|
|
382
381
|
changeData: onChangeRecordData
|
|
383
|
-
})), /*#__PURE__*/React.createElement(IconButton, {
|
|
382
|
+
}, value.id)), /*#__PURE__*/React.createElement(IconButton, {
|
|
384
383
|
icon: /*#__PURE__*/React.createElement(TrashLightLine, {
|
|
385
384
|
size: 16
|
|
386
385
|
}),
|
|
@@ -9,7 +9,7 @@ export declare enum EPutPosition {
|
|
|
9
9
|
}
|
|
10
10
|
export type TRenderCondition<T> = (data: T, { changeData }: {
|
|
11
11
|
changeData: (data: T) => void;
|
|
12
|
-
}) => React.ReactNode;
|
|
12
|
+
}, nodeId: string) => React.ReactNode;
|
|
13
13
|
interface IProps<T> {
|
|
14
14
|
newInitializationData: T;
|
|
15
15
|
onChange: (value: TNode<T>) => void;
|
package/dist/Table/index.js
CHANGED
|
@@ -323,7 +323,7 @@ function Table(props, ref) {
|
|
|
323
323
|
className: prefixCls('body'),
|
|
324
324
|
style: {
|
|
325
325
|
width: totalColumnsWidth,
|
|
326
|
-
height: virtual ? rowVirtualizer.getTotalSize() : 'auto'
|
|
326
|
+
height: virtual ? totalSize ? rowVirtualizer.getTotalSize() : 0 : 'auto'
|
|
327
327
|
}
|
|
328
328
|
}, isEmpty ? /*#__PURE__*/React.createElement("div", {
|
|
329
329
|
style: {
|