SelectExtSearchDialog.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <Dialog ref="dialog" v-model="dialogVisible">
  3. <template #header>
  4. <div class="row items-center">
  5. <div style="font-size: 110%">
  6. Расширенный поиск
  7. </div>
  8. </div>
  9. </template>
  10. <div ref="box" class="column q-mt-xs overflow-auto no-wrap" style="width: 200px; padding: 0px 10px 10px 10px;">
  11. </div>
  12. <template #footer>
  13. <q-btn class="q-px-md q-ml-sm" color="primary" dense no-caps @click="okClick">
  14. OK
  15. </q-btn>
  16. </template>
  17. </Dialog>
  18. </template>
  19. <script>
  20. //-----------------------------------------------------------------------------
  21. import vueComponent from '../../vueComponent.js';
  22. import Dialog from '../../share/Dialog.vue';
  23. const componentOptions = {
  24. components: {
  25. Dialog
  26. },
  27. watch: {
  28. modelValue(newValue) {
  29. this.dialogVisible = newValue;
  30. },
  31. dialogVisible(newValue) {
  32. this.$emit('update:modelValue', newValue);
  33. },
  34. }
  35. };
  36. class SelectExtSearchDialog {
  37. _options = componentOptions;
  38. _props = {
  39. modelValue: Boolean,
  40. extSearch: Object,
  41. };
  42. dialogVisible = false;
  43. created() {
  44. this.commit = this.$store.commit;
  45. }
  46. mounted() {
  47. }
  48. okClick() {
  49. this.dialogVisible = false;
  50. }
  51. }
  52. export default vueComponent(SelectExtSearchDialog);
  53. //-----------------------------------------------------------------------------
  54. </script>
  55. <style scoped>
  56. </style>