master
parent
3effab8e99
commit
f9f0814a49
@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
<view class="range-slider" catchtap style="width:calc({{contentWidth}} - 40px);height:{{height}}px">
|
||||
<view class="range-bar" catchtap style="width:calc({{width}}rpx - 20rpx);height:{{8}}rpx">
|
||||
<view class="range-bar-bg" style="background-color:{{backgroundColor}};margin-left:10px"></view>
|
||||
<view class="range-bar-progress" style="margin-left:{{progressBarLeft}}rpx;width:{{progressBarWidth}}rpx;background-color:{{activeColor}}"></view>
|
||||
</view>
|
||||
<view class="block" style="margin-left:{{minBlockLeft}}rpx" catchtouchstart="_onBlockTouchStart" catchtouchmove="_onBlockTouchMove" catchtouchend="_onBlockTouchEnd" data-left="{{minBlockLeft}}" data-tag="minBlock">
|
||||
<slot name="minBlock"></slot>
|
||||
</view>
|
||||
<view class="block" style="margin-left:{{maxBlockLeft}}rpx" catchtouchstart="_onBlockTouchStart" catchtouchmove="_onBlockTouchMove" catchtouchend="_onBlockTouchEnd" data-left="{{maxBlockLeft}}" data-tag="maxBlock">
|
||||
<slot name="maxBlock"></slot>
|
||||
</view>
|
||||
</view>
|
||||
@ -0,0 +1,46 @@
|
||||
.range-slider {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.range-bar {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.range-bar {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translate(0, -50%);
|
||||
border-radius: 10000rpx;
|
||||
}
|
||||
|
||||
.range-bar-bg {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 10000rpx;
|
||||
}
|
||||
|
||||
.range-bar-progress {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: blueviolet;
|
||||
}
|
||||
|
||||
.block {
|
||||
position: absolute;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
top: 50%;
|
||||
border-radius: 50%;
|
||||
transform: translate(0, -50%);
|
||||
background-image: url('https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/home_age.svg');
|
||||
background-color: #fff;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
/* background-color: var(--color-ysd); */
|
||||
}
|
||||
.block image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,9 @@
|
||||
{
|
||||
"navigationBarBackgroundColor":"#0dcc91",
|
||||
"navigationBarTextStyle":"white",
|
||||
"usingComponents": {
|
||||
"range-slider": "../../components/range/range-slider"
|
||||
},
|
||||
"navigationBarBackgroundColor": "#0dcc91",
|
||||
"navigationBarTextStyle": "white",
|
||||
"backgroundColor": "#FFFFFF",
|
||||
"navigationBarTitleText": "一才工作"
|
||||
}
|
||||
Loading…
Reference in New Issue