diff --git a/src/components/range/index.tsx b/src/components/range/index.tsx index 23196025a..a79d9e18a 100644 --- a/src/components/range/index.tsx +++ b/src/components/range/index.tsx @@ -100,11 +100,10 @@ export default class AtRange extends AtComponent { } private updatePos(): void { - delayQuerySelector(this, '.at-range__container', 0) - .then(rect => { - this.width = Math.round(rect[0].width) - this.left = Math.round(rect[0].left) - }) + delayQuerySelector(this, '.at-range__container', 30).then(rect => { + this.width = Math.round(rect[0].width) + this.left = Math.round(rect[0].left) + }) } public componentWillReceiveProps(nextProps: AtRangeProps): void {