From 707b43ca15d380db9b6a72c3a63abc2d7b0efc83 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期一, 20 十二月 2021 12:16:43 +0800
Subject: [PATCH] update: 增加 userReviewsRecord 標題名稱

---
 PAMapp/components/AddressPicker.vue |   46 ++++++++++++++++++++++++++++------------------
 1 files changed, 28 insertions(+), 18 deletions(-)

diff --git a/PAMapp/components/AddressPicker.vue b/PAMapp/components/AddressPicker.vue
index a184983..e6ba650 100644
--- a/PAMapp/components/AddressPicker.vue
+++ b/PAMapp/components/AddressPicker.vue
@@ -1,28 +1,32 @@
 <template>
     <div class="text--center">
-        <div class="subTitle mb-10">������</div>
-        <el-input
-            type="text"
-            class="p mt-10"
-            v-model="keyWord"
-            @change="searchDistrict"
-            placeholder="隢撓���摮�"
-        ></el-input>
-       <Ui-ScrollPicker
-            :options="filterOptions"
-            :initValue="district"
-            @change="change"
-        ></Ui-ScrollPicker>
+      <div class="subTitle mb-10">�����</div>
+      <el-input
+          type="text"
+          class="p mt-10 cursor--pointer "
+          tabindex="-1"
+          v-model="keyWord"
+          @change="searchDistrict"
+          placeholder="隢撓���摮�"
+      ></el-input>
+      <Ui-ScrollPicker
+          :options="filterOptions"
+          :initValue="district"
+          @change="selectDistrict"
+      ></Ui-ScrollPicker>
+      <div class="text--center mt-10">
+          <el-button type="primary" @click="confirm">蝣箄��</el-button>
+      </div>
     </div>
 </template>
 
 <script lang="ts">
-import { Vue, Component } from 'nuxt-property-decorator';
+import { Vue, Component, Emit } from 'nuxt-property-decorator';
 
 @Component
 export default class AddressPicker extends Vue {
 
-    options = ['�����', '�����', '�����', '獢�腦', '�蝡孵��', '�蝡寧腦', '���腦', '�銝剖��', '敶啣�腦', '���腦', '���腦', '��儔撣�', '��儔蝮�', '�����', '擃���', '撅蝮�', '��蝮�', '��蝮�', '摰蝮�', '瞉�腦', '���蝮�', '��瘙腦'];
+    options = ['�����', '�����', '�����', '獢���', '�蝡孵��', '�蝡寧腦', '���腦', '�銝剖��', '敶啣�腦', '���腦', '���腦', '��儔撣�', '��儔蝮�', '�����', '擃���', '撅蝮�', '��蝮�', '��蝮�', '摰蝮�', '瞉�腦', '���蝮�', '��瘙腦'];
     keyWord = '';
     filterOptions: string[] = [];
     district = '�����';
@@ -35,9 +39,15 @@
         this.filterOptions = this.options.filter(e => e.match(this.keyWord));
     }
 
-    change(value: string) {
-        console.log('change', value)
+    selectDistrict(value: string): void {
+        this.district = value;
     }
+
+    @Emit('confirm')
+    confirm() {
+        return this.district;
+    }
+
 }
 </script>
 
@@ -45,4 +55,4 @@
     .cus-input {
         font-size: 20px;
     }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.8.0