Skip to content

Commit b5e8d5c

Browse files
luizhf42gustavosbarreto
authored andcommitted
refactor(ui): migrate Card component to script setup syntax
1 parent ca52edf commit b5e8d5c

File tree

1 file changed

+37
-41
lines changed

1 file changed

+37
-41
lines changed

ui/src/components/Card/Card.vue

Lines changed: 37 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -43,50 +43,46 @@
4343
</v-hover>
4444
</template>
4545

46-
<script lang="ts">
47-
import { defineComponent } from "vue";
46+
<script setup lang="ts">
4847
import DeviceAdd from "../Devices/DeviceAdd.vue";
4948
50-
export default defineComponent({
51-
props: {
52-
id: {
53-
type: Number,
54-
default: 0,
55-
},
56-
title: {
57-
type: String,
58-
default: "",
59-
},
60-
fieldObject: {
61-
type: String,
62-
default: "",
63-
},
64-
content: {
65-
type: String,
66-
default: "",
67-
},
68-
icon: {
69-
type: String,
70-
default: "",
71-
},
72-
buttonName: {
73-
type: String,
74-
default: "",
75-
},
76-
pathName: {
77-
type: String,
78-
default: "",
79-
},
80-
nameUseTest: {
81-
type: String,
82-
default: "",
83-
},
84-
stats: {
85-
type: Number,
86-
default: 0,
87-
},
49+
defineProps({
50+
id: {
51+
type: Number,
52+
default: 0,
53+
},
54+
title: {
55+
type: String,
56+
default: "",
57+
},
58+
fieldObject: {
59+
type: String,
60+
default: "",
61+
},
62+
content: {
63+
type: String,
64+
default: "",
65+
},
66+
icon: {
67+
type: String,
68+
default: "",
69+
},
70+
buttonName: {
71+
type: String,
72+
default: "",
73+
},
74+
pathName: {
75+
type: String,
76+
default: "",
77+
},
78+
nameUseTest: {
79+
type: String,
80+
default: "",
81+
},
82+
stats: {
83+
type: Number,
84+
default: 0,
8885
},
89-
components: { DeviceAdd },
9086
});
9187
</script>
9288

0 commit comments

Comments
 (0)