@steedos-widgets/amis-lib 1.2.42 → 1.2.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.esm.js CHANGED
@@ -7965,6 +7965,12 @@ async function getTableColumns(fields, options){
7965
7965
  if(field.type === 'textarea'){
7966
7966
  className += 'min-w-56';
7967
7967
  }
7968
+ if(field.type === 'date'){
7969
+ className += 'date-min-w';
7970
+ }
7971
+ if(field.type === 'datetime'){
7972
+ className += 'datetime-min-w';
7973
+ }
7968
7974
  if(!field.hidden && !field.extra){
7969
7975
  columnItem = Object.assign({}, {
7970
7976
  name: field.name,
@@ -8026,7 +8032,7 @@ function getMobileLines(tpls){
8026
8032
  let isNewLine = false;
8027
8033
  let isLeft = true;
8028
8034
  let lineChildrenClassName = "";
8029
- let lineClassName = "flex items-center justify-between h-[20px]";
8035
+ let lineClassName = "flex items-center justify-between";
8030
8036
  tpls.forEach(function(item){
8031
8037
  if(isNewLine && lines.length < maxLineCount){
8032
8038
  lines.push({
@@ -8039,7 +8045,7 @@ function getMobileLines(tpls){
8039
8045
  }
8040
8046
  if(isLeft){
8041
8047
  // 左侧半行
8042
- lineChildrenClassName = "steedos-listview-item-left truncate";
8048
+ lineChildrenClassName = "steedos-listview-item-left two-lines-truncate";
8043
8049
  if(item.field.is_wide){
8044
8050
  // 左侧全行样式可以单独写
8045
8051
  lineChildrenClassName = "steedos-listview-item-wide truncate";