arreglos en drop-down

This commit is contained in:
Dani Herrero 2017-06-15 08:26:03 +02:00
parent 17c38c9b4b
commit f346e5e83c
5 changed files with 8 additions and 26 deletions

View File

@ -1,3 +1,3 @@
<ul class="dropdown" ng-show="dd.show">
<li ng-repeat="item in dd.items track by $index" ng-click="dd.selected = item">{{item.name}}</li>
<ul class="dropdown" ng-if="dd.show">
<li ng-repeat="item in ::dd.items track by $index" ng-click="dd.selected = item">{{::item.name}}</li>
</ul>

View File

@ -4,7 +4,6 @@ import './style.scss';
export default class DropDown {
constructor($element, $window) {
this.$element = $element;
this.$window = $window;
}
$onChanges(changesObj) {
if (changesObj.show && changesObj.top && changesObj.top.currentValue) {
@ -12,7 +11,7 @@ export default class DropDown {
}
}
}
DropDown.$inject = ['$element', '$window'];
DropDown.$inject = ['$element'];
module.component('vnDropDown', {
template: require('./drop-down.html'),

View File

@ -37,6 +37,7 @@ export default class IconMenu {
this.$element.bind('mouseover', e => {
this.$timeout(() => {
this.showDropDown = true;
if (e.target.nodeName === 'BUTTON')
this.pos = e.target.getBoundingClientRect();
});
});

View File

@ -3,13 +3,9 @@
<vn-vertical pad-medium>
<vn-horizontal vn-one>
<vn-title vn-one><span translate>Localizador</span></vn-title>
<vn-searchbar vn-auto
index="index"
on-search="$ctrl.onSearch(index)"
advanced="true"
search="$ctrl.filter.q"
popover="vn-production-filter-panel">
</vn-searchbar>
<vn-one vn-horizontal>
</vn-one>
<vn-one vn-horizontal>
<vn-one></vn-one>
<vn-autocomplete vn-one

View File

@ -1,14 +0,0 @@
<vn-vertical>
<vn-horizontal class='list list-header'>
<vn-two margin-medium-right>Población</vn-two>
<vn-one margin-medium-right>Provincia</vn-one>
<vn-one margin-medium-right>ID_Cliente</vn-one>
<vn-two>Comercial</vn-two>
</vn-horizontal>
<vn-horizontal class='list list-body'>
<vn-two margin-medium-right>{{::ticket.city | ucwords}}</vn-two>
<vn-one margin-medium-right>{{::ticket.province | ucwords}}</vn-one>
<vn-one margin-medium-right>{{::ticket.client}}</vn-one>
<vn-two>{{::ticket.salePerson | ucwords}}</vn-two>
</vn-horizontal>
</vn-vertical>