@@ -1,11 +1,7 @@
<div class="card">
- <!-- <img [src]="card.get('image')[0]" alt="Image"> -->
<div class="content">
<h3>{{ card.get('title') }}</h3>
<p>作者:{{ card.get('username') }}</p> <p>{{ card.get('date') }}</p>
- <!-- <p>
- 阅读量: {{ card.get('views') }} 赞: {{ card.get('likes') }}
- </p> -->
</div>
@@ -16,14 +16,12 @@ export class ArticleCardComponent implements OnInit {
constructor() { }
ngOnInit() {}
- /**
- * controller for dropdown visibility
- */
+
dropdownVisible = false;
toggleDropdown() {
this.dropdownVisible = !this.dropdownVisible;
}
- @Input() card: any; // 接收父组件传递的卡片数据
+ @Input() card: any;