fix(Picker): revert add @picker-option-height var (#6663)

* fix(Picker): revert add @picker-option-height var

* fix: remove unused var
This commit is contained in:
neverland
2020-07-01 13:30:20 +08:00
committed by GitHub
parent 2816c0ff8a
commit 5f0910179a
12 changed files with 717 additions and 722 deletions
+3 -6
View File
@@ -3,7 +3,6 @@ import { createNamespace, isObject } from '../utils';
import { range } from '../utils/format/number';
import { preventDefault } from '../utils/dom/event';
import { TouchMixin } from '../mixins/touch';
import { DEFAULT_ITEM_HEIGHT } from './shared';
const DEFAULT_DURATION = 200;
@@ -256,11 +255,9 @@ export default createComponent({
},
genOptions() {
const optionStyle = {};
if (this.itemHeight !== DEFAULT_ITEM_HEIGHT) {
optionStyle.height = `${this.itemHeight}px`;
}
const optionStyle = {
height: `${this.itemHeight}px`,
};
return this.options.map((option, index) => {
const text = this.getOptionText(option);