Skip to content

Commit

Permalink
feat(control): add :disabled and :tooltip support on action bar b…
Browse files Browse the repository at this point in the history
…utton (#523)
  • Loading branch information
kiaking authored Apr 26, 2024
1 parent 021f6b3 commit ff124a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/components/SControlActionBarButton.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<script setup lang="ts">
import { useControlSize } from '../composables/Control'
import SButton from './SButton.vue'
import SButton, { type Tooltip } from './SButton.vue'
defineProps<{
as?: string
icon?: any
href?: string
disabled?: boolean
tooltip?: Tooltip
}>()
defineEmits<{
Expand All @@ -25,6 +27,8 @@ const size = useControlSize()
:icon="icon"
:href="href"
block
:disabled="disabled"
:tooltip="tooltip"
@click="$emit('click')"
/>
</div>
Expand Down

0 comments on commit ff124a6

Please sign in to comment.