The checkList implementation in weex-ui is left empty by clicking a button.

problem description

Mobile developers have introduced the need for weex-ui, to click the "reset" button to empty the selection when using the wxc-checkbox-list component (there is a map below). If you don"t know how to do it, ask the boss for help

related codes

<wxc-checkbox-list
  :list="brandList"
  :config="typeConfig"
  theme="search-item"
  :valueStyle="{marginRight:"20px"}"
  valuePosition="left"
  @wxcCheckBoxListChecked="wxcCheckBoxListChecked"
></wxc-checkbox-list>

clipboard.png

what result do you expect?

Click the reset button to leave it empty

Jan.11,2022

has not used weex-ui , is it not in the official demo ?

try this.brandList.splice (0);

< hr >

assume that the above code snippet can solve your problem, then the reason is:

ide/list.html-sharp%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9" rel=" nofollow noreferrer "> https://cn.vuejs.org/v2/guide.

Menu