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

  1. <template>
  2. <div id="flags" class="flags">
  3. <div class="input-group">
  4. <label for="global_match">
  5. <input type="checkbox"
  6. value="g"
  7. v-model="flags"
  8. id="global_match"> global match
  9. </label>
  10. </div>
  11. <div class="input-group">
  12. <label for="ignore_case">
  13. <input type="checkbox"
  14. value="i"
  15. v-model="flags"
  16. id="ignore_case"> case insensitive
  17. </label>
  18. </div>
  19. </div>
  20. </template>
  21. <script lang="ts">
  22. import {Component, Prop, Watch, Vue} from "vue-property-decorator";
  23. @Component
  24. export default class Flags extends Vue {
  25. private flags: Array<string> = ['g'];
  26. @Prop() public readonly value!: Array<string>;
  27. @Watch('flags')
  28. flagsChanged(update: Array<string>) {
  29. this.$emit('input', update);
  30. }
  31. @Watch('value')
  32. valueChanged(update: Array<string>) {
  33. this.flags = update;
  34. }
  35. created() {
  36. this.flags = this.value;
  37. }
  38. };
  39. </script>