mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-03 16:07:24 +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[]) {
|
checkNestingDown(my: Node, target: Node | NodeSchema | NodeSchema[]) {
|
||||||
// 检查父子关系,直接约束型,在画布中拖拽直接掠过目标容器
|
// 检查父子关系,直接约束型,在画布中拖拽直接掠过目标容器
|
||||||
if (this.childWhitelist) {
|
if (this.childWhitelist) {
|
||||||
let _target: any = target;
|
const _target: any = !Array.isArray(target) ? [target] : target;
|
||||||
if (!Array.isArray(_target)) {
|
return _target.every((item: Node | NodeSchema) => {
|
||||||
_target = [_target];
|
const _item = !isNode(item) ? new Node(my.document, item) : item;
|
||||||
}
|
return this.childWhitelist && this.childWhitelist(_item, my);
|
||||||
|
|
||||||
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);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@ -18,7 +18,7 @@ export interface IconProps {
|
|||||||
|
|
||||||
export function SVGIcon({
|
export function SVGIcon({
|
||||||
fill,
|
fill,
|
||||||
size = 'medium',
|
size = 'large',
|
||||||
viewBox,
|
viewBox,
|
||||||
style,
|
style,
|
||||||
children,
|
children,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user