fixes
This commit is contained in:
@@ -8,38 +8,52 @@
|
|||||||
:type="formMessage.type"
|
:type="formMessage.type"
|
||||||
:message="formMessage.message"
|
:message="formMessage.message"
|
||||||
:icon="formMessage.icon" />
|
:icon="formMessage.icon" />
|
||||||
|
<SMContainer>
|
||||||
|
<SMToolbar>
|
||||||
|
<template #left>
|
||||||
|
<SMButton
|
||||||
|
:to="{ name: 'workshops' }"
|
||||||
|
type="primary"
|
||||||
|
label="Upload Media" />
|
||||||
|
</template>
|
||||||
|
<template #right>
|
||||||
|
<SMInput
|
||||||
|
v-model="search"
|
||||||
|
label="Search"
|
||||||
|
:small="true"
|
||||||
|
style="max-width: 350px"
|
||||||
|
:show-clear="true">
|
||||||
|
<template #append>
|
||||||
|
<SMButton
|
||||||
|
type="primary"
|
||||||
|
label="Search"
|
||||||
|
icon="search-outline"
|
||||||
|
@click="handleClickSearch" />
|
||||||
|
</template>
|
||||||
|
</SMInput>
|
||||||
|
</template>
|
||||||
|
</SMToolbar>
|
||||||
|
|
||||||
<SMToolbar>
|
<SMPagination
|
||||||
<template #left>
|
:model-value="pageValue"
|
||||||
<!-- <SMButton
|
:total="total"
|
||||||
:to="{ name: 'media-upload' }"
|
:per-page="perPage" />
|
||||||
type="primary"
|
<SMTable :headers="headers" :items="items" @row-click="handleRowClick">
|
||||||
label="Upload Media" /> -->
|
<template #item-size="item">
|
||||||
</template>
|
{{ bytesReadable(item.size) }}
|
||||||
<template #right>
|
</template>
|
||||||
<SMInput
|
<template #item-actions="item">
|
||||||
v-model="search"
|
<SMButton
|
||||||
label="Search"
|
label="Edit"
|
||||||
:small="true"
|
:dropdown="{
|
||||||
style="max-width: 250px" />
|
download: 'Download',
|
||||||
</template>
|
delete: 'Delete',
|
||||||
</SMToolbar>
|
}"
|
||||||
|
size="medium"
|
||||||
<SMTable :headers="headers" :items="items" @row-click="handleRowClick">
|
@click="handleClick(item, $event)"></SMButton>
|
||||||
<template #item-size="item">
|
</template>
|
||||||
{{ bytesReadable(item.size) }}
|
</SMTable>
|
||||||
</template>
|
</SMContainer>
|
||||||
<template #item-actions="item">
|
|
||||||
<SMButton
|
|
||||||
label="Edit"
|
|
||||||
:dropdown="{
|
|
||||||
download: 'Download',
|
|
||||||
delete: 'Delete',
|
|
||||||
}"
|
|
||||||
size="medium"
|
|
||||||
@click="handleClick(item, $event)"></SMButton>
|
|
||||||
</template>
|
|
||||||
</SMTable>
|
|
||||||
|
|
||||||
<!-- @click-row="handleClickRow" -->
|
<!-- @click-row="handleClickRow" -->
|
||||||
<!-- <EasyDataTable
|
<!-- <EasyDataTable
|
||||||
@@ -88,9 +102,10 @@ import { debounce } from "../../helpers/debounce";
|
|||||||
import { bytesReadable } from "../../helpers/types";
|
import { bytesReadable } from "../../helpers/types";
|
||||||
import { useUserStore } from "../../store/UserStore";
|
import { useUserStore } from "../../store/UserStore";
|
||||||
import { useToastStore } from "../../store/ToastStore";
|
import { useToastStore } from "../../store/ToastStore";
|
||||||
import SMInput from "../../depreciated/SMInput-old.vue";
|
import SMInput from "../../components/SMInput.vue";
|
||||||
import SMMastHead from "../../components/SMMastHead.vue";
|
import SMMastHead from "../../components/SMMastHead.vue";
|
||||||
import SMTable from "../../components/SMTable.vue";
|
import SMTable from "../../components/SMTable.vue";
|
||||||
|
import SMPagination from "../../components/SMPagination.vue";
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const search = ref("");
|
const search = ref("");
|
||||||
@@ -123,6 +138,10 @@ const serverOptions = ref({
|
|||||||
sortType: null,
|
sortType: null,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const total = 108;
|
||||||
|
const perPage = 25;
|
||||||
|
const pageValue = ref(1);
|
||||||
|
|
||||||
const handleRowClick = (item) => {
|
const handleRowClick = (item) => {
|
||||||
alert(JSON.stringify(item));
|
alert(JSON.stringify(item));
|
||||||
};
|
};
|
||||||
@@ -291,10 +310,14 @@ const handleDownload = (item) => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.vue3-easy-data-table {
|
body[data-route-name="page-dashboard-media-list"] {
|
||||||
th:nth-child(1),
|
.table tr td:last-of-type {
|
||||||
td:nth-child(1) {
|
padding-left: 0;
|
||||||
max-width: 30vw;
|
text-align: center;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user