@steedos-widgets/amis-object 6.10.52-beta.20 → 6.10.52-beta.21

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.
@@ -1533,6 +1533,180 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
1533
1533
  border-bottom-left-radius: 0;
1534
1534
  }
1535
1535
 
1536
+ /* ApprovalTreeMenu - 审批中心左侧树菜单样式 */
1537
+
1538
+ .approval-tree-menu {
1539
+ width: 100%;
1540
+ height: 100%;
1541
+ overflow-y: auto;
1542
+ overflow-x: hidden;
1543
+ background: #fff;
1544
+ -webkit-user-select: none;
1545
+ -moz-user-select: none;
1546
+ user-select: none;
1547
+ }
1548
+
1549
+ .approval-tree-menu::-webkit-scrollbar {
1550
+ width: 4px;
1551
+ }
1552
+
1553
+ .approval-tree-menu::-webkit-scrollbar-track {
1554
+ background: transparent;
1555
+ }
1556
+
1557
+ .approval-tree-menu::-webkit-scrollbar-thumb {
1558
+ background: #e0e0e0;
1559
+ border-radius: 2px;
1560
+ }
1561
+
1562
+ /* antd Tree 整体覆盖 */
1563
+ .approval-tree-menu .ant-tree {
1564
+ background: transparent;
1565
+ font-size: 13px;
1566
+ color: #333;
1567
+ }
1568
+
1569
+ /* Fix 1: 整行 hover 高亮 */
1570
+ .approval-tree-menu .ant-tree .ant-tree-treenode {
1571
+ width: 100%;
1572
+ transition: background 0.15s ease;
1573
+ }
1574
+
1575
+ .approval-tree-menu .ant-tree .ant-tree-treenode:hover {
1576
+ background: #f0f5ff;
1577
+ }
1578
+
1579
+ /* Fix 1: 整行选中高亮 */
1580
+ .approval-tree-menu .ant-tree .ant-tree-treenode.ant-tree-treenode-selected {
1581
+ background: #e6f4ff;
1582
+ }
1583
+
1584
+ /* 内容区域:由 treenode 提供背景,自身透明 */
1585
+ .approval-tree-menu .ant-tree .ant-tree-node-content-wrapper {
1586
+ display: flex;
1587
+ align-items: center;
1588
+ padding: 0 4px;
1589
+ border-radius: 4px;
1590
+ height: 36px;
1591
+ line-height: 36px;
1592
+ background: transparent !important;
1593
+ }
1594
+
1595
+ .approval-tree-menu .ant-tree .ant-tree-node-content-wrapper:hover {
1596
+ background: transparent !important;
1597
+ }
1598
+
1599
+ /* 选中状态:文字颜色和图标颜色 */
1600
+ .approval-tree-menu .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
1601
+ background: transparent !important;
1602
+ color: #1677ff !important;
1603
+ }
1604
+
1605
+ .approval-tree-menu .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected .approval-tree-menu__label--group,
1606
+ .approval-tree-menu .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected .approval-tree-menu__label--item {
1607
+ color: #1677ff !important;
1608
+ font-weight: 500;
1609
+ }
1610
+
1611
+ .approval-tree-menu .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected .ant-tree-iconEle {
1612
+ color: #1677ff;
1613
+ }
1614
+
1615
+ /* 图标 */
1616
+ .approval-tree-menu .ant-tree .ant-tree-iconEle {
1617
+ display: flex;
1618
+ align-items: center;
1619
+ justify-content: center;
1620
+ margin-right: 6px;
1621
+ font-size: 14px;
1622
+ color: #555;
1623
+ flex-shrink: 0;
1624
+ }
1625
+
1626
+ /* Fix 5: 展开/折叠箭头(通过 switcherIcon prop 渲染,CSS 控制颜色和尺寸) */
1627
+ /* inline-flex + 显式高度确保垂直居中,避免 hover 时箭头偏上 */
1628
+ .approval-tree-menu .ant-tree .ant-tree-switcher {
1629
+ display: inline-flex !important;
1630
+ align-items: center;
1631
+ justify-content: center;
1632
+ color: #bbb;
1633
+ width: 20px;
1634
+ height: 36px;
1635
+ flex-shrink: 0;
1636
+ line-height: 1;
1637
+ }
1638
+
1639
+ .approval-tree-menu .ant-tree .ant-tree-switcher .fa {
1640
+ line-height: 1;
1641
+ }
1642
+
1643
+ .approval-tree-menu .ant-tree .ant-tree-switcher:hover {
1644
+ color: #1677ff;
1645
+ }
1646
+
1647
+ /* 去掉 antd 5.x switcher 独立 hover 背景 — 导航菜单不需要箭头单独高亮 */
1648
+ .approval-tree-menu .ant-tree .ant-tree-switcher:not(.ant-tree-switcher-noop):hover:before {
1649
+ background-color: transparent !important;
1650
+ }
1651
+
1652
+ /* 叶子节点图标颜色 */
1653
+ .approval-tree-menu .ant-tree .ant-tree-treenode-leaf .ant-tree-iconEle {
1654
+ color: #888;
1655
+ }
1656
+
1657
+ /* 标题容器(含文字+角标) */
1658
+ .approval-tree-menu__title-wrap {
1659
+ display: flex;
1660
+ align-items: center;
1661
+ width: 100%;
1662
+ overflow: hidden;
1663
+ }
1664
+
1665
+ /* 标签文字 - 基础样式 */
1666
+ .approval-tree-menu__label {
1667
+ flex: 1;
1668
+ overflow: hidden;
1669
+ text-overflow: ellipsis;
1670
+ white-space: nowrap;
1671
+ font-size: 13px;
1672
+ line-height: 1.4;
1673
+ }
1674
+
1675
+ /* Fix 3: 一级分组节点(如"待审核"、"已审核"等)使用较浅颜色作为分组标题 */
1676
+ .approval-tree-menu .ant-tree .ant-tree-node-content-wrapper .approval-tree-menu__label--group {
1677
+ color: #8c8c8c !important;
1678
+ font-weight: normal !important;
1679
+ }
1680
+
1681
+ /* Fix 3: 叶子/可点击节点使用加粗深色突出显示,与分组标题形成明显视觉层次 */
1682
+ .approval-tree-menu .ant-tree .ant-tree-node-content-wrapper .approval-tree-menu__label--item {
1683
+ color: rgb(71 85 105) !important;
1684
+ font-weight: 600 !important;
1685
+ }
1686
+
1687
+ /* Fix 4: 角标靠右对齐 — .ant-tree-title 须为 flex 子项才能让 title-wrap 的 width:100% 生效 */
1688
+ .approval-tree-menu .ant-tree .ant-tree-title {
1689
+ flex: 1;
1690
+ min-width: 0;
1691
+ overflow: hidden;
1692
+ }
1693
+
1694
+ .approval-tree-menu .ant-badge {
1695
+ flex-shrink: 0;
1696
+ margin-left: auto;
1697
+ line-height: 1;
1698
+ }
1699
+
1700
+ .approval-tree-menu .ant-badge .ant-badge-count {
1701
+ height: 16px;
1702
+ min-width: 16px;
1703
+ line-height: 16px;
1704
+ padding: 0 4px;
1705
+ font-size: 10px;
1706
+ border-radius: 8px;
1707
+ box-shadow: none;
1708
+ }
1709
+
1536
1710
  @media (min-width: 767px) {
1537
1711
  .steedos-amis-form .antd-Collapse .antd-Form--normal,
1538
1712
  .steedos-amis-form .antd-Form--normal .antd-Tabs .antd-Tabs-content .antd-Tabs-pane .form-content {