remember.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view v-if="show" class="remeber_info" :style="{top:topPosition+ 'px',left:leftPosition+ 'px'}">
  3. <u-cell-group :customStyle="{'font-size':'12px!important'}">
  4. <u-cell class="remeber_list" v-for="item in list" @click="toInfo(item)" :title="item.loginName" >
  5. </u-cell>
  6. </u-cell-group>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. data() {
  12. return {
  13. dataList: [],
  14. }
  15. },
  16. props: {
  17. show: {
  18. type: Boolean,
  19. default: false
  20. },
  21. topPosition: {
  22. type: Number,
  23. default: 0
  24. },
  25. leftPosition: {
  26. type: Number,
  27. default: 0
  28. },
  29. list: {
  30. type: Array,
  31. default: () => {
  32. return [{
  33. loginName: '',
  34. password: ''
  35. }]
  36. }
  37. },
  38. },
  39. methods: {
  40. toInfo(item) {
  41. this.$emit('getAccount', item)
  42. },
  43. }
  44. }
  45. </script>
  46. <style>
  47. .remeber_info {
  48. width: 100%;
  49. position: absolute;
  50. top: 0;
  51. left: 0;
  52. z-index: 10;
  53. background-color: #fefefe;
  54. max-height: 20vh;
  55. overflow: auto;
  56. }
  57. .remeber_list * {
  58. padding: 0px !important;
  59. }
  60. </style>