Fix directory component compilation
This commit is contained in:
parent
62dfba632d
commit
ef5fea3da0
2 changed files with 17 additions and 16 deletions
|
|
@ -153,20 +153,6 @@ import sweetalertConfirm from "../../modules/sweetalertConfirm";
|
|||
import toast from "../../modules/toast";
|
||||
import trans from "../../modules/trans";
|
||||
|
||||
type DirectoryObject = {
|
||||
id: number;
|
||||
name: string;
|
||||
directory_id: number | null;
|
||||
text: string | null;
|
||||
order: number;
|
||||
needAuthorization: number;
|
||||
documents_count: number;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
children: Array<DirectoryObject> | undefined;
|
||||
is_system: boolean | null;
|
||||
};
|
||||
|
||||
export default defineComponent({
|
||||
name: "DirectoriesComponent",
|
||||
components: {
|
||||
|
|
|
|||
19
resources/ts/index.d.ts
vendored
19
resources/ts/index.d.ts
vendored
|
|
@ -1,6 +1,6 @@
|
|||
export {};
|
||||
import { AxiosStatic } from "axios";
|
||||
export { };
|
||||
import type VueTagsInput from "@sipec/vue3-tags-input";
|
||||
import { AxiosStatic } from "axios";
|
||||
|
||||
// * Enum
|
||||
interface EnumInterface {
|
||||
|
|
@ -8,6 +8,20 @@ interface EnumInterface {
|
|||
value: number | string;
|
||||
}
|
||||
|
||||
type DirectoryObj = {
|
||||
id: number;
|
||||
name: string;
|
||||
directory_id: number | null;
|
||||
text: string | null;
|
||||
order: number;
|
||||
needAuthorization: number;
|
||||
documents_count: number;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
children: Array<DirectoryObj> | undefined;
|
||||
is_system: boolean | null;
|
||||
};
|
||||
|
||||
// * Laravel Paginator
|
||||
|
||||
interface PaginatorLink {
|
||||
|
|
@ -67,6 +81,7 @@ declare global {
|
|||
type LaravelModelList = ModelList;
|
||||
type LaravelPaginator = Paginator;
|
||||
type LaravelPaginatorLink = PaginatorLink;
|
||||
type DirectoryObject = DirectoryObj;
|
||||
|
||||
type Enum = EnumInterface;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue