web: WIP Adding measure configuration forms.

This commit is contained in:
Jonathan Bernard 2019-04-10 10:56:16 -05:00
parent ae5b9f39c9
commit 87446606c5
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<template>
<fieldset>
<div>
<label for=measureType>Type</label>
<select name=measureType v-model=config.type>
<option value=simple>Simple</option>
<option value=list>List</option>
</select>
</div>
<div><input type=checkbox v-model=config.isVisible>Show by default.</input></div>
<!--<ListMeasureConfigForm :config=config v-show="config.type === 'list'"/>-->
</fieldset>
</template>
<script lang=ts src=./measure-config-form.ts></script>
<style lang=scss src=./measure-config-form.scss></style>

View File

@ -0,0 +1,10 @@
import { Component, Prop, Vue, Watch } from 'vue-property-decorator';
import { logService } from '@/services/logging';
import { Measure, MeasureConfig, MeasureType } from '@/models';
@Component({})
export class MeasureConfigForm extends Vue {
@Prop({}) public config!: MeasureConfig;
}
export default MeasureConfigForm;