1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 21:33:18 +01:00

Cleans up define props with typescript and cleans up css (#1879)

* Tries to clean up defineprops

* Cleans up define props for all components
This commit is contained in:
Amir Raminfar
2022-09-14 12:00:36 -07:00
committed by GitHub
parent cc8a7ee8e7
commit 70d72060d9
13 changed files with 76 additions and 105 deletions

View File

@@ -36,12 +36,9 @@
import fuzzysort from "fuzzysort";
import { type Container } from "@/types/Container";
const props = defineProps({
maxResults: {
default: 20,
type: Number,
},
});
const { maxResults = 20 } = defineProps<{
maxResults: number;
}>();
const emit = defineEmits(["close"]);
@@ -64,7 +61,7 @@ const preparedContainers = computed(() =>
const results = computed(() => {
const options = {
limit: props.maxResults,
limit: maxResults,
key: "preparedName",
};
if (query.value) {