diff --git a/component/item-bottom/item-bottom.js b/component/item-bottom/item-bottom.js index 22f6782..5bc57f6 100644 --- a/component/item-bottom/item-bottom.js +++ b/component/item-bottom/item-bottom.js @@ -5,10 +5,6 @@ const { defineComponent, ref } = Vue; export const itemBottom = defineComponent({ name: "item-bottom", props: { - title: { - type: String, - default: "默认标题", - }, itemdata: { type: Object, default: () => {}, @@ -17,8 +13,11 @@ export const itemBottom = defineComponent({ setup(props) { let item = ref({ ...props.itemdata }); + const likeClick = (item) => { + console.log("item", item); + }; return { item }; }, - template: `
{{ item?.commentreviews?.content }}
{{ item.likes || "赞" }}
{{ item.collections || "收藏" }}
{{ item.comments || "讨论" }}
{{ item.coins || "投币" }}
转发
`, + template: `
{{ item?.commentreviews?.content }}
{{ item.likes || "赞" }}
{{ item.collections || "收藏" }}
{{ item.comments || "讨论" }}
{{ item.coins || "投币" }}
转发
`, }); diff --git a/component/item-bottom/item-bottom.txt b/component/item-bottom/item-bottom.txt index a2c34ad..e9afbaa 100644 --- a/component/item-bottom/item-bottom.txt +++ b/component/item-bottom/item-bottom.txt @@ -3,25 +3,29 @@
{{ item?.commentreviews?.content }}
-
- + -