refactor: button.vue to composition api #79
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/button"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
b32d45a385
tod10ab86474
@ -99,0 +28,4 @@
<script lang="ts" setup>
import { onMounted, nextTick } from 'vue';
const props = defineProps<{
The defaults still need to be added with
withDefaults(defineProps..., { /* defaults */ })
.I'm not sure about the default for
type
. According to w3schools, there is no standardized default for button types. Testing it in Firefox it defaults to a submit button. I guess in most use cases here it does not even matter really because the buttons are not in<form>
s but taking a quick look at howMkButton
is used,type=button
seems a better default.fad2b49504
to3f3782ac44
Yeah that makes sense.
3f3782ac44
toaf3b39df5f
manually merged in commit
7621e5461f
and gitea doesnt want me to mark the PR as manually merged for some reasonPull request closed