20 lines
430 B
JavaScript
20 lines
430 B
JavaScript
|
import ngModule from '../module';
|
||
|
import SearchPanel from 'core/components/searchbar/search-panel';
|
||
|
|
||
|
class Controller extends SearchPanel {
|
||
|
get filter() {
|
||
|
return this.$.filter;
|
||
|
}
|
||
|
|
||
|
set filter(value = {}) {
|
||
|
if (!value.tags) value.tags = [{}];
|
||
|
|
||
|
this.$.filter = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
ngModule.vnComponent('vnFixedPriceSearchPanel', {
|
||
|
template: require('./index.html'),
|
||
|
controller: Controller
|
||
|
});
|