@94ai/nf-search-form 6.1.6 → 6.1.7
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/lib/index.d.ts +2927 -0
- package/lib/nf-search-form-item.vue.d.ts +0 -6
- package/lib/nf-search-form.cjs.js +160 -403
- package/lib/nf-search-form.esm-bundler.js +162 -405
- package/lib/nf-search-form.vue.d.ts +666 -0
- package/lib/types.d.ts +0 -9
- package/package/nf-column-check-dialog.vue +1 -0
- package/package/nf-search-form-item.vue +4 -15
- package/package/nf-search-form.vue +155 -418
- package/package/types.ts +0 -9
- package/package.json +18 -20
|
@@ -4,18 +4,19 @@
|
|
|
4
4
|
<slot :name="slotName" />
|
|
5
5
|
</template>
|
|
6
6
|
<template v-else>
|
|
7
|
-
<
|
|
7
|
+
<el-input
|
|
8
8
|
v-if="isInput"
|
|
9
9
|
v-model="currentVal"
|
|
10
10
|
v-bind="bindProps"
|
|
11
11
|
v-on="bindEvents"
|
|
12
12
|
@input="handleInput"
|
|
13
|
+
:placeholder="itemOptions.placeholder"
|
|
13
14
|
>
|
|
14
15
|
<slot :name="inputSlotPrepend" :slot="inputSlotPrepend"></slot>
|
|
15
16
|
<slot :name="inputSlotAppend" :slot="inputSlotAppend"></slot>
|
|
16
17
|
<slot :name="inputSlotSuffix" :slot="inputSlotSuffix"></slot>
|
|
17
18
|
<slot :name="inputSlotPrefix" :slot="inputSlotPrefix"></slot>
|
|
18
|
-
</
|
|
19
|
+
</el-input>
|
|
19
20
|
<el-input-number
|
|
20
21
|
v-if="isInputNumber"
|
|
21
22
|
v-model="currentVal"
|
|
@@ -309,7 +310,6 @@ import { createUniqueString } from '@94ai/common-utils'
|
|
|
309
310
|
const emit = defineEmits<{
|
|
310
311
|
(e: 'input', event: any): void
|
|
311
312
|
(e: 'update:value', event: any): void
|
|
312
|
-
(e: 'handleChangeProps', event: string[]): void
|
|
313
313
|
}>()
|
|
314
314
|
|
|
315
315
|
const props = withDefaults(defineProps<{
|
|
@@ -325,17 +325,10 @@ const props = withDefaults(defineProps<{
|
|
|
325
325
|
* content宽度
|
|
326
326
|
*/
|
|
327
327
|
itemWidth?: number,
|
|
328
|
-
/**
|
|
329
|
-
* 表单当前数据
|
|
330
|
-
*/
|
|
331
|
-
nfSearchFormModel?: Record<string, any>,
|
|
332
328
|
}>(), {
|
|
333
329
|
value: undefined,
|
|
334
330
|
itemOptions: () => ({}),
|
|
335
331
|
itemWidth: 227,
|
|
336
|
-
nfSearchFormModel: () => {
|
|
337
|
-
return {}
|
|
338
|
-
}
|
|
339
332
|
})
|
|
340
333
|
|
|
341
334
|
const instance = getCurrentInstance()?.proxy
|
|
@@ -570,11 +563,7 @@ const isTransferSelect = computed(() => {
|
|
|
570
563
|
|
|
571
564
|
const handleChange = (event) => {
|
|
572
565
|
if (props.itemOptions?.events?.change) {
|
|
573
|
-
props.itemOptions.events.change(event, instance
|
|
574
|
-
}
|
|
575
|
-
// 初始化关联属性
|
|
576
|
-
if (props.itemOptions?.changeProps) {
|
|
577
|
-
emit('handleChangeProps', props.itemOptions.changeProps)
|
|
566
|
+
props.itemOptions.events.change(event, instance)
|
|
578
567
|
}
|
|
579
568
|
}
|
|
580
569
|
const handleInput = (event) => {
|