Skip to content

按钮组组件 - IkRadioGroup

props

props类型说明默认值
listArray按钮组列表数据[]
isButtonBoolean是否是按钮模式true

示例代码

vue
<script setup lang="ts">
// 按钮组数据
const state = reactive({
  model: 'unapproved',
  list: [{ label: '待审列表', value: 'unapproved' }, { label: '已审列表', value: 'approved' }]
});
</script>
<template>
  <IkPageMain fixed style="padding: 16px; box-sizing: border-box">
    <div style="width: 750px; height: 500px">
      <IkRadioGroup  v-model="state.model" :list="state.list">
    </IkRadioGroup>
    </div>
  </IkPageMain>
</template>