Skip to content

Commit

Permalink
fix: disable content icon
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmendes21 committed Dec 19, 2024
1 parent e2d006f commit f657070
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/templates/list-table-block/v2/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<i
class="pi pi-bars cursor-move mr-4 hidden md:inline disabled-click-row"
data-pc-section="rowreordericon"
v-if="rowData.phase.content !== 'Default'"
:class="hasContentDefault(rowData.phase.content) ? 'no-before mr-8' : ''"
/>
<InputNumber
v-model="rowData.position.value"
Expand All @@ -99,7 +99,7 @@
:min="rowData.position.min"
:max="rowData.position.max"
:pt="{ input: { class: 'w-11 text-center' } }"
:disabled="rowData.phase.content === 'Default'"
:disabled="hasContentDefault(rowData.phase.content)"
>
<template #incrementbuttonicon>
<span class="pi pi-chevron-down" />
Expand Down Expand Up @@ -692,6 +692,10 @@
}
}
const hasContentDefault = (content) => {
return content === 'Default'
}
const filterBy = computed(() => {
const filtersPath = props.columns.filter((el) => el.filterPath).map((el) => el.filterPath)
const filters = props.columns.map((item) => item.field)
Expand All @@ -700,6 +704,7 @@
})
const optionsColumns = ref([])
onMounted(() => {
loadData({
fields: props.apiFields,
Expand Down Expand Up @@ -734,4 +739,8 @@
}
}
}
.no-before::before {
content: none !important;
}
</style>

0 comments on commit f657070

Please sign in to comment.