Skip to content

Commit ff124a6

Browse files
authored
feat(control): add :disabled and :tooltip support on action bar button (#523)
1 parent 021f6b3 commit ff124a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/components/SControlActionBarButton.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<script setup lang="ts">
22
import { useControlSize } from '../composables/Control'
3-
import SButton from './SButton.vue'
3+
import SButton, { type Tooltip } from './SButton.vue'
44
55
defineProps<{
66
as?: string
77
icon?: any
88
href?: string
9+
disabled?: boolean
10+
tooltip?: Tooltip
911
}>()
1012
1113
defineEmits<{
@@ -25,6 +27,8 @@ const size = useControlSize()
2527
:icon="icon"
2628
:href="href"
2729
block
30+
:disabled="disabled"
31+
:tooltip="tooltip"
2832
@click="$emit('click')"
2933
/>
3034
</div>

0 commit comments

Comments
 (0)