Skip to content

Commit

Permalink
发货人提示修改
Browse files Browse the repository at this point in the history
  • Loading branch information
HhQr committed Feb 3, 2018
1 parent 8ae8b4f commit b2ce33e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
import { Component, OnInit } from '@angular/core';
import { NzMessageService } from "../../../components/ng-zorro-antd.module";

@Component({
selector: 'shipper-select-demo-basic',
template: `
<shipper-select [(ngModel)]="value"></shipper-select>
<button (click)="handle()">获取发货人编号</button>
<button nz-button [nzType]="'primary'" (click)="handle()">获取发货人编号</button>
`,
styles: []
})
export class ShipperSelectDemoBasicComponent implements OnInit {
value: string = "";
constructor() { }
constructor(private _message: NzMessageService) { }

ngOnInit() {
}

handle() {
console.log(this.value)
this._message.info('发货人编号值为:'+this.value);
}

}
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
import { Component, OnInit } from '@angular/core';
import { NzMessageService } from "../../../components/ng-zorro-antd.module";

@Component({
selector: 'shipper-select-demo-multiple',
template: `
<shipper-select [(ngModel)]="value" [shipperMode]="'multiple'"></shipper-select>
<button (click)="handle()">获取发货人编号数组</button>
<button nz-button [nzType]="'primary'" (click)="handle()">获取发货人编号数组</button>
`,
styles: []
})
export class ShipperSelectDemoMultipleComponent implements OnInit {
value: any[] = [];
constructor() { }
constructor(private _message: NzMessageService) { }

ngOnInit() {
}
handle() {
console.log(this.value);
this._message.info("发货人编号数组为:"+this.value);
}

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { NzMessageService } from "../../../components/ng-zorro-antd.module";

@Component({
selector: 'shipper-select-demo-template',
Expand All @@ -11,7 +12,7 @@ import { Component, OnInit } from '@angular/core';
</div>
</ng-template>
</shipper-select>
<button (click)="handle()">获取发货人编号</button>
<button nz-button [nzType]="'primary'" (click)="handle()">获取发货人编号</button>
`,
styles: [`
.border-right{
Expand All @@ -23,12 +24,12 @@ import { Component, OnInit } from '@angular/core';
})
export class ShipperSelectDemoTemplateComponent implements OnInit {
value: any;
constructor() { }
constructor(private _message: NzMessageService) { }

ngOnInit() {
}
handle() {
console.log(this.value);
this._message.info('获取发货人编号为:'+this.value);
}

}

0 comments on commit b2ce33e

Please sign in to comment.