@ebiz/designer-components 0.0.41 → 0.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/designer-components.css +1 -1
- package/dist/index.mjs +5546 -5511
- package/package.json +1 -1
- package/src/components/senior/EbizSForm/item.vue +48 -3
package/package.json
CHANGED
@@ -24,9 +24,32 @@
|
|
24
24
|
|
25
25
|
<!-- 选择器 -->
|
26
26
|
<template v-else-if="type === 'select'">
|
27
|
-
<
|
28
|
-
|
29
|
-
|
27
|
+
<template v-if="isRemote">
|
28
|
+
<ebiz-remote-select
|
29
|
+
v-model="computedModelValue"
|
30
|
+
:placeholder="placeholder || '请选择'"
|
31
|
+
:disabled="disabled"
|
32
|
+
:clearable="clearable"
|
33
|
+
:filterable="filterable"
|
34
|
+
:multiple="multiple"
|
35
|
+
:loading="loading"
|
36
|
+
:remote-api-config="remoteApiConfig"
|
37
|
+
@change="handleChange"
|
38
|
+
/>
|
39
|
+
</template>
|
40
|
+
<template v-else>
|
41
|
+
<t-select
|
42
|
+
v-model="computedModelValue"
|
43
|
+
:options="options"
|
44
|
+
:placeholder="placeholder || '请选择'"
|
45
|
+
:disabled="disabled"
|
46
|
+
:clearable="clearable"
|
47
|
+
:filterable="filterable"
|
48
|
+
:multiple="multiple"
|
49
|
+
:loading="loading"
|
50
|
+
@change="handleChange"
|
51
|
+
/>
|
52
|
+
</template>
|
30
53
|
</template>
|
31
54
|
|
32
55
|
<!-- 日期选择器 -->
|
@@ -134,6 +157,7 @@ import {
|
|
134
157
|
TreeSelect as TTreeSelect,
|
135
158
|
ColorPicker as TColorPicker
|
136
159
|
} from 'tdesign-vue-next';
|
160
|
+
import EbizRemoteSelect from '../../EbizRemoteSelect.vue';
|
137
161
|
|
138
162
|
const props = defineProps({
|
139
163
|
/**
|
@@ -436,6 +460,27 @@ const props = defineProps({
|
|
436
460
|
type: String,
|
437
461
|
default: 'file',
|
438
462
|
validator: (val) => ['file', 'image', 'image-flow'].includes(val)
|
463
|
+
},
|
464
|
+
/**
|
465
|
+
* 是否开启远程搜索
|
466
|
+
*/
|
467
|
+
isRemote: {
|
468
|
+
type: Boolean,
|
469
|
+
default: false
|
470
|
+
},
|
471
|
+
/**
|
472
|
+
* 远程搜索配置
|
473
|
+
*/
|
474
|
+
remoteApiConfig: {
|
475
|
+
type: Object,
|
476
|
+
default: () => ({
|
477
|
+
url: '',
|
478
|
+
method: 'GET',
|
479
|
+
params: {},
|
480
|
+
data: {},
|
481
|
+
headers: {},
|
482
|
+
transformResponse: null
|
483
|
+
})
|
439
484
|
}
|
440
485
|
});
|
441
486
|
|