浏览代码

更改提交按钮文字

lifanagju_citu 10 月之前
父节点
当前提交
d62166f0a9
共有 1 个文件被更改,包括 5 次插入1 次删除
  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