Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1192,18 +1192,14 @@ mixin TDCapsuleRectAdjustment implements TDCapsuleRectThemeData {
}

// 胶囊类型适配样式边距 trackHeight / 2,默认是 12
// 统一使用固定边距,让 adjustThumbCenter 来处理滑块位置限制
extraPadding({trackHeight = 24}) {
if (hasDivisions()) {
return 0;
}
return trackHeight / 2;
}

// 胶囊类型数值计算修正边距 trackHeight / 2,默认是 12
// 统一不使用额外 padding,位置计算由 adjustThumbCenter 处理
trackPadding({trackHeight = 24}) {
if (hasDivisions()) {
return trackHeight / 2;
}
return 0;
}
}
Expand Down