angular2

    xiaoxiao2021-03-25  61

    (1)对话框

    let  alert =  this. alertCtrl. create({      title:  '存量报表',      inputs: [       {          label: '删除',          type:  'radio',          value:  'delOne',          checked:  true       },       {          label: '删除全部',          type:  'radio',          value:  'delAll',       }     ],      buttons: [       {          text:  '取消',          role:  'cancel',          handler:  data  => {            console. log( 'Cancel clicked');         }       },       {          text:  '确定',          handler:  data  => {            if( "delOne" ==  data){              console. log( 'delOne');           } else  if( "delAll" ==  data){              console. log( 'delAll');           }         }       }     ]   });    alert. present();

    转载请注明原文地址: https://ju.6miu.com/read-40059.html

    最新回复(0)