Jelajahi Sumber

更改提交按钮文字

lifanagju_citu 10 bulan lalu
induk
melakukan
d62166f0a9
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      src/components/CtDialog/index.vue

+ 5 - 1
src/components/CtDialog/index.vue

@@ -45,7 +45,7 @@
             text
             @click="handleSave"
           >
-            提交
+            {{ props.submitText }}
           </v-btn>
         </v-card-actions>
       </template>
@@ -78,6 +78,10 @@ const props = defineProps({
     type: String,
     default: '提示'
   },
+  submitText: {
+    type: String,
+    default: '提交'
+  },
   visible: {
     type: Boolean,
     default: false