dialog-Search.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <dialog-base ref="baseDialog" title="搜索">
  3. <view class="list-container">
  4. <input class="input-control" v-model="keywork" placeholder='批次号或产品描述' />
  5. <view class="login-btn uni-row" @click=""><text class="label">确认</text></view>
  6. </view>
  7. </dialog-base>
  8. </template>
  9. <script setup>
  10. import {
  11. ref,
  12. getCurrentInstance
  13. } from 'vue'
  14. import {
  15. defineProps
  16. } from 'vue'
  17. const baseDialog = ref(null)
  18. const keywork = ref("");
  19. function open() {
  20. resetPage();
  21. baseDialog.value.open();
  22. init();
  23. }
  24. function resetPage() {
  25. }
  26. defineExpose({
  27. open
  28. })
  29. function close() {
  30. baseDialog.value.close()
  31. }
  32. function init() {
  33. }
  34. </script>
  35. <style lang="scss">
  36. .dialog-body {
  37. .msg {
  38. height: 300rpx;
  39. justify-content: center;
  40. align-items: center;
  41. }
  42. .btn-container {
  43. margin-top: 32rpx;
  44. .btn {
  45. flex: 1;
  46. margin: 0 10rpx;
  47. }
  48. }
  49. .input-control {
  50. border: 1px solid #666666;
  51. padding: 16rpx 24rpx;
  52. font-size: 32rpx;
  53. margin-top: 40rpx;
  54. }
  55. .login-btn {
  56. // background-color: #999999;
  57. background-color: #1684fc;
  58. margin-top: 32rpx;
  59. justify-content: center;
  60. padding: 16rpx 0;
  61. .label {
  62. font-size: 40rpx;
  63. color: #FFFFFF;
  64. }
  65. }
  66. }
  67. </style>