mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
♻️ Gallery view renamed to Card view https://github.com/siyuan-note/siyuan/issues/15215
This commit is contained in:
parent
d7f56c2bb6
commit
1ab9b5c518
24 changed files with 141 additions and 85 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
"showIcon": "عرض الأيقونة",
|
"showIcon": "عرض الأيقونة",
|
||||||
"showAllFieldsIcon": "عرض أيقونات الحقول",
|
"showAllFieldsIcon": "عرض أيقونات الحقول",
|
||||||
"wrapAllFields": "التفاف الحقول تلقائيًا",
|
"wrapAllFields": "التفاف الحقول تلقائيًا",
|
||||||
"gallery": "معرض",
|
"gallery": "بطاقة",
|
||||||
"newTag": "علامة جديدة",
|
"newTag": "علامة جديدة",
|
||||||
"pleaseWait": "يرجى الانتظار...",
|
"pleaseWait": "يرجى الانتظار...",
|
||||||
"reconnectPrompt": "بعد تبديل التطبيقات، سيستغرق الأمر بعض الوقت لاستعادة تشغيل نواة SiYuan. يرجى الانتظار بضع ثوانٍ أو النقر فوق الزر \"إعادة المحاولة\"",
|
"reconnectPrompt": "بعد تبديل التطبيقات، سيستغرق الأمر بعض الوقت لاستعادة تشغيل نواة SiYuan. يرجى الانتظار بضع ثوانٍ أو النقر فوق الزر \"إعادة المحاولة\"",
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
},
|
},
|
||||||
"_attrView": {
|
"_attrView": {
|
||||||
"table": "جدول",
|
"table": "جدول",
|
||||||
"gallery": "معرض",
|
"gallery": "بطاقة",
|
||||||
"key": "المفتاح الرئيسي",
|
"key": "المفتاح الرئيسي",
|
||||||
"select": "تحديد"
|
"select": "تحديد"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"showIcon": "Symbol anzeigen",
|
"showIcon": "Symbol anzeigen",
|
||||||
"showAllFieldsIcon": "Feldsymbole anzeigen",
|
"showAllFieldsIcon": "Feldsymbole anzeigen",
|
||||||
"wrapAllFields": "Felder automatisch umbrechen",
|
"wrapAllFields": "Felder automatisch umbrechen",
|
||||||
"gallery": "Galerie",
|
"gallery": "Karte",
|
||||||
"newTag": "Neuer Tag",
|
"newTag": "Neuer Tag",
|
||||||
"pleaseWait": "Bitte warten...",
|
"pleaseWait": "Bitte warten...",
|
||||||
"reconnectPrompt": "Nach dem Wechseln der Anwendungen dauert es einige Zeit, bis der Betrieb des SiYuan-Kernels wiederhergestellt ist. Bitte warten Sie einige Sekunden oder klicken Sie auf die Schaltfläche „Erneut versuchen“",
|
"reconnectPrompt": "Nach dem Wechseln der Anwendungen dauert es einige Zeit, bis der Betrieb des SiYuan-Kernels wiederhergestellt ist. Bitte warten Sie einige Sekunden oder klicken Sie auf die Schaltfläche „Erneut versuchen“",
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
},
|
},
|
||||||
"_attrView": {
|
"_attrView": {
|
||||||
"table": "Tabelle",
|
"table": "Tabelle",
|
||||||
"gallery": "Galerie",
|
"gallery": "Karte",
|
||||||
"key": "Primärschlüssel",
|
"key": "Primärschlüssel",
|
||||||
"select": "Auswählen"
|
"select": "Auswählen"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"showIcon": "Show icon",
|
"showIcon": "Show icon",
|
||||||
"showAllFieldsIcon": "Show field icons",
|
"showAllFieldsIcon": "Show field icons",
|
||||||
"wrapAllFields": "Auto-wrap fields",
|
"wrapAllFields": "Auto-wrap fields",
|
||||||
"gallery": "Gallery",
|
"gallery": "Card",
|
||||||
"newTag": "New tag",
|
"newTag": "New tag",
|
||||||
"pleaseWait": "Please wait...",
|
"pleaseWait": "Please wait...",
|
||||||
"reconnectPrompt": "After switching applications, it will take some time to restore the SiYuan kernel operation. Please wait a few seconds or click the \"Retry\" button",
|
"reconnectPrompt": "After switching applications, it will take some time to restore the SiYuan kernel operation. Please wait a few seconds or click the \"Retry\" button",
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
},
|
},
|
||||||
"_attrView": {
|
"_attrView": {
|
||||||
"table": "Table",
|
"table": "Table",
|
||||||
"gallery": "Gallery",
|
"gallery": "Card",
|
||||||
"key": "Primary Key",
|
"key": "Primary Key",
|
||||||
"select": "Select"
|
"select": "Select"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"showIcon": "Mostrar ícono",
|
"showIcon": "Mostrar ícono",
|
||||||
"showAllFieldsIcon": "Mostrar íconos de campos",
|
"showAllFieldsIcon": "Mostrar íconos de campos",
|
||||||
"wrapAllFields": "Ajuste automático de campos",
|
"wrapAllFields": "Ajuste automático de campos",
|
||||||
"gallery": "Galería",
|
"gallery": "Tarjeta",
|
||||||
"newTag": "Nueva etiqueta",
|
"newTag": "Nueva etiqueta",
|
||||||
"pleaseWait": "Por favor, espere...",
|
"pleaseWait": "Por favor, espere...",
|
||||||
"reconnectPrompt": "Después de cambiar de aplicación, tomará algún tiempo restaurar el funcionamiento del núcleo de SiYuan. Espere unos segundos o haga clic en el botón \"Reintentar\"",
|
"reconnectPrompt": "Después de cambiar de aplicación, tomará algún tiempo restaurar el funcionamiento del núcleo de SiYuan. Espere unos segundos o haga clic en el botón \"Reintentar\"",
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
},
|
},
|
||||||
"_attrView": {
|
"_attrView": {
|
||||||
"table": "Tabla",
|
"table": "Tabla",
|
||||||
"gallery": "Galería",
|
"gallery": "Tarjeta",
|
||||||
"key": "Clave principal",
|
"key": "Clave principal",
|
||||||
"select": "Selección"
|
"select": "Selección"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"showIcon": "Afficher l'icône",
|
"showIcon": "Afficher l'icône",
|
||||||
"showAllFieldsIcon": "Afficher les icônes des champs",
|
"showAllFieldsIcon": "Afficher les icônes des champs",
|
||||||
"wrapAllFields": "Retour automatique des champs",
|
"wrapAllFields": "Retour automatique des champs",
|
||||||
"gallery": "Galerie",
|
"gallery": "Carte",
|
||||||
"newTag": "Nouvelle étiquette",
|
"newTag": "Nouvelle étiquette",
|
||||||
"pleaseWait": "Veuillez patienter...",
|
"pleaseWait": "Veuillez patienter...",
|
||||||
"reconnectPrompt": "Après avoir changé d'application, il faudra un certain temps pour rétablir le fonctionnement du noyau SiYuan. Veuillez patienter quelques secondes ou cliquer sur le bouton « Réessayer »",
|
"reconnectPrompt": "Après avoir changé d'application, il faudra un certain temps pour rétablir le fonctionnement du noyau SiYuan. Veuillez patienter quelques secondes ou cliquer sur le bouton « Réessayer »",
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
},
|
},
|
||||||
"_attrView": {
|
"_attrView": {
|
||||||
"table": "Tableau",
|
"table": "Tableau",
|
||||||
"gallery": "Galerie",
|
"gallery": "Carte",
|
||||||
"key": "Clé primaire",
|
"key": "Clé primaire",
|
||||||
"select": "Sélectionner"
|
"select": "Sélectionner"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"showIcon": "הצג סמל",
|
"showIcon": "הצג סמל",
|
||||||
"showAllFieldsIcon": "הצג סמלי שדות",
|
"showAllFieldsIcon": "הצג סמלי שדות",
|
||||||
"wrapAllFields": "עטיפת שדות אוטומטית",
|
"wrapAllFields": "עטיפת שדות אוטומטית",
|
||||||
"gallery": "גלריה",
|
"gallery": "כרטיס",
|
||||||
"newTag": "תג חדש",
|
"newTag": "תג חדש",
|
||||||
"pleaseWait": "אנא המתן...",
|
"pleaseWait": "אנא המתן...",
|
||||||
"reconnectPrompt": "לאחר מעבר בין יישומים, יידרש זמן מה כדי לשחזר את פעולת ליבת SiYuan. אנא המתן מספר שניות או לחץ על כפתור \"נסה שוב\"",
|
"reconnectPrompt": "לאחר מעבר בין יישומים, יידרש זמן מה כדי לשחזר את פעולת ליבת SiYuan. אנא המתן מספר שניות או לחץ על כפתור \"נסה שוב\"",
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
},
|
},
|
||||||
"_attrView": {
|
"_attrView": {
|
||||||
"table": "טבלה",
|
"table": "טבלה",
|
||||||
"gallery": "גלריה",
|
"gallery": "כרטיס",
|
||||||
"key": "מפתח ראשי",
|
"key": "מפתח ראשי",
|
||||||
"select": "בחר"
|
"select": "בחר"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"showIcon": "Mostra icona",
|
"showIcon": "Mostra icona",
|
||||||
"showAllFieldsIcon": "Mostra icone dei campi",
|
"showAllFieldsIcon": "Mostra icone dei campi",
|
||||||
"wrapAllFields": "Avvolgi automaticamente i campi",
|
"wrapAllFields": "Avvolgi automaticamente i campi",
|
||||||
"gallery": "Galleria",
|
"gallery": "Scheda",
|
||||||
"newTag": "Nuova etichetta",
|
"newTag": "Nuova etichetta",
|
||||||
"pleaseWait": "Attendere prego...",
|
"pleaseWait": "Attendere prego...",
|
||||||
"reconnectPrompt": "Dopo aver cambiato applicazione, ci vorrà un po' di tempo per ripristinare il funzionamento del kernel SiYuan. Attendere qualche secondo o fare clic sul pulsante \"Riprova\"",
|
"reconnectPrompt": "Dopo aver cambiato applicazione, ci vorrà un po' di tempo per ripristinare il funzionamento del kernel SiYuan. Attendere qualche secondo o fare clic sul pulsante \"Riprova\"",
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
},
|
},
|
||||||
"_attrView": {
|
"_attrView": {
|
||||||
"table": "Tabella",
|
"table": "Tabella",
|
||||||
"gallery": "Galleria",
|
"gallery": "Scheda",
|
||||||
"key": "Chiave primaria",
|
"key": "Chiave primaria",
|
||||||
"select": "Seleziona"
|
"select": "Seleziona"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"showIcon": "アイコンを表示",
|
"showIcon": "アイコンを表示",
|
||||||
"showAllFieldsIcon": "フィールドアイコンを表示",
|
"showAllFieldsIcon": "フィールドアイコンを表示",
|
||||||
"wrapAllFields": "フィールドを自動折り返し",
|
"wrapAllFields": "フィールドを自動折り返し",
|
||||||
"gallery": "ギャラリー",
|
"gallery": "カード",
|
||||||
"newTag": "新しいタグ",
|
"newTag": "新しいタグ",
|
||||||
"pleaseWait": "しばらくお待ちください...",
|
"pleaseWait": "しばらくお待ちください...",
|
||||||
"reconnectPrompt": "アプリを切り替えた後、思源カーネルの実行を再開するには少し時間がかかります。数秒待つか、「再試行」ボタンをクリックしてください",
|
"reconnectPrompt": "アプリを切り替えた後、思源カーネルの実行を再開するには少し時間がかかります。数秒待つか、「再試行」ボタンをクリックしてください",
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
},
|
},
|
||||||
"_attrView": {
|
"_attrView": {
|
||||||
"table": "テーブル",
|
"table": "テーブル",
|
||||||
"gallery": "ギャラリー",
|
"gallery": "カード",
|
||||||
"key": "プライマリキー",
|
"key": "プライマリキー",
|
||||||
"select": "選択"
|
"select": "選択"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"showIcon": "Pokaż ikonę",
|
"showIcon": "Pokaż ikonę",
|
||||||
"showAllFieldsIcon": "Pokaż ikony pól",
|
"showAllFieldsIcon": "Pokaż ikony pól",
|
||||||
"wrapAllFields": "Automatyczne zawijanie pól",
|
"wrapAllFields": "Automatyczne zawijanie pól",
|
||||||
"gallery": "Galeria",
|
"gallery": "Karta",
|
||||||
"newTag": "Nowy tag",
|
"newTag": "Nowy tag",
|
||||||
"pleaseWait": "Proszę czekać...",
|
"pleaseWait": "Proszę czekać...",
|
||||||
"reconnectPrompt": "Po przełączeniu aplikacji ponowne uruchomienie jądra SiYuan może zająć trochę czasu. Proszę poczekać kilka sekund lub kliknąć przycisk „Ponów próbę”",
|
"reconnectPrompt": "Po przełączeniu aplikacji ponowne uruchomienie jądra SiYuan może zająć trochę czasu. Proszę poczekać kilka sekund lub kliknąć przycisk „Ponów próbę”",
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
},
|
},
|
||||||
"_attrView": {
|
"_attrView": {
|
||||||
"table": "Tabela",
|
"table": "Tabela",
|
||||||
"gallery": "Galeria",
|
"gallery": "Karta",
|
||||||
"key": "Klucz główny",
|
"key": "Klucz główny",
|
||||||
"select": "Wybierz"
|
"select": "Wybierz"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"showIcon": "Mostrar ícone",
|
"showIcon": "Mostrar ícone",
|
||||||
"showAllFieldsIcon": "Mostrar ícones de campos",
|
"showAllFieldsIcon": "Mostrar ícones de campos",
|
||||||
"wrapAllFields": "Quebrar automaticamente os campos",
|
"wrapAllFields": "Quebrar automaticamente os campos",
|
||||||
"gallery": "Galeria",
|
"gallery": "Cartão",
|
||||||
"newTag": "Nova tag",
|
"newTag": "Nova tag",
|
||||||
"pleaseWait": "Por favor, aguarde...",
|
"pleaseWait": "Por favor, aguarde...",
|
||||||
"reconnectPrompt": "Após alternar aplicativos, levará algum tempo para restaurar a operação do kernel SiYuan. Por favor, aguarde alguns segundos ou clique no botão \"Tentar novamente\"",
|
"reconnectPrompt": "Após alternar aplicativos, levará algum tempo para restaurar a operação do kernel SiYuan. Por favor, aguarde alguns segundos ou clique no botão \"Tentar novamente\"",
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
},
|
},
|
||||||
"_attrView": {
|
"_attrView": {
|
||||||
"table": "Tabela",
|
"table": "Tabela",
|
||||||
"gallery": "Galeria",
|
"gallery": "Cartão",
|
||||||
"key": "Chave Primária",
|
"key": "Chave Primária",
|
||||||
"select": "Selecionar"
|
"select": "Selecionar"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"showIcon": "Показать значок",
|
"showIcon": "Показать значок",
|
||||||
"showAllFieldsIcon": "Показать значки полей",
|
"showAllFieldsIcon": "Показать значки полей",
|
||||||
"wrapAllFields": "Автоматический перенос полей",
|
"wrapAllFields": "Автоматический перенос полей",
|
||||||
"gallery": "Галерея",
|
"gallery": "Карточка",
|
||||||
"newTag": "Новый тег",
|
"newTag": "Новый тег",
|
||||||
"pleaseWait": "Пожалуйста, подождите...",
|
"pleaseWait": "Пожалуйста, подождите...",
|
||||||
"reconnectPrompt": "После переключения приложений потребуется некоторое время, чтобы восстановить работу ядра SiYuan. Пожалуйста, подождите несколько секунд или нажмите кнопку «Повторить»",
|
"reconnectPrompt": "После переключения приложений потребуется некоторое время, чтобы восстановить работу ядра SiYuan. Пожалуйста, подождите несколько секунд или нажмите кнопку «Повторить»",
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
},
|
},
|
||||||
"_attrView": {
|
"_attrView": {
|
||||||
"table": "Таблица",
|
"table": "Таблица",
|
||||||
"gallery": "Галерея",
|
"gallery": "Карточка",
|
||||||
"key": "Первичный ключ",
|
"key": "Первичный ключ",
|
||||||
"select": "Выбрать"
|
"select": "Выбрать"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"showIcon": "顯示圖標",
|
"showIcon": "顯示圖標",
|
||||||
"showAllFieldsIcon": "顯示字段圖標",
|
"showAllFieldsIcon": "顯示字段圖標",
|
||||||
"wrapAllFields": "字段自動換行",
|
"wrapAllFields": "字段自動換行",
|
||||||
"gallery": "圖庫",
|
"gallery": "卡片",
|
||||||
"newTag": "新建標籤",
|
"newTag": "新建標籤",
|
||||||
"pleaseWait": "請稍等片刻...",
|
"pleaseWait": "請稍等片刻...",
|
||||||
"reconnectPrompt": "切換應用後再次進入需要一些時間恢復思源內核運行,請稍等幾秒或者點擊“重試”按鈕",
|
"reconnectPrompt": "切換應用後再次進入需要一些時間恢復思源內核運行,請稍等幾秒或者點擊“重試”按鈕",
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
},
|
},
|
||||||
"_attrView": {
|
"_attrView": {
|
||||||
"table": "表格",
|
"table": "表格",
|
||||||
"gallery": "圖庫",
|
"gallery": "卡片",
|
||||||
"key": "主鍵",
|
"key": "主鍵",
|
||||||
"select": "單選"
|
"select": "單選"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"showIcon": "显示图标",
|
"showIcon": "显示图标",
|
||||||
"showAllFieldsIcon": "显示字段图标",
|
"showAllFieldsIcon": "显示字段图标",
|
||||||
"wrapAllFields": "字段自动换行",
|
"wrapAllFields": "字段自动换行",
|
||||||
"gallery": "画廊",
|
"gallery": "卡片",
|
||||||
"newTag": "新建标签",
|
"newTag": "新建标签",
|
||||||
"pleaseWait": "请稍等片刻...",
|
"pleaseWait": "请稍等片刻...",
|
||||||
"reconnectPrompt": "切换应用后再次进入需要一些时间恢复思源内核运行,请稍等几秒或者点击“重试”按钮",
|
"reconnectPrompt": "切换应用后再次进入需要一些时间恢复思源内核运行,请稍等几秒或者点击“重试”按钮",
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
},
|
},
|
||||||
"_attrView": {
|
"_attrView": {
|
||||||
"table": "表格",
|
"table": "表格",
|
||||||
"gallery": "画廊",
|
"gallery": "卡片",
|
||||||
"key": "主键",
|
"key": "主键",
|
||||||
"select": "单选"
|
"select": "单选"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spec": 1,
|
"spec": 3,
|
||||||
"id": "20240208172742-57vwxqw",
|
"id": "20240208172742-57vwxqw",
|
||||||
"name": "Books",
|
"name": "Books",
|
||||||
"keyValues": [
|
"keyValues": [
|
||||||
|
|
@ -254,12 +254,13 @@
|
||||||
"name": "Table",
|
"name": "Table",
|
||||||
"hideAttrViewName": false,
|
"hideAttrViewName": false,
|
||||||
"desc": "",
|
"desc": "",
|
||||||
|
"pageSize": 50,
|
||||||
"type": "table",
|
"type": "table",
|
||||||
"table": {
|
"table": {
|
||||||
"spec": 0,
|
"spec": 0,
|
||||||
"id": "20240208172742-mhhmma3",
|
"id": "20240208172742-mhhmma3",
|
||||||
"filters": [],
|
"showIcon": true,
|
||||||
"sorts": [],
|
"wrapField": false,
|
||||||
"pageSize": 50,
|
"pageSize": 50,
|
||||||
"columns": [
|
"columns": [
|
||||||
{
|
{
|
||||||
|
|
@ -296,43 +297,51 @@
|
||||||
"20240208173041-9utmfv2",
|
"20240208173041-9utmfv2",
|
||||||
"20240208173054-6k25xnw"
|
"20240208173054-6k25xnw"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"itemIds": [
|
||||||
|
"20240208172930-3n32s4x",
|
||||||
|
"20240208173041-9utmfv2",
|
||||||
|
"20240208173054-6k25xnw"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20250615171046-3ucugf9",
|
"id": "20250615171046-3ucugf9",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"name": "Gallery",
|
"name": "Card",
|
||||||
"hideAttrViewName": false,
|
"hideAttrViewName": false,
|
||||||
"desc": "",
|
"desc": "",
|
||||||
|
"pageSize": 50,
|
||||||
"type": "gallery",
|
"type": "gallery",
|
||||||
"gallery": {
|
"gallery": {
|
||||||
"spec": 0,
|
"spec": 0,
|
||||||
"id": "20250615171047-4emh3qi",
|
"id": "20250615171047-4emh3qi",
|
||||||
"filters": [],
|
"showIcon": true,
|
||||||
"sorts": [],
|
"wrapField": false,
|
||||||
"pageSize": 50,
|
"pageSize": 50,
|
||||||
"coverFrom": 2,
|
"coverFrom": 2,
|
||||||
"coverFromAssetKeyID": "20250615171115-3g32dmi",
|
"coverFromAssetKeyID": "20250615171115-3g32dmi",
|
||||||
"cardAspectRatio": 3,
|
"cardAspectRatio": 3,
|
||||||
"cardSize": 0,
|
"cardSize": 0,
|
||||||
"fitImage": false,
|
"fitImage": false,
|
||||||
"showIcon": true,
|
|
||||||
"wrapField": false,
|
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"id": "20240208172742-dwysfvj",
|
"id": "20240208172742-dwysfvj",
|
||||||
|
"wrap": false,
|
||||||
"hidden": false
|
"hidden": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20240208172937-fxi3h2s",
|
"id": "20240208172937-fxi3h2s",
|
||||||
|
"wrap": false,
|
||||||
"hidden": false
|
"hidden": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20240208173226-6666dv2",
|
"id": "20240208173226-6666dv2",
|
||||||
|
"wrap": false,
|
||||||
"hidden": false
|
"hidden": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20250615171115-3g32dmi",
|
"id": "20250615171115-3g32dmi",
|
||||||
|
"wrap": false,
|
||||||
"hidden": true
|
"hidden": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
@ -341,7 +350,12 @@
|
||||||
"20240208173041-9utmfv2",
|
"20240208173041-9utmfv2",
|
||||||
"20240208173054-6k25xnw"
|
"20240208173054-6k25xnw"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"itemIds": [
|
||||||
|
"20240208172930-3n32s4x",
|
||||||
|
"20240208173041-9utmfv2",
|
||||||
|
"20240208173054-6k25xnw"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spec": 1,
|
"spec": 3,
|
||||||
"id": "20240208155918-uylgwbj",
|
"id": "20240208155918-uylgwbj",
|
||||||
"name": "书籍",
|
"name": "书籍",
|
||||||
"keyValues": [
|
"keyValues": [
|
||||||
|
|
@ -254,12 +254,13 @@
|
||||||
"name": "表格",
|
"name": "表格",
|
||||||
"hideAttrViewName": false,
|
"hideAttrViewName": false,
|
||||||
"desc": "",
|
"desc": "",
|
||||||
|
"pageSize": 50,
|
||||||
"type": "table",
|
"type": "table",
|
||||||
"table": {
|
"table": {
|
||||||
"spec": 0,
|
"spec": 0,
|
||||||
"id": "20240208155918-j5lys77",
|
"id": "20240208155918-j5lys77",
|
||||||
"filters": [],
|
"showIcon": true,
|
||||||
"sorts": [],
|
"wrapField": false,
|
||||||
"pageSize": 50,
|
"pageSize": 50,
|
||||||
"columns": [
|
"columns": [
|
||||||
{
|
{
|
||||||
|
|
@ -296,43 +297,51 @@
|
||||||
"20240208155931-cr0e00b",
|
"20240208155931-cr0e00b",
|
||||||
"20240208161625-9lg8l80"
|
"20240208161625-9lg8l80"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"itemIds": [
|
||||||
|
"20240208160855-iv1fsnu",
|
||||||
|
"20240208155931-cr0e00b",
|
||||||
|
"20240208161625-9lg8l80"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20250615173530-5yn6s87",
|
"id": "20250615173530-5yn6s87",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"name": "画廊",
|
"name": "卡片",
|
||||||
"hideAttrViewName": false,
|
"hideAttrViewName": false,
|
||||||
"desc": "",
|
"desc": "",
|
||||||
|
"pageSize": 50,
|
||||||
"type": "gallery",
|
"type": "gallery",
|
||||||
"gallery": {
|
"gallery": {
|
||||||
"spec": 0,
|
"spec": 0,
|
||||||
"id": "20250615173532-wtdqm1z",
|
"id": "20250615173532-wtdqm1z",
|
||||||
"filters": [],
|
"showIcon": true,
|
||||||
"sorts": [],
|
"wrapField": false,
|
||||||
"pageSize": 50,
|
"pageSize": 50,
|
||||||
"coverFrom": 2,
|
"coverFrom": 2,
|
||||||
"coverFromAssetKeyID": "20250615173428-ju0itho",
|
"coverFromAssetKeyID": "20250615173428-ju0itho",
|
||||||
"cardAspectRatio": 3,
|
"cardAspectRatio": 3,
|
||||||
"cardSize": 0,
|
"cardSize": 0,
|
||||||
"fitImage": false,
|
"fitImage": false,
|
||||||
"showIcon": true,
|
|
||||||
"wrapField": false,
|
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"id": "20240208155918-gex3vhc",
|
"id": "20240208155918-gex3vhc",
|
||||||
|
"wrap": false,
|
||||||
"hidden": false
|
"hidden": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20240208160021-bpcl3hm",
|
"id": "20240208160021-bpcl3hm",
|
||||||
|
"wrap": false,
|
||||||
"hidden": false
|
"hidden": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20240208160313-c1j9gn3",
|
"id": "20240208160313-c1j9gn3",
|
||||||
|
"wrap": false,
|
||||||
"hidden": false
|
"hidden": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20250615173428-ju0itho",
|
"id": "20250615173428-ju0itho",
|
||||||
|
"wrap": false,
|
||||||
"hidden": true
|
"hidden": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
@ -341,7 +350,12 @@
|
||||||
"20240208155931-cr0e00b",
|
"20240208155931-cr0e00b",
|
||||||
"20240208161625-9lg8l80"
|
"20240208161625-9lg8l80"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"itemIds": [
|
||||||
|
"20240208160855-iv1fsnu",
|
||||||
|
"20240208155931-cr0e00b",
|
||||||
|
"20240208161625-9lg8l80"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spec": 1,
|
"spec": 3,
|
||||||
"id": "20240208171724-zfkzgwi",
|
"id": "20240208171724-zfkzgwi",
|
||||||
"name": "書籍",
|
"name": "書籍",
|
||||||
"keyValues": [
|
"keyValues": [
|
||||||
|
|
@ -254,12 +254,13 @@
|
||||||
"name": "表格",
|
"name": "表格",
|
||||||
"hideAttrViewName": false,
|
"hideAttrViewName": false,
|
||||||
"desc": "",
|
"desc": "",
|
||||||
|
"pageSize": 50,
|
||||||
"type": "table",
|
"type": "table",
|
||||||
"table": {
|
"table": {
|
||||||
"spec": 0,
|
"spec": 0,
|
||||||
"id": "20240208171724-dpfg89v",
|
"id": "20240208171724-dpfg89v",
|
||||||
"filters": [],
|
"showIcon": true,
|
||||||
"sorts": [],
|
"wrapField": false,
|
||||||
"pageSize": 50,
|
"pageSize": 50,
|
||||||
"columns": [
|
"columns": [
|
||||||
{
|
{
|
||||||
|
|
@ -296,43 +297,51 @@
|
||||||
"20240208171759-zc76r72",
|
"20240208171759-zc76r72",
|
||||||
"20240208171807-wbmr1ps"
|
"20240208171807-wbmr1ps"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"itemIds": [
|
||||||
|
"20240208171751-wmphpet",
|
||||||
|
"20240208171759-zc76r72",
|
||||||
|
"20240208171807-wbmr1ps"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20250615173733-4es9lsl",
|
"id": "20250615173733-4es9lsl",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"name": "畫廊",
|
"name": "卡片",
|
||||||
"hideAttrViewName": false,
|
"hideAttrViewName": false,
|
||||||
"desc": "",
|
"desc": "",
|
||||||
|
"pageSize": 50,
|
||||||
"type": "gallery",
|
"type": "gallery",
|
||||||
"gallery": {
|
"gallery": {
|
||||||
"spec": 0,
|
"spec": 0,
|
||||||
"id": "20250615173734-3131lvi",
|
"id": "20250615173734-3131lvi",
|
||||||
"filters": [],
|
"showIcon": true,
|
||||||
"sorts": [],
|
"wrapField": false,
|
||||||
"pageSize": 50,
|
"pageSize": 50,
|
||||||
"coverFrom": 2,
|
"coverFrom": 2,
|
||||||
"coverFromAssetKeyID": "20250615173651-a3u5o6l",
|
"coverFromAssetKeyID": "20250615173651-a3u5o6l",
|
||||||
"cardAspectRatio": 3,
|
"cardAspectRatio": 3,
|
||||||
"cardSize": 0,
|
"cardSize": 0,
|
||||||
"fitImage": false,
|
"fitImage": false,
|
||||||
"showIcon": true,
|
|
||||||
"wrapField": false,
|
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"id": "20240208171724-j0vptez",
|
"id": "20240208171724-j0vptez",
|
||||||
|
"wrap": false,
|
||||||
"hidden": false
|
"hidden": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20240208171815-ntngplo",
|
"id": "20240208171815-ntngplo",
|
||||||
|
"wrap": false,
|
||||||
"hidden": false
|
"hidden": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20240208171913-wcpom5u",
|
"id": "20240208171913-wcpom5u",
|
||||||
|
"wrap": false,
|
||||||
"hidden": false
|
"hidden": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20250615173651-a3u5o6l",
|
"id": "20250615173651-a3u5o6l",
|
||||||
|
"wrap": false,
|
||||||
"hidden": true
|
"hidden": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
@ -341,7 +350,12 @@
|
||||||
"20240208171759-zc76r72",
|
"20240208171759-zc76r72",
|
||||||
"20240208171807-wbmr1ps"
|
"20240208171807-wbmr1ps"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"itemIds": [
|
||||||
|
"20240208171751-wmphpet",
|
||||||
|
"20240208171759-zc76r72",
|
||||||
|
"20240208171807-wbmr1ps"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spec": 1,
|
"spec": 3,
|
||||||
"id": "20240530133134-c2251lc",
|
"id": "20240530133134-c2251lc",
|
||||||
"name": "書名",
|
"name": "書名",
|
||||||
"keyValues": [
|
"keyValues": [
|
||||||
|
|
@ -254,12 +254,13 @@
|
||||||
"name": "テーブル",
|
"name": "テーブル",
|
||||||
"hideAttrViewName": false,
|
"hideAttrViewName": false,
|
||||||
"desc": "",
|
"desc": "",
|
||||||
|
"pageSize": 50,
|
||||||
"type": "table",
|
"type": "table",
|
||||||
"table": {
|
"table": {
|
||||||
"spec": 0,
|
"spec": 0,
|
||||||
"id": "20240530101000-mhhmma3",
|
"id": "20240530101000-mhhmma3",
|
||||||
"filters": [],
|
"showIcon": true,
|
||||||
"sorts": [],
|
"wrapField": false,
|
||||||
"pageSize": 50,
|
"pageSize": 50,
|
||||||
"columns": [
|
"columns": [
|
||||||
{
|
{
|
||||||
|
|
@ -296,43 +297,51 @@
|
||||||
"20240530101000-9utmfv2",
|
"20240530101000-9utmfv2",
|
||||||
"20240530101000-6k25xnw"
|
"20240530101000-6k25xnw"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"itemIds": [
|
||||||
|
"20240530101000-3n32s4x",
|
||||||
|
"20240530101000-9utmfv2",
|
||||||
|
"20240530101000-6k25xnw"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20250615173942-0xk5p5h",
|
"id": "20250615173942-0xk5p5h",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"name": "ギャラリー",
|
"name": "カード",
|
||||||
"hideAttrViewName": false,
|
"hideAttrViewName": false,
|
||||||
"desc": "",
|
"desc": "",
|
||||||
|
"pageSize": 50,
|
||||||
"type": "gallery",
|
"type": "gallery",
|
||||||
"gallery": {
|
"gallery": {
|
||||||
"spec": 0,
|
"spec": 0,
|
||||||
"id": "20250615173947-oj97e6l",
|
"id": "20250615173947-oj97e6l",
|
||||||
"filters": [],
|
"showIcon": true,
|
||||||
"sorts": [],
|
"wrapField": false,
|
||||||
"pageSize": 50,
|
"pageSize": 50,
|
||||||
"coverFrom": 2,
|
"coverFrom": 2,
|
||||||
"coverFromAssetKeyID": "20250615173851-vmlovdh",
|
"coverFromAssetKeyID": "20250615173851-vmlovdh",
|
||||||
"cardAspectRatio": 3,
|
"cardAspectRatio": 3,
|
||||||
"cardSize": 0,
|
"cardSize": 0,
|
||||||
"fitImage": false,
|
"fitImage": false,
|
||||||
"showIcon": true,
|
|
||||||
"wrapField": false,
|
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"id": "20240530101000-dwysfvj",
|
"id": "20240530101000-dwysfvj",
|
||||||
|
"wrap": false,
|
||||||
"hidden": false
|
"hidden": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20240530101000-fxi3h2s",
|
"id": "20240530101000-fxi3h2s",
|
||||||
|
"wrap": false,
|
||||||
"hidden": false
|
"hidden": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20240530101000-6666dv2",
|
"id": "20240530101000-6666dv2",
|
||||||
|
"wrap": false,
|
||||||
"hidden": false
|
"hidden": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "20250615173851-vmlovdh",
|
"id": "20250615173851-vmlovdh",
|
||||||
|
"wrap": false,
|
||||||
"hidden": true
|
"hidden": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
@ -341,7 +350,12 @@
|
||||||
"20240530101000-9utmfv2",
|
"20240530101000-9utmfv2",
|
||||||
"20240530101000-6k25xnw"
|
"20240530101000-6k25xnw"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"itemIds": [
|
||||||
|
"20240530101000-3n32s4x",
|
||||||
|
"20240530101000-9utmfv2",
|
||||||
|
"20240530101000-6k25xnw"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -189,7 +189,7 @@ type View struct {
|
||||||
PageSize int `json:"pageSize"` // 每页条目数
|
PageSize int `json:"pageSize"` // 每页条目数
|
||||||
LayoutType LayoutType `json:"type"` // 当前布局类型
|
LayoutType LayoutType `json:"type"` // 当前布局类型
|
||||||
Table *LayoutTable `json:"table,omitempty"` // 表格布局
|
Table *LayoutTable `json:"table,omitempty"` // 表格布局
|
||||||
Gallery *LayoutGallery `json:"gallery,omitempty"` // 画廊布局
|
Gallery *LayoutGallery `json:"gallery,omitempty"` // 卡片布局
|
||||||
ItemIDs []string `json:"itemIds,omitempty"` // 项目 ID 列表,用于维护所有项目
|
ItemIDs []string `json:"itemIds,omitempty"` // 项目 ID 列表,用于维护所有项目
|
||||||
|
|
||||||
Groups []*View `json:"groups,omitempty"` // 分组视图列表
|
Groups []*View `json:"groups,omitempty"` // 分组视图列表
|
||||||
|
|
@ -206,7 +206,7 @@ type LayoutType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
LayoutTypeTable LayoutType = "table" // 属性视图类型 - 表格
|
LayoutTypeTable LayoutType = "table" // 属性视图类型 - 表格
|
||||||
LayoutTypeGallery LayoutType = "gallery" // 属性视图类型 - 画廊
|
LayoutTypeGallery LayoutType = "gallery" // 属性视图类型 - 卡片
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ func (baseInstanceField *BaseInstanceField) GetID() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Collection 描述了一个集合的接口。
|
// Collection 描述了一个集合的接口。
|
||||||
// 集合可以是表格、画廊等,包含多个项目。
|
// 集合可以是表格、卡片等,包含多个项目。
|
||||||
type Collection interface {
|
type Collection interface {
|
||||||
|
|
||||||
// GetItems 返回集合中的所有项目。
|
// GetItems 返回集合中的所有项目。
|
||||||
|
|
@ -138,7 +138,7 @@ type Field interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Item 描述了一个项目的接口。
|
// Item 描述了一个项目的接口。
|
||||||
// 项目可以是表格行、画廊卡片等。
|
// 项目可以是表格行、卡片等。
|
||||||
type Item interface {
|
type Item interface {
|
||||||
|
|
||||||
// GetBlockValue 返回主键的值。
|
// GetBlockValue 返回主键的值。
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ import (
|
||||||
"github.com/88250/lute/ast"
|
"github.com/88250/lute/ast"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LayoutGallery 描述了画廊布局的结构。
|
// LayoutGallery 描述了卡片布局的结构。
|
||||||
type LayoutGallery struct {
|
type LayoutGallery struct {
|
||||||
*BaseLayout
|
*BaseLayout
|
||||||
|
|
||||||
|
|
@ -30,7 +30,7 @@ type LayoutGallery struct {
|
||||||
CardSize CardSize `json:"cardSize"` // 卡片大小,0:小卡片,1:中卡片,2:大卡片
|
CardSize CardSize `json:"cardSize"` // 卡片大小,0:小卡片,1:中卡片,2:大卡片
|
||||||
FitImage bool `json:"fitImage"` // 是否适应封面图片大小
|
FitImage bool `json:"fitImage"` // 是否适应封面图片大小
|
||||||
|
|
||||||
CardFields []*ViewGalleryCardField `json:"fields"` // 画廊卡片字段
|
CardFields []*ViewGalleryCardField `json:"fields"` // 卡片字段
|
||||||
|
|
||||||
// TODO CardIDs 字段已经废弃,计划于 2026 年 6 月 30 日后删除 https://github.com/siyuan-note/siyuan/issues/15194
|
// TODO CardIDs 字段已经废弃,计划于 2026 年 6 月 30 日后删除 https://github.com/siyuan-note/siyuan/issues/15194
|
||||||
//Deprecated
|
//Deprecated
|
||||||
|
|
@ -70,7 +70,7 @@ const (
|
||||||
CardSizeLarge // 大卡片
|
CardSizeLarge // 大卡片
|
||||||
)
|
)
|
||||||
|
|
||||||
// CoverFrom 描述了画廊中的卡片封面来源的枚举类型。
|
// CoverFrom 描述了卡片封面来源的枚举类型。
|
||||||
type CoverFrom int
|
type CoverFrom int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
@ -80,12 +80,12 @@ const (
|
||||||
CoverFromContentBlock // 内容块
|
CoverFromContentBlock // 内容块
|
||||||
)
|
)
|
||||||
|
|
||||||
// ViewGalleryCardField 描述了画廊卡片字段的结构。
|
// ViewGalleryCardField 描述了卡片字段的结构。
|
||||||
type ViewGalleryCardField struct {
|
type ViewGalleryCardField struct {
|
||||||
*BaseField
|
*BaseField
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gallery 描述了画廊实例的结构。
|
// Gallery 描述了卡片视图实例的结构。
|
||||||
type Gallery struct {
|
type Gallery struct {
|
||||||
*BaseInstance
|
*BaseInstance
|
||||||
|
|
||||||
|
|
@ -94,12 +94,12 @@ type Gallery struct {
|
||||||
CardAspectRatio CardAspectRatio `json:"cardAspectRatio"` // 卡片宽高比
|
CardAspectRatio CardAspectRatio `json:"cardAspectRatio"` // 卡片宽高比
|
||||||
CardSize CardSize `json:"cardSize"` // 卡片大小
|
CardSize CardSize `json:"cardSize"` // 卡片大小
|
||||||
FitImage bool `json:"fitImage"` // 是否适应封面图片大小
|
FitImage bool `json:"fitImage"` // 是否适应封面图片大小
|
||||||
Fields []*GalleryField `json:"fields"` // 画廊字段
|
Fields []*GalleryField `json:"fields"` // 卡片字段
|
||||||
Cards []*GalleryCard `json:"cards"` // 画廊卡片
|
Cards []*GalleryCard `json:"cards"` // 卡片
|
||||||
CardCount int `json:"cardCount"` // 画廊总卡片数
|
CardCount int `json:"cardCount"` // 总卡片数
|
||||||
}
|
}
|
||||||
|
|
||||||
// GalleryCard 描述了画廊实例卡片的结构。
|
// GalleryCard 描述了卡片实例的结构。
|
||||||
type GalleryCard struct {
|
type GalleryCard struct {
|
||||||
ID string `json:"id"` // 卡片 ID
|
ID string `json:"id"` // 卡片 ID
|
||||||
Values []*GalleryFieldValue `json:"values"` // 卡片字段值
|
Values []*GalleryFieldValue `json:"values"` // 卡片字段值
|
||||||
|
|
@ -108,12 +108,12 @@ type GalleryCard struct {
|
||||||
CoverContent string `json:"coverContent"` // 卡片封面文本内容
|
CoverContent string `json:"coverContent"` // 卡片封面文本内容
|
||||||
}
|
}
|
||||||
|
|
||||||
// GalleryField 描述了画廊实例卡片字段的结构。
|
// GalleryField 描述了卡片实例字段的结构。
|
||||||
type GalleryField struct {
|
type GalleryField struct {
|
||||||
*BaseInstanceField
|
*BaseInstanceField
|
||||||
}
|
}
|
||||||
|
|
||||||
// GalleryFieldValue 描述了画廊实例字段值的结构。
|
// GalleryFieldValue 描述了卡片字段实例值的结构。
|
||||||
type GalleryFieldValue struct {
|
type GalleryFieldValue struct {
|
||||||
*BaseValue
|
*BaseValue
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,5 +17,5 @@
|
||||||
package av
|
package av
|
||||||
|
|
||||||
func (gallery *Gallery) Calc() {
|
func (gallery *Gallery) Calc() {
|
||||||
// 画廊视图不支持计算
|
// 卡片视图不支持计算
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ type ViewTableColumn struct {
|
||||||
Calc *ColumnCalc `json:"calc,omitempty"` // 计算
|
Calc *ColumnCalc `json:"calc,omitempty"` // 计算
|
||||||
}
|
}
|
||||||
|
|
||||||
// Table 描述了表格实例的结构。
|
// Table 描述了表格视图实例的结构。
|
||||||
type Table struct {
|
type Table struct {
|
||||||
*BaseInstance
|
*BaseInstance
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3234,7 +3234,7 @@ func AddAttributeViewKey(avID, keyID, keyName, keyType, keyIcon, previousKeyID s
|
||||||
if nil != view.Table {
|
if nil != view.Table {
|
||||||
if "" == previousKeyID {
|
if "" == previousKeyID {
|
||||||
if av.LayoutTypeGallery == currentView.LayoutType {
|
if av.LayoutTypeGallery == currentView.LayoutType {
|
||||||
// 如果当前视图是画廊视图则添加到最后
|
// 如果当前视图是卡片视图则添加到最后
|
||||||
view.Table.Columns = append(view.Table.Columns, &av.ViewTableColumn{BaseField: &av.BaseField{ID: key.ID}})
|
view.Table.Columns = append(view.Table.Columns, &av.ViewTableColumn{BaseField: &av.BaseField{ID: key.ID}})
|
||||||
} else {
|
} else {
|
||||||
view.Table.Columns = append([]*av.ViewTableColumn{{BaseField: &av.BaseField{ID: key.ID}}}, view.Table.Columns...)
|
view.Table.Columns = append([]*av.ViewTableColumn{{BaseField: &av.BaseField{ID: key.ID}}}, view.Table.Columns...)
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ func checkAttrView(attrView *av.AttributeView, view *av.View) {
|
||||||
// 视图类型不匹配时需要订正
|
// 视图类型不匹配时需要订正
|
||||||
for i, v := range attrView.Views {
|
for i, v := range attrView.Views {
|
||||||
if av.LayoutTypeGallery == v.LayoutType && nil == v.Gallery {
|
if av.LayoutTypeGallery == v.LayoutType && nil == v.Gallery {
|
||||||
// 切换为画廊视图时可能没有初始化画廊实例 https://github.com/siyuan-note/siyuan/issues/15122
|
// 切换为卡片视图时可能没有初始化卡片实例 https://github.com/siyuan-note/siyuan/issues/15122
|
||||||
if nil != v.Table {
|
if nil != v.Table {
|
||||||
v.LayoutType = av.LayoutTypeTable
|
v.LayoutType = av.LayoutTypeTable
|
||||||
changed = true
|
changed = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue