<template>
  <div>
    <a-tree-select
      :tree-data='treeData'
      @focus='showModal'
    />
    <a-modal
      v-model='visible'
    >
      modal content
    </a-modal>
  </div>
</template>
<script>
export default {
  data() {
    return {
      visible: false,
      treeData: [
        // tree data
      ],
    };
  },
  methods: {
    showModal() {
      this.visible = true;
    },
  },
};
</script>
Ant Design Vue 中 a-tree-select 和 a-modal 联动:聚焦时显示 Modal

原文地址: https://www.cveoy.top/t/topic/oKM5 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录