mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:09:08 +08:00
56fdddb129
* 更新 snapshot * feat: datetime 组件时间支持可点选 (#2100) * 文档和一些小修改 (#2107) * jssdk 支持 hash路由改造 * 更新文档 * default value 和 value 逻辑优化 * 优化 value 的处理逻辑 * 同步值应该固定某一种模式 * name 干脆支持 filter 好了 * 更新的时候获取数据不一致 * 修复 qrcode 获取值方式 * columns 有可能不是数组 * feat: 如果有列被隐藏显示激活状态提醒 Co-authored-by: 2betop <2betop.cn@gmail.com> Co-authored-by: Allen <yupeng.cqupt@qq.com> Co-authored-by: RickCole <rickcole21@outlook.com>
114 lines
2.3 KiB
SCSS
114 lines
2.3 KiB
SCSS
.#{$ns}DropDown {
|
|
position: relative;
|
|
display: inline-block;
|
|
|
|
&-caret {
|
|
margin-left: var(--DropDown-caret-marginLeft);
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
transition: transform var(--animation-duration) ease;
|
|
|
|
> svg {
|
|
width: px2rem(10px);
|
|
height: px2rem(10px);
|
|
top: 0.125em;
|
|
}
|
|
}
|
|
|
|
&.is-opened &-caret {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
&.is-actived {
|
|
.#{$ns}Button {
|
|
color: var(--link-color);
|
|
}
|
|
}
|
|
|
|
&--block {
|
|
display: block;
|
|
|
|
.#{$ns}Button {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
&-menu {
|
|
position: absolute;
|
|
z-index: $zindex-dropdown;
|
|
top: 100%;
|
|
left: 0;
|
|
margin: px2rem(1px) 0 0;
|
|
background: var(--DropDown-menu-bg);
|
|
list-style: none;
|
|
padding: var(--DropDown-menu-paddingY) var(--DropDown-menu-paddingX);
|
|
border: var(--DropDown-menu-borderWidth) solid
|
|
var(--DropDown-menu-borderColor);
|
|
border-radius: var(--DropDown-menu-borderRadius);
|
|
box-shadow: var(--DropDown-menu-boxShadow);
|
|
min-width: var(--DropDown-menu-minWidth);
|
|
text-align: left;
|
|
}
|
|
|
|
&--alignRight &-menu {
|
|
left: auto;
|
|
right: 0;
|
|
}
|
|
|
|
&-menuItem,
|
|
&-menu > li {
|
|
padding: var(--DropDown-menuItem-paddingY) var(--DropDown-menuItem-paddingX);
|
|
white-space: nowrap;
|
|
box-sizing: border-box;
|
|
height: var(--DropDown-menu-height);
|
|
vertical-align: middle;
|
|
user-select: none;
|
|
color: var(--link-color);
|
|
text-decoration: var(--link-decoration);
|
|
|
|
&:hover {
|
|
background: var(--DropDown-menuItem-onHover-bg);
|
|
color: var(--DropDown-menuItem-onHover-color);
|
|
}
|
|
|
|
&.is-active {
|
|
color: var(--DropDown-menuItem-onActive-color);
|
|
}
|
|
|
|
&:not(.is-disabled),
|
|
&:not(.disabled) {
|
|
cursor: pointer;
|
|
}
|
|
|
|
&.is-disabled {
|
|
cursor: not-allowed;
|
|
// pointer-events: none;
|
|
color: var(--DropDown-menuItem-onDisabled-color);
|
|
filter: grayscale(80%);
|
|
}
|
|
|
|
&.#{$ns}DropDown-divider {
|
|
height: px2rem(1px);
|
|
margin: px2rem(9px) 0;
|
|
overflow: hidden;
|
|
background: var(--DropDown-menu-borderColor);
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
&-menu > li a {
|
|
color: inherit;
|
|
display: block;
|
|
text-decoration: none;
|
|
}
|
|
|
|
&-popover {
|
|
border: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
> .#{$ns}Button {
|
|
min-width: unset;
|
|
}
|
|
}
|