mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 Attribute View columns sort Fix https://github.com/siyuan-note/siyuan/issues/8663
This commit is contained in:
parent
bd484dae34
commit
0b1758016d
7 changed files with 14 additions and 4 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
|
"asc": "Ascending",
|
||||||
|
"desc": "Descending",
|
||||||
"hideCol": "Hide column",
|
"hideCol": "Hide column",
|
||||||
"hideAll": "Hide all",
|
"hideAll": "Hide all",
|
||||||
"showAll": "Show all",
|
"showAll": "Show all",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
|
"asc": "Ascendente",
|
||||||
|
"desc": "Descendente",
|
||||||
"hideCol": "Ocultar columna",
|
"hideCol": "Ocultar columna",
|
||||||
"hideAll": "Ocultar todo",
|
"hideAll": "Ocultar todo",
|
||||||
"showAll": "Mostrar todo",
|
"showAll": "Mostrar todo",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
|
"asc": "Ascendant",
|
||||||
|
"desc": "Descendant",
|
||||||
"hideCol": "Masquer la colonne",
|
"hideCol": "Masquer la colonne",
|
||||||
"hideAll": "Masquer tout",
|
"hideAll": "Masquer tout",
|
||||||
"showAll": "Afficher tout",
|
"showAll": "Afficher tout",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
|
"asc": "升序",
|
||||||
|
"desc": "降序",
|
||||||
"hideCol": "隱藏列",
|
"hideCol": "隱藏列",
|
||||||
"hideAll": "隱藏全部",
|
"hideAll": "隱藏全部",
|
||||||
"showAll": "顯示全部",
|
"showAll": "顯示全部",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
|
"asc": "升序",
|
||||||
|
"desc": "降序",
|
||||||
"hideCol": "隐藏列",
|
"hideCol": "隐藏列",
|
||||||
"hideAll": "隐藏全部",
|
"hideAll": "隐藏全部",
|
||||||
"showAll": "显示全部",
|
"showAll": "显示全部",
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ export const showHeaderCellMenu = (protyle: IProtyle, blockElement: HTMLElement,
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
menu.addItem({
|
menu.addItem({
|
||||||
icon: "iconUp",
|
icon: "iconUp",
|
||||||
label: window.siyuan.languages.fileNameNatASC,
|
label: window.siyuan.languages.asc,
|
||||||
click() {
|
click() {
|
||||||
fetchPost("/api/av/renderAttributeView", {id: avId}, (response) => {
|
fetchPost("/api/av/renderAttributeView", {id: avId}, (response) => {
|
||||||
transaction(protyle, [{
|
transaction(protyle, [{
|
||||||
|
|
@ -150,7 +150,7 @@ export const showHeaderCellMenu = (protyle: IProtyle, blockElement: HTMLElement,
|
||||||
});
|
});
|
||||||
menu.addItem({
|
menu.addItem({
|
||||||
icon: "iconDown",
|
icon: "iconDown",
|
||||||
label: window.siyuan.languages.fileNameNatDESC,
|
label: window.siyuan.languages.desc,
|
||||||
click() {
|
click() {
|
||||||
fetchPost("/api/av/renderAttributeView", {id: avId}, (response) => {
|
fetchPost("/api/av/renderAttributeView", {id: avId}, (response) => {
|
||||||
transaction(protyle, [{
|
transaction(protyle, [{
|
||||||
|
|
|
||||||
|
|
@ -300,8 +300,8 @@ const getSortsHTML = (data: IAV) => {
|
||||||
</select>
|
</select>
|
||||||
<span class="fn__space"></span>
|
<span class="fn__space"></span>
|
||||||
<select class="b3-select" style="width: 106px;margin: 4px 0">
|
<select class="b3-select" style="width: 106px;margin: 4px 0">
|
||||||
<option value="ASC" ${item.order === "ASC" ? "selected" : ""}>${window.siyuan.languages.fileNameNatASC}</option>
|
<option value="ASC" ${item.order === "ASC" ? "selected" : ""}>${window.siyuan.languages.asc}</option>
|
||||||
<option value="DESC" ${item.order === "DESC" ? "selected" : ""}>${window.siyuan.languages.fileNameNatDESC}</option>
|
<option value="DESC" ${item.order === "DESC" ? "selected" : ""}>${window.siyuan.languages.desc}</option>
|
||||||
</select>
|
</select>
|
||||||
<svg class="b3-menu__action" data-type="removeSort"><use xlink:href="#iconTrashcan"></use></svg>
|
<svg class="b3-menu__action" data-type="removeSort"><use xlink:href="#iconTrashcan"></use></svg>
|
||||||
</button>`;
|
</button>`;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue