baidu / baidu/amis

textarea 可以支持source 来获取到数据么

Open
#7,802 1 comment 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

#### 描述问题:

textarea 获取不到source 数据 我找了文档 是不支持么
textarea不会触发联动 只有input-text 可以 ,但如果多行的话 input-text 多行文件又不能全部插

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

1. 你是如何使用 amis 的?
通过json 配置实现

2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
sdk:3.2
3. 粘贴有问题的完整 `amis schema` 代码:
```
{
'label': '模型编号',
'type': 'select',
'name': 'model_id',
'selectMode': 'table',
'multiple': false,
'columns': [
{
'name': 'label',
'label': '模型编号'
},
{
'name': 'position',
'label': '模型名称'
}
// {
// 'name': 'modelfile',
// 'label': '模型文件'
// }
],
'source': '/zjlab/model/select-model-select'
},
{
'name': 'model_file_name',
'type': 'textarea',
'clearable': true,
'required': true,
'label': '模型文件',
'selectFirst': true,
'source': {
'method': 'get',
'url': '/zjlab/model//select-modelinfo-byid?id=${model_id}'
}
}
```

4. 操作步骤
textarea不会触发联动 只有input-text 可以 ,但如果多行的话 input-text 多行文件又不能全部插入
![image](https://github.com/baidu/amis/assets/48401565/327b926b-ad59-4fff-bf3e-a98fa568b1c3)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the provided AMIS JSON schema with the textarea and input-text controls, using the listed model selection and source URLs. Compare how source and linkage behave between the two controls, then confirm the expected result for loading multiline model-file data into the textarea.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.