Commit ee87881e3d433c071d4b5d06983ff11f69c1b15d

Authored by loveumiko
1 parent 9acb4413

fix: 报表设备支持搜索选择功能

... ... @@ -4,6 +4,7 @@
4 4 v-model:value="selectValue"
5 5 style="width: 100%"
6 6 :options="selectOptions"
  7 + v-bind="createPickerSearch()"
7 8 @change="handleDeviceChange"
8 9 :disabled="disabled"
9 10 mode="multiple"
... ... @@ -23,6 +24,7 @@
23 24 import { Select } from 'ant-design-vue';
24 25 import SelectAttributes from './SelectAttributes.vue';
25 26 import { TDeviceList, TSelectOption } from '../type';
  27 + import { createPickerSearch } from '/@/utils/pickerSearch';
26 28
27 29 const props = defineProps({
28 30 selectOptions: {
... ...
... ... @@ -198,6 +198,7 @@
198 198 <component
199 199 :ref="(event) => setDataSourceFormsEl(item.uuid, event, index)"
200 200 class="flex-1 bg-light-50 dark:bg-dark-400"
  201 + style="max-width: calc(100% - 216px)"
201 202 :is="getComponent"
202 203 :component-config="componentConfig"
203 204 :values="item"
... ... @@ -235,3 +236,11 @@
235 236 />
236 237 </section>
237 238 </template>
  239 +
  240 +<style scoped lang="less">
  241 + :deep(#deviceId) {
  242 + div {
  243 + width: 100%;
  244 + }
  245 + }
  246 +</style>
... ...