|
1 | 1 | <template lang="pug"> |
2 | | - el-row |
3 | | - el-button(type="primary" plain @click="initialState") |
4 | | - span Quick Connect |
5 | | - el-row(class="change-title") Change Database |
6 | | - el-select(:value="currentDb" @change="getCurrentDb" placeholder="Select Database" spellcheck="false" :title="currentDb" class="input-field") |
7 | | - el-option( |
8 | | - v-for="db in databaseList" |
9 | | - :key="db.name" |
10 | | - :value="db.name" |
11 | | - ) |
12 | | - el-row(class="input-field") |
13 | | - el-input(placeholder="Search Table" @input="filterTextChange" :value="filterText" suffix-icon="el-icon-search" spellcheck="false") |
14 | | - el-row(class="table-actions") |
15 | | - el-col(:span="12" class="title") TABLES |
16 | | - el-col(:span="12" class="actions") |
17 | | - i(:class="[loading ? 'el-icon-loading' : '', 'el-icon-refresh refresh']" @click="getDbTables() && toggleLoading()" title="Refresh Table List") |
18 | | - i(class="el-icon-circle-plus-outline add" @click="toggleCreateModal" title="Create Table") |
19 | | - i(class="el-icon-delete remove" v-if="currentTable" @click="toggleDeleteModal" title="Delete Table" :disabled="true") |
20 | | - el-row(class="container") |
| 2 | + .outer |
| 3 | + .inner-fixed |
| 4 | + el-button(type="primary" plain @click="initialState") |
| 5 | + span Quick Connect |
| 6 | + el-row(class="change-title") Change Database |
| 7 | + el-select(:value="currentDb" @change="getCurrentDb" placeholder="Select Database" spellcheck="false" :title="currentDb" class="input-field") |
| 8 | + el-option( |
| 9 | + v-for="db in databaseList" |
| 10 | + :key="db.name" |
| 11 | + :value="db.name" |
| 12 | + ) |
| 13 | + el-row(class="input-field") |
| 14 | + el-input(placeholder="Search Table" @input="filterTextChange" :value="filterText" suffix-icon="el-icon-search" spellcheck="false") |
| 15 | + el-row(class="table-actions") |
| 16 | + el-col(:span="12" class="title") TABLES |
| 17 | + el-col(:span="12" class="actions") |
| 18 | + i(:class="[loading ? 'el-icon-loading' : '', 'el-icon-refresh refresh']" @click="getDbTables() && toggleLoading()" title="Refresh Table List") |
| 19 | + i(class="el-icon-circle-plus-outline add" @click="toggleCreateModal" title="Create Table") |
| 20 | + i(class="el-icon-delete remove" v-if="currentTable" @click="toggleDeleteModal" title="Delete Table" :disabled="true") |
| 21 | + .inner-remaining |
21 | 22 | .list-item(v-for="(table, index) in tableList" :key="index" @click="switchTable(table)" :class="{active: isActive(table)}") |
22 | 23 | .info |
23 | 24 | span {{ table }} |
|
99 | 100 | align-items center |
100 | 101 | display flex |
101 | 102 | border-radius 5px |
102 | | - transition .1s linear |
103 | 103 |
|
104 | 104 | .list-item:hover |
105 | 105 | cursor pointer |
|
124 | 124 | .refresh:hover |
125 | 125 | color #52ceff |
126 | 126 |
|
127 | | - .container |
128 | | - height 100vh |
| 127 | + .outer |
| 128 | + display flex |
| 129 | + flex-flow column |
| 130 | + height 100% |
| 131 | +
|
| 132 | + .inner-remaining |
| 133 | + flex-grow 1 |
129 | 134 | overflow-y auto |
130 | | - transition .5s linear |
131 | 135 | font-size 1em |
132 | 136 | </style> |
0 commit comments