feat: kanban add description (#659)

* feat: kanban add description

* fix(client): update translations

Co-authored-by: chenos <chenlinxh@gmail.com>
This commit is contained in:
金昶 2022-07-25 10:40:27 +08:00 committed by GitHub
parent 9f7f482aa4
commit c86b6f9a06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 7 deletions

View File

@ -54,7 +54,7 @@ export default {
"Select data source": "Select data source", "Select data source": "Select data source",
"Calendar": "Calendar", "Calendar": "Calendar",
"Kanban": "Kanban", "Kanban": "Kanban",
"Select group field": "Select group field", "Select grouping field": "Select grouping field",
"Media": "Media", "Media": "Media",
"Markdown": "Markdown", "Markdown": "Markdown",
"Wysiwyg": "Wysiwyg", "Wysiwyg": "Wysiwyg",
@ -373,7 +373,7 @@ export default {
"Reference template": "Reference template", "Reference template": "Reference template",
"Create calendar block": "Create calendar block", "Create calendar block": "Create calendar block",
"Create kanban block": "Create kanban block", "Create kanban block": "Create kanban block",
"Group field": "Group field", "Grouping field": "Grouping field",
"Tab name": "Tab name", "Tab name": "Tab name",
"Current record blocks": "Current record blocks", "Current record blocks": "Current record blocks",
"Popup message": "Popup message", "Popup message": "Popup message",
@ -554,4 +554,5 @@ export default {
"Enabled languages": "Enabled languages", "Enabled languages": "Enabled languages",
"View all plugins": "View all plugins", "View all plugins": "View all plugins",
"Print": "Print", "Print": "Print",
'Single select and radio fields can be used as the grouping field': 'Single select and radio fields can be used as the grouping field',
} }

View File

@ -54,7 +54,7 @@ export default {
"Select data source": "选择数据源", "Select data source": "选择数据源",
"Calendar": "日历", "Calendar": "日历",
"Kanban": "看板", "Kanban": "看板",
"Select group field": "选择分组字段", "Select grouping field": "选择分组字段",
"Media": "多媒体", "Media": "多媒体",
"Markdown": "Markdown", "Markdown": "Markdown",
"Wysiwyg": "富文本", "Wysiwyg": "富文本",
@ -432,8 +432,8 @@ export default {
'Create calendar block': '创建日历区块', 'Create calendar block': '创建日历区块',
'Create kanban block': '创建看板区块', 'Create kanban block': '创建看板区块',
'Group field': '分组字段', 'Grouping field': '分组字段',
'Single select and radio fields can be used as the grouping field': '数据表的单选字段可以作为分组字段',
'Tab name': '标签名称', 'Tab name': '标签名称',
'Current record blocks': '当前数据区块', 'Current record blocks': '当前数据区块',

View File

@ -20,7 +20,7 @@ import {
createTableSelectorSchema, createTableSelectorSchema,
useCollectionDataSourceItems, useCollectionDataSourceItems,
useCurrentSchema, useCurrentSchema,
useRecordCollectionDataSourceItems, useRecordCollectionDataSourceItems
} from '../utils'; } from '../utils';
// Block // Block
@ -268,9 +268,10 @@ export const KanbanBlockInitializer = (props) => {
schema={{ schema={{
properties: { properties: {
groupField: { groupField: {
title: t('Group field'), title: t('Grouping field'),
enum: fields, enum: fields,
required: true, required: true,
description: '{{t("Single select and radio fields can be used as the grouping field")}}',
'x-component': 'Select', 'x-component': 'Select',
'x-component-props': { 'x-component-props': {
objectValue: true, objectValue: true,