@acorex/components 16.18.34 → 16.18.36
Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ export class AXTabStripComponent {
|
|
16
16
|
onTabChanged = new EventEmitter();
|
17
17
|
handleClick(i, e) {
|
18
18
|
if (!i.disable) {
|
19
|
-
if (this.maxWidth) {
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
}
|
19
|
+
// if (this.maxWidth) {
|
20
|
+
// const clickedItem = e.target as HTMLElement;
|
21
|
+
// clickedItem.scrollIntoView({
|
22
|
+
// behavior: 'smooth',
|
23
|
+
// inline: 'center',
|
24
|
+
// });
|
25
|
+
// }
|
26
26
|
this.items.forEach((c) => (c.active = false));
|
27
27
|
i.active = true;
|
28
28
|
this.onTabChanged.emit({
|
@@ -45,4 +45,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
45
45
|
}], onTabChanged: [{
|
46
46
|
type: Output
|
47
47
|
}] } });
|
48
|
-
//# sourceMappingURL=data:application/json;base64,
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFiLXN0cmlwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9zcmMvbGliL3RhYi1zdHJpcC90YWItc3RyaXAuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NyYy9saWIvdGFiLXN0cmlwL3RhYi1zdHJpcC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUVULEtBQUssRUFDTCxNQUFNLEVBQ04sWUFBWSxFQUNaLFVBQVUsR0FDWCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsV0FBVy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H1cIlxuICBbc3R5bGUubWF4LXdpZHRoXT1cIm1heFdpZHRoXCJcbj5cbiAgPG5nLWNvbnRhaW5lciAqbmdGb3I9XCJsZXQgaXRlbSBvZiBpdGVtc1wiPlxuICAgIDxsaVxuICAgICAgKm5nSWY9XCIhIWl0ZW0udmlzaWJsZSB8fCBpdGVtLnZpc2libGUgPT0gdW5kZWZpbmVkXCJcbiAgICAgIFtjbGFzcy5hY3RpdmVdPVwiaXRlbS5hY3RpdmVcIlxuICAgICAgW2NsYXNzLmRpc2FibGVkXT1cIml0ZW0uZGlzYWJsZVwiXG4gICAgICAoY2xpY2spPVwiaGFuZGxlQ2xpY2soaXRlbSwgJGV2ZW50KVwiXG4gICAgPlxuICAgICAge3sgaXRlbS50ZXh0IH19XG4gICAgPC9saT5cbiAgPC9uZy1jb250YWluZXI+XG48L3VsPlxuIl19
|
@@ -15632,13 +15632,13 @@ class AXTabStripComponent {
|
|
15632
15632
|
onTabChanged = new EventEmitter();
|
15633
15633
|
handleClick(i, e) {
|
15634
15634
|
if (!i.disable) {
|
15635
|
-
if (this.maxWidth) {
|
15636
|
-
|
15637
|
-
|
15638
|
-
|
15639
|
-
|
15640
|
-
|
15641
|
-
}
|
15635
|
+
// if (this.maxWidth) {
|
15636
|
+
// const clickedItem = e.target as HTMLElement;
|
15637
|
+
// clickedItem.scrollIntoView({
|
15638
|
+
// behavior: 'smooth',
|
15639
|
+
// inline: 'center',
|
15640
|
+
// });
|
15641
|
+
// }
|
15642
15642
|
this.items.forEach((c) => (c.active = false));
|
15643
15643
|
i.active = true;
|
15644
15644
|
this.onTabChanged.emit({
|