<template>
  <div>
    <x-buttons ref="xButtons"></x-buttons>
  </div>
</template>

<script>
  import XButtons from './XButtons.vue'
  import { getConfigByName } from '@vue2-client/services/api/common'

  export default {
    name: 'XButtonDemo',
    components: {
        XButtons
    },
    data () {
      return {}
    },
    mounted () {
      getConfigByName('testButtonGroup', 'af-his', res => {
        this.$refs.xButtons.init({
          value: res.value
        })
      }, true)
    },
    methods: {},
  }
</script>
