@steedos-widgets/amis-lib 3.6.4-beta.5 → 3.6.4-beta.6
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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +11 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +11 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -2395,7 +2395,7 @@ function getMobileLines(tpls){
|
|
|
2395
2395
|
}
|
|
2396
2396
|
if(isLeft){
|
|
2397
2397
|
// 左侧半行
|
|
2398
|
-
lineChildrenClassName = "steedos-listview-item-left truncate
|
|
2398
|
+
lineChildrenClassName = "steedos-listview-item-left truncate";
|
|
2399
2399
|
if(item.field.is_wide){
|
|
2400
2400
|
// 左侧全行样式可以单独写,如果需要配置两行省略号效果,可以加样式类 two-lines-truncate
|
|
2401
2401
|
lineChildrenClassName = "steedos-listview-item-wide";
|
|
@@ -2407,7 +2407,7 @@ function getMobileLines(tpls){
|
|
|
2407
2407
|
}
|
|
2408
2408
|
else {
|
|
2409
2409
|
// 右侧半行,这里加样式类 flex flex-shrink-0,是为了省略号只显示在左半行,右半行文字一般比较短,如果也加省略号效果的话,左侧文字多的话,右侧没几个字就显示省略号了
|
|
2410
|
-
lineChildrenClassName = "steedos-listview-item-right truncate ml-2 flex flex-shrink-0
|
|
2410
|
+
lineChildrenClassName = "steedos-listview-item-right truncate ml-2 flex flex-shrink-0";
|
|
2411
2411
|
}
|
|
2412
2412
|
//支持字段amis属性配置classname,识别classname的类型,与原样式合并
|
|
2413
2413
|
var className;
|
|
@@ -6955,6 +6955,15 @@ async function getObjectRecordDetailHeader(objectSchema, recordId, options) {
|
|
|
6955
6955
|
divWidth = divWidth - 210;
|
|
6956
6956
|
}
|
|
6957
6957
|
|
|
6958
|
+
if(options._inDrawer){
|
|
6959
|
+
try {
|
|
6960
|
+
divWidth = new Number($("html").css("font-size").replace('px', '')) * 60;
|
|
6961
|
+
} catch (error) {
|
|
6962
|
+
console.error(error);
|
|
6963
|
+
divWidth = 16 * 60;
|
|
6964
|
+
}
|
|
6965
|
+
}
|
|
6966
|
+
|
|
6958
6967
|
// 根据屏幕宽度计算显示数量, 使高亮字段只占1行
|
|
6959
6968
|
max = Math.trunc(divWidth / 200 );
|
|
6960
6969
|
if(max > 10){
|