linkmore-design 1.1.41 → 1.1.43

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/index.umd.js CHANGED
@@ -235414,13 +235414,17 @@
235414
235414
  }
235415
235415
  onExpressionChange && onExpressionChange(col, value);
235416
235416
  };
235417
- React.useEffect(function () {
235417
+ // useEffect(() => {
235418
+ // // 使用默认值初始化
235419
+ // if (col?.defaultExpression) {
235420
+ // onChangeRecord(dfs, col.dataIndex, col?.defaultExpression, false)
235421
+ // }
235422
+ // }, [col?.defaultExpression])
235423
+ if (col === null || col === void 0 ? void 0 : col.defaultExpression) {
235418
235424
  // 使用默认值初始化
235419
- if (col === null || col === void 0 ? void 0 : col.defaultExpression) {
235420
- onChangeRecord(dfs, col.dataIndex, col === null || col === void 0 ? void 0 : col.defaultExpression, false);
235421
- }
235422
- }, [col === null || col === void 0 ? void 0 : col.defaultExpression]);
235423
- if (record && record._group && isShowSelect && (col === null || col === void 0 ? void 0 : col.dataIndex)) {
235425
+ onChangeRecord(dfs, col.dataIndex, col === null || col === void 0 ? void 0 : col.defaultExpression, false);
235426
+ }
235427
+ if (record && record.hasOwnProperty('_group') && isShowSelect && (col === null || col === void 0 ? void 0 : col.dataIndex)) {
235424
235428
  var select = Object.assign({
235425
235429
  placeholder: '不计算',
235426
235430
  allowClear: false,