- {typeof formatTooltip === 'function'
- ? formatTooltip(this.handleValue1)
- : this.handleValue1}
-
- ) : null
+ default: () => (
+ {
+ if (el) {
+ this.handleRefs[index] = el
+ }
+ }) as () => void
+ }
+ class={`${mergedClsPrefix}-slider-handle`}
+ tabindex={this.mergedDisabled ? -1 : 0}
+ style={this.getHandleStyle(value, index)}
+ onFocus={() => this.handleHandleFocus(index)}
+ onBlur={() => this.handleHandleBlur(index)}
+ onMouseenter={() =>
+ this.handleHandleMouseEnter(index)
+ }
+ onMouseleave={() =>
+ this.handleHandleMouseLeave(index)
+ }
+ />
+ )
}}
-
- )
- }}
-
- )
- ]
- }}
-
- {this.tooltip && this.range ? (
-
- {{
- default: () => [
-
- {{
- default: () => (
-
- )
- }}
- ,
-
- {{
- default: () => (
-
- {{
- default: () =>
- this.mergedShowTooltip2 ? (
- ,
+ this.tooltip && (
+ {
+ if (inst) {
+ this.followerRefs[index] = inst
+ }
+ }) as () => void
+ }
+ show={showTooltip}
+ to={this.adjustedTo}
+ teleportDisabled={
+ this.adjustedTo === useAdjustedTo.tdkey
+ }
+ placement={this.mergedPlacement}
+ containerClass={this.namespace}
+ >
+ {{
+ default: () => (
+
- {typeof formatTooltip === 'function'
- ? formatTooltip(this.handleValue2)
- : this.handleValue2}
-
- ) : null
- }}
-
- )
+ {{
+ default: () =>
+ showTooltip ? (
+
+ {typeof formatTooltip === 'function'
+ ? formatTooltip(value)
+ : value}
+
+ ) : null
+ }}
+
+ )
+ }}
+
+ )
+ ]
}}
-
- ]
- }}
-
- ) : null}
- {this.marks ? (
-
- {this.markInfos.map((mark) => (
-
- {mark.label}
-
- ))}
+
+ )
+ })}
- ) : null}
+ {this.marks ? (
+
+ {this.markInfos.map(mark => (
+
+ {mark.label}
+
+ ))}
+
+ ) : null}
+