@steedos-widgets/amis-object 3.6.4-beta.8 → 3.6.4

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.
@@ -2668,7 +2668,8 @@ body.sidebar #sidebar {
2668
2668
  display: inline-block;
2669
2669
  width: 100%;
2670
2670
  }
2671
- .steedos-input-table.steedos-show-index tbody tr td:nth-child(1) {
2671
+ .steedos-input-table.steedos-show-index tbody tr td:nth-child(1),
2672
+ .steedos-input-table.steedos-show-index thead tr th:nth-child(1) {
2672
2673
  text-align: center;
2673
2674
  }
2674
2675
  .steedos-input-table .antd-OperationField {
@@ -15121,6 +15121,7 @@ async function lookupToAmis(field, readonly, ctx){
15121
15121
  const autoFill = await getAutoFill(field);
15122
15122
  if(autoFill){
15123
15123
  amisSchema.autoFill = autoFill;
15124
+ amisSchema.initAutoFill = false;
15124
15125
  }
15125
15126
  return amisSchema;
15126
15127
  }
@@ -23612,7 +23613,7 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
23612
23613
  static: true,
23613
23614
  label: steedosField.label
23614
23615
  });
23615
- if (!(steedosField.type === "time")) return [3 /*break*/, 10];
23616
+ if (!(steedosField.type === "time" || steedosField.type === "input-time-range")) return [3 /*break*/, 10];
23616
23617
  Object.assign(schema, {
23617
23618
  inputFormat: 'HH:mm',
23618
23619
  timeFormat: 'HH:mm',
@@ -23649,7 +23650,8 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
23649
23650
  if (!(steedosField.type === "number" || steedosField.type === 'currency')) return [3 /*break*/, 15];
23650
23651
  // amis input-number和number组件中的precision表示小数位数,并不是魔方平台的精度概念,要转换下,否则小数点后会显示很多的0
23651
23652
  Object.assign(schema, {
23652
- "precision": steedosField.scale || 0
23653
+ "precision": steedosField.scale || 0,
23654
+ "kilobitSeparator": steedosField.enable_thousands //识别enable_thousands,控制千分位分隔符
23653
23655
  });
23654
23656
  return [3 /*break*/, 20];
23655
23657
  case 15:
@@ -23769,6 +23771,24 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
23769
23771
  }
23770
23772
  });
23771
23773
  }
23774
+ else if (steedosField.type === 'input-date-range' || steedosField.type === 'date') {
23775
+ Object.assign(schema, {
23776
+ inputFormat: "YYYY-MM-DD",
23777
+ format: 'YYYY-MM-DDT00:00:00.000[Z]'
23778
+ });
23779
+ }
23780
+ else if (steedosField.type === 'input-datetime-range' || steedosField.type === 'datetime') {
23781
+ Object.assign(schema, {
23782
+ inputFormat: "YYYY-MM-DD HH:mm",
23783
+ format: 'YYYY-MM-DDTHH:mm:ss.SSSZ'
23784
+ });
23785
+ }
23786
+ else if (steedosField.type === 'toggle') {
23787
+ Object.assign(schema, {
23788
+ static: false,
23789
+ disabled: true
23790
+ });
23791
+ }
23772
23792
  _o.label = 20;
23773
23793
  case 20:
23774
23794
  Object.assign(schema, steedosField.amis || {});
@@ -24096,6 +24116,11 @@ var AmisInputTable = function (props) { return __awaiter(void 0, void 0, void 0,
24096
24116
  if (props.enableDialog === false) {
24097
24117
  extendProps["inlineEditMode"] = true;
24098
24118
  }
24119
+ //showIndex默认为true
24120
+ extendProps["showIndex"] = true;
24121
+ if (props.showIndex == false || props.enableTree == true) {
24122
+ extendProps["showIndex"] = false;
24123
+ }
24099
24124
  return [4 /*yield*/, getAmisInputTableSchema(Object.assign({}, props, extendProps))];
24100
24125
  case 1:
24101
24126
  amisSchema = _a.sent();