Showing
2 changed files
with
11 additions
and
4 deletions
| ... | @@ -8,6 +8,7 @@ | ... | @@ -8,6 +8,7 @@ |
| 8 | <template> | 8 | <template> |
| 9 | <div class="select-user-page"> | 9 | <div class="select-user-page"> |
| 10 | <select-user-view | 10 | <select-user-view |
| 11 | + title="" | ||
| 11 | :visible="dialogUserFormVisible" | 12 | :visible="dialogUserFormVisible" |
| 12 | :fullscreen="true" | 13 | :fullscreen="true" |
| 13 | :list="dialogUserTags" | 14 | :list="dialogUserTags" | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-11-01 10:18:53 | 2 | * @Date: 2023-11-01 10:18:53 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-10-08 14:38:37 | 4 | + * @LastEditTime: 2024-10-08 18:04:49 |
| 5 | * @FilePath: /vue-flow-editor/doc/selectUserView.vue | 5 | * @FilePath: /vue-flow-editor/doc/selectUserView.vue |
| 6 | * @Description: 成员列表选择控件 | 6 | * @Description: 成员列表选择控件 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | <el-dialog | 9 | <el-dialog |
| 10 | v-model="dialogUserFormVisible" | 10 | v-model="dialogUserFormVisible" |
| 11 | - title="成员列表" | 11 | + :title="title" |
| 12 | :fullscreen="fullscreen" | 12 | :fullscreen="fullscreen" |
| 13 | :show-close="false" | 13 | :show-close="false" |
| 14 | > | 14 | > |
| ... | @@ -300,6 +300,10 @@ import _ from "lodash"; | ... | @@ -300,6 +300,10 @@ import _ from "lodash"; |
| 300 | import { ElNotification, ElMessage, ElMessageBox } from 'element-plus' | 300 | import { ElNotification, ElMessage, ElMessageBox } from 'element-plus' |
| 301 | 301 | ||
| 302 | const props = defineProps({ | 302 | const props = defineProps({ |
| 303 | + title: { | ||
| 304 | + type: String, | ||
| 305 | + default: "成员列表" | ||
| 306 | + }, | ||
| 303 | visible: Boolean, | 307 | visible: Boolean, |
| 304 | fullscreen: Boolean, | 308 | fullscreen: Boolean, |
| 305 | list: Array, | 309 | list: Array, |
| ... | @@ -761,8 +765,10 @@ const closeUserForm = () => { | ... | @@ -761,8 +765,10 @@ const closeUserForm = () => { |
| 761 | * @return {void} No return value. | 765 | * @return {void} No return value. |
| 762 | */ | 766 | */ |
| 763 | const confirmUserForm = () => { | 767 | const confirmUserForm = () => { |
| 764 | - dialogUserFormVisible.value = false; | 768 | + if (!props.fullscreen) { // 全屏模式下禁用 |
| 765 | - emit("close", dialogUserFormVisible.value); | 769 | + dialogUserFormVisible.value = false; |
| 770 | + emit("close", dialogUserFormVisible.value); | ||
| 771 | + } | ||
| 766 | emit("confirm", userTags.value); | 772 | emit("confirm", userTags.value); |
| 767 | }; | 773 | }; |
| 768 | 774 | ... | ... |
-
Please register or login to post a comment