tongluyang
tongluyang
增加一个过滤参数,用于过滤一些插入广告 :)
我想实现这么一个场景,点击一个Tree的节点时,打开一个侧边框,侧边框根据选中节点的值,显示不同的内容 我本来是想利用联动,类似如下 ```json { "type": "page", "name": "page", "title": "i'm title", "aside": { "title": "", "type": "form", "mode": "horizontal", "autoFocus": false, "controls": [ { "type": "tree", "name": "tree", "value": 2,...
自定义组件不生效
根据文档 [https://github.com/baidu/amis/blob/master/docs/sdk.md#%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86](url) 做了两件事情: 1、新建```CustomRenderer.tsx```,内容和文档一模一样,为 ``` import * as React from 'react'; import { Renderer } from 'amis'; @Renderer({ test: /(^|\/)my\-renderer$/, }) class CustomRenderer extends React.Component { render() { const {tip}...
自定义组件传值
请问如何将一个组件A 的值传递给另外一个组件B 我现在知道的是,如果组件A和组件B都是form,那没有问题 那如果其中一个组件或者两个组件都是自定义的,不是form,除了外面套个form外应该怎么做 例如有这么一个场景: A改变,提交到B,B根据A的值渲染不同的表单内容,B再提交表单内容到C,C进行加工展示 首先A,可以用select或者tree之类的submitOnChange,form上加target,没有问题 然后B,因为B要根据A的值渲染不同的表单,那我想着把B做成一个自定义组件,自定义组件内部根据A的值 通过```renderAmis```再渲染不同的form,那这里有个问题:如果A的target是这个自定义组件的name,这个自定义的组件好像收不到A的值;如果自定义组件上面套个form,A的target为上面form的name,那可以通过form把A的值传递到B中,但这样又引入另外一个问题,B本身渲染的就是一个form,造成了form嵌套 B->C,和上一步类似,C如果不是form,怎么接收B的数据并加工,这一块我更想知道的是,amis的组件有没有直接执行react方法的配置,现在看action的文档,actionType只有枚举的那几种类型
## 🐛 Bug Report I test my code by "Write directly" the testcase is `"dir\\n\\tsubdir1\\n\\tsubdir2\\n\\t\\tfile.ext"` it have some '\n' I want submit '\n' to leetcode, but it eaten by the...