diff --git a/src/components/04_product-service/TableProduct.vue b/src/components/04_product-service/TableProduct.vue index 6197bd32..6541dc94 100644 --- a/src/components/04_product-service/TableProduct.vue +++ b/src/components/04_product-service/TableProduct.vue @@ -6,6 +6,8 @@ import { Product } from 'stores/product-service/types'; import KebabAction from 'src/components/shared/KebabAction.vue'; +import { MainButton } from 'components/button'; + import useOptionStore from 'stores/options'; import { formatNumberDecimal } from 'stores/utils'; import { dateFormat } from 'src/utils/datetime'; @@ -14,6 +16,7 @@ const optionStore = useOptionStore(); const baseUrl = ref(import.meta.env.VITE_API_BASE_URL); const selectedItem = defineModel('selectedItem'); +const isSort = ref(false); const props = withDefaults( defineProps<{ @@ -24,6 +27,7 @@ const props = withDefaults( currentPage?: number; pageSize?: number; useKebabAction?: boolean; + useSortAction?: boolean; }>(), { row: () => [], @@ -42,6 +46,7 @@ defineEmits<{ (e: 'delete'): void; (e: 'changeStatus'): void; (e: 'select', data: any): void; + (e: 'sort', isSort: boolean): void; }>(); @@ -64,7 +69,17 @@ defineEmits<{ style="background-color: hsla(var(--info-bg) / 0.07)" :props="props" > - + + +