@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 {
@@ -15149,6 +15149,7 @@ async function lookupToAmis(field, readonly, ctx){
15149
15149
  const autoFill = await getAutoFill(field);
15150
15150
  if(autoFill){
15151
15151
  amisSchema.autoFill = autoFill;
15152
+ amisSchema.initAutoFill = false;
15152
15153
  }
15153
15154
  return amisSchema;
15154
15155
  }
@@ -23640,7 +23641,7 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
23640
23641
  static: true,
23641
23642
  label: steedosField.label
23642
23643
  });
23643
- if (!(steedosField.type === "time")) return [3 /*break*/, 10];
23644
+ if (!(steedosField.type === "time" || steedosField.type === "input-time-range")) return [3 /*break*/, 10];
23644
23645
  Object.assign(schema, {
23645
23646
  inputFormat: 'HH:mm',
23646
23647
  timeFormat: 'HH:mm',
@@ -23677,7 +23678,8 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
23677
23678
  if (!(steedosField.type === "number" || steedosField.type === 'currency')) return [3 /*break*/, 15];
23678
23679
  // amis input-number和number组件中的precision表示小数位数,并不是魔方平台的精度概念,要转换下,否则小数点后会显示很多的0
23679
23680
  Object.assign(schema, {
23680
- "precision": steedosField.scale || 0
23681
+ "precision": steedosField.scale || 0,
23682
+ "kilobitSeparator": steedosField.enable_thousands //识别enable_thousands,控制千分位分隔符
23681
23683
  });
23682
23684
  return [3 /*break*/, 20];
23683
23685
  case 15:
@@ -23797,6 +23799,24 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
23797
23799
  }
23798
23800
  });
23799
23801
  }
23802
+ else if (steedosField.type === 'input-date-range' || steedosField.type === 'date') {
23803
+ Object.assign(schema, {
23804
+ inputFormat: "YYYY-MM-DD",
23805
+ format: 'YYYY-MM-DDT00:00:00.000[Z]'
23806
+ });
23807
+ }
23808
+ else if (steedosField.type === 'input-datetime-range' || steedosField.type === 'datetime') {
23809
+ Object.assign(schema, {
23810
+ inputFormat: "YYYY-MM-DD HH:mm",
23811
+ format: 'YYYY-MM-DDTHH:mm:ss.SSSZ'
23812
+ });
23813
+ }
23814
+ else if (steedosField.type === 'toggle') {
23815
+ Object.assign(schema, {
23816
+ static: false,
23817
+ disabled: true
23818
+ });
23819
+ }
23800
23820
  _o.label = 20;
23801
23821
  case 20:
23802
23822
  Object.assign(schema, steedosField.amis || {});
@@ -24124,6 +24144,11 @@ var AmisInputTable = function (props) { return __awaiter(void 0, void 0, void 0,
24124
24144
  if (props.enableDialog === false) {
24125
24145
  extendProps["inlineEditMode"] = true;
24126
24146
  }
24147
+ //showIndex默认为true
24148
+ extendProps["showIndex"] = true;
24149
+ if (props.showIndex == false || props.enableTree == true) {
24150
+ extendProps["showIndex"] = false;
24151
+ }
24127
24152
  return [4 /*yield*/, getAmisInputTableSchema(Object.assign({}, props, extendProps))];
24128
24153
  case 1:
24129
24154
  amisSchema = _a.sent();