web: WIP Adding measure configuration forms.
This commit is contained in:
parent
ae5b9f39c9
commit
87446606c5
15
web/src/components/measure-config/MeasureConfigForm.vue
Normal file
15
web/src/components/measure-config/MeasureConfigForm.vue
Normal 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>
|
10
web/src/components/measure-config/measure-config-form.ts
Normal file
10
web/src/components/measure-config/measure-config-form.ts
Normal 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;
|
Loading…
x
Reference in New Issue
Block a user