Browse Source

style(gui-v2): template editor

pull/2828/head
Wing-Kam Wong 2 years ago
parent
commit
2f3c9c932c
  1. 19
      packages/nc-gui-v2/components/template/Editor.vue

19
packages/nc-gui-v2/components/template/Editor.vue

@ -299,7 +299,7 @@ const importTemplate = async () => {
{{ data.tables.length }} sheet{{ data.tables.length > 1 ? 's' : '' }} {{ data.tables.length }} sheet{{ data.tables.length > 1 ? 's' : '' }}
available for import available for import
</p> </p>
<a-collapse v-if="data.tables && data.tables.length" v-model:activeKey="expansionPanel" accordion> <a-collapse v-if="data.tables && data.tables.length" v-model:activeKey="expansionPanel" class="template-collapse" accordion>
<a-collapse-panel v-for="(table, tableIdx) in data.tables" :key="tableIdx"> <a-collapse-panel v-for="(table, tableIdx) in data.tables" :key="tableIdx">
<template #header> <template #header>
<a-form-item v-if="editableTn[tableIdx]" v-bind="validateInfos[`tables.${tableIdx}.table_name`]" noStyle> <a-form-item v-if="editableTn[tableIdx]" v-bind="validateInfos[`tables.${tableIdx}.table_name`]" noStyle>
@ -313,7 +313,7 @@ const importTemplate = async () => {
/> />
</a-form-item> </a-form-item>
<span v-else class="font-weight-bold text-lg" @click="(e) => (e.stopPropagation(), setEditableTn(tableIdx, true))"> <span v-else class="font-weight-bold text-lg" @click="(e) => (e.stopPropagation(), setEditableTn(tableIdx, true))">
<MdiTableIcon style="margin-bottom: -5px" /> <MdiTableIcon class="text-primary" style="margin-bottom: -5px" />
{{ table.table_name }} {{ table.table_name }}
</span> </span>
</template> </template>
@ -417,8 +417,7 @@ const importTemplate = async () => {
</template> </template>
</template> </template>
</a-table> </a-table>
<a-divider /> <div class="text-center" style="margin-top: 15px">
<div class="text-center">
<a-tooltip bottom> <a-tooltip bottom>
<template #title> <template #title>
<!-- TODO: i18n --> <!-- TODO: i18n -->
@ -475,8 +474,16 @@ const importTemplate = async () => {
</a-card> </a-card>
</template> </template>
<style scoped> <style scoped lang="scss">
.template-form :deep(.template-form-row) > td { .template-collapse {
background-color: #ffffff;
}
.template-form {
:deep(.ant-table-thead) > tr > th {
background: #ffffff;
}
:deep(.template-form-row) > td {
padding-bottom: 0px !important; padding-bottom: 0px !important;
}
} }
</style> </style>

Loading…
Cancel
Save