mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
Merge "amis-saas-5196:层级限制并提示" into feat-optimize-4
This commit is contained in:
commit
c24217c6b9
@ -245,7 +245,7 @@ export class NestedSelectControlPlugin extends BasePlugin {
|
||||
},
|
||||
{
|
||||
type: 'container',
|
||||
className: 'ae-ExtendMore',
|
||||
className: 'ae-ExtendMore mb-3',
|
||||
visibleOn: 'this.multiple',
|
||||
body: [
|
||||
{
|
||||
|
@ -263,6 +263,10 @@ export default class TreeOptionControl extends React.Component<
|
||||
}
|
||||
@autobind
|
||||
addChildOption(pathStr: string) {
|
||||
if (pathStr.split('-').length >= 7) {
|
||||
toast.warning('层级过深,建议使用【接口获取】管理选项', {closeButton: true});
|
||||
return;
|
||||
}
|
||||
const options = cloneDeep(this.state.options);
|
||||
const {path} = this.getNodePath(pathStr);
|
||||
const node = get(options, path) || [];
|
||||
|
Loading…
Reference in New Issue
Block a user