Map

computed: {
  pickerOption() {
	const pickertype = this.formItem.pickertype;
	const defaultOption = {
	  type: pickertype,
	}
	return {
	  date0:{
		type: 'datetime',
	  },
	  date24:{
		type: 'datetime',
	  },
	}[pickertype] || defaultOption;
  },
},

Math.min

  const currentPage = Math.min(Math.floor(index / pageSize) + 1, Object.keys(allBaseData).length);