Comments (4)
表单项配置 strickMode: false
另外可以这个场景其实可以直接用这个机制 https://aisuda.bce.baidu.com/amis/zh-CN/docs/concepts/linkage#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8
from amis.
表单项配置 strickMode: false
另外可以这个场景其实可以直接用这个机制 https://aisuda.bce.baidu.com/amis/zh-CN/docs/concepts/linkage#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8
{
"type": "form",
"body": [
{
"type": "select",
"label": "选项1",
"name": "select1",
"options": [
{
"label": "选项A",
"value": "A"
},
{
"label": "选项B",
"value": "B"
}
],
"id": "u:7fd35fab406e",
"multiple": false,
"onEvent": {
"change": {
"weight": 0,
"actions": [
{
"componentId": "u:3f3bf5be7036",
"ignoreError": false,
"actionType": "reload"
}
]
}
},
"strictMode": false
},
{
"type": "select",
"label": "选项2",
"name": "select2",
"id": "u:3f3bf5be7036",
"multiple": false,
"source": {
"url": "http://dnn1a1cvipdt",
"method": "post",
"data": {
"name": "${select1}"
}
},
"labelField": "name",
"valueField": "id",
"strictMode": false
}
],
"id": "u:68ad3b4c6589",
"actions": [
{
"type": "submit",
"label": "提交",
"primary": true,
"id": "u:dc795c3d4eee"
}
],
"feat": "Insert"
}
加了strictMode 没用
from amis.
表单项配置 strickMode: false
另外可以这个场景其实可以直接用这个机制 https://aisuda.bce.baidu.com/amis/zh-CN/docs/concepts/linkage#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8{ "type": "form", "body": [ { "type": "select", "label": "选项1", "name": "select1", "options": [ { "label": "选项A", "value": "A" }, { "label": "选项B", "value": "B" } ], "id": "u:7fd35fab406e", "multiple": false, "onEvent": { "change": { "weight": 0, "actions": [ { "componentId": "u:3f3bf5be7036", "ignoreError": false, "actionType": "reload" } ] } }, "strictMode": false }, { "type": "select", "label": "选项2", "name": "select2", "id": "u:3f3bf5be7036", "multiple": false, "source": { "url": "http://dnn1a1cvipdt", "method": "post", "data": { "name": "${select1}" } }, "labelField": "name", "valueField": "id", "strictMode": false } ], "id": "u:68ad3b4c6589", "actions": [ { "type": "submit", "label": "提交", "primary": true, "id": "u:dc795c3d4eee" } ], "feat": "Insert" }
加了strictMode 没用
现在的应用场景是只使用编辑器的可视化面板进行配置 能不能用可视化面板在不更改源码的情况下实现这一需求
from amis.
在chang 里加了 debounce防抖就可以拿到最新的值了
from amis.
Related Issues (20)
- 增删改查控件如果mode是cards,不支持rowClick事件吗,设置了点击卡片无效
- 数据域里增加静态数据时,如果key以__开头,不生效 HOT 8
- 请问crud组件是否完全支持table和table2的所有功能 HOT 1
- code组件值为空时控制台会出现报错
- crud组件切换外观-卡片或列表,行点击事件无效
- 在crud插件搜索内添加时间范围插件,清空时间只能清除startTime,endTime清除不了 HOT 1
- 表格的复制功能,可以不复制id吗,操作流程:后端返回表格数据后,然后点击复制。这样会导致这2行的id一样,提交给后端,后端处理数据的时候就会认为是同一条数据,导致数据覆盖 HOT 1
- TreeSelect 树形选择器,开启多选,onlyLeaf设置为true不生效 HOT 2
- form组件能否在重置按钮之后,清空缓存 HOT 1
- input-text选择器模式+多选模式在删除内容时触发不了change事件
- 表单项 validateApi 接口连续请求,之前的接口会被取消,校验提示信息展示有问题
- 条件组件,里面是一个且的条件下,有值,表单校验位空:bug HOT 2
- [amis-editor] 在vite项目中调用报错:[mobx-state-tree] You are trying to read or write to an object that is no longer part of a state tree.
- 怎么在button的事件中控制按钮本身loading的开关
- 如何在curd里显示combo组件提交的内容?
- 建议二维码 组件渲染的时候 将svg转成canvas 这样可以右键复制,否则无法复制图片 需要截图才可以在其他地方用 HOT 2
- 表单里面有个crud,阻止了表单回车提交,但是crud 回车查询也不管用了,希望crud查询生效,底层表单不生效,如何设置 HOT 1
- 【BUG】InputDatetime 日期时间 设置值格式 ISO8601,自动转换成UTC格式
- 角标支持表格、page等场景使用
- Wizard 向导 step 的 api 会将之前的step中 的表单数据一起提交 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amis.