Search Box and Checkbox filter with Vue

后端 未结 2 1657
日久生厌
日久生厌 2020-12-11 07:28

I am trying to build filter system with Vue.

Updated

Filters working, but all the functions computed are separeted functions. So How can I make those in on

2条回答
  •  囚心锁ツ
    2020-12-11 08:11

    rooms and regions are arrays. So you need to iterate through these arrays in order to render the checkboxes.

    instead of this:

    関東 
    関西 
    北海道
    

    should be like this:

            
    

    similar should be done with rooms.

    Also, in js part, you have checkedRegions while in template you have checkedLocations. I guess this should be too checkedRegions.

提交回复
热议问题