Jelajahi Sumber

输入密码的keydown.stop

Michael Wang 4 tahun lalu
induk
melakukan
2f33628cfa
1 mengubah file dengan 7 tambahan dan 1 penghapusan
  1. 7 1
      src/features/mark/MarkChangeProfile.vue

+ 7 - 1
src/features/mark/MarkChangeProfile.vue

@@ -8,10 +8,15 @@
   >
     <a-form labelAlign="right" :labelCol="{ span: 4 }">
       <a-form-item class="tw-mb-2" :required="true" label="姓名">
-        <a-input v-model:value="user.name" placeholder="姓名" />
+        <a-input
+          @keydown.stop="() => {}"
+          v-model:value="user.name"
+          placeholder="姓名"
+        />
       </a-form-item>
       <a-form-item class="tw-mb-2" label="新密码">
         <a-input
+          @keydown.stop="() => {}"
           type="password"
           v-model:value="user.password"
           placeholder="输入新密码"
@@ -19,6 +24,7 @@
       </a-form-item>
       <a-form-item class="tw-mb-2" label="确认新密码">
         <a-input
+          @keydown.stop="() => {}"
           type="password"
           v-model:value="user.confirmPassword"
           placeholder="再次输入新密码"