mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
75918c3f5d
* 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) * marge master into style-cxd (#4306) * docs:完善对话框size参数说明 * feat: Log 组件支持虚拟渲染及限制最大行数 * 修复不支持 loading 问题 * 换一下名字 * fix: 公式编辑器 variableMode 失效 (#4252) * 提交事件支持禁用默认提示 * fix:修改执行方式 * 修改测试api * 去掉无效引用 * fix: 修复datetime移动端报错 * chore: jssdk 的 responseAdaptor 扩充参数,支持拿 response 整个对象,包括返回的 headers 和… (#4229) * chore: jssdk 的 responseAdpator 扩充参数,支持拿 response 整个对象,包括返回的 headers 和状态码信息 * chore: jssdk 的 responseAdpator 扩充参数,支持拿 response 整个对象,包括返回的 headers 和状态码信息 * docs: 切换主题文档描述不正确问题 * 优化逻辑 * 调整格式 * 处理异步 * 增加兼容逻辑 * feat: 更新实时日志组件,增加可操作按钮:停止、显示行号等 (#4250) * feat: 更新实时日志组件,增加可操作按钮:停止、显示行号等 * 日志容器针对操作按钮增加相对定位 * 改变工具栏为侧边隐藏样式 * 调整 log 操作按钮位置避免遮挡内容 * 补充翻译 * 修复 Log 行样式丢失 Co-authored-by: lvchenguang <lvchenguang@zhihu.com> Co-authored-by: wuduoyi <wuduoyi@baidu.com> * fixup (#4263) Co-authored-by: zhyc <zhyc@hzsuoyi.com> * fix #4240: 修复input-datetime组件timeConstraints属性不生效问题,修复时间选取后自动滚动位置错误 (#4253) * chore: action countDown 在actionType为ajax时,请求通过再执行倒计时操作、dialog header 传递动作属性 (#4000) * LocationPicker ak支持数据解析,可用于统一地图配置 * drawer header传递动作属性,在header中也可以提交、关闭等操作 * action countDown 在actionType为ajax时,请求通过再执行倒计时操作 * dialog header 传递动作属性 * 修一些编码规范问题 Co-authored-by: metooweb <1058776960@qq.com> Co-authored-by: wuduoyi <wuduoyi@baidu.com> * chore: 修几个单元测试报错 (#4272) * feat:toast支持取消合并state * fix: 修正ContextMenu 二次触发时遮挡问题 (#4282) * fix(ContextMenu): 增加判空处理 (#4283) * 人员选择组件支持部门、角色、岗位选择 (#4285) * 人员选择组件 * 修复ts报错 Co-authored-by: zhangxulong <zhangxulong@baidu.com> * fix:修复事件动作对禁用状态控制失效问题&更新文档示例 (#4278) * fix:修复事件动作对禁用状态控制失效问题&更新文档示例 * fix:修复事件动作对禁用状态控制失效问题 * fix:修复事件动作对禁用状态控制失效问题 * fix:动作执行时对组件查找失败的容错 (#4290) * feat:Table2支持配置单元格样式、行操作按钮 (#4268) Co-authored-by: wanglinfang <wanglinfang@baidu.com> * fix #4270: checkboxes组件checkAll属性失效问题 (#4287) * feat:事件干预支持表达式 (#4295) * fix #4258: sdk方式下toast配置不生效问题 (#4274) * feat: 添加 json-schema 渲染器 (#4269) * feat: 添加 json-schema 渲染器 * draft: 组件层添加 form 逻辑 * 补充组件form相关逻辑 * json-schema-editor 组件内部实现调整 * 添加 json-schema 渲染器 * 补充外部 value 变化更新成员的逻辑 * 补充外部 value 变化更新成员的逻辑 * 优化 json-schema 交互 * 修改 snapshot * 可能死循环 * 补充文档 * 优化逻辑 * 具备远程获取能力 * 固定值优化 * fix(custom): 完善custom自定义组件,增加属性变动更新逻辑 (#4288) * fix(custom): 完善custom自定义组件,增加属性变动更新逻辑 * fix(custom): update * fix(custom): 更新测试用例 * 类型只有一个时不显示切换按钮 * fix: Pagination 切换页码后每页显示重置问题 (#4298) 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: Allen <yupeng.fe@qq.com> Co-authored-by: pianruijie <13522335863@163.com> Co-authored-by: zhangtao07 <zhang.tao.1006@163.com> Co-authored-by: liaoxuezhi <2betop.cn@gmail.com> Co-authored-by: hsm-lv <80095014+hsm-lv@users.noreply.github.com> Co-authored-by: mr-chenguang <37072324+lcgash@users.noreply.github.com> Co-authored-by: lvchenguang <lvchenguang@zhihu.com> Co-authored-by: decarp <zhycde@gmail.com> Co-authored-by: zhyc <zhyc@hzsuoyi.com> Co-authored-by: metooweb <2947550545@qq.com> Co-authored-by: metooweb <1058776960@qq.com> Co-authored-by: 刘丹 <365533093@qq.com> Co-authored-by: 龙少 <1769057083@qq.com> Co-authored-by: zhangxulong <zhangxulong@baidu.com> Co-authored-by: wanglinfang2014 <w.l.fang@foxmail.com> Co-authored-by: wanglinfang <wanglinfang@baidu.com> * fix:transfer组件云舍样式完善 (#4310) Co-authored-by: sqzhou <zhoushengqiang01@MacBook-Pro-2.local> * merge master (#4335) * docs:完善对话框size参数说明 * feat: Log 组件支持虚拟渲染及限制最大行数 * 修复不支持 loading 问题 * 换一下名字 * fix: 公式编辑器 variableMode 失效 (#4252) * 提交事件支持禁用默认提示 * fix:修改执行方式 * 修改测试api * 去掉无效引用 * fix: 修复datetime移动端报错 * chore: jssdk 的 responseAdaptor 扩充参数,支持拿 response 整个对象,包括返回的 headers 和… (#4229) * chore: jssdk 的 responseAdpator 扩充参数,支持拿 response 整个对象,包括返回的 headers 和状态码信息 * chore: jssdk 的 responseAdpator 扩充参数,支持拿 response 整个对象,包括返回的 headers 和状态码信息 * docs: 切换主题文档描述不正确问题 * 优化逻辑 * 调整格式 * 处理异步 * 增加兼容逻辑 * feat: 更新实时日志组件,增加可操作按钮:停止、显示行号等 (#4250) * feat: 更新实时日志组件,增加可操作按钮:停止、显示行号等 * 日志容器针对操作按钮增加相对定位 * 改变工具栏为侧边隐藏样式 * 调整 log 操作按钮位置避免遮挡内容 * 补充翻译 * 修复 Log 行样式丢失 Co-authored-by: lvchenguang <lvchenguang@zhihu.com> Co-authored-by: wuduoyi <wuduoyi@baidu.com> * fixup (#4263) Co-authored-by: zhyc <zhyc@hzsuoyi.com> * fix #4240: 修复input-datetime组件timeConstraints属性不生效问题,修复时间选取后自动滚动位置错误 (#4253) * chore: action countDown 在actionType为ajax时,请求通过再执行倒计时操作、dialog header 传递动作属性 (#4000) * LocationPicker ak支持数据解析,可用于统一地图配置 * drawer header传递动作属性,在header中也可以提交、关闭等操作 * action countDown 在actionType为ajax时,请求通过再执行倒计时操作 * dialog header 传递动作属性 * 修一些编码规范问题 Co-authored-by: metooweb <1058776960@qq.com> Co-authored-by: wuduoyi <wuduoyi@baidu.com> * chore: 修几个单元测试报错 (#4272) * feat:toast支持取消合并state * fix: 修正ContextMenu 二次触发时遮挡问题 (#4282) * fix(ContextMenu): 增加判空处理 (#4283) * 人员选择组件支持部门、角色、岗位选择 (#4285) * 人员选择组件 * 修复ts报错 Co-authored-by: zhangxulong <zhangxulong@baidu.com> * fix:修复事件动作对禁用状态控制失效问题&更新文档示例 (#4278) * fix:修复事件动作对禁用状态控制失效问题&更新文档示例 * fix:修复事件动作对禁用状态控制失效问题 * fix:修复事件动作对禁用状态控制失效问题 * fix:动作执行时对组件查找失败的容错 (#4290) * feat:Table2支持配置单元格样式、行操作按钮 (#4268) Co-authored-by: wanglinfang <wanglinfang@baidu.com> * fix #4270: checkboxes组件checkAll属性失效问题 (#4287) * feat:事件干预支持表达式 (#4295) * fix #4258: sdk方式下toast配置不生效问题 (#4274) * feat: 添加 json-schema 渲染器 (#4269) * feat: 添加 json-schema 渲染器 * draft: 组件层添加 form 逻辑 * 补充组件form相关逻辑 * json-schema-editor 组件内部实现调整 * 添加 json-schema 渲染器 * 补充外部 value 变化更新成员的逻辑 * 补充外部 value 变化更新成员的逻辑 * 优化 json-schema 交互 * 修改 snapshot * 可能死循环 * 补充文档 * 优化逻辑 * 具备远程获取能力 * 固定值优化 * fix(custom): 完善custom自定义组件,增加属性变动更新逻辑 (#4288) * fix(custom): 完善custom自定义组件,增加属性变动更新逻辑 * fix(custom): update * fix(custom): 更新测试用例 * 类型只有一个时不显示切换按钮 * fix: Pagination 切换页码后每页显示重置问题 (#4298) * feat:transfer组件功能完善 (#3696) * feat:transfer组件功能完善 * update-snapshot * feat:transfer组件功能完善 * update-snapshot * feat:transfer组件功能完善 * feat:transfer组件云舍4.0功能 * feat:transfer组件云舍4.0功能 * feat:transfer组件云舍4.0功能 * feat:transfer组件云舍4.0功能 * feat:transfer组件云舍4.0功能 * feat:transfer组件云舍4.0功能 * feat:transfer组件云舍4.0功能 * feat:transfer组件云舍4.0功能 * feat:transfer组件云舍4.0功能 * feat:transfer组件云舍4.0功能 * feat:transfer组件云舍4.0功能 * update-snapshot * feat:transfer组件云舍4.0功能 * feat:transfer组件云舍4.0功能 * feat:transfer组件云舍4.0功能 * feat:transfer组件云舍4.0功能 * update-snapshot Co-authored-by: sqzhou <zhoushengqiang01@baidu.com> * feat: 表单label支持左右对齐方式 (#4311) * fix: 修复 replaceText 不支持 schemaApi 问题 (#4300) * fix: deferloadOptions 在defer模式下的处理问题 * fix: 按钮disabledOn属性失效问题 (#4324) * fix: Service组件条件轮询会多调用一次api; docs: 补充轮询相关属性示例 (#4317) * fix: 公式变量检索问题 (#4325) * fix #1536: actionType为ajax时sendOn属性未生效问题 (#4326) * fix:修复disabled失效问题 (#4329) * fix:修复disabled失效问题 * test:补充事件动作测试用例 * fix:样式问题 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: Allen <yupeng.fe@qq.com> Co-authored-by: pianruijie <13522335863@163.com> Co-authored-by: zhangtao07 <zhang.tao.1006@163.com> Co-authored-by: liaoxuezhi <2betop.cn@gmail.com> Co-authored-by: hsm-lv <80095014+hsm-lv@users.noreply.github.com> Co-authored-by: mr-chenguang <37072324+lcgash@users.noreply.github.com> Co-authored-by: lvchenguang <lvchenguang@zhihu.com> Co-authored-by: decarp <zhycde@gmail.com> Co-authored-by: zhyc <zhyc@hzsuoyi.com> Co-authored-by: metooweb <2947550545@qq.com> Co-authored-by: metooweb <1058776960@qq.com> Co-authored-by: 刘丹 <365533093@qq.com> Co-authored-by: 龙少 <1769057083@qq.com> Co-authored-by: zhangxulong <zhangxulong@baidu.com> Co-authored-by: wanglinfang2014 <w.l.fang@foxmail.com> Co-authored-by: wanglinfang <wanglinfang@baidu.com> Co-authored-by: zhou999 <zhousq809@163.com> Co-authored-by: sqzhou <zhoushengqiang01@baidu.com> 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> Co-authored-by: Allen <yupeng.fe@qq.com> Co-authored-by: pianruijie <13522335863@163.com> Co-authored-by: zhangtao07 <zhang.tao.1006@163.com> Co-authored-by: liaoxuezhi <2betop.cn@gmail.com> Co-authored-by: hsm-lv <80095014+hsm-lv@users.noreply.github.com> Co-authored-by: mr-chenguang <37072324+lcgash@users.noreply.github.com> Co-authored-by: lvchenguang <lvchenguang@zhihu.com> Co-authored-by: decarp <zhycde@gmail.com> Co-authored-by: zhyc <zhyc@hzsuoyi.com> Co-authored-by: metooweb <2947550545@qq.com> Co-authored-by: metooweb <1058776960@qq.com> Co-authored-by: 刘丹 <365533093@qq.com> Co-authored-by: 龙少 <1769057083@qq.com> Co-authored-by: zhangxulong <zhangxulong@baidu.com> Co-authored-by: wanglinfang2014 <w.l.fang@foxmail.com> Co-authored-by: wanglinfang <wanglinfang@baidu.com> Co-authored-by: zhou999 <zhousq809@163.com> Co-authored-by: sqzhou <zhoushengqiang01@MacBook-Pro-2.local> Co-authored-by: sqzhou <zhoushengqiang01@baidu.com>
132 lines
2.8 KiB
SCSS
132 lines
2.8 KiB
SCSS
.#{$ns}ButtonGroup {
|
||
position: relative;
|
||
display: inline-flex;
|
||
vertical-align: middle;
|
||
|
||
> .#{$ns}Button {
|
||
position: relative;
|
||
flex: 0 1 auto;
|
||
max-width: px2rem(140px);
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
> .#{$ns}Button {
|
||
@include hover {
|
||
z-index: 1;
|
||
}
|
||
|
||
&:focus,
|
||
&:active,
|
||
&.active,
|
||
&.is-active {
|
||
z-index: 1;
|
||
}
|
||
}
|
||
|
||
.#{$ns}Button + .#{$ns}Button,
|
||
.#{$ns}Button + .#{$ns}ButtonGroup,
|
||
.#{$ns}ButtonGroup + .#{$ns}Button,
|
||
.#{$ns}ButtonGroup + .#{$ns}ButtonGroup {
|
||
margin-left: calc(var(--Button-borderWidth) * -1);
|
||
}
|
||
|
||
&--block {
|
||
display: block;
|
||
}
|
||
}
|
||
|
||
.#{$ns}ButtonToolbar {
|
||
display: inline-flex;
|
||
flex-wrap: wrap;
|
||
justify-content: flex-start;
|
||
align-items: center;
|
||
|
||
.#{$ns}ButtonGroup {
|
||
margin-left: var(--gap-xs);
|
||
margin-top: var(--gap-xs);
|
||
width: auto;
|
||
}
|
||
}
|
||
|
||
.#{$ns}ButtonGroup {
|
||
> .#{$ns}Button:first-child {
|
||
margin-left: 0;
|
||
}
|
||
|
||
// cxd的ButtonGroup的is-active和:active样式不一样,这里做个兼容
|
||
.#{$ns}Button--primary.is-active {
|
||
color: var(--ButtonGroup--primary-isActive-color);
|
||
background: var(--ButtonGroup--primary-isActive-bg);
|
||
}
|
||
|
||
> .#{$ns}Button:not(:last-child),
|
||
> .#{$ns}ButtonGroup:not(:last-child) > .#{$ns}Button {
|
||
border-top-right-radius: 0;
|
||
border-bottom-right-radius: 0;
|
||
}
|
||
|
||
> .#{$ns}Button:not(:first-child),
|
||
> .#{$ns}ButtonGroup:not(:first-child) > .#{$ns}Button {
|
||
border-top-left-radius: 0;
|
||
border-bottom-left-radius: 0;
|
||
}
|
||
|
||
> .#{$ns}ButtonGroup:last-child > .#{$ns}Button:not(:last-child) {
|
||
border-top-right-radius: 0;
|
||
}
|
||
}
|
||
|
||
.#{$ns}ButtonGroup--vertical {
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
justify-content: center;
|
||
|
||
.#{$ns}Button,
|
||
.#{$ns}ButtonGroup {
|
||
width: 100%;
|
||
}
|
||
|
||
> .#{$ns}Button + .#{$ns}Button,
|
||
> .#{$ns}Button + .#{$ns}ButtonGroup,
|
||
> .#{$ns}ButtonGroup + .#{$ns}Button,
|
||
> .#{$ns}ButtonGroup + .#{$ns}ButtonGroup {
|
||
margin-top: calc(var(--Button-borderWidth) * -1);
|
||
margin-left: 0;
|
||
}
|
||
|
||
> .#{$ns}Button:not(:last-child),
|
||
> .#{$ns}ButtonGroup:not(:last-child) > .#{$ns}Button {
|
||
border-bottom-left-radius: 0;
|
||
border-bottom-right-radius: 0;
|
||
}
|
||
|
||
> .#{$ns}Button:not(:first-child),
|
||
> .#{$ns}ButtonGroup:not(:first-child) > .btn {
|
||
border-top-left-radius: 0;
|
||
border-top-right-radius: 0;
|
||
}
|
||
|
||
/* 修正头尾的圆角 */
|
||
> .#{$ns}Button:first-child,
|
||
> .#{$ns}ButtonGroup:first-child > .#{$ns}Button:first-child {
|
||
border-top-right-radius: var(--Button-borderRadius);
|
||
}
|
||
|
||
> .#{$ns}Button:last-child,
|
||
> .#{$ns}ButtonGroup:last-child > .#{$ns}Button:last-child {
|
||
border-bottom-left-radius: var(--Button-borderRadius);
|
||
}
|
||
}
|
||
|
||
.#{$ns}ButtonGroup--tiled {
|
||
display: flex;
|
||
|
||
.#{$ns}Button,
|
||
.#{$ns}ButtonGroup {
|
||
flex-grow: 1;
|
||
text-align: center;
|
||
}
|
||
}
|