dialogItem.vue 853 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <div class="dialogItem">
  3. <p v-text="model"></p>
  4. <p v-text="value"></p>
  5. </div>
  6. </template>
  7. <script type="text/ecmascript-6">
  8. export default {
  9. name: 'dialogItem', // 弹窗单挑显示数据组件
  10. props: {
  11. model: {
  12. type: String,
  13. required: true,
  14. default: '键'
  15. },
  16. value: {
  17. type: String,
  18. required: true,
  19. default: '值'
  20. }
  21. },
  22. data() {
  23. return {};
  24. },
  25. methods: {}
  26. };
  27. </script>
  28. <style lang="stylus" rel="stylesheet/stylus" scoped>
  29. @import '~assets/main.styl';
  30. .m-size {
  31. font-size: 14px;
  32. color: #409EFF;
  33. line-height: 44px;
  34. }
  35. .dialogItem:hover {
  36. background #f5f5f5
  37. }
  38. .dialogItem {
  39. height 42px
  40. flex-x(flex-start)
  41. bor-top(#ddd)
  42. p {
  43. word(14px, black)
  44. flex: 1
  45. }
  46. }
  47. </style>