lt-business-component 1.0.92 → 1.0.93

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.
@@ -52873,7 +52873,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
52873
52873
  if (typeof cols[i].Style == "undefined") {
52874
52874
  var tempItem = {
52875
52875
  title: cols[i].title,
52876
- dataIndex: cols[i].Field,
52876
+ dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
52877
52877
  width: cols[i].width,
52878
52878
  resizable: true,
52879
52879
  ellipsis: true,
@@ -52918,7 +52918,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
52918
52918
  if (cols[i].Style.toLowerCase() == "textbox") {
52919
52919
  var _tempItem = {
52920
52920
  title: cols[i].title,
52921
- dataIndex: cols[i].Field,
52921
+ dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
52922
52922
  width: cols[i].width,
52923
52923
  resizable: true,
52924
52924
  ellipsis: true,
@@ -52944,7 +52944,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
52944
52944
  },
52945
52945
  customRender: function customRender(_ref6) {
52946
52946
  var record = _ref6.record;
52947
- var key = cols[i].Field;
52947
+ var key = cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field;
52948
52948
  if (cols[i].isDefaultEditInTable) {
52949
52949
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-input"), {
52950
52950
  "value": record[key],
@@ -52963,7 +52963,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
52963
52963
  } else if (cols[i].Style.toLowerCase() == "textarea") {
52964
52964
  var item = {
52965
52965
  title: cols[i].title,
52966
- dataIndex: cols[i].Field,
52966
+ dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
52967
52967
  width: cols[i].width,
52968
52968
  resizable: true,
52969
52969
  ellipsis: true,
@@ -52989,7 +52989,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
52989
52989
  },
52990
52990
  customRender: function customRender(_ref7) {
52991
52991
  var record = _ref7.record;
52992
- var key = cols[i].Field;
52992
+ var key = cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field;
52993
52993
  if (cols[i].isDefaultEditInTable) {
52994
52994
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-textarea"), {
52995
52995
  "value": record[key],
@@ -53007,7 +53007,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53007
53007
  } else if (cols[i].Style.toLowerCase() == "combox") {
53008
53008
  var _tempItem2 = {
53009
53009
  title: cols[i].title,
53010
- dataIndex: cols[i].Field,
53010
+ dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
53011
53011
  width: cols[i].width,
53012
53012
  resizable: true,
53013
53013
  ellipsis: true,
@@ -53031,7 +53031,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53031
53031
  filterOption: filterOption,
53032
53032
  onChange: function onChange(value) {
53033
53033
  var formModel = Option.formModel;
53034
- formModel[cols[i].Field] = value;
53034
+ formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field] = value;
53035
53035
  selectChange(Option, cols[i]);
53036
53036
  },
53037
53037
  disabled: !cols[i].isEdit,
@@ -53044,7 +53044,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53044
53044
  defaultEditable: false,
53045
53045
  customRender: function customRender(_ref8) {
53046
53046
  var record = _ref8.record;
53047
- var key = cols[i].Field;
53047
+ var key = cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field;
53048
53048
  if (cols[i].isDefaultEditInTable) {
53049
53049
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-select"), {
53050
53050
  "value": record[key],
@@ -53061,7 +53061,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53061
53061
  }, null);
53062
53062
  } else {
53063
53063
  var tempCol = localCols.value.filter(function (item) {
53064
- return item.Field == cols[i].Field || item.dataIndex == cols[i].Field;
53064
+ return item.Field == cols[i].Field || item.dataIndex == cols[i].Field || item.dataIndex == cols[i].dataIndex;
53065
53065
  });
53066
53066
  if (tempCol.length == 1) {
53067
53067
  return _getComBoxlabel(record, tempCol[0]);
@@ -53074,7 +53074,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53074
53074
  } else if (cols[i].Style.toLowerCase() == "tree" || cols[i].Style.toLowerCase() == "selecttree") {
53075
53075
  var _tempItem3 = {
53076
53076
  title: cols[i].title,
53077
- dataIndex: cols[i].Field,
53077
+ dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
53078
53078
  width: cols[i].width,
53079
53079
  resizable: true,
53080
53080
  ellipsis: true,
@@ -53093,7 +53093,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53093
53093
  allowClear: true,
53094
53094
  onChange: function onChange(value) {
53095
53095
  var formModel = Option.formModel;
53096
- formModel[cols[i].Field] = value;
53096
+ formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field] = value;
53097
53097
  selectChange(Option, cols[i]);
53098
53098
  },
53099
53099
  disabled: !cols[i].isEdit,
@@ -53105,7 +53105,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53105
53105
  defaultEditable: false,
53106
53106
  customRender: function customRender(_ref9) {
53107
53107
  var record = _ref9.record;
53108
- var key = cols[i].Field;
53108
+ var key = cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field;
53109
53109
  if (cols[i].isDefaultEditInTable) {
53110
53110
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-tree-select"), {
53111
53111
  "value": record[key],
@@ -53119,7 +53119,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53119
53119
  }, null);
53120
53120
  } else {
53121
53121
  var tempCol = localCols.value.filter(function (item) {
53122
- return item.Field == cols[i].Field || item.dataIndex == cols[i].Field;
53122
+ return item.Field == cols[i].Field || item.dataIndex == cols[i].Field || item.dataIndex == cols[i].dataIndex;
53123
53123
  });
53124
53124
  if (tempCol.length == 1) {
53125
53125
  return _getTreeLabel(record, tempCol[0]);
@@ -53133,7 +53133,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53133
53133
  } else if (cols[i].Style.toLowerCase() == "checkbox") {
53134
53134
  var _tempItem4 = {
53135
53135
  title: cols[i].title,
53136
- dataIndex: cols[i].Field,
53136
+ dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
53137
53137
  width: cols[i].width,
53138
53138
  resizable: true,
53139
53139
  ellipsis: true,
@@ -53147,7 +53147,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53147
53147
  disabled: !cols[i].isEdit,
53148
53148
  onChange: function onChange(value) {
53149
53149
  var formModel = Option.formModel;
53150
- formModel[cols[i].Field] = value.target.checked;
53150
+ formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field] = value.target.checked;
53151
53151
  selectChange(Option, cols[i]);
53152
53152
  }
53153
53153
  };
@@ -53158,7 +53158,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53158
53158
  customRender: function customRender(_ref0) {
53159
53159
  var record = _ref0.record;
53160
53160
  var tempCol = localCols.value.filter(function (item) {
53161
- return item.Field == cols[i].Field || item.dataIndex == cols[i].Field;
53161
+ return item.Field == cols[i].Field || item.dataIndex == cols[i].Field || item.dataIndex == cols[i].dataIndex;
53162
53162
  });
53163
53163
  if (tempCol.length == 1) {
53164
53164
  return _getCheckBox(record, tempCol[0]);
@@ -53171,7 +53171,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53171
53171
  } else if (cols[i].Style.toLowerCase() == "color") {
53172
53172
  var _tempItem5 = {
53173
53173
  title: cols[i].title,
53174
- dataIndex: cols[i].Field,
53174
+ dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
53175
53175
  width: cols[i].width,
53176
53176
  align: 'center',
53177
53177
  resizable: true,
@@ -53186,9 +53186,9 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53186
53186
  formModel = _ref1.formModel,
53187
53187
  tableRowKey = _ref1.tableRowKey;
53188
53188
  return {
53189
- color: formModel[cols[i].Field],
53189
+ color: formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field],
53190
53190
  onColorChange: function onColorChange(hex, rgba) {
53191
- formModel[cols[i].Field] = hex;
53191
+ formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field] = hex;
53192
53192
  }
53193
53193
  };
53194
53194
  }
@@ -53198,7 +53198,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53198
53198
  customRender: function customRender(_ref10) {
53199
53199
  var record = _ref10.record;
53200
53200
  var tempCol = localCols.value.filter(function (item) {
53201
- return item.Field == cols[i].Field || item.dataIndex == cols[i].Field;
53201
+ return item.Field == cols[i].Field || item.dataIndex == cols[i].Field || item.dataIndex == cols[i].dataIndex;
53202
53202
  });
53203
53203
  if (tempCol.length == 1) {
53204
53204
  return showColorComponent(record, tempCol[0]);
@@ -53211,7 +53211,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53211
53211
  } else if (cols[i].Style.toLowerCase() == "datetime") {
53212
53212
  var _tempItem6 = {
53213
53213
  title: cols[i].title,
53214
- dataIndex: cols[i].Field,
53214
+ dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
53215
53215
  width: cols[i].width,
53216
53216
  align: 'center',
53217
53217
  resizable: true,
@@ -53232,7 +53232,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53232
53232
  message: main_t("baseBusiness.commonList.SelectWarn")
53233
53233
  }] : [],
53234
53234
  onChange: function onChange(value) {
53235
- formModel[cols[i].Field] = value;
53235
+ formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field] = value;
53236
53236
  console.log('tableInstance', tableInstance === null || tableInstance === void 0 ? void 0 : tableInstance.reload());
53237
53237
  }
53238
53238
  };
@@ -53243,7 +53243,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53243
53243
  customRender: function customRender(_ref12) {
53244
53244
  var record = _ref12.record;
53245
53245
  if (cols[i].isDefaultEditInTable) {
53246
- var _key = cols[i].Field;
53246
+ var _key = cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field;
53247
53247
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("a-date-picker"), {
53248
53248
  "value": record[_key],
53249
53249
  "valueFormat": cols[i].valueFormat ? cols[i].valueFormat : cols[i].showTime ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD',
@@ -53252,11 +53252,11 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53252
53252
  }
53253
53253
  }, null);
53254
53254
  } else {
53255
- if (isNULL(record[cols[i].Field])) {
53255
+ if (isNULL(record[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field])) {
53256
53256
  return "";
53257
53257
  } else {
53258
53258
  var tempCol = localCols.value.filter(function (item) {
53259
- return item.Field == cols[i].Field || item.dataIndex == cols[i].Field;
53259
+ return item.Field == cols[i].Field || item.dataIndex == cols[i].Field || item.dataIndex == cols[i].dataIndex;
53260
53260
  });
53261
53261
  if (tempCol.length == 1) {
53262
53262
  return showTimeLabel(record, tempCol[0]);
@@ -53271,7 +53271,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53271
53271
  } else if (cols[i].Style.toLowerCase() == "image") {
53272
53272
  var _tempItem7 = {
53273
53273
  title: cols[i].title,
53274
- dataIndex: cols[i].Field,
53274
+ dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
53275
53275
  width: cols[i].width,
53276
53276
  align: 'center',
53277
53277
  resizable: true,
@@ -53284,7 +53284,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53284
53284
  disabled: !cols[i].isEdit,
53285
53285
  onFileChange: function onFileChange(files) {
53286
53286
  var formModel = schema.formModel;
53287
- formModel[cols[i].Field] = files;
53287
+ formModel[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field] = files;
53288
53288
  }
53289
53289
  });
53290
53290
  }
@@ -53301,7 +53301,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53301
53301
  }
53302
53302
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(es_image, {
53303
53303
  "width": 22,
53304
- "src": stringHeader + record[cols[i].Field]
53304
+ "src": stringHeader + record[cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field]
53305
53305
  }, null);
53306
53306
  },
53307
53307
  hideInSearch: cols[i].ifshowInQueryForm ? false : true
@@ -53311,7 +53311,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53311
53311
  } else if (cols[i].Style.toLowerCase() == "number") {
53312
53312
  var _tempItem8 = {
53313
53313
  title: cols[i].title,
53314
- dataIndex: cols[i].Field,
53314
+ dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
53315
53315
  width: cols[i].width,
53316
53316
  resizable: true,
53317
53317
  ellipsis: true,
@@ -53355,7 +53355,7 @@ var UseformatShowCols = function UseformatShowCols(_ref) {
53355
53355
  } else {
53356
53356
  var _tempItem9 = {
53357
53357
  title: cols[i].title,
53358
- dataIndex: cols[i].Field,
53358
+ dataIndex: cols[i].dataIndex ? cols[i].dataIndex : cols[i].Field,
53359
53359
  width: cols[i].width,
53360
53360
  resizable: true,
53361
53361
  ellipsis: true,
@@ -56601,6 +56601,7 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
56601
56601
  var tempArray = lodash_es_cloneDeep(cols);
56602
56602
  for (var i = 0; i < tempArray.length; i++) {
56603
56603
  tempArray[i].title = locale.value == "zh_CN" ? tempArray[i].NameZH : tempArray[i].NameEN;
56604
+ tempArray[i].dataIndex = tempArray[i].dataIndex ? tempArray[i].dataIndex : tempArray[i].Field;
56604
56605
  if (tempArray[i].Style.toLowerCase() == "combox") {
56605
56606
  for (var j = 0; j < tempArray[i].Option.length; j++) {
56606
56607
  tempArray[i].Option[j].label = locale.value == "zh_CN" ? tempArray[i].Option[j].labelZH : tempArray[i].Option[j].labelEN;
@@ -56790,10 +56791,10 @@ icons_ExclamationCircleOutlined_ExclamationCircleOutlined.inheritAttrs = false;
56790
56791
  }));
56791
56792
  ;// ./packages/components/lt-common-list/src/main.vue?vue&type=script&setup=true&lang=tsx
56792
56793
 
56793
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/components/lt-common-list/src/main.vue?vue&type=style&index=0&id=4d9b4dae&lang=css
56794
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/components/lt-common-list/src/main.vue?vue&type=style&index=0&id=487ca7be&lang=css
56794
56795
  // extracted by mini-css-extract-plugin
56795
56796
 
56796
- ;// ./packages/components/lt-common-list/src/main.vue?vue&type=style&index=0&id=4d9b4dae&lang=css
56797
+ ;// ./packages/components/lt-common-list/src/main.vue?vue&type=style&index=0&id=487ca7be&lang=css
56797
56798
 
56798
56799
  ;// ./packages/components/lt-common-list/src/main.vue
56799
56800