Comparing version 2.2.12 to 2.2.13
@@ -307,2 +307,3 @@ module.exports = | ||
"click": function($event) { | ||
$event.preventDefault(); | ||
$event.stopPropagation(); | ||
@@ -326,2 +327,3 @@ btn.handler && btn.handler(), _vm.swipeMove() | ||
"click": function($event) { | ||
$event.preventDefault(); | ||
$event.stopPropagation(); | ||
@@ -328,0 +330,0 @@ btn.handler && btn.handler(), _vm.swipeMove() |
@@ -208,2 +208,3 @@ module.exports = | ||
attrs: { | ||
"closeOnClickModal": _vm.closeOnClickModal, | ||
"position": "bottom" | ||
@@ -431,2 +432,6 @@ }, | ||
}, | ||
closeOnClickModal: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
value: null | ||
@@ -522,4 +527,6 @@ }, | ||
} | ||
this.currentValue = this.getValue(values); | ||
this.handleValueChange(); | ||
if (values.length !== 0) { | ||
this.currentValue = this.getValue(values); | ||
this.handleValueChange(); | ||
} | ||
}, | ||
@@ -727,2 +734,6 @@ | ||
this.generateSlots(); | ||
}, | ||
visible: function visible(val) { | ||
this.$emit('visible-change', val); | ||
} | ||
@@ -729,0 +740,0 @@ }, |
@@ -336,3 +336,3 @@ module.exports = | ||
style: ({ | ||
'transform': 'translate3d(0, ' + _vm.translate + 'px, 0)' | ||
'transform': _vm.transform | ||
}) | ||
@@ -555,2 +555,8 @@ }, [_vm._t("top", [(_vm.topMethod) ? _c('div', { | ||
computed: { | ||
transform: function transform() { | ||
return this.translate === 0 ? null : 'translate3d(0, ' + this.translate + 'px, 0)'; | ||
} | ||
}, | ||
watch: { | ||
@@ -557,0 +563,0 @@ topStatus: function topStatus(val) { |
@@ -1134,12 +1134,2 @@ module.exports = | ||
this.$on('slotValueChange', this.slotValueChange); | ||
var slots = this.slots || []; | ||
var values = []; | ||
var valueIndexCount = 0; | ||
slots.forEach(function (slot) { | ||
if (!slot.divider) { | ||
slot.valueIndex = valueIndexCount++; | ||
values[slot.valueIndex] = (slot.values || [])[slot.defaultIndex || 0]; | ||
} | ||
}); | ||
this.values = values; | ||
this.slotValueChange(); | ||
@@ -1173,3 +1163,3 @@ }, | ||
if (slot) { | ||
return slot.value; | ||
return slot.currentValue; | ||
} | ||
@@ -1219,14 +1209,10 @@ return null; | ||
var values = []; | ||
slots.forEach(function(slot) { | ||
if (!slot.divider) values.push(slot.value); | ||
var valueIndexCount = 0; | ||
slots.forEach(function (slot) { | ||
if (!slot.divider) { | ||
slot.valueIndex = valueIndexCount++; | ||
values[slot.valueIndex] = (slot.values || [])[slot.defaultIndex || 0]; | ||
} | ||
}); | ||
return values; | ||
}, | ||
set: function set(values) { | ||
var slots = this.slots || []; | ||
var valueIndexCount = 0; | ||
slots.forEach(function(slot) { | ||
if (!slot.divider) slot.value = values[valueIndexCount++]; | ||
}); | ||
} | ||
@@ -1233,0 +1219,0 @@ }, |
{ | ||
"name": "mint-ui", | ||
"version": "2.2.12", | ||
"version": "2.2.13", | ||
"description": "Mobile UI elements for vue.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -37,3 +37,3 @@ import Header from '../packages/header'; | ||
const version = '2.2.12'; | ||
const version = '2.2.13'; | ||
const install = function(Vue, config = {}) { | ||
@@ -40,0 +40,0 @@ if (install.installed) return; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1189197
30068
1