diff --git a/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html b/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html index 69d9c7a0dc..949d096347 100644 --- a/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +++ b/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html @@ -1,5 +1,5 @@ <% if(modal) { %> @@ -7,7 +7,7 @@ -<% } else { %> +<% } else { %> diff --git a/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts b/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts index c3eec08a4f..84f9c046a4 100644 --- a/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +++ b/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts @@ -8,7 +8,7 @@ import { Component, OnInit, ViewChild<% if(!!viewEncapsulation) { %>, ViewEncaps @Component({ selector: '<%= selector %>',<% if(inlineTemplate) { %> template: `<% if(modal) { %> @@ -16,7 +16,7 @@ import { Component, OnInit, ViewChild<% if(!!viewEncapsulation) { %>, ViewEncaps - <% } else { %> + <% } else { %> diff --git a/packages/schematics/list/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html b/packages/schematics/list/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html index 0025e21315..c6d3152d4b 100644 --- a/packages/schematics/list/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +++ b/packages/schematics/list/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html @@ -1,5 +1,8 @@ - + +
+ +
diff --git a/packages/schematics/list/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts b/packages/schematics/list/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts index 314346e9ba..346f44eaaa 100644 --- a/packages/schematics/list/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +++ b/packages/schematics/list/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts @@ -6,9 +6,12 @@ import { SFSchema } from '@delon/form'; @Component({ selector: '<%= selector %>',<% if(inlineTemplate) { %> template: ` - + +
+ +
`,<% } else { %> @@ -48,4 +51,6 @@ export class <%= componentName %> implements OnInit { ngOnInit() { } + add() { } + } diff --git a/packages/schematics/view/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html b/packages/schematics/view/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html index 91242f5eed..a55dca770a 100644 --- a/packages/schematics/view/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +++ b/packages/schematics/view/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html @@ -1,5 +1,5 @@ <% if(modal) { %> @@ -11,7 +11,7 @@ <% } else { %> +<% } else { %> diff --git a/packages/schematics/view/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts b/packages/schematics/view/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts index 353cacd167..e200ab776c 100644 --- a/packages/schematics/view/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +++ b/packages/schematics/view/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts @@ -7,7 +7,7 @@ import { Component, OnInit<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% } selector: '<%= selector %>',<% if(inlineTemplate) { %> template: `<% if(modal) { %> @@ -19,7 +19,7 @@ import { Component, OnInit<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% } <% } else { %> + <% } else { %>