mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(alert): remove alert label feature
This commit is contained in:
@@ -24,7 +24,7 @@ $alert-ios-body-text-align: center !default;
|
||||
$alert-ios-body-font-size: 13px !default;
|
||||
|
||||
$alert-ios-input-padding: 6px !default;
|
||||
$alert-ios-input-margin-top: 24px !default;
|
||||
$alert-ios-input-margin-top: 10px !default;
|
||||
$alert-ios-input-background-color: #fff !default;
|
||||
$alert-ios-input-border: 1px solid #ccc !default;
|
||||
$alert-ios-input-border-radius: 4px !default;
|
||||
|
||||
@@ -62,7 +62,6 @@ export class Alert extends ViewController {
|
||||
'<div class="alert-body" *ngIf="d.body">{{d.body}}</div>' +
|
||||
'<div class="alert-body alert-inputs" *ngIf="d.inputs.length">' +
|
||||
'<div class="alert-input-wrapper" *ngFor="#i of d.inputs">' +
|
||||
'<div class="alert-input-label" *ngIf="i.label">{{i.label}}</div>' +
|
||||
'<input [placeholder]="i.placeholder" [(ngModel)]="i.value" [type]="i.type" class="alert-input">' +
|
||||
'</div>' +
|
||||
'</div>' +
|
||||
@@ -132,7 +131,6 @@ class AlertCmp {
|
||||
this.d.inputs = this.d.inputs.map((input, index) => {
|
||||
return {
|
||||
name: isDefined(input.name) ? input.name : index,
|
||||
label: input.label,
|
||||
placeholder: isDefined(input.placeholder) ? input.placeholder : '',
|
||||
type: input.type || 'text',
|
||||
value: isDefined(input.value) ? input.value : ''
|
||||
|
||||
@@ -59,7 +59,6 @@ class E2EPage {
|
||||
alert.addInput({
|
||||
name: 'name2',
|
||||
value: 'hello',
|
||||
label: 'Input Label 2',
|
||||
placeholder: 'Placeholder 2'
|
||||
});
|
||||
alert.addButton({
|
||||
|
||||
Reference in New Issue
Block a user