Repo for the search and displace core module including the interface to select files and search and displace operations to run on them.
https://searchanddisplace.com
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
<template>
|
|
<div id="flags" class="flags">
|
|
<div class="input-group">
|
|
<label for="global_match">
|
|
<input type="checkbox"
|
|
value="g"
|
|
v-model="flags"
|
|
id="global_match"> global match
|
|
</label>
|
|
</div>
|
|
|
|
<div class="input-group">
|
|
<label for="ignore_case">
|
|
<input type="checkbox"
|
|
value="i"
|
|
v-model="flags"
|
|
id="ignore_case"> case insensitive
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import {Component, Prop, Watch, Vue} from "vue-property-decorator";
|
|
|
|
@Component
|
|
export default class Flags extends Vue {
|
|
private flags: Array<string> = ['g'];
|
|
|
|
@Prop() public readonly value!: Array<string>;
|
|
|
|
@Watch('flags')
|
|
flagsChanged(update: Array<string>) {
|
|
this.$emit('input', update);
|
|
}
|
|
|
|
@Watch('value')
|
|
valueChanged(update: Array<string>) {
|
|
this.flags = update;
|
|
}
|
|
|
|
created() {
|
|
this.flags = this.value;
|
|
}
|
|
};
|
|
</script>
|