Example #1
0
 close: () => {
   this.activeIndex = null
   this.cacheSelected = jsonClone(this.determineCodes)
   this.$modal.close()
 },
Example #2
0
 },
 name: 'hi-dropdown',
 props: {
   selections: Array,
   selected: {
     ...REQUIRED_ARRAY,
     validate: value => value.length
   },
   getSelections: Function
 },
 data() {
   return {
     classes,
     content: '',
     active: false,
     determineCodes: jsonClone(this.selected) || emptyArr(this.selections.length),
     cacheSelected: this.selected || emptyArr(this.selections.length),
     activeIndex: null
   }
 },
 computed: {
   hasFooter() {
     return this.selections.length > 1
   }
 },
 methods: {
   confirm() {
     this.activeIndex = null
     this.$modal.close()
     this.determineCodes = jsonClone(this.cacheSelected)
     const callbackSelected = this.determineCodes.map(