File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const componentItem = computed(() => getFieldType(props.type));
3939const parentForm = Form .getParentForm ();
4040
4141function handleInput(value : any ) {
42- if (input ) input .setValue ?.(value );
42+ if (input && props . name ) input .setValue ?.(value );
4343 emit (' update:modelValue' , value )
4444}
4545
Original file line number Diff line number Diff line change 11<template >
22 <div class =" widget-calendar" >
33 <div class =" widget-calendar-navigation" >
4- <input -field v-model =" month" type =" select" :options =" arrayMonths" placeholder =" Month" />
5- <input -field v-model =" year" type =" select" :options =" arrayYears" placeholder =" Year" />
4+ <form -field v-model =" month" type =" select" :options =" arrayMonths" placeholder =" Month" />
5+ <form -field v-model =" year" type =" select" :options =" arrayYears" placeholder =" Year" />
66 </div >
77 <div class =" widget-calendar-board" >
88 <div class =" widget-calendar-board-header" >
3434</template >
3535
3636<script setup lang="ts">
37- import {InputField } from " ../../../index" ;
37+ import {FormField } from " ../../../index" ;
3838import {computed , ref } from " vue" ;
3939import STORE from " ../../../config/store" ;
4040import {IOptionRowWithLabel } from " ../../../types" ;
You can’t perform that action at this time.
0 commit comments