Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
京东前端
nutui-react
提交
dbee1d71
N
nutui-react
项目概览
京东前端
/
nutui-react
通知
0
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nutui-react
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
dbee1d71
编写于
2月 15, 2023
作者:
X
xiaoyatong
提交者:
GitHub
2月 15, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: radio 支持 换行。 (#675)
上级
8830c46f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
28 addition
and
7 deletion
+28
-7
src/packages/radio/demo.taro.tsx
src/packages/radio/demo.taro.tsx
+9
-1
src/packages/radio/demo.tsx
src/packages/radio/demo.tsx
+9
-1
src/packages/radiogroup/radiogroup.scss
src/packages/radiogroup/radiogroup.scss
+10
-5
未找到文件。
src/packages/radio/demo.taro.tsx
浏览文件 @
dbee1d71
...
...
@@ -96,6 +96,8 @@ const RadioDemo = () => {
<
Radio
.
RadioGroup
value
=
"1"
>
<
Radio
value
=
"1"
>
{
translated
.
bb7486f4
}
1
</
Radio
>
<
Radio
disabled
value
=
"2"
>
{
translated
.
bb7486f4
}
{
translated
.
bb7486f4
}
{
translated
.
bb7486f4
}
2
</
Radio
>
<
Radio
value
=
"3"
>
{
translated
.
bb7486f4
}
3
</
Radio
>
...
...
@@ -129,7 +131,13 @@ const RadioDemo = () => {
<
Cell
>
<
Radio
.
RadioGroup
value
=
"1"
direction
=
"horizontal"
>
<
Radio
value
=
"1"
>
{
translated
.
bb7486f4
}
1
</
Radio
>
<
Radio
value
=
"2"
>
{
translated
.
bb7486f4
}
2
</
Radio
>
<
Radio
value
=
"2"
>
{
translated
.
bb7486f4
}
{
translated
.
bb7486f4
}
{
translated
.
bb7486f4
}
{
translated
.
bb7486f4
}
{
translated
.
bb7486f4
}
2
</
Radio
>
<
Radio
value
=
"3"
>
{
translated
.
bb7486f4
}
3
</
Radio
>
</
Radio
.
RadioGroup
>
</
Cell
>
...
...
src/packages/radio/demo.tsx
浏览文件 @
dbee1d71
...
...
@@ -95,6 +95,8 @@ const RadioDemo = () => {
<
Radio
.
RadioGroup
value
=
"1"
>
<
Radio
value
=
"1"
>
{
translated
.
bb7486f4
}
1
</
Radio
>
<
Radio
disabled
value
=
"2"
>
{
translated
.
bb7486f4
}
{
translated
.
bb7486f4
}
{
translated
.
bb7486f4
}
2
</
Radio
>
<
Radio
value
=
"3"
>
{
translated
.
bb7486f4
}
3
</
Radio
>
...
...
@@ -128,7 +130,13 @@ const RadioDemo = () => {
<
Cell
>
<
Radio
.
RadioGroup
value
=
"1"
direction
=
"horizontal"
>
<
Radio
value
=
"1"
>
{
translated
.
bb7486f4
}
1
</
Radio
>
<
Radio
value
=
"2"
>
{
translated
.
bb7486f4
}
2
</
Radio
>
<
Radio
value
=
"2"
>
{
translated
.
bb7486f4
}
{
translated
.
bb7486f4
}
{
translated
.
bb7486f4
}
{
translated
.
bb7486f4
}
{
translated
.
bb7486f4
}
2
</
Radio
>
<
Radio
value
=
"3"
>
{
translated
.
bb7486f4
}
3
</
Radio
>
</
Radio
.
RadioGroup
>
</
Cell
>
...
...
src/packages/radiogroup/radiogroup.scss
浏览文件 @
dbee1d71
...
...
@@ -5,24 +5,29 @@
&
__label
{
margin-right
:
5px
;
}
&
__button
{
background-color
:
$dark4
;
border
:
1px
solid
$dark6
;
}
&
__button--active
{
border-color
:
$radio-label-button-border-color
;
}
}
}
&
--horizontal
{
.nut-radio
{
&
__label
{
margin-right
:
5px
;
}
&
__button
{
background-color
:
$dark4
;
border
:
1px
solid
$dark6
;
}
&
__button--active
{
border-color
:
$radio-label-button-border-color
;
}
...
...
@@ -30,10 +35,8 @@
}
}
}
.nut-radiogroup
{
display
:
flex
;
align-items
:
flex-start
;
.nut-radiogroup
{
.nut-radio
{
margin-bottom
:
5px
;
...
...
@@ -47,8 +50,6 @@
}
&
--vertical
{
flex-direction
:
column
;
.nut-radio
{
&
.nut-radio--reverse
{
width
:
100%
;
...
...
@@ -58,14 +59,17 @@
&
__label
{
margin-right
:
5px
;
}
&
__button
{
border
:
1px
solid
$gray6
;
}
&
__button--active
{
border-color
:
$radio-label-button-border-color
;
}
}
}
&
--horizontal
{
.nut-radio
{
display
:
inline-flex
;
...
...
@@ -76,6 +80,7 @@
margin
:
0
6px
;
}
}
&
--button
{
// ...
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录