소스 검색

:recycle: fixing up context menu button

tags/0.0.2^2
j 3 년 전
부모
커밋
b1da0d83cf
3개의 변경된 파일16개의 추가작업 그리고 21개의 파일을 삭제
  1. 9
    10
      frontend/src/components/PairsList.vue
  2. 1
    6
      frontend/src/components/ProfileCardList.vue
  3. 6
    5
      frontend/src/views/PairsView.vue

+ 9
- 10
frontend/src/components/PairsList.vue 파일 보기

15
                 .idCard
15
                 .idCard
16
                     h3 {{ pair.profile.name }} {{ pair.profile.pid }}
16
                     h3 {{ pair.profile.name }} {{ pair.profile.pid }}
17
                     p registered nurse
17
                     p registered nurse
18
-        
19
-            w-menu(shadow v-model="showMenu")
18
+
19
+            w-menu(align-left arrow shadow v-model='showMenu')
20
                 template(#activator)
20
                 template(#activator)
21
-                    w-button.mr3(@click="showMenu = true") menu
22
-                w-flex.pl10.mt4(wrap justify-end)
23
-                    w-button.mr1(text color="green" @click="showMenu = false") Chat
24
-                    w-button.mr1(text color="green" @click="showMenu = false") Calendar
25
-                    w-button(text color="green" @click="showMenu = false") cancel
21
+                    w-button.mr3(@click='showMenu = !showMenu') menu
22
+                w-flex.pl10.mt4(justify-end wrap)
23
+                    w-button.mr1(@click='showMenu = false' color='green' text) Chat
24
+                    w-button.mr1(@click='showMenu = false' color='green' text) Calendar
25
+                    w-button(@click='showMenu = false' color='green' text) cancel
26
 
26
 
27
     p(v-else) No {{ tabName }} profiles.
27
     p(v-else) No {{ tabName }} profiles.
28
 </template>
28
 </template>
29
 
29
 
30
 <script setup>
30
 <script setup>
31
+import { ref } from 'vue'
31
 const props = defineProps({
32
 const props = defineProps({
32
     pairs: {
33
     pairs: {
33
         type: [Object, Array],
34
         type: [Object, Array],
38
         default: 'paired',
39
         default: 'paired',
39
     },
40
     },
40
 })
41
 })
41
-
42
-
43
-
42
+const showMenu = ref(false)
44
 </script>
43
 </script>
45
 
44
 
46
 <style lang="sass">
45
 <style lang="sass">

+ 1
- 6
frontend/src/components/ProfileCardList.vue 파일 보기

1
 <template lang="pug">
1
 <template lang="pug">
2
 section.profile-card-list.xs12.w-flex.column
2
 section.profile-card-list.xs12.w-flex.column
3
     header.xs12.w-flex 
3
     header.xs12.w-flex 
4
-<<<<<<< HEAD
5
-        w-select(:items='["one", "two", "three"]' outline) Label
6
-
7
-=======
8
         //- w-select(:items="['one', 'two', 'three']" outline) Label
4
         //- w-select(:items="['one', 'two', 'three']" outline) Label
9
-    
10
->>>>>>> 8afdd6e (:sparkles: pairs card default style implemented)
5
+
11
     article
6
     article
12
         ProfileCard.match-layout(
7
         ProfileCard.match-layout(
13
             :aspects='aspects'
8
             :aspects='aspects'

+ 6
- 5
frontend/src/views/PairsView.vue 파일 보기

89
     display: flex
89
     display: flex
90
     justify-content: space-between
90
     justify-content: space-between
91
     margin: 0 25px
91
     margin: 0 25px
92
-    > div
93
-        width: 100%
94
-        text-align: center
95
-        font-size: 16px
96
-        line-height: 40px
92
+
93
+.select--matches > div
94
+    width: 100%
95
+    text-align: center
96
+    font-size: 16px
97
+    line-height: 40px
97
 .active
98
 .active
98
     border-bottom: 3px solid #f2cd5c
99
     border-bottom: 3px solid #f2cd5c
99
     color: #f2cd5c
100
     color: #f2cd5c

Loading…
취소
저장