style1.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template id="merchant-info-style1">
  2. <div>
  3. <diy-store-info
  4. :list="merchData.merchantList"
  5. :component-style="componentStyle"
  6. :computed-style="computedStyle"
  7. :merch-data="merchData"
  8. :btn-style="btnStyle"
  9. :border-bottom="true"
  10. ></diy-store-info>
  11. </div>
  12. </template>
  13. <script>
  14. Vue.component('merchant-info-style1', {
  15. name: "merchant-info-style1",
  16. props: {
  17. activeItem: {
  18. type: Object,
  19. default () {
  20. return {}
  21. }
  22. },
  23. btnStyle: {
  24. type: Object,
  25. default: () => {}
  26. },
  27. componentStyle: {
  28. type: Object,
  29. default: () => {}
  30. },
  31. computedStyle: {
  32. type: Object,
  33. default: () => {}
  34. },
  35. merchData: {
  36. type: Object,
  37. default: () => {}
  38. }
  39. },
  40. template: '#merchant-info-style1',
  41. data() {
  42. return {
  43. }
  44. },
  45. computed: {
  46. },
  47. methods: {
  48. updataCheck(name) {
  49. let content = this.activeItem.data && this.activeItem.data.content
  50. if (content && content.length >= 0) {
  51. return content.includes(name)
  52. } else {
  53. return true
  54. }
  55. },
  56. }
  57. });
  58. </script>
  59. <style>
  60. /* .diy-store-info {
  61. border-bottom: 1px solid red;
  62. }
  63. .diy-store-info:last-child {
  64. border-bottom: none !important;
  65. margin-bottom: 0 !important;
  66. } */
  67. </style>