mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 21:01:56 +00:00
fix: svg-icon 默认改为 large
This commit is contained in:
parent
07dab6db8e
commit
21d92ffd2d
@ -280,17 +280,10 @@ export class ComponentMeta {
|
||||
checkNestingDown(my: Node, target: Node | NodeSchema | NodeSchema[]) {
|
||||
// 检查父子关系,直接约束型,在画布中拖拽直接掠过目标容器
|
||||
if (this.childWhitelist) {
|
||||
let _target: any = target;
|
||||
if (!Array.isArray(_target)) {
|
||||
_target = [_target];
|
||||
}
|
||||
|
||||
return !_target.some((item: Node | NodeSchema) => {
|
||||
let _item = item;
|
||||
if (!isNode(_item)) {
|
||||
_item = new Node(my.document, _item);
|
||||
}
|
||||
return this.childWhitelist && !this.childWhitelist(_item, my);
|
||||
const _target: any = !Array.isArray(target) ? [target] : target;
|
||||
return _target.every((item: Node | NodeSchema) => {
|
||||
const _item = !isNode(item) ? new Node(my.document, item) : item;
|
||||
return this.childWhitelist && this.childWhitelist(_item, my);
|
||||
});
|
||||
}
|
||||
return true;
|
||||
|
||||
@ -18,7 +18,7 @@ export interface IconProps {
|
||||
|
||||
export function SVGIcon({
|
||||
fill,
|
||||
size = 'medium',
|
||||
size = 'large',
|
||||
viewBox,
|
||||
style,
|
||||
children,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user