@aloudata/aloudata-design 2.19.6 → 2.19.7

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.
@@ -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
  }
@@ -380,7 +380,7 @@ export default function LogicItem(_ref) {
380
380
  className: "ald-logic-tree-render-condition-wrap"
381
381
  }, renderCondition(value.data, {
382
382
  changeData: onChangeRecordData
383
- })), /*#__PURE__*/React.createElement(IconButton, {
383
+ }, value.id)), /*#__PURE__*/React.createElement(IconButton, {
384
384
  icon: /*#__PURE__*/React.createElement(TrashLightLine, {
385
385
  size: 16
386
386
  }),
@@ -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;
@@ -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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloudata/aloudata-design",
3
- "version": "2.19.6",
3
+ "version": "2.19.7",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",