Fix ModelLinkComponent compile ts

This commit is contained in:
Jérémy Munsch 2022-07-15 12:07:38 +02:00
parent 1a4852432e
commit e9aeeeea93
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
3 changed files with 9 additions and 4 deletions

2
package-lock.json generated
View file

@ -1,5 +1,5 @@
{
"name": "srcs",
"name": "loue",
"lockfileVersion": 2,
"requires": true,
"packages": {

View file

@ -12,14 +12,16 @@
:filterable="true"
:searchable="true"
>
<template v-slot:option="option">
<template v-slot:option="{ option }: { option: VSelectProps }">
{{
option.label.length >= _maxLength
? option.label.substring(0, _maxLength) + ".."
: option.label
}}
</template>
<template v-slot:no-options="{ search, searching }">
<template
v-slot:no-options="{ search, searching }: { search: string, searching: boolean }"
>
<template v-if="searching">
{{ __("Aucun résultat pour") }}
<em>{{ search }}</em> .

View file

@ -1,7 +1,8 @@
export {};
import { AxiosStatic } from "axios";
import type VueTagsInput from "vue3-tags-input";
import type VueTagsInput from "@sipec/vue3-tags-input";
import type { VueSelectProps } from "vue-select";
// * Recursive List<string>
type StringList = Record<PropertyKey, string>;
@ -34,6 +35,8 @@ declare global {
type LaravelModel = Model;
type LaravelModelList = ModelList;
type VSelectProps = VueSelectProps;
interface Window {
$displayMenu: (show: boolean) => void;
$toggleBasketMenu: () => void;