EastsideCo / polaris-vue

Allows you to use Shopify Polaris components in Vue 2.
https://www.npmjs.com/package/@eastsideco/polaris-vue
113 stars 27 forks source link

Radio how can i get value ? #19

Open jetBn opened 4 years ago

jetBn commented 4 years ago

change event is only get true or false

Kyon147 commented 4 years ago

Have you tried using v-model?

jetBn commented 4 years ago

yes

Kyon147 commented 4 years ago

Have you tried the same as the demo?

<polaris-choice-list 
    name="test0"
    title="Company name"
    :choices="[
        { label: 'Hidden', value: 'hidden' },
        { label: 'Optional', value: 'optional' },
        { label: 'Required', value: 'required' }
    ]"
    v-model="value1">
</polaris-choice-list>
jetBn commented 4 years ago

maybe i used polaris-radio-button , I tried to use polaris-choice-list . thanks