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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user