浏览代码

feat: Add button type prop

Owen Diffey 5 天之前
父节点
当前提交
9743180cf2
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      frontend/src/pages/NewStation/Components/Button.vue

+ 2 - 0
frontend/src/pages/NewStation/Components/Button.vue

@@ -1,6 +1,7 @@
 <script lang="ts" setup>
 withDefaults(
 	defineProps<{
+		type?: HTMLButtonElement["type"];
 		icon?: string;
 		disabled?: boolean;
 		square?: boolean;
@@ -22,6 +23,7 @@ withDefaults(
 
 <template>
 	<button
+		:type="type"
 		:class="{
 			btn: true,
 			'btn--square': square,