Skip to content

Commit

Permalink
fix: 表单校验
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Jan 2, 2024
1 parent 17436b7 commit f9ade36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/apps/fileman/editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class FilemanEditor extends Vue {

<template>
<t-drawer v-model:visible="visible" :header="path + '/'" :close-btn="true" size="60%">
<t-form ref="formRef" :rules="formRules" @submit="formSubmit">
<t-form ref="formRef" :data="formModel" :rules="formRules" @submit="formSubmit">
<t-form-item label="文件名">
<t-input v-model="formModel.Name" />
</t-form-item>
Expand Down
2 changes: 1 addition & 1 deletion src/apps/fileman/mkdir.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class FilemanMkdir extends Vue {

<template>
<t-dialog v-model:visible="visible" destroy-on-close header="新建目录" :footer="false" width="50%">
<t-form ref="formRef" :rules="formRules" label-width="60px" @submit="formSubmit">
<t-form ref="formRef" :data="formModel" :rules="formRules" label-width="60px" @submit="formSubmit">
<t-form-item name="Name" label="目录名">
<t-input v-model="formModel.Name" />
</t-form-item>
Expand Down
2 changes: 1 addition & 1 deletion src/apps/fileman/modify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default class FilemanModify extends Vue {

<template>
<t-dialog v-model:visible="visible" destroy-on-close header="修改属性" :footer="false" width="50%">
<t-form ref="formRef" :rules="formRules" label-width="90px" @submit="formSubmit">
<t-form ref="formRef" :data="formModel" :rules="formRules" label-width="90px" @submit="formSubmit">
<t-form-item name="Name" label="名称">
<t-input v-model="formModel.Name" />
</t-form-item>
Expand Down

0 comments on commit f9ade36

Please sign in to comment.