case-edit.page.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <ion-header [translucent]="true">
  2. <ion-toolbar>
  3. <ion-title>case-edit</ion-title>
  4. </ion-toolbar>
  5. </ion-header>
  6. <ion-content [fullscreen]="true">
  7. <ion-header collapse="condense">
  8. <ion-toolbar>
  9. <ion-title size="large">case-edit</ion-title>
  10. </ion-toolbar>
  11. </ion-header>
  12. <ion-card>
  13. <ion-item>
  14. 星星打分:<app-edit-ratio-star [value]="score" (onValueChange)="score = $event"></app-edit-ratio-star>
  15. </ion-item>
  16. <ion-item>
  17. 图标打分:<app-edit-ratio-star color="blue" fillIcon="home" emptyIcon="home-outline" [value]="score" (onValueChange)="score = $event"></app-edit-ratio-star>
  18. </ion-item>
  19. <ion-item>
  20. <ion-input type="number" [(ngModel)]="score"></ion-input>
  21. </ion-item>
  22. </ion-card>
  23. <ion-card>
  24. <ion-item>
  25. 已输入用户名:{{username}}
  26. </ion-item>
  27. <ion-item>
  28. <ion-label>Input事件</ion-label>
  29. <ion-input type="text" (input)="onUserNameInput($event)"></ion-input>
  30. </ion-item>
  31. <ion-item>
  32. <ion-label>ngModel双向绑定</ion-label>
  33. <ion-input type="text" [value]="username" (input)="onUserNameInput($event)"></ion-input>
  34. <ion-input type="text" [(ngModel)]="username"></ion-input>
  35. </ion-item>
  36. </ion-card>
  37. <ion-card>
  38. <ion-item>
  39. 用户资料:各种输入类型
  40. </ion-item>
  41. <ion-item>
  42. <ion-label>姓名</ion-label>
  43. <ion-input type="text" [(ngModel)]="userInfo.name"></ion-input>
  44. </ion-item>
  45. <ion-item>
  46. <ion-label>年龄</ion-label>
  47. <ion-input type="number" [(ngModel)]="userInfo.age"></ion-input>
  48. </ion-item>
  49. <ion-item>
  50. <ion-label>生日</ion-label>
  51. <ion-datetime [(ngModel)]="userInfo.birthday"></ion-datetime>
  52. </ion-item>
  53. </ion-card>
  54. </ion-content>