File tree 1 file changed +16
-23
lines changed
packages/core/forms/src/generator/fields/advanced
1 file changed +16
-23
lines changed Original file line number Diff line number Diff line change 14
14
</div >
15
15
</template >
16
16
17
- <script >
17
+ <script lang="ts" setup >
18
18
import { TrashIcon } from ' @kong/icons'
19
- export default {
20
- name: ' FieldArrayCardContainer' ,
21
-
22
- components: { TrashIcon },
23
-
24
- props: {
25
- model: {
26
- type: Object ,
27
- default: null ,
28
- },
29
- schema: {
30
- type: Object ,
31
- default: null ,
32
- },
19
+
20
+ defineProps ({
21
+ model: {
22
+ type: Object ,
23
+ default : () => null ,
24
+ },
25
+ schema: {
26
+ type: Object ,
27
+ default : () => null ,
33
28
},
29
+ })
34
30
35
- emits: [' remove-item' ],
36
- }
31
+ defineEmits <{
32
+ (e : ' remove-item' ): void ,
33
+ }>()
37
34
</script >
38
35
39
36
<style lang='scss'>
40
37
.array-card-container-wrapper {
41
38
width : 100% ;
42
-
43
- .kong-card {
44
- width : 50% ;
45
- }
46
39
}
47
40
</style >
48
41
@@ -52,11 +45,11 @@ export default {
52
45
display : flex ;
53
46
54
47
.card {
55
- margin-bottom : 8 px ;
48
+ margin-bottom : $kui-space-40 ;
56
49
}
57
50
58
51
.array-card-remove-button {
59
- margin-left : 12 px ;
52
+ margin-left : $kui-space-50 ;
60
53
}
61
54
}
62
55
</style >
You can’t perform that action at this time.
0 commit comments