<template>
  <div class="mt-3">
    <!-- 多选 -->
    <a-select mode="multiple" style="width: 100%" placeholder="请选择成员" @change="handleChange">
      <a-select-option :value="member.memberId" v-for="member in members" :key="member.memberId"> {{ member.name }} </a-select-option>
    </a-select>
  </div>
</template>

<script>
import { mapState } from 'vuex';

export default {
  data() {
    return {};
  },

  computed: mapState('home', ['members']),

  methods: {
    handleChange(value) {
      setTimeout(() => {
        const options = { memberIdList: value };
        this.$emit('changeTime', options);
      }, 800);
    },
  },
};
</script>

<style lang="less" scoped>
</style>
