18 lines
457 B
TypeScript
18 lines
457 B
TypeScript
import axios from "axios";
|
|
import {ref, reactive, computed} from "vue";
|
|
|
|
export function archive_page() {
|
|
const items = ref([])
|
|
const selected = ref([])
|
|
const loading = ref(false)
|
|
const search = ref('')
|
|
const listData = reactive({
|
|
'itemsPerPage': 5,
|
|
'first_page': null,
|
|
'last_page': null,
|
|
'total_items': 0,
|
|
'page': 1,
|
|
})
|
|
|
|
return { items, listData, selected, loading, search }
|
|
}
|