cloud-web-corejs 1.0.54-dev.812 → 1.0.54-dev.813

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.812",
4
+ "version": "1.0.54-dev.813",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "dev:micro": "vue-cli-service serve --port 17527",
@@ -1112,7 +1112,10 @@ $xformH5PageBg: #f1f5fb;
1112
1112
  .checkbox-all_list {
1113
1113
  flex: 1;
1114
1114
  min-height: 0;
1115
- overflow: auto;
1115
+ /* 只放开纵向。写成 overflow:auto 时横向也可滚,卡片里一旦有超长内容
1116
+ (用户资料的「地址」字段存的是一整条图片 URL)就会拖出一条横向滚动条。 */
1117
+ overflow-y: auto;
1118
+ overflow-x: hidden;
1116
1119
  padding: 0 12px;
1117
1120
 
1118
1121
  .order-item {
@@ -1266,6 +1269,15 @@ $xformH5PageBg: #f1f5fb;
1266
1269
  border-radius: 5px;
1267
1270
  }
1268
1271
 
1272
+ /* 卡片里放的是用户资料原值,可能出现超长且无空格的串(「地址」字段实际存的
1273
+ 是一整条图片 URL)。默认不允许在非空白处断行,这种串会把卡片整体撑宽、
1274
+ 连带拖出横向滚动条,所以这里统一允许任意位置断行。 */
1275
+ .t1,
1276
+ .t2 {
1277
+ word-break: break-all;
1278
+ overflow-wrap: anywhere;
1279
+ }
1280
+
1269
1281
  .t1 {
1270
1282
  margin-bottom: 6px;
1271
1283
 
@@ -1287,8 +1299,11 @@ $xformH5PageBg: #f1f5fb;
1287
1299
 
1288
1300
  p {
1289
1301
  min-width: 50%;
1302
+ /* 没有 max-width 时,inline-block 会被里面的长串顶到超出卡片宽度 */
1303
+ max-width: 100%;
1290
1304
  margin-bottom: 4px;
1291
1305
  display: inline-block;
1306
+ vertical-align: top;
1292
1307
  }
1293
1308
  }
1294
1309
 
@@ -1582,16 +1597,30 @@ $xformH5PageBg: #f1f5fb;
1582
1597
  margin-bottom: 24px;
1583
1598
  }
1584
1599
 
1585
- .txt {
1586
- max-height: 100px;
1600
+ /* max-height + overflow:auto 是给「自定义确认文案」这类可能很长的内容留的
1601
+ (提醒内容、脚本里配的提示都走这里)。但确认框里多数只有一行短句,
1602
+ 真机 WebView 又是经典滚动条(不像桌面那样会自动淡出),于是「您确定要
1603
+ 中断流程吗?」这种一行字旁边也挂着一条灰色滚动条。
1604
+ 保留可滚动(长文案照样能滑),只把滚动条本身藏掉 —— 移动端本来就该是
1605
+ 无痕滚动。 */
1606
+ .txt,
1607
+ .txt2 {
1587
1608
  overflow: auto;
1588
1609
  word-break: break-word;
1610
+ scrollbar-width: none; // Firefox
1611
+ -ms-overflow-style: none; // 旧 Edge/IE
1612
+
1613
+ &::-webkit-scrollbar {
1614
+ display: none;
1615
+ }
1616
+ }
1617
+
1618
+ .txt {
1619
+ max-height: 100px;
1589
1620
  }
1590
1621
 
1591
1622
  .txt2 {
1592
1623
  max-height: 200px;
1593
- overflow: auto;
1594
- word-break: break-word;
1595
1624
  }
1596
1625
 
1597
1626
  .form-box {