mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-26 00:01:11 +00:00
feat(container): support sorting by creation time (#14141)
Add a creation time column to the container list. The column uses the backend createdAt order field and displays the existing createTime value. It follows the standard three-state sort cycle, starting with newest first.
This commit is contained in:
@@ -355,6 +355,20 @@
|
||||
show-overflow-tooltip
|
||||
prop="runTime"
|
||||
/>
|
||||
<!-- The API sorts by createdAt; the row field is named createTime. -->
|
||||
<el-table-column
|
||||
:label="$t('commons.table.createdAt')"
|
||||
card-type="description"
|
||||
min-width="180"
|
||||
show-overflow-tooltip
|
||||
prop="createdAt"
|
||||
sortable="custom"
|
||||
:sort-orders="['descending', 'ascending', null]"
|
||||
>
|
||||
<template #default="{ row }">
|
||||
{{ row.createTime }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<fu-table-operations
|
||||
card-type="button"
|
||||
fix
|
||||
|
||||
Reference in New Issue
Block a user