Browse Source
Merge pull request #15043 from abpframework/auto-merge/rel-6-0/1567
Merge branch rel-7.0 with rel-6.0
pull/15048/head
Yunus Emre Kalkan
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
4 additions and
3 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/AngularSourceCodeAdder.cs
-
npm/ng-packs/packages/components/tree/src/lib/components/tree.component.ts
-
npm/ng-packs/packages/components/tree/src/lib/utils/nz-tree-adapter.ts
|
|
|
@ -249,7 +249,7 @@ public class AngularSourceCodeAdder : ITransientDependency |
|
|
|
|
|
|
|
fileContent = Regex.Replace(fileContent, @"apis\s*:\s*{", |
|
|
|
"apis: {"+ Environment.NewLine + |
|
|
|
" " + moduleName.Split(".").Last() + ":"+ Environment.NewLine + |
|
|
|
" " + moduleName.Split(".").Last() + ": {"+ Environment.NewLine + |
|
|
|
" rootNamespace: '" + moduleName + "',"+ Environment.NewLine + |
|
|
|
" },"); |
|
|
|
|
|
|
|
|
|
|
|
@ -41,6 +41,7 @@ export class TreeComponent { |
|
|
|
@Output() readonly expandedKeysChange = new EventEmitter<string[]>(); |
|
|
|
@Output() readonly selectedNodeChange = new EventEmitter(); |
|
|
|
@Output() readonly dropOver = new EventEmitter<DropEvent>(); |
|
|
|
@Output() readonly nzExpandChange = new EventEmitter<NzFormatEmitEvent>(); |
|
|
|
@Input() noAnimation = true; |
|
|
|
@Input() draggable: boolean; |
|
|
|
@Input() checkable: boolean; |
|
|
|
@ -76,6 +77,7 @@ export class TreeComponent { |
|
|
|
onExpandedKeysChange(event) { |
|
|
|
this.expandedKeys = [...event.keys]; |
|
|
|
this.expandedKeysChange.emit(event.keys); |
|
|
|
this.nzExpandChange.emit(event); |
|
|
|
} |
|
|
|
|
|
|
|
onDrop(event: DropEvent) { |
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ export abstract class BaseNode { |
|
|
|
constructor(public id: string, public parentId: string | null) {} |
|
|
|
} |
|
|
|
|
|
|
|
class TreeNode<T extends BaseNode> extends BaseNode { |
|
|
|
export class TreeNode<T extends BaseNode> extends BaseNode { |
|
|
|
title: string | undefined; |
|
|
|
key: string; |
|
|
|
icon: string | null = null; |
|
|
|
@ -89,7 +89,6 @@ function createTreeFromList<T extends BaseNode>(list: T[]): TreeNode<T>[] { |
|
|
|
tree.push(node); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
return tree; |
|
|
|
} |
|
|
|
|
|
|
|
|