antd-mini
Advanced tools
Comparing version 0.0.6-beta.2 to 0.0.6
@@ -74,3 +74,3 @@ "use strict"; | ||
}); | ||
this.cOnChange(this.getInputValue(value), this.getDataSet()); | ||
this.cOnChange(this.getInputValue(value)); | ||
(_b = (_a = this.props).onBlur) === null || _b === void 0 ? void 0 : _b.call(_a, this.getInputValue(value)); | ||
@@ -85,3 +85,3 @@ } | ||
}); | ||
this.cOnChange(this.getInputValue(value), this.getDataSet()); | ||
this.cOnChange(this.getInputValue(value)); | ||
}, | ||
@@ -112,3 +112,3 @@ getInputValue: function (inputValue) { | ||
var minusTemp = (0, utils_1.downStep)(cValue, step, precision); | ||
this.cOnChange(Math.max(minusTemp, min), this.getDataSet()); | ||
this.cOnChange(Math.max(minusTemp, min)); | ||
} | ||
@@ -118,16 +118,7 @@ else if (mode === 'add') { | ||
var addTemp = (0, utils_1.upStep)(cValue, step, precision); | ||
this.cOnChange(Math.min(addTemp, max), this.getDataSet()); | ||
this.cOnChange(Math.min(addTemp, max)); | ||
} | ||
} | ||
}, | ||
getDataSet: function () { | ||
return Object.entries(this.props).reduce(function (prev, cur) { | ||
var key = cur[0], val = cur[1]; | ||
if (key.startsWith('data-')) { | ||
prev[key.replace('data-', '')] = val; | ||
} | ||
return prev; | ||
}, {}); | ||
} | ||
}, | ||
}); |
@@ -37,16 +37,4 @@ import { IBaseFormItemProps } from '../_base'; | ||
*/ | ||
inputWidth?: string; | ||
/** | ||
* @description 输入框宽度 | ||
*/ | ||
onFocus?: ( e: number ) => void | ||
/** | ||
* @description 输入框宽度 | ||
*/ | ||
onBlur?: ( e: number ) => void | ||
/** | ||
* @description 输入框宽度 | ||
*/ | ||
onChange?: ( e: number, dataSet: Record<string, any> ) => void | ||
inputWidth?: string; | ||
} | ||
export declare const StepperDefaultProps: Partial<IStepperProps>; |
{ | ||
"name": "antd-mini", | ||
"version": "0.0.6-beta.2", | ||
"version": "0.0.6", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "dev": "minidev dev --less --typescript --no-source-map", |
Sorry, the diff of this file is not supported yet
351876
317
6303