未验证 提交 78e91225 编写于 作者: D Devosend 提交者: GitHub

fix bug where confirm disable error (#11251)

上级 d9516e22
......@@ -15,7 +15,15 @@
* limitations under the License.
*/
import { defineComponent, PropType, toRefs, onMounted, ref, Ref, getCurrentInstance } from 'vue'
import {
defineComponent,
PropType,
toRefs,
onMounted,
ref,
Ref,
getCurrentInstance
} from 'vue'
import { NForm, NFormItem, NInput, NSelect, NInputNumber } from 'naive-ui'
import { useForm } from '../use-form'
import Modal from '@/components/modal'
......@@ -106,14 +114,14 @@ const FormModal = defineComponent({
confirmDisabled={
!this.formData.name ||
!this.formData.groupSize ||
!this.formData.description
!this.formData.projectCode
}
confirmLoading={this.saving}
>
<NForm rules={this.rules} ref='formRef'>
<NFormItem label={t('resource.task_group_option.name')} path='name'>
<NInput
allowInput={this.trim}
allowInput={this.trim}
v-model={[this.formData.name, 'value']}
placeholder={t('resource.task_group_option.please_enter_name')}
/>
......@@ -150,7 +158,7 @@ const FormModal = defineComponent({
path='description'
>
<NInput
allowInput={this.trim}
allowInput={this.trim}
v-model={[this.formData.description, 'value']}
type='textarea'
placeholder={t('resource.task_group_option.please_enter_desc')}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册