[Feature Request] Want an attribute to setup whether to show Radio/Checkbox‘s label text

keepmood
创建于
2017-05-17 12:25:03

Existing Component

Yes

Component Name

Radio/Checkbox

Description

Can't use Radio/Checkbox component without label text, it's always setting by :label attribute when you don't need slot content, i think this is a useful feature, what do you think?

BTW, thx for your work, ElementUI awesome!

6条回答
Leopoldthecoder
回复于
2017-05-18 03:21:40
#1

You mean when they are nested inside RadioGroup / CheckboxGroup?

keepmood
回复于
2017-05-18 06:37:59
#2

@Leopoldthecoder Yup, i need a radio column without label text. Is there another way, but i don't know?
wx20170518-143530

Leopoldthecoder
回复于
2017-05-18 12:49:53
#3

In this case, you don't have to wrap Radios in RadioGroup since there is only one Radio for each row. See the first demo in our docs.

keepmood
回复于
2017-05-19 03:46:58
#4

@Leopoldthecoder I'm not using a RadioGroup, it is a single radio in each row, and also i cant't find any Radio demo without label text, i read your source code then find that you always setting label text&value by label attribute, is there an mistake?

wx20170519-114323

Leopoldthecoder
回复于
2017-05-21 05:32:57
#5

My mistake. It seems you have to hide the labels using CSS display: none.

keepmood
回复于
2017-05-22 04:26:50
#6

Okay, but i think :value/:label should be set separately.

Anyway, thx for your reply. 🙂

当前位于第1页,总计6 条回复

推荐相似问题

[Feature Request] Custom template for sum in el-table

Existing Component Yes Component Name el-table Description Hello! Glad you added sum row and sum-method in el-table comp
讨论数 2
element
创建时间:2017-05-17 10:41:29

[Feature Request] Render function for table sum

Existing Component Yes Component Name el-table Description Hello! Glad you added sum row and sum-method in el-table comp
讨论数 2
element
创建时间:2017-05-17 10:39:06

[Feature Request] Custom header for the el-table-column

Existing Component Yes Component Name el-table-column Description Hello! Could i have a custom template for the column h
讨论数 15
element
创建时间:2017-05-17 10:18:05

[Question] Custom header for the el-table-column

Hello! Could i have a custom template for the column header? I need to have some filtering using el-input. Endresult sho
讨论数 3
element
创建时间:2017-05-17 10:14:25

[Bug Report] select with allow-create not show no-data-text prop

Element UI version 1.3.3 OS/Browsers version win10 Google Chrome 58.0.3029.110 (64-bit) Vue version 2.3.3 Reproduction L
讨论数 2
element
创建时间:2017-05-17 10:12:42

[Bug Report] Checkbox can't be disabled in table

Element UI version 1.3.3 OS/Browsers version google Vue version 2.3.3 Reproduction Link https://jsfiddle.net/api/post/li
讨论数 3
element
创建时间:2017-05-17 08:24:30

The [Bug Report] DatePicker component displays the corresponding type component by changing the type type, and clicks DatePicker, where the panel displays the exception

Element UI version 1.3.3 OS/Browsers version win 7 / chrome 56.0.2924.76 Vue version 2.3.3 Reproduction Link https://jsf
讨论数 7
element
创建时间:2017-05-17 06:47:00

新版的index.js代码在旧版上面运行报错(浏览器环境)

页面UI代码是用1.0.9的版本写出来的,但是升级了element-ui的index.js文件后,直接报错(e._v is not a function),希望能兼容原来的版本代码
讨论数 2
element
创建时间:2017-05-17 05:53:54

验证

No description provided.
讨论数 2
element
创建时间:2017-05-17 03:43:36

[Bug, Report], ie11, this.$msgbox and this.$prompt below use then, and then doesn't work

Element UI version 1.2.3 OS/Browsers version ie11 Vue version 2.2.1 Reproduction Link https://jsfiddle.net/api/post/libr
讨论数 4
element
创建时间:2017-05-17 03:38:36