@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.
@@ -4,18 +4,19 @@
4
4
  <slot :name="slotName" />
5
5
  </template>
6
6
  <template v-else>
7
- <nf-input
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
- </nf-input>
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, props.nfSearchFormModel)
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) => {