baidu / baidu/amis

CURD组件的列标题支持调用自定义函数,但表格2.0的列标题不支持!!!

Open
#9,664 0 comments 0 reactions 0 assignees View on GitHub
need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 描述问题:

CRUD组件的列标题支持调用自定义函数,通过通过调用指定的函数根据 key 动态获取多语言标题,编辑器及SDK均正常。

但编辑器及SDK都不支持表格2.0列标题调用自定义函数!!!

#### 截图或视频:
${t('system.uom.column.uomCategory')} 返回的值为:“类别”。

CRUD支持自定义函数
![image](https://github.com/baidu/amis/assets/127393297/4335f931-fff4-4c68-84dc-aace05b10902)

表格2.0不支持自定义函数
![image](https://github.com/baidu/amis/assets/127393297/436f9336-7012-4a0f-bb34-3f16f5231f81)

#### 如何复现(请务必完整填写下面内容):

1. 你是如何使用 amis 的?
npm

2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
6.1.0

3. 粘贴有问题的完整 `amis schema` 代码:
```
code here...
```

4. 操作步骤
请简单描述一下复现的操作步骤...

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names CRUD, Table 2.0, the editor, SDK, and the ${t('system.uom.column.uomCategory')} column-title expression, but provides no complete schema, file, or test. Start by reproducing the difference between CRUD and Table 2.0 with the stated expression; done means Table 2.0 supports the same dynamic localized column title in both the editor and SDK.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, internationalization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.