@bytenew/bn-applet-ui 1.1.41 → 1.1.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/common.scss CHANGED
@@ -1380,4 +1380,159 @@ $colors: (
1380
1380
  border-radius: 18px;
1381
1381
  overflow: hidden;
1382
1382
  margin-bottom: 0;
1383
+ }
1384
+
1385
+ // ========== Bn-table 公共表格样式(vxe-table / vxe-grid)==========
1386
+ // 表头背景色
1387
+ $bn-table-header-bg: #fbfbfb;
1388
+ // 表格内外边框、单元格分割线颜色
1389
+ $bn-table-border-color: #f0f2f5;
1390
+ // 表格外层圆角
1391
+ $bn-table-radius: 8px;
1392
+ // 表头行高 / 数据行行高(与 vxe cellConfig.height 一致)
1393
+ $bn-table-row-height: 48px;
1394
+ // 表头文字颜色
1395
+ $bn-table-text-header: rgba(0, 0, 0, 0.85);
1396
+ // 表体单元格文字颜色
1397
+ $bn-table-text-body: #606266;
1398
+ // 行 hover 背景色
1399
+ $bn-table-row-hover-bg: #f5f7fa;
1400
+ // 行选中(current)背景色
1401
+ $bn-table-row-current-bg: rgb(236, 245, 255);
1402
+
1403
+ .Bn-table {
1404
+ --vxe-ui-table-border-color: #{$bn-table-border-color};
1405
+ border-radius: $bn-table-radius;
1406
+ overflow: hidden;
1407
+ border-color: $bn-table-border-color;
1408
+
1409
+ .vxe-table--render-wrapper,
1410
+ .vxe-table--main-wrapper {
1411
+ border-radius: $bn-table-radius;
1412
+ }
1413
+
1414
+ .vxe-table--border-line {
1415
+ border-color: $bn-table-border-color;
1416
+ }
1417
+ }
1418
+
1419
+ .Bn-table-header-row {
1420
+ .vxe-header--column {
1421
+ padding: 0;
1422
+ background-color: $bn-table-header-bg;
1423
+ font-size: 14px;
1424
+ font-weight: 600;
1425
+ color: $bn-table-text-header;
1426
+ height: $bn-table-row-height;
1427
+ border-color: $bn-table-border-color;
1428
+
1429
+ .vxe-cell {
1430
+ padding: 0 12px;
1431
+ max-height: $bn-table-row-height;
1432
+ line-height: $bn-table-row-height;
1433
+ overflow: hidden;
1434
+
1435
+ .vxe-cell--title {
1436
+ width: 100%;
1437
+ overflow: hidden;
1438
+ text-overflow: ellipsis;
1439
+ white-space: nowrap;
1440
+ }
1441
+ }
1442
+ }
1443
+
1444
+ .vxe-checkbox--icon {
1445
+ font-weight: 100;
1446
+ }
1447
+
1448
+ .vxe-cell--checkbox {
1449
+ margin-right: 1px;
1450
+ }
1451
+ }
1452
+
1453
+ .Bn-table-body-row {
1454
+ background-color: #fff;
1455
+ color: $bn-table-text-body;
1456
+ font-size: 14px;
1457
+
1458
+ &.row--current {
1459
+ background-color: $bn-table-row-current-bg !important;
1460
+
1461
+ > .col--checkbox::before {
1462
+ content: "";
1463
+ position: absolute;
1464
+ left: 0;
1465
+ top: 0;
1466
+ display: block;
1467
+ width: 3px;
1468
+ height: 100%;
1469
+ background-color: #2783f2;
1470
+ }
1471
+ }
1472
+
1473
+ &.row--hover {
1474
+ background-color: $bn-table-row-hover-bg !important;
1475
+ }
1476
+
1477
+ &.row--current.row--hover {
1478
+ background-color: $bn-table-row-current-bg !important;
1479
+ }
1480
+
1481
+ .vxe-body--column {
1482
+ border-color: $bn-table-border-color;
1483
+ height: $bn-table-row-height;
1484
+ }
1485
+ }
1486
+
1487
+ // 表体允许多行展示(如规则列表「条件」「店铺」等),行高随内容增高,最小 48px
1488
+ .Bn-table--wrap-row {
1489
+ .Bn-table-body-row {
1490
+ .vxe-body--column {
1491
+ height: auto;
1492
+ min-height: $bn-table-row-height;
1493
+ }
1494
+ }
1495
+
1496
+ .Bn-table-cell:not(.workOrderTable-cell, .workOrder-vxe-number-cell).vxe-body--column {
1497
+ .vxe-cell {
1498
+ line-height: 22px;
1499
+ padding: 13px 12px;
1500
+ white-space: normal;
1501
+ word-break: break-all;
1502
+ }
1503
+ }
1504
+
1505
+ // show-overflow 列仍为单行省略
1506
+ .col--ellipsis .vxe-cell {
1507
+ line-height: $bn-table-row-height;
1508
+ padding: 0 12px;
1509
+ white-space: nowrap;
1510
+ word-break: normal;
1511
+ }
1512
+ }
1513
+
1514
+ .Bn-table-cell {
1515
+ .vxe-checkbox--icon {
1516
+ font-weight: 100;
1517
+ }
1518
+
1519
+ .vxe-checkbox--label {
1520
+ display: none;
1521
+ }
1522
+
1523
+ &:not(.workOrderTable-cell, .workOrder-vxe-number-cell).vxe-body--column {
1524
+ height: auto;
1525
+ padding: 0;
1526
+
1527
+ .vxe-cell {
1528
+ max-height: none;
1529
+ padding: 0 12px;
1530
+ color: $bn-table-text-body;
1531
+ font-size: 14px;
1532
+ }
1533
+
1534
+ .vxe-cell--checkbox {
1535
+ line-height: $bn-table-row-height;
1536
+ }
1537
+ }
1383
1538
  }