group-item.html 1.1 KB

1234567891011121314151617
  1. <div>
  2. <div v-if="title !== ''" :class="['groupItem', !unfolded && 'unfolded']" @click="handleFoldClick">
  3. <div class="div-no-wrap" style="padding: 8px;">
  4. <img :src="icon" :style="imageStyle" class='img[src=""],img:not([src]){opacity: 0;}"' />
  5. <div class="flex-1 group-title"> {{ title }} </div>
  6. <ui-icon value="arrow-triangle" :class="[!unfolded && 'right']" style="font-size: 16px;"></ui-icon>
  7. </div>
  8. <div id="service-item" style="padding: 0 5px;" v-show="unfolded" @click="$event.stopPropagation()">
  9. <service-item v-for="service in group.services" style="margin-top: 5px;" @item-click="handleItemClick"
  10. @mouseenter.self="isHover = false" @mouseleave.self="isHover = true" :key="service.service_id" :service="service" />
  11. </div>
  12. <div v-show="!unfolded" class="group-folded-tips" v-html="hideTips"></div>
  13. </div>
  14. <div v-else>
  15. <service-item style="margin-top: 5px;" v-for="service in group.services" @item-click="handleItemClick" :key="service.service_id" :service="service" />
  16. </div>
  17. </div>