Skip to content

Commit

Permalink
Merge pull request #300 from webitel/fix/filter-panel-icons
Browse files Browse the repository at this point in the history
fix: tableActionIcons props added to create possibility to pass only …
  • Loading branch information
Lera24 authored Sep 17, 2024
2 parents 19fe70e + d688734 commit c2ec79a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webitel/ui-sdk",
"version": "24.10.9",
"version": "24.10.10",
"private": false,
"scripts": {
"dev": "vite",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</div>
<div class="actions-wrap">
<wt-table-actions
:icons="['filter-reset', 'settings']"
:icons="tableActionIcons"
@input="tableActionsHandler"
/>
</div>
Expand All @@ -18,6 +18,12 @@
<script>
export default {
name: 'FiltersPanelWrapper',
props: {
tableActionIcons: {
type: Array,
default: () => ['filter-reset', 'settings'],
},
},
data: () => ({
isOpened: false,
filtersCount: 0,
Expand Down Expand Up @@ -45,7 +51,7 @@ export default {
</script>

<style lang="scss" scoped>
$actions-width: calc(2 * (var(--icon-md-size) + var(--table-actions-icon-gap)));
$actions-width: calc((var(--icon-md-size) + var(--table-actions-icon-gap)));
.filters-panel-wrapper {
display: flex;
Expand Down

0 comments on commit c2ec79a

Please sign in to comment.