install lib, fix css, small test

This commit is contained in:
Samuel Lorch 2023-03-13 00:02:38 +01:00
parent c59b1d8cc9
commit 0f4bc6a943
4 changed files with 22 additions and 4 deletions

View file

@ -72,4 +72,8 @@ tbody tr:nth-child(even) {
background-color: var(--cl-bg-low);
color: inherit;
border: 1px solid var(--cl-fg);
}
}
.multiselect, .multiselect * {
all: initial;
}

View file

@ -1,9 +1,14 @@
<script setup lang="ts">
import { apiCall } from "../api";
import Multiselect from 'vue-multiselect';
async function doShit(){
apiCall("Firewall.GetForwardRules", {});
}
let value = $ref("");
let options = [{ name: 'Vue.js', code: 'vu' },
{ name: 'Javascript', code: 'js' },
{ name: 'Open Source', code: 'os' }];
</script>
@ -12,7 +17,8 @@ async function doShit(){
<PageHeader title="Dashboard">
<button @click="doShit">Example Buttons</button>
</PageHeader>
This is the main page, currently written in markdown because that's *pog*.
<multiselect v-model="value" placeholder="Search" label="name" track-by="code" :options="options" :multiple="true"></multiselect>
</div>
</template>
</template>
<style src="vue-multiselect/dist/vue-multiselect.css"></style>