mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 06:06:01 +00:00
row numbers in mssql
This commit is contained in:
@@ -579,6 +579,12 @@
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function formatRowCount(value) {
|
||||
const num = parseInt(value);
|
||||
if (_.isNaN(num)) return value;
|
||||
return num.toLocaleString();
|
||||
}
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -627,7 +633,7 @@
|
||||
showPinnedInsteadOfUnpin={passProps?.showPinnedInsteadOfUnpin}
|
||||
onPin={isPinned ? null : () => pinnedTables.update(list => [...list, data])}
|
||||
onUnpin={isPinned ? () => pinnedTables.update(list => list.filter(x => !testEqual(x, data))) : null}
|
||||
extInfo={data.tableRowCount != null ? `${data.tableRowCount} rows` : null}
|
||||
extInfo={data.tableRowCount != null ? `${formatRowCount(data.tableRowCount)} rows` : null}
|
||||
on:click={() => handleClick()}
|
||||
on:middleclick={() => handleClick(true)}
|
||||
on:expand
|
||||
|
||||
Reference in New Issue
Block a user