mirror of https://github.com/rancher/dashboard.git
28 lines
630 B
Vue
28 lines
630 B
Vue
<script>
|
|
import LabeledSelect from '@/components/form/LabeledSelect';
|
|
import Question from './Question';
|
|
|
|
export default {
|
|
components: { LabeledSelect },
|
|
mixins: [Question]
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div class="row">
|
|
<div class="col span-6">
|
|
<LabeledSelect
|
|
:label="displayLabel"
|
|
:options="question.options"
|
|
:placeholder="question.description"
|
|
:required="question.required"
|
|
:value="value"
|
|
@input="$emit('input', $event)"
|
|
/>
|
|
</div>
|
|
<div v-if="showDescription" class="col span-6 mt-10">
|
|
{{ question.description }}
|
|
</div>
|
|
</div>
|
|
</template>
|