Commit 6ca58832 authored by liujiaxin's avatar liujiaxin

sdf

parent c9f73573
...@@ -170,6 +170,9 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy { ...@@ -170,6 +170,9 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy {
newone.classList.add('wrong'); newone.classList.add('wrong');
this.animIng = false; this.animIng = false;
} }
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
} }
showRightAnswer() { showRightAnswer() {
const boxs = this.boxContainer.nativeElement.children; // .querySelectorAll('.gutter-row'); const boxs = this.boxContainer.nativeElement.children; // .querySelectorAll('.gutter-row');
...@@ -188,6 +191,9 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy { ...@@ -188,6 +191,9 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy {
for (const el of els) { for (const el of els) {
this.boxContainer.nativeElement.appendChild(el); this.boxContainer.nativeElement.appendChild(el);
} }
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
} }
// //
...@@ -244,6 +250,9 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy { ...@@ -244,6 +250,9 @@ export class PlayComponent implements OnInit, AfterViewInit, OnDestroy {
console.log('Item cchangehanges', itemWidth, itemHeight) console.log('Item cchangehanges', itemWidth, itemHeight)
container.style.setProperty('--item-width', itemWidth + 'px') container.style.setProperty('--item-width', itemWidth + 'px')
container.style.setProperty('--item-height', itemHeight + 'px') container.style.setProperty('--item-height', itemHeight + 'px')
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
} }
// Element resize support // Element resize support
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment