export default { mixins:[mixin], components:{ list_comment, bar_title, form_editor, div_dish_information }, data(){ return{ url_get_obj: "~/api/dish_information/get_obj?", field: "dish_information_id", obj: { "praise_len": 0, }, query: { "dish_no": "", "type_of_dish": "", "name_of_dish": "", "price_of_dishes": "", "picture_of_dishes": "", "introduction_details": "", "dish_information_id":0, }, // 点赞 praise: 0, // 点赞状态 state_praise: false, // 收藏状态 state_collect: false, list_comment: [], form_comment: { source_table: "dish_information", source_field: "dish_information_id", source_id: 0, reply_to_id: 0, }, count_pages: 1, // 页面数 } },
时间: 2023-07-19 16:04:26 浏览: 90
denn-design-tokens-scss-mixins:用StackBlitz创建:high_voltage:
这是一个 Vue.js 的组件,使用了一个 mixin,并引入了四个子组件:list_comment、bar_title、form_editor、div_dish_information。data() 函数返回了组件中需要用到的数据,包括获取数据的接口地址 url_get_obj、搜索条件 query、点赞、点赞状态和收藏状态等。同时,还有评论列表、评论表单以及分页信息等。
阅读全文