Skip to content

Commit

Permalink
feat(vfg): field-array-card-container refactor [khcp-11346] (#1323)
Browse files Browse the repository at this point in the history
Convert to setup syntax and use design tokens.
Address [KHCP-11346](https://konghq.atlassian.net/browse/KHCP-11346).
  • Loading branch information
kaiarrowood authored Apr 12, 2024
1 parent ced9aa7 commit 77ca540
Showing 1 changed file with 16 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,28 @@
</div>
</template>

<script>
<script lang="ts" setup>
import { TrashIcon } from '@kong/icons'
export default {
name: 'FieldArrayCardContainer',
components: { TrashIcon },
props: {
model: {
type: Object,
default: null,
},
schema: {
type: Object,
default: null,
},
defineProps({
model: {
type: Object,
default: () => null,
},
schema: {
type: Object,
default: () => null,
},
})
emits: ['remove-item'],
}
defineEmits<{
(e: 'remove-item'): void,
}>()
</script>

<style lang='scss'>
.array-card-container-wrapper {
width: 100%;
.kong-card {
width: 50%;
}
}
</style>

Expand All @@ -52,11 +45,11 @@ export default {
display: flex;
.card {
margin-bottom: 8px;
margin-bottom: $kui-space-40;
}
.array-card-remove-button {
margin-left: 12px;
margin-left: $kui-space-50;
}
}
</style>

0 comments on commit 77ca540

Please sign in to comment.