@steedos-widgets/amis-object 6.10.52-beta.21 → 6.10.52-beta.23
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/amis-object.umd.css +55 -17
- package/dist/amis-object.umd.js +1 -1
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +5 -5
- package/dist/components/ApprovalTreeMenu.d.ts +19 -3
- package/dist/components/SteedosUserSelector.d.ts +2 -0
- package/dist/meta.js +5 -23
- package/package.json +4 -4
package/dist/amis-object.umd.css
CHANGED
|
@@ -1535,15 +1535,20 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
1535
1535
|
|
|
1536
1536
|
/* ApprovalTreeMenu - 审批中心左侧树菜单样式 */
|
|
1537
1537
|
|
|
1538
|
+
/* 搜索框容器 */
|
|
1539
|
+
.approval-tree-menu__search {
|
|
1540
|
+
padding: 8px 12px 4px;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1538
1543
|
.approval-tree-menu {
|
|
1539
1544
|
width: 100%;
|
|
1540
|
-
|
|
1541
|
-
overflow-y: auto;
|
|
1542
|
-
overflow-x: hidden;
|
|
1545
|
+
overflow: visible;
|
|
1543
1546
|
background: #fff;
|
|
1544
1547
|
-webkit-user-select: none;
|
|
1545
1548
|
-moz-user-select: none;
|
|
1546
1549
|
user-select: none;
|
|
1550
|
+
padding: 4px 0;
|
|
1551
|
+
min-height: 100%;
|
|
1547
1552
|
}
|
|
1548
1553
|
|
|
1549
1554
|
.approval-tree-menu::-webkit-scrollbar {
|
|
@@ -1562,23 +1567,29 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
1562
1567
|
/* antd Tree 整体覆盖 */
|
|
1563
1568
|
.approval-tree-menu .ant-tree {
|
|
1564
1569
|
background: transparent;
|
|
1565
|
-
font-size:
|
|
1570
|
+
font-size: 14px;
|
|
1566
1571
|
color: #333;
|
|
1567
1572
|
}
|
|
1568
1573
|
|
|
1569
1574
|
/* Fix 1: 整行 hover 高亮 */
|
|
1570
1575
|
.approval-tree-menu .ant-tree .ant-tree-treenode {
|
|
1571
|
-
width:
|
|
1576
|
+
width: auto;
|
|
1577
|
+
margin: 3px 0 0;
|
|
1578
|
+
padding: 0 4px 0 24px;
|
|
1572
1579
|
transition: background 0.15s ease;
|
|
1580
|
+
border-radius: 6px;
|
|
1581
|
+
overflow: hidden;
|
|
1573
1582
|
}
|
|
1574
1583
|
|
|
1575
1584
|
.approval-tree-menu .ant-tree .ant-tree-treenode:hover {
|
|
1576
|
-
background:
|
|
1585
|
+
background: rgb(248, 250, 252);
|
|
1586
|
+
border-radius: 6px;
|
|
1577
1587
|
}
|
|
1578
1588
|
|
|
1579
1589
|
/* Fix 1: 整行选中高亮 */
|
|
1580
1590
|
.approval-tree-menu .ant-tree .ant-tree-treenode.ant-tree-treenode-selected {
|
|
1581
|
-
background:
|
|
1591
|
+
background: rgb(240, 249, 255);
|
|
1592
|
+
border-radius: 6px;
|
|
1582
1593
|
}
|
|
1583
1594
|
|
|
1584
1595
|
/* 内容区域:由 treenode 提供背景,自身透明 */
|
|
@@ -1587,9 +1598,14 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
1587
1598
|
align-items: center;
|
|
1588
1599
|
padding: 0 4px;
|
|
1589
1600
|
border-radius: 4px;
|
|
1590
|
-
height:
|
|
1591
|
-
line-height:
|
|
1601
|
+
height: 44px;
|
|
1602
|
+
line-height: 44px;
|
|
1592
1603
|
background: transparent !important;
|
|
1604
|
+
/* 修复宽度约束链:flex-basis 必须为 0(不是 auto),
|
|
1605
|
+
否则容器宽度由内容撑开,text-overflow: ellipsis 永远不会生效 */
|
|
1606
|
+
flex: 1 1 0%;
|
|
1607
|
+
min-width: 0;
|
|
1608
|
+
overflow: hidden;
|
|
1593
1609
|
}
|
|
1594
1610
|
|
|
1595
1611
|
.approval-tree-menu .ant-tree .ant-tree-node-content-wrapper:hover {
|
|
@@ -1599,17 +1615,17 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
1599
1615
|
/* 选中状态:文字颜色和图标颜色 */
|
|
1600
1616
|
.approval-tree-menu .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
|
|
1601
1617
|
background: transparent !important;
|
|
1602
|
-
color:
|
|
1618
|
+
color: rgb(0, 166, 244) !important;
|
|
1603
1619
|
}
|
|
1604
1620
|
|
|
1605
1621
|
.approval-tree-menu .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected .approval-tree-menu__label--group,
|
|
1606
1622
|
.approval-tree-menu .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected .approval-tree-menu__label--item {
|
|
1607
|
-
color:
|
|
1623
|
+
color: rgb(0, 166, 244) !important;
|
|
1608
1624
|
font-weight: 500;
|
|
1609
1625
|
}
|
|
1610
1626
|
|
|
1611
1627
|
.approval-tree-menu .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected .ant-tree-iconEle {
|
|
1612
|
-
color:
|
|
1628
|
+
color: rgb(0, 166, 244);
|
|
1613
1629
|
}
|
|
1614
1630
|
|
|
1615
1631
|
/* 图标 */
|
|
@@ -1630,10 +1646,11 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
1630
1646
|
align-items: center;
|
|
1631
1647
|
justify-content: center;
|
|
1632
1648
|
color: #bbb;
|
|
1633
|
-
width:
|
|
1634
|
-
height:
|
|
1649
|
+
width: 16px;
|
|
1650
|
+
height: 44px;
|
|
1635
1651
|
flex-shrink: 0;
|
|
1636
1652
|
line-height: 1;
|
|
1653
|
+
margin-right: 0;
|
|
1637
1654
|
}
|
|
1638
1655
|
|
|
1639
1656
|
.approval-tree-menu .ant-tree .ant-tree-switcher .fa {
|
|
@@ -1641,7 +1658,7 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
1641
1658
|
}
|
|
1642
1659
|
|
|
1643
1660
|
.approval-tree-menu .ant-tree .ant-tree-switcher:hover {
|
|
1644
|
-
color:
|
|
1661
|
+
color: rgb(0, 166, 244);
|
|
1645
1662
|
}
|
|
1646
1663
|
|
|
1647
1664
|
/* 去掉 antd 5.x switcher 独立 hover 背景 — 导航菜单不需要箭头单独高亮 */
|
|
@@ -1649,6 +1666,13 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
1649
1666
|
background-color: transparent !important;
|
|
1650
1667
|
}
|
|
1651
1668
|
|
|
1669
|
+
/* 叶子节点不需要折叠箭头占位,缩小 switcher 宽度 */
|
|
1670
|
+
.approval-tree-menu .ant-tree .ant-tree-switcher-noop {
|
|
1671
|
+
width: 0px;
|
|
1672
|
+
min-width: 0px;
|
|
1673
|
+
flex-shrink: 0;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1652
1676
|
/* 叶子节点图标颜色 */
|
|
1653
1677
|
.approval-tree-menu .ant-tree .ant-tree-treenode-leaf .ant-tree-iconEle {
|
|
1654
1678
|
color: #888;
|
|
@@ -1660,6 +1684,7 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
1660
1684
|
align-items: center;
|
|
1661
1685
|
width: 100%;
|
|
1662
1686
|
overflow: hidden;
|
|
1687
|
+
height: 100%;
|
|
1663
1688
|
}
|
|
1664
1689
|
|
|
1665
1690
|
/* 标签文字 - 基础样式 */
|
|
@@ -1668,13 +1693,13 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
1668
1693
|
overflow: hidden;
|
|
1669
1694
|
text-overflow: ellipsis;
|
|
1670
1695
|
white-space: nowrap;
|
|
1671
|
-
font-size:
|
|
1696
|
+
font-size: 14px;
|
|
1672
1697
|
line-height: 1.4;
|
|
1673
1698
|
}
|
|
1674
1699
|
|
|
1675
1700
|
/* Fix 3: 一级分组节点(如"待审核"、"已审核"等)使用较浅颜色作为分组标题 */
|
|
1676
1701
|
.approval-tree-menu .ant-tree .ant-tree-node-content-wrapper .approval-tree-menu__label--group {
|
|
1677
|
-
color:
|
|
1702
|
+
color: rgb(100, 116, 139) !important;
|
|
1678
1703
|
font-weight: normal !important;
|
|
1679
1704
|
}
|
|
1680
1705
|
|
|
@@ -1707,6 +1732,19 @@ steedosfieldset.antd-Collapse .antd-Collapse-header.is-mobile:hover {
|
|
|
1707
1732
|
box-shadow: none;
|
|
1708
1733
|
}
|
|
1709
1734
|
|
|
1735
|
+
/* Tooltip:限制最大宽度,避免超长名称过宽 */
|
|
1736
|
+
.approval-tree-menu-tooltip {
|
|
1737
|
+
max-width: 300px;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
/* 当 EllipsisTooltip 激活时,antd Tooltip 会在 label span 外面包一层 span。
|
|
1741
|
+
这个 wrapper 必须继承 flex 子项的布局属性,否则会撑开容器挤掉 Badge */
|
|
1742
|
+
.approval-tree-menu__title-wrap > .ant-tooltip-open {
|
|
1743
|
+
flex: 1;
|
|
1744
|
+
min-width: 0;
|
|
1745
|
+
overflow: hidden;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1710
1748
|
@media (min-width: 767px) {
|
|
1711
1749
|
.steedos-amis-form .antd-Collapse .antd-Form--normal,
|
|
1712
1750
|
.steedos-amis-form .antd-Form--normal .antd-Tabs .antd-Tabs-content .antd-Tabs-pane .form-content {
|