Files
astra-frontend/src/components/base/BaseAddingNetwork.vue
2023-02-22 14:29:34 +03:00

35 lines
753 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template lang="pug">
.flex.w-full(class="gap-x-1.5")
base-select(:items="items", v-model="network.kind")
base-input.w-full(v-model="network.username", placeholder="Ссылкa", outlined)
</template>
<script>
import BaseInput from "@/components/base/BaseInput";
import BaseSelect from "@/components/base/BaseSelect.vue";
export default {
name: "TableAddingNetwork",
components: { BaseInput, BaseSelect },
props: {
items: {
type: Array,
default: () => [],
},
network: {
type: Object,
default: () => {},
},
},
computed: {
networkInternal: {
get() {
return this.network;
},
set(val) {
this.$emit("update:network", val);
},
},
},
};
</script>