mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Radio): failed to bind group
This commit is contained in:
parent
423e16b568
commit
0f7c9a317c
@ -22,7 +22,10 @@ export default defineComponent({
|
|||||||
role: String,
|
role: String,
|
||||||
parent: Object,
|
parent: Object,
|
||||||
checked: Boolean,
|
checked: Boolean,
|
||||||
bindGroup: Boolean,
|
bindGroup: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
bem: {
|
bem: {
|
||||||
type: Function,
|
type: Function,
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -6,7 +6,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -22,7 +21,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox van-checkbox--disabled"
|
class="van-checkbox van-checkbox--disabled"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--disabled">
|
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--disabled">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -36,7 +34,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox van-checkbox--disabled"
|
class="van-checkbox van-checkbox--disabled"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--disabled van-checkbox__icon--checked">
|
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--disabled van-checkbox__icon--checked">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -52,7 +49,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--square van-checkbox__icon--checked">
|
<div class="van-checkbox__icon van-checkbox__icon--square van-checkbox__icon--checked">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -68,7 +64,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success"
|
<i class="van-badge__wrapper van-icon van-icon-success"
|
||||||
@ -86,7 +81,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"
|
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"
|
||||||
style="font-size: 24px;"
|
style="font-size: 24px;"
|
||||||
@ -104,7 +98,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
||||||
<img src="https://img.yzcdn.cn/vant/user-active.png">
|
<img src="https://img.yzcdn.cn/vant/user-active.png">
|
||||||
@ -119,7 +112,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox van-checkbox--label-disabled"
|
class="van-checkbox van-checkbox--label-disabled"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -136,7 +128,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -150,7 +141,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -168,7 +158,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox van-checkbox--horizontal"
|
class="van-checkbox van-checkbox--horizontal"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round">
|
<div class="van-checkbox__icon van-checkbox__icon--round">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -182,7 +171,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox van-checkbox--horizontal"
|
class="van-checkbox van-checkbox--horizontal"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round">
|
<div class="van-checkbox__icon van-checkbox__icon--round">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -200,7 +188,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round">
|
<div class="van-checkbox__icon van-checkbox__icon--round">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -214,7 +201,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round">
|
<div class="van-checkbox__icon van-checkbox__icon--round">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -228,7 +214,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round">
|
<div class="van-checkbox__icon van-checkbox__icon--round">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -246,7 +231,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round">
|
<div class="van-checkbox__icon van-checkbox__icon--round">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -260,7 +244,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round">
|
<div class="van-checkbox__icon van-checkbox__icon--round">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -274,7 +257,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round">
|
<div class="van-checkbox__icon van-checkbox__icon--round">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -322,7 +304,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round">
|
<div class="van-checkbox__icon van-checkbox__icon--round">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -343,7 +324,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round">
|
<div class="van-checkbox__icon van-checkbox__icon--round">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
|
@ -147,7 +147,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--square">
|
<div class="van-checkbox__icon van-checkbox__icon--square">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -172,7 +171,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox van-checkbox--horizontal"
|
class="van-checkbox van-checkbox--horizontal"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--square">
|
<div class="van-checkbox__icon van-checkbox__icon--square">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
@ -186,7 +184,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox van-checkbox--horizontal"
|
class="van-checkbox van-checkbox--horizontal"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--square">
|
<div class="van-checkbox__icon van-checkbox__icon--square">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
|
@ -116,7 +116,6 @@ exports[`should render demo and match snapshot 1`] = `
|
|||||||
class="van-checkbox"
|
class="van-checkbox"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
bindgroup="true"
|
|
||||||
>
|
>
|
||||||
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked">
|
||||||
<i class="van-badge__wrapper van-icon van-icon-success">
|
<i class="van-badge__wrapper van-icon van-icon-success">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user