VUE element组件生成的全选框如何获取值

//先声明
const Selection = ref([]);

//获取
const handleSelectCodeForTicket = (val) => {
  console.log(val);
  // values.value = val;
  Selection.value = [];
  val.forEach((v) => {
    Selection.value.push(v);
  });
  console.log(Selection.value);
};

你可能感兴趣的:(vue.js,javascript,前端)