arreglos en drop-down
This commit is contained in:
parent
17c38c9b4b
commit
f346e5e83c
|
@ -1,3 +1,3 @@
|
||||||
<ul class="dropdown" ng-show="dd.show">
|
<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>
|
<li ng-repeat="item in ::dd.items track by $index" ng-click="dd.selected = item">{{::item.name}}</li>
|
||||||
</ul>
|
</ul>
|
|
@ -4,7 +4,6 @@ import './style.scss';
|
||||||
export default class DropDown {
|
export default class DropDown {
|
||||||
constructor($element, $window) {
|
constructor($element, $window) {
|
||||||
this.$element = $element;
|
this.$element = $element;
|
||||||
this.$window = $window;
|
|
||||||
}
|
}
|
||||||
$onChanges(changesObj) {
|
$onChanges(changesObj) {
|
||||||
if (changesObj.show && changesObj.top && changesObj.top.currentValue) {
|
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', {
|
module.component('vnDropDown', {
|
||||||
template: require('./drop-down.html'),
|
template: require('./drop-down.html'),
|
||||||
|
|
|
@ -37,6 +37,7 @@ export default class IconMenu {
|
||||||
this.$element.bind('mouseover', e => {
|
this.$element.bind('mouseover', e => {
|
||||||
this.$timeout(() => {
|
this.$timeout(() => {
|
||||||
this.showDropDown = true;
|
this.showDropDown = true;
|
||||||
|
if (e.target.nodeName === 'BUTTON')
|
||||||
this.pos = e.target.getBoundingClientRect();
|
this.pos = e.target.getBoundingClientRect();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -3,13 +3,9 @@
|
||||||
<vn-vertical pad-medium>
|
<vn-vertical pad-medium>
|
||||||
<vn-horizontal vn-one>
|
<vn-horizontal vn-one>
|
||||||
<vn-title vn-one><span translate>Localizador</span></vn-title>
|
<vn-title vn-one><span translate>Localizador</span></vn-title>
|
||||||
<vn-searchbar vn-auto
|
<vn-one vn-horizontal>
|
||||||
index="index"
|
|
||||||
on-search="$ctrl.onSearch(index)"
|
</vn-one>
|
||||||
advanced="true"
|
|
||||||
search="$ctrl.filter.q"
|
|
||||||
popover="vn-production-filter-panel">
|
|
||||||
</vn-searchbar>
|
|
||||||
<vn-one vn-horizontal>
|
<vn-one vn-horizontal>
|
||||||
<vn-one></vn-one>
|
<vn-one></vn-one>
|
||||||
<vn-autocomplete vn-one
|
<vn-autocomplete vn-one
|
||||||
|
|
|
@ -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>
|
|
Loading…
Reference in New Issue