mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-11-29 18:58:26 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
816616cca0
@ -108,8 +108,8 @@
|
||||
"Close": "Close",
|
||||
"Set the data scope": "Set the data scope",
|
||||
"Set data loading mode": "Set data loading mode",
|
||||
"Automatically load data": "Automatically load data",
|
||||
"Load data after filtering": "Load data after filtering",
|
||||
"Load all data when filter is empty": "Load all data when filter is empty",
|
||||
"Do not load data when filter is empty": "Do not load data when filter is empty",
|
||||
"Data loading mode": "Data loading mode",
|
||||
"Data blocks": "Data blocks",
|
||||
"Filter blocks": "Filter blocks",
|
||||
|
@ -104,8 +104,8 @@
|
||||
"Set the data scope": "Establecer el ámbito de los datos",
|
||||
"Data loading mode": "Modo de carga de datos",
|
||||
"Set data loading mode": "Establecer el modo de carga de datos",
|
||||
"Automatically load data": "Cargar datos",
|
||||
"Load data after filtering": "Cargar datos después de filtrar",
|
||||
"Load all data when filter is empty": "Cargar todos los datos cuando el filtro esté vacío",
|
||||
"Do not load data when filter is empty": "No cargar datos cuando el filtro esté vacío",
|
||||
"Data blocks": "Bloques de datos",
|
||||
"Filter blocks": "Bloques de filtro",
|
||||
"Table": "Tabla",
|
||||
|
@ -104,8 +104,8 @@
|
||||
"Set the data scope": "Définir la portée des données",
|
||||
"Data loading mode": "Mode de chargement des données",
|
||||
"Set data loading mode": "Définir le mode de chargement des données",
|
||||
"Automatically load data": "Charger automatiquement les données",
|
||||
"Load data after filtering": "Charger les données après filtrage",
|
||||
"Load all data when filter is empty": "Charger toutes les données lorsque le filtre est vide",
|
||||
"Do not load data when filter is empty": "Ne pas charger les données lorsque le filtre est vide",
|
||||
"Data blocks": "Blocs de données",
|
||||
"Filter blocks": "Blocs de filtre",
|
||||
"Table": "Tableau",
|
||||
|
@ -107,8 +107,8 @@
|
||||
"Set the data scope": "データ範囲の設定",
|
||||
"Data loading mode": "データ読み込みモード",
|
||||
"Set data loading mode": "データ読み込みモードの設定",
|
||||
"Automatically load data": "データを自動的に読み込む",
|
||||
"Load data after filtering": "フィルタリング後にデータを読み込む",
|
||||
"Load all data when filter is empty": "フィルターが空の場合、すべてのデータを読み込む",
|
||||
"Do not load data when filter is empty": "フィルターが空の場合、データを読み込まない",
|
||||
"Data blocks": "データブロック",
|
||||
"Filter blocks": "フィルターブロック",
|
||||
"Table OID(Inheritance)": "データテーブルOID(継承)",
|
||||
|
@ -127,8 +127,8 @@
|
||||
"Set the data scope": "데이터 범위 설정",
|
||||
"Data loading mode": "데이터 로드 모드",
|
||||
"Set data loading mode": "데이터 로드 모드 설정",
|
||||
"Automatically load data": "데이터 자동 로드",
|
||||
"Load data after filtering": "필터링 후 데이터 로드",
|
||||
"Load all data when filter is empty": "필터가 비어 있을 때 모든 데이터 로드",
|
||||
"Do not load data when filter is empty": "필터가 비어 있을 때 데이터 로드 안 함",
|
||||
"Block": "블록",
|
||||
"Data blocks": "데이터 블록",
|
||||
"Filter blocks": "필터 블록",
|
||||
|
@ -78,8 +78,8 @@
|
||||
"Set the data scope": "Definir o escopo de dados",
|
||||
"Data loading mode": "Modo de carregamento de dados",
|
||||
"Set data loading mode": "Definir modo de carregamento de dados",
|
||||
"Automatically load data": "Carregar dados automaticamente",
|
||||
"Load data after filtering": "Carregar dados após filtragem",
|
||||
"Load all data when filter is empty": "Carregar todos os dados quando o filtro estiver vazio",
|
||||
"Do not load data when filter is empty": "Não carregar dados quando o filtro estiver vazio",
|
||||
"Data blocks": "Blocos de dados",
|
||||
"Filter blocks": "Blocos de filtro",
|
||||
"Table": "Tabela",
|
||||
|
@ -74,8 +74,8 @@
|
||||
"Set the data scope": "Установить область данных",
|
||||
"Data loading mode": "Режим загрузки данных",
|
||||
"Set data loading mode": "Установить режим загрузки данных",
|
||||
"Automatically load data": "Автоматически загружать данные",
|
||||
"Load data after filtering": "Загружать данные после фильтрации",
|
||||
"Load all data when filter is empty": "Загружать все данные, когда фильтр пуст",
|
||||
"Do not load data when filter is empty": "Не загружать данные, когда фильтр пуст",
|
||||
"Data blocks": "Блоки данных",
|
||||
"Filter blocks": "Просеивающие блоки",
|
||||
"Table": "Таблица",
|
||||
|
@ -74,8 +74,8 @@
|
||||
"Set the data scope": "Veri kapsamını ayarla",
|
||||
"Data loading mode": "Veri yükleme modu",
|
||||
"Set data loading mode": "Veri yükleme modunu ayarla",
|
||||
"Automatically load data": "Veriyi otomatik yükle",
|
||||
"Load data after filtering": "Filtrelemeden sonra veriyi yükle",
|
||||
"Load all data when filter is empty": "Filtre boş olduğunda tüm verileri yükle",
|
||||
"Do not load data when filter is empty": "Filtre boş olduğunda veri yükleme",
|
||||
"Data blocks": "Veri Blokları",
|
||||
"Filter blocks": "Filtre blokları",
|
||||
"Table": "Tablo",
|
||||
|
@ -104,8 +104,8 @@
|
||||
"Set the data scope": "Встановити обсяг даних",
|
||||
"Data loading mode": "Режим завантаження даних",
|
||||
"Set data loading mode": "Встановити режим завантаження даних",
|
||||
"Automatically load data": "Автоматично завантажувати дані",
|
||||
"Load data after filtering": "Завантажувати дані після фільтрації",
|
||||
"Load all data when filter is empty": "Завантажувати всі дані, коли фільтр порожній",
|
||||
"Do not load data when filter is empty": "Не завантажувати дані, коли фільтр порожній",
|
||||
"Data blocks": "Блоки даних",
|
||||
"Filter blocks": "Блоки фільтрів",
|
||||
"Table": "Таблиця",
|
||||
|
@ -127,8 +127,8 @@
|
||||
"Set the data scope": "设置数据范围",
|
||||
"Data loading mode": "数据加载方式",
|
||||
"Set data loading mode": "设置数据加载方式",
|
||||
"Automatically load data": "自动加载数据",
|
||||
"Load data after filtering": "筛选后才加载数据",
|
||||
"Load all data when filter is empty": "筛选条件为空时加载全部数据",
|
||||
"Do not load data when filter is empty": "筛选条件为空时不加载数据",
|
||||
"Block": "区块",
|
||||
"Data blocks": "数据区块",
|
||||
"Filter blocks": "筛选区块",
|
||||
|
@ -127,8 +127,8 @@
|
||||
"Set the data scope": "設定資料範圍",
|
||||
"Data loading mode": "資料加載方式",
|
||||
"Set data loading mode": "設定資料加載方式",
|
||||
"Automatically load data": "自動加載資料",
|
||||
"Load data after filtering": "篩選後才加載資料",
|
||||
"Load all data when filter is empty": "當篩選條件為空時加載所有資料",
|
||||
"Do not load data when filter is empty": "當篩選條件為空時不加載資料",
|
||||
"Block": "區塊",
|
||||
"Data blocks": "資料區塊",
|
||||
"Filter blocks": "篩選區塊",
|
||||
|
@ -25,28 +25,28 @@ test.describe('setDataLoadingModeSettingsItem', () => {
|
||||
await page.getByLabel('block-item-CardItem-users-table').hover();
|
||||
await page.getByLabel('designer-schema-settings-CardItem-blockSettings:table-users').hover();
|
||||
await page.getByRole('menuitem', { name: 'Set data loading mode' }).click();
|
||||
await page.getByLabel('Load data after filtering').check();
|
||||
await page.getByLabel('Do not load data when filter is empty').check();
|
||||
await page.getByRole('button', { name: 'OK', exact: true }).click();
|
||||
|
||||
// Details
|
||||
await page.getByLabel('block-item-CardItem-users-details').hover();
|
||||
await page.getByLabel('designer-schema-settings-CardItem-blockSettings:detailsWithPagination-users').hover();
|
||||
await page.getByRole('menuitem', { name: 'Set data loading mode' }).click();
|
||||
await page.getByLabel('Load data after filtering').check();
|
||||
await page.getByLabel('Do not load data when filter is empty').check();
|
||||
await page.getByRole('button', { name: 'OK', exact: true }).click();
|
||||
|
||||
// List
|
||||
await page.getByLabel('block-item-CardItem-users-list').hover();
|
||||
await page.getByLabel('designer-schema-settings-CardItem-blockSettings:list-users').hover();
|
||||
await page.getByRole('menuitem', { name: 'Set data loading mode' }).click();
|
||||
await page.getByLabel('Load data after filtering').check();
|
||||
await page.getByLabel('Do not load data when filter is empty').check();
|
||||
await page.getByRole('button', { name: 'OK', exact: true }).click();
|
||||
|
||||
// GridCard
|
||||
await page.getByLabel('block-item-BlockItem-users-').hover();
|
||||
await page.getByLabel('designer-schema-settings-BlockItem-blockSettings:gridCard-users').hover();
|
||||
await page.getByRole('menuitem', { name: 'Set data loading mode' }).click();
|
||||
await page.getByLabel('Load data after filtering').check();
|
||||
await page.getByLabel('Do not load data when filter is empty').check();
|
||||
await page.getByRole('button', { name: 'OK', exact: true }).click();
|
||||
|
||||
// 所有区块应该显示 No data
|
||||
|
@ -11,10 +11,10 @@ import { ISchema, useField, useFieldSchema } from '@formily/react';
|
||||
import _ from 'lodash';
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useDesignable } from '../../../../schema-component';
|
||||
import { SchemaSettingsModalItem, useCollectionState } from '../../../../schema-settings';
|
||||
import { useCollection_deprecated } from '../../../../collection-manager/hooks/useCollection_deprecated';
|
||||
import { useDataBlockProps, useDataBlockRequest } from '../../../../data-source';
|
||||
import { useDesignable } from '../../../../schema-component';
|
||||
import { SchemaSettingsModalItem, useCollectionState } from '../../../../schema-settings';
|
||||
|
||||
export const setDataLoadingModeSettingsItem = {
|
||||
name: 'setDataLoadingMode',
|
||||
@ -49,8 +49,8 @@ export function SetDataLoadingMode() {
|
||||
'x-component': 'Radio.Group',
|
||||
default: fieldSchema['x-decorator-props']?.dataLoadingMode || 'auto',
|
||||
enum: [
|
||||
{ value: 'auto', label: t('Automatically load data') },
|
||||
{ value: 'manual', label: t('Load data after filtering') },
|
||||
{ value: 'auto', label: t('Load all data when filter is empty') },
|
||||
{ value: 'manual', label: t('Do not load data when filter is empty') },
|
||||
],
|
||||
},
|
||||
},
|
||||
|
@ -178,7 +178,7 @@ describe('Table.settings', () => {
|
||||
modalChecker: {
|
||||
modalTitle: 'Data loading mode',
|
||||
async beforeCheck() {
|
||||
await userEvent.click(screen.getByText('Load data after filtering'));
|
||||
await userEvent.click(screen.getByText('Do not load data when filter is empty'));
|
||||
},
|
||||
async afterSubmit() {
|
||||
await checkSchema({
|
||||
|
Loading…
Reference in New Issue
Block a user