mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
dd91d9660c
* Select Options等组件样式对齐4.0 * 更新测试快照 * 修改部分测试用例 * feat:4.0样式修改 * 修改checkboxes hover问题 * Feat image 4.0 (#4242) * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * fix: 点状步骤条样式修改 * fix: inputTree组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: image组件样式优化 * fix: image组件样式优化 * fix: image组件样式优化 * fix: image组件样式优化 Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> * fix: textarea组件对齐4.0标准 (#4149) * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * fix: 点状步骤条样式修改 * fix: inputTree组件对齐4.0标准 * fix: inputTree组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: textarea组件对齐4.0标准 Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> * fix: inputTree 组价对齐4.0标准 (#4148) * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * fix: 点状步骤条样式修改 * fix: inputTree组件对齐4.0标准 * fix: inputTree组件对齐4.0标准 * fix: inputtree组件图标颜色修改 Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> * feat: 部分组件样式问题修复 (#4154) * feat: input-text 样式 * feat: input-range 样式 * feat: table 样式 1 * feat: search-box * feat: curd icon * feat: table 空状态 * feat: input-text 多选,最大宽度设置 * feat: search-box 搜索图标颜色 * feat: crud 编辑、过滤、搜索、排序 图标样式修改 * feat: 更新快照 * feat: 更新快照 2 * feat: curd fix * feat: curd edit icon fix * feat: input-password 不可见 icon 修改 * feat: input-password snapshot update * docs:完善对话框size参数说明 * feat: Log 组件支持虚拟渲染及限制最大行数 * 修复不支持 loading 问题 * 换一下名字 Co-authored-by: liuzedong02 <liuzedong02@baidu.com> Co-authored-by: liweijian <liweijian@hkmtl.com> Co-authored-by: wuduoyi <wuduoyi@baidu.com> Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com> * fix:修复删除图标颜色问题 (#4245) * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * feat: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * faet: Step组件支持点状步骤条、指定标签放置位置、新增超出内容显示浮层 * fix: 点状步骤条样式修改 * fix: inputTree组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: textarea组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: inputImage组件对齐4.0标准 * fix: image组件样式优化 * fix: image组件样式优化 * fix: image组件样式优化 * fix: image组件样式优化 * fix: 修复conditionbuilder组价图标颜色问题 Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> * form表单对齐云社4.0 (#4248) * feat: form增加表单项 label文本对齐方式选项 * fix: remark 支持在表单内配置 * style: form 间距对齐云社4.0 Co-authored-by: sarding <hongfuquan@baidu.com> * Fix chart radios name (#4251) * fix: Chart 单选框 修改为 ChartRadios 图表单选框 * fix: input-password 修改 可见 图标 Co-authored-by: liuzedong02 <liuzedong02@baidu.com> * feat: checkboxes内边距&nestedSelect箭头修改 (#4254) Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * Feature style 4.0 cxd (#4261) * feat: 日期&折叠面板&提示样式对齐 * fix:测试用例修复 * feat: timeRange开始和结束分开&日期样式优化 * styles: 日历样式修复 Co-authored-by: hongyang03 <hongyang03@baidu.com> * 整体字体大小调整 (#4264) * feat: form增加表单项 label文本对齐方式选项 * fix: remark 支持在表单内配置 * style: form 间距对齐云社4.0 * 修改表单的字体 Co-authored-by: sarding <hongfuquan@baidu.com> * inputfile 和 drawer对齐云社4.0 (#4249) * fix: drawer 和 inputfile 关闭图标对齐云社4.0 * fix:修改 drawer的图标大小 和边框圆角 * drawer 样式调整 Co-authored-by: sarding <hongfuquan@baidu.com> * Fix style (#4265) * fix: input-password icon 高度 * fix: input-password icon 换行问题 Co-authored-by: liuzedong02 <liuzedong02@baidu.com> * fix: curd 图标垂直居中 (#4271) Co-authored-by: liuzedong02 <liuzedong02@baidu.com> * fix:修复nestedSelect无法动态调整位置及溢出问题 (#4292) Co-authored-by: xujiahao01 <xujiahao01@baidu.com> * style: 优化switch组件动效 (#4302) * style:优化date组件最小宽度 (#4303) * style:cxd主题移动端基础字号调整为16px (#4305) * style:switch调整动效速度 * chore:更新快照 * chore:更新快照 Co-authored-by: xujiahao01 <xujiahao01@baidu.com> Co-authored-by: qiaogg <43558337+qiaogg@users.noreply.github.com> Co-authored-by: qiaoganggang <qiaoganggang@baidu.com> Co-authored-by: sansiro <sansiro@sansiro.me> Co-authored-by: liuzedong02 <liuzedong02@baidu.com> Co-authored-by: liweijian <liweijian@hkmtl.com> Co-authored-by: wuduoyi <wuduoyi@baidu.com> Co-authored-by: RUNZE LU <36724300+lurunze1226@users.noreply.github.com> Co-authored-by: sarding <37691952+sarding@users.noreply.github.com> Co-authored-by: sarding <hongfuquan@baidu.com> Co-authored-by: 徐佳豪 <53201551+blue-squirrel@users.noreply.github.com> Co-authored-by: HongYang <33488114+hy993658052@users.noreply.github.com> Co-authored-by: hongyang03 <hongyang03@baidu.com>
350 lines
6.6 KiB
SCSS
350 lines
6.6 KiB
SCSS
.#{$ns}Selection {
|
|
> .#{$ns}Checkbox {
|
|
display: block;
|
|
// height: var(--Form-input-height);
|
|
line-height: var(--Form-input-lineHeight);
|
|
font-size: var(--Form-input-fontSize);
|
|
padding: calc(
|
|
(
|
|
var(--Form-input-height) - var(--Form-input-lineHeight) *
|
|
var(--Form-input-fontSize)
|
|
) / 2
|
|
)
|
|
var(--gap-sm)
|
|
calc(
|
|
(
|
|
var(--Form-input-height) - var(--Form-input-lineHeight) *
|
|
var(--Form-input-fontSize)
|
|
) / 2
|
|
)
|
|
calc(var(--gap-sm) + var(--Checkbox-size));
|
|
}
|
|
|
|
&--inline > .#{$ns}Checkbox {
|
|
display: inline-block;
|
|
}
|
|
|
|
&-addBtn {
|
|
display: block;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
> svg {
|
|
width: px2rem(14px);
|
|
height: px2rem(14px);
|
|
margin-right: var(--Checkbox-gap);
|
|
}
|
|
}
|
|
}
|
|
|
|
.#{$ns}GroupedSelection {
|
|
max-height: px2rem(300px);
|
|
overflow: auto;
|
|
user-select: none;
|
|
padding: var(--gap-xs) 0;
|
|
|
|
|
|
&-group > &-itemLabel {
|
|
padding: var(--gap-xs) var(--gap-base);
|
|
color: var(--FileControl-icon-color);
|
|
}
|
|
|
|
&-item {
|
|
display: flex;
|
|
// height: var(--Form-input-height);
|
|
line-height: var(--Form-input-lineHeight);
|
|
font-size: var(--Form-input-fontSize);
|
|
padding: calc(
|
|
(
|
|
var(--Form-input-height) - var(--Form-input-lineHeight) *
|
|
var(--Form-input-fontSize)
|
|
) / 2
|
|
)
|
|
var(--gap-sm);
|
|
flex-direction: row;
|
|
|
|
> .#{$ns}Checkbox {
|
|
margin-right: px2rem(10px);
|
|
}
|
|
cursor: pointer;
|
|
user-select: none;
|
|
|
|
&.is-active {
|
|
background: var(--Form-select-menu-onActive-bg);
|
|
}
|
|
|
|
&:hover {
|
|
background: var(--Tree-item-onHover-bg);
|
|
|
|
i {
|
|
border: 1px solid var(--menu-active-color);
|
|
}
|
|
}
|
|
|
|
&.is-disabled {
|
|
pointer-events: none;
|
|
color: var(--text--muted-color);
|
|
}
|
|
}
|
|
|
|
&-group > &-items > &-item {
|
|
padding-left: calc(var(--gap-base) * 2);
|
|
}
|
|
|
|
&-itemLabel {
|
|
flex-grow: 1;
|
|
|
|
span {
|
|
vertical-align: middle;
|
|
white-space: nowrap; // 避免在条件组合中折行
|
|
}
|
|
}
|
|
|
|
&-placeholder {
|
|
@include checkboxes-placeholder();
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
.#{$ns}TableSelection {
|
|
.#{$ns}Table-content {
|
|
border-top: var(--Table-borderWidth) solid var(--Table-borderColor);
|
|
}
|
|
|
|
.#{$ns}Table-table > thead > tr > th,
|
|
.#{$ns}Table-table > tbody > tr > td {
|
|
font-size: var(--fontSizeSm);
|
|
padding-top: var(--gap-xs);
|
|
padding-bottom: px2rem(6px);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.#{$ns}Table-table > thead > tr > th {
|
|
padding-top: px2rem(6px);
|
|
}
|
|
|
|
.#{$ns}Table-table > thead > tr > th:first-child,
|
|
.#{$ns}Table-table > tbody > tr > td:first-child {
|
|
padding-left: px2rem(10px);
|
|
padding-right: 0;
|
|
}
|
|
|
|
.#{$ns}Table-table > thead > tr > th:last-child,
|
|
.#{$ns}Table-table > tbody > tr > td:last-child {
|
|
padding-right: var(--gap-md);
|
|
}
|
|
|
|
.#{$ns}Table-table > tbody > tr.is-active {
|
|
color: var(--Form-select-menu-onActive-color);
|
|
background: var(--Form-select-menu-onActive-bg);
|
|
}
|
|
}
|
|
|
|
.#{$ns}TreeSelection {
|
|
.#{$ns}Table-expandBtn {
|
|
color: var(--icon-color);
|
|
margin-right: var(--gap-xs);
|
|
}
|
|
|
|
&-sublist {
|
|
position: relative;
|
|
margin: 0 0 0 px2rem(35px);
|
|
display: none;
|
|
}
|
|
|
|
&-item {
|
|
position: relative;
|
|
}
|
|
&-item.is-expanded > &-sublist {
|
|
display: block;
|
|
}
|
|
|
|
&-item:not(:last-child) > &-sublist:before {
|
|
bottom: 0;
|
|
}
|
|
|
|
&-item.is-disabled {
|
|
color: var(--text--muted-color);
|
|
}
|
|
|
|
&-itemInner {
|
|
display: flex;
|
|
align-items: center;
|
|
line-height: var(--Tree-itemHeight);
|
|
position: relative;
|
|
font-size: var(--Form-input-fontSize);
|
|
padding: 0 var(--gap-sm);
|
|
flex-direction: row;
|
|
|
|
> .#{$ns}Checkbox {
|
|
margin-right: var(--gap-sm);
|
|
}
|
|
cursor: pointer;
|
|
user-select: none;
|
|
|
|
&:hover {
|
|
background: var(--Tree-item-onHover-bg);
|
|
}
|
|
|
|
&.is-active {
|
|
color: var(--Form-select-menu-onActive-color);
|
|
}
|
|
|
|
&.is-disabled {
|
|
pointer-events: none;
|
|
color: var(--text--muted-color);
|
|
}
|
|
|
|
.#{$ns}TreeSelection-itemLabel {
|
|
margin-left: var(--gap-xs);
|
|
}
|
|
}
|
|
|
|
&-itemLabel {
|
|
flex-grow: 1;
|
|
|
|
span {
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
&-placeholder {
|
|
@include checkboxes-placeholder();
|
|
}
|
|
}
|
|
|
|
.#{$ns}ChainedSelection {
|
|
display: flex;
|
|
flex-direction: row;
|
|
min-height: 100%;
|
|
|
|
&-col {
|
|
flex-grow: 1;
|
|
min-width: 150px;
|
|
}
|
|
|
|
&-col:not(:last-child) {
|
|
border-right: 1px solid var(--borderColor);
|
|
}
|
|
|
|
&-subTitle {
|
|
font-size: var(--fontSizeSm);
|
|
padding: var(--gap-xs) var(--gap-xs);
|
|
color: var(--text--muted-color);
|
|
}
|
|
|
|
&-item {
|
|
display: flex;
|
|
// height: var(--Form-input-height);
|
|
line-height: var(--Form-input-lineHeight);
|
|
font-size: var(--Form-input-fontSize);
|
|
padding: calc(
|
|
(
|
|
var(--Form-input-height) - var(--Form-input-lineHeight) *
|
|
var(--Form-input-fontSize)
|
|
) / 2
|
|
)
|
|
var(--gap-sm);
|
|
flex-direction: row;
|
|
|
|
> .#{$ns}Checkbox {
|
|
margin-right: 0;
|
|
}
|
|
cursor: pointer;
|
|
user-select: none;
|
|
|
|
&.is-active {
|
|
color: var(--Form-select-menu-onActive-color);
|
|
background: var(--Form-select-menu-onActive-bg);
|
|
}
|
|
|
|
&:hover {
|
|
background: var(--Tree-item-onHover-bg);
|
|
}
|
|
|
|
&.is-disabled {
|
|
pointer-events: none;
|
|
color: var(--text--muted-color);
|
|
}
|
|
}
|
|
|
|
&-itemLabel {
|
|
flex-grow: 1;
|
|
|
|
span {
|
|
margin-left: px2rem(10px);
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
&-placeholder {
|
|
@include checkboxes-placeholder();
|
|
}
|
|
}
|
|
|
|
.#{$ns}AssociatedSelection {
|
|
display: flex;
|
|
flex-direction: row;
|
|
|
|
&-left,
|
|
&-right {
|
|
flex-grow: 1;
|
|
width: 0;
|
|
min-height: px2rem(200px);
|
|
max-height: px2rem(400px);
|
|
overflow: auto;
|
|
}
|
|
|
|
&-left {
|
|
border-right: 1px solid var(--borderColor);
|
|
}
|
|
|
|
&-reload {
|
|
text-align: center;
|
|
color: var(--info);
|
|
margin: 20px 0 0;
|
|
|
|
&.is-clickable {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
&-box {
|
|
line-height: var(--Form-input-lineHeight);
|
|
font-size: var(--fontSizeSm);
|
|
color: var(--text--muted-color);
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
|
|
> p {
|
|
text-align: center;
|
|
margin: 10px 0 20px;
|
|
color: var(--text--muted-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
.#{$ns}ResultTreeList {
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.#{$ns}ResultTableList {
|
|
height: 100%;
|
|
width: 100%;
|
|
|
|
&-close-btn {
|
|
float: right;
|
|
cursor: pointer;
|
|
}
|
|
} |