mirror of
https://github.com/nocobase/nocobase
synced 2024-11-14 22:15:10 +00:00
fix: field component options has not been translated correctly (#5442)
Some checks are pending
Build docker image / build-and-push (push) Waiting to run
Build pro image / build-and-push (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase frontEnd test / frontend-test (18) (push) Waiting to run
Some checks are pending
Build docker image / build-and-push (push) Waiting to run
Build pro image / build-and-push (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase frontEnd test / frontend-test (18) (push) Waiting to run
This commit is contained in:
parent
ce3618033e
commit
821d790169
@ -12,6 +12,7 @@ import { cloneDeep } from 'lodash';
|
||||
import type { CollectionFieldOptions } from '../collection';
|
||||
import { CollectionFieldInterfaceManager } from './CollectionFieldInterfaceManager';
|
||||
import { defaultProps } from '../../collection-manager/interfaces/properties';
|
||||
import { tval } from '@nocobase/utils/client';
|
||||
export type CollectionFieldInterfaceFactory = new (
|
||||
collectionFieldInterfaceManager: CollectionFieldInterfaceManager,
|
||||
) => CollectionFieldInterface;
|
||||
@ -73,7 +74,7 @@ export abstract class CollectionFieldInterface {
|
||||
if (xComponent) {
|
||||
this.componentOptions = [
|
||||
{
|
||||
label: xComponent.split('.').pop(),
|
||||
label: tval(xComponent.split('.').pop()),
|
||||
value: xComponent,
|
||||
useProps() {
|
||||
return componentProps || {};
|
||||
|
Loading…
Reference in New Issue
Block a user