Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 16, 2024
1 parent f3173a6 commit d6ca3de
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 31 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

## Version History

### v3.55.3

- :bug: Dynamic loading causes vite to load all in production mode

### v3.55.2

- :bug: Switch to `setup` for IconButton
Expand Down
8 changes: 6 additions & 2 deletions components/Delete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
</template>
<template v-else>
<TablerIconButton
icon='IconTrash'
title='Delete'
@click.stop.prevent='modal = true'
/>
>
<IconTrash
:size='32'
:stroke='1'
/>
</tablericonbutton>
</template>

<TablerModal v-if='modal'>
Expand Down
39 changes: 10 additions & 29 deletions components/IconButton.vue
Original file line number Diff line number Diff line change
@@ -1,40 +1,21 @@
<template>
<div
tabindex='0'
role='button'
v-tooltip='title'
class='cursor-pointer hover-button rounded'
>
<IconButton
:title='title'
:size='size'
:stroke='stroke'
/>
</div>
<div
v-tooltip='title'
tabindex='0'
role='button'
class='cursor-pointer hover-button rounded'
>
<slot />
</div>
</template>

<script setup>
import { defineAsyncComponent, defineProps } from 'vue'
import * as Icons from '@tabler/icons-vue';
import { defineProps } from 'vue'
const props = defineProps({
icon: {
type: String,
required: true
},
defineProps({
title: {
type: String,
required: true
},
size: {
type: Number,
default: 32
},
stroke: {
type: Number,
default: 1
}
})
const IconButton = Icons[props.icon];
</script>

0 comments on commit d6ca3de

Please sign in to comment.