This commit is contained in:
2024-01-22 14:00:43 +08:00
parent 275f49e54e
commit e7f09b4dcc
7 changed files with 138 additions and 50 deletions

View File

@@ -57,7 +57,10 @@ function onChange(v: string) {
</script>
<template>
<div class="container">
<div class="title">{{ label }}</div>
<n-flex align="center" class="title">
<span>{{ label }}</span>
<slot name="actions"></slot>
</n-flex>
<Codemirror
v-model="code"
indentWithTab
@@ -76,6 +79,10 @@ function onChange(v: string) {
}
.title {
padding: 12px 20px;
height: 60px;
box-sizing: border-box;
}
.title > span {
font-size: 16px;
}
</style>