fix bug
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
<template>
|
||||
<div style="max-width: 260px">
|
||||
<ele-table-select
|
||||
ref="selectRef"
|
||||
:multiple="false"
|
||||
:allow-clear="true"
|
||||
placeholder="请选择"
|
||||
value-key="userId"
|
||||
label-key="nickname"
|
||||
v-model:value="selectedValue"
|
||||
:table-config="tableConfig"
|
||||
:overlay-style="{ width: '520px', maxWidth: '80%' }"
|
||||
>
|
||||
<!-- 表头工具栏 -->
|
||||
<template #toolbar>
|
||||
<user-advanced-search @search="search"/>
|
||||
</template>
|
||||
</ele-table-select>
|
||||
</div>
|
||||
<!-- <div style="margin-top: 12px">
|
||||
<a-button type="primary" @click="setInitValue">回显数据</a-button>
|
||||
</div> -->
|
||||
<div style="max-width: 260px">
|
||||
<ele-table-select
|
||||
ref="selectRef"
|
||||
:multiple="false"
|
||||
:allow-clear="true"
|
||||
placeholder="请选择"
|
||||
value-key="userId"
|
||||
label-key="nickname"
|
||||
v-model:value="selectedValue"
|
||||
:table-config="tableConfig"
|
||||
:overlay-style="{ width: '520px', maxWidth: '80%' }"
|
||||
>
|
||||
<!-- 表头工具栏 -->
|
||||
<template #toolbar>
|
||||
<user-advanced-search @search="search" />
|
||||
</template>
|
||||
</ele-table-select>
|
||||
</div>
|
||||
<!-- <div style="margin-top: 12px">
|
||||
<a-button type="primary" @click="setInitValue">回显数据</a-button>
|
||||
</div> -->
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
@@ -29,9 +29,8 @@
|
||||
import type { EleTableSelect } from 'ele-admin-pro/es';
|
||||
import type { ProTableProps } from 'ele-admin-pro/es/ele-pro-table/types';
|
||||
import type { WhereType } from '../types';
|
||||
import type { User, UserParam } from '@/api/system/user/model';
|
||||
|
||||
const selectedValue = ref<number[]>([]);
|
||||
const selectedValue = defineModel();
|
||||
|
||||
// 选择框实例
|
||||
const selectRef = ref<InstanceType<typeof EleTableSelect> | null>(null);
|
||||
|
||||
Reference in New Issue
Block a user