mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	* Use installation config in widget * Add configuration for installation in UI * Add config for mailer Co-authored-by: Sojan <sojan@pepalo.com>
		
			
				
	
	
		
			59 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <transition-group
 | 
						|
    name="wizard-items"
 | 
						|
    tag="div"
 | 
						|
    class="wizard-box flex-child-shrink"
 | 
						|
    :class="classObject"
 | 
						|
  >
 | 
						|
    <div
 | 
						|
      v-for="item in items"
 | 
						|
      :key="item.route"
 | 
						|
      class="item"
 | 
						|
      :class="{ active: isActive(item), over: isOver(item) }"
 | 
						|
    >
 | 
						|
      <h3>
 | 
						|
        {{ item.title }}
 | 
						|
        <span v-if="isOver(item)" class="completed">
 | 
						|
          <i class="ion-checkmark"></i>
 | 
						|
        </span>
 | 
						|
      </h3>
 | 
						|
      <span class="step">
 | 
						|
        {{ items.indexOf(item) + 1 }}
 | 
						|
      </span>
 | 
						|
      <p>{{ item.body }}</p>
 | 
						|
    </div>
 | 
						|
  </transition-group>
 | 
						|
</template>
 | 
						|
 | 
						|
<script>
 | 
						|
/* eslint no-console: 0 */
 | 
						|
import globalConfigMixin from 'shared/mixins/globalConfigMixin';
 | 
						|
 | 
						|
export default {
 | 
						|
  mixins: [globalConfigMixin],
 | 
						|
  props: {
 | 
						|
    isFullwidth: Boolean,
 | 
						|
    items: {
 | 
						|
      type: Array,
 | 
						|
      default: () => [],
 | 
						|
    },
 | 
						|
  },
 | 
						|
  computed: {
 | 
						|
    classObject() {
 | 
						|
      return 'full-width';
 | 
						|
    },
 | 
						|
    activeIndex() {
 | 
						|
      return this.items.findIndex(i => i.route === this.$route.name);
 | 
						|
    },
 | 
						|
  },
 | 
						|
  methods: {
 | 
						|
    isActive(item) {
 | 
						|
      return this.items.indexOf(item) === this.activeIndex;
 | 
						|
    },
 | 
						|
    isOver(item) {
 | 
						|
      return this.items.indexOf(item) < this.activeIndex;
 | 
						|
    },
 | 
						|
  },
 | 
						|
};
 | 
						|
</script>
 |