Skip to content

Commit

Permalink
fix:scope命中多目标兼容空格情况
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm-lv committed Feb 21, 2024
1 parent cbc1797 commit 5bd983b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amis-core/src/Scoped.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function splitTarget(target: string): Array<string> {
let parts: Array<string> = [];

pos.reduceRight((arr: Array<string>, index) => {
arr.unshift(target.slice(index + 1));
arr.unshift(target.slice(index + 1)?.trim());
target = target.slice(0, index);
return arr;
}, parts);
Expand Down

0 comments on commit 5bd983b

Please sign in to comment.