| 123456789101112131415161718192021222324252627 |
- <template>
- <div class="btn-list">
- <a-button :class="item.className"
- v-for="item in btnList"
- :key="item.lable"
- @click="item.callback">
- {{item.lable}}
- </a-button>
- </div>
- </template>
- <script lang="ts">
- import { defineComponent, PropType } from 'vue';
- import { BtnList } from './interface';
- export default defineComponent({
- props: {
- btnList: {
- default: [],
- type: Array as PropType<BtnList[]>,
- },
- },
- });
- </script>
- <style lang="scss">
- </style>
|