1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

feat: field comment on mouse over a table field name

This commit is contained in:
2020-09-17 11:13:00 +02:00
parent cff4f537de
commit 2554444322
2 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,8 @@ export default class {
default: field.COLUMN_DEFAULT, default: field.COLUMN_DEFAULT,
charset: field.CHARACTER_SET_NAME, charset: field.CHARACTER_SET_NAME,
collation: field.COLLATION_NAME, collation: field.COLLATION_NAME,
autoIncrement: field.EXTRA.includes('auto_increment') autoIncrement: field.EXTRA.includes('auto_increment'),
comment: field.COLUMN_COMMENT
}; };
}); });
} }

View File

@ -38,7 +38,7 @@
:class="`key-${field.key}`" :class="`key-${field.key}`"
:title="keyName(field.key)" :title="keyName(field.key)"
/> />
<span>{{ field.alias || field.name }}</span> <span :title="field.comment ? field.comment : false">{{ field.alias || field.name }}</span>
<i <i
v-if="currentSort === field.name" v-if="currentSort === field.name"
class="mdi sort-icon" class="mdi sort-icon"