salix/modules/item/front/fixed-price-search-panel/index.js

20 lines
430 B
JavaScript
Raw Normal View History

2021-01-18 13:16:39 +00:00
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
});