fix eslint

This commit is contained in:
cookfront 2017-02-23 10:29:53 +08:00
parent c4b59b4a7b
commit 4a8d2b1dc9
3 changed files with 6 additions and 5 deletions

View File

@ -154,7 +154,9 @@ export default {
var el = this.$refs.wrapper;
var dragState = {};
var velocityTranslate, prevTranslate, pickerItems;
var velocityTranslate;
var prevTranslate;
var pickerItems; // eslint-disable-line
draggable(el, {
start: (event) => {
@ -166,7 +168,7 @@ export default {
startTop: event.pageY,
startTranslateTop: translateUtil.getElementTranslate(el).top
};
pickerItems = el.querySelectorAll('.z-picker-item');
pickerItems = el.querySelectorAll('.z-picker-item'); // eslint-disable-line
},
drag: (event) => {

View File

@ -98,7 +98,6 @@ export default {
*/
getColumnValue(index) {
let column = this.getColumn(index);
console.log(column)
return column && column.values[column.valueIndex];
},

View File

@ -7,7 +7,7 @@ if (!Vue.prototype.$isServer) {
var engine;
var translate3d = false;
if (window.opera && Object.prototype.toString.call(opera) === '[object Opera]') {
if (window.opera && Object.prototype.toString.call(window.opera) === '[object Opera]') {
engine = 'presto';
} else if ('MozAppearance' in docStyle) {
engine = 'gecko';
@ -77,7 +77,7 @@ if (!Vue.prototype.$isServer) {
if (element === null || element.style === null) return;
var transformValue = element.style[transformProperty];
if (transformValue) {
transformValue = transformValue.replace(/translate\(\s*(-?\d+(\.?\d+?)?)px,\s*(-?\d+(\.\d+)?)px\)\s*translateZ\(0px\)/g, '');
element.style[transformProperty] = transformValue;