Fix ModelLinkComponent compile ts
This commit is contained in:
parent
1a4852432e
commit
e9aeeeea93
3 changed files with 9 additions and 4 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "srcs",
|
||||
"name": "loue",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
|
|
|||
|
|
@ -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> .
|
||||
|
|
|
|||
5
resources/ts/index.d.ts
vendored
5
resources/ts/index.d.ts
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue