diff --git a/src/components/Button.vue b/src/components/Button.vue index d2de3134..d1287058 100644 --- a/src/components/Button.vue +++ b/src/components/Button.vue @@ -9,6 +9,8 @@ 'checkbox': !disabled && type === 'checkbox', 'radio': !disabled && type === 'radio', 'small': size === 'small', + 'first': first, + 'last': last, }" @click="handleClick()" > @@ -22,11 +24,15 @@ const props = withDefaults(defineProps<{ disabled?: boolean type?: 'default' | 'primary' | 'checkbox' | 'radio' size?: 'small' | 'normal' + first?: boolean + last?: boolean }>(), { checked: false, disabled: false, type: 'default', size: 'normal', + first: false, + last: false, }) const emit = defineEmits<{ diff --git a/src/components/ButtonGroup.vue b/src/components/ButtonGroup.vue index 7da25077..b59b73f6 100644 --- a/src/components/ButtonGroup.vue +++ b/src/components/ButtonGroup.vue @@ -1,36 +1,85 @@