我正在使用 ElasticUI:https ://github.com/YousefED/ElasticUI
<ul class="nav nav-list" eui-aggregation="ejs.DateHistogramAggregation('dates').field('date_taken').timeZone(2).interval('1y').minDocCount(2)" eui-filter-self="true" >
<div eui-filter="ejs.RangeFilter('date_taken').gte(verticalSlider4.minValue)" ng-model="filter.enabled" eui-enabled="verticalSlider4.minValue" ></div>
<div eui-filter="ejs.RangeFilter('date_taken').lte(verticalSlider4.maxValue)" ng-model="filter.enabled" eui-enabled="verticalSlider4.maxValue" ></div>
</ul>
<rzslider rz-slider-model="verticalSlider4.minValue" rz-slider-high="verticalSlider4.maxValue"
rz-slider-options="verticalSlider4.options" ></rzslider>
在控制器中,如果我使用此范围 1,它工作正常。
1.
$scope.verticalSlider4 = {
minValue: 1990,
maxValue: 2016,
options: {
floor: 1990,
ceil: 2016,
vertical: true,
showTicksValues: true
}
};
但是对于动态结果,如果我使用范围 2 它不起作用
2.
$scope.verticalSlider4 = {
minValue: verticalSlider4.minValue
maxValue: verticalSlider4.maxValue,
options: {
floor: verticalSlider4.minValue,
ceil: verticalSlider4.maxValue,
vertical: true,
showTicksValues: true
}
};
请给我一个建议。