index.axml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <view
  2. a:key="ant-number-input-{{ $id }}"
  3. style="{{ style }}"
  4. class="ant-number-keyboard {{ className || '' }}">
  5. <view
  6. a:if="{{ visible }}"
  7. class="ant-number-keyboard-modal"
  8. onTap="handleHide"
  9. onAppear="catchAppearModal" />
  10. <view
  11. class="ant-number-keyboard-kb {{ visible ? '' : 'ant-number-keyboard-kb_hide' }}">
  12. <slot name="header">
  13. <view
  14. a:if="{{ closeable }}"
  15. onTap="handleHide"
  16. class="ant-number-keyboard-kb_none">
  17. <ant-icon
  18. type="DownOutline"
  19. className="ant-number-keyboard-down" />
  20. </view>
  21. </slot>
  22. <view class="ant-number-keyboard-kb_bd">
  23. <view class="ant-number-keyboard-kb_keys">
  24. <block
  25. a:for="{{ random ? randomArr : numArr }}"
  26. a:for-index="index"
  27. a:for-item="item">
  28. <view class="ant-number-keyboard-kb_row">
  29. <block
  30. a:for="{{ item }}"
  31. a:for-index="index"
  32. a:for-item="itemKey">
  33. <view
  34. data-key="{{ itemKey }}"
  35. class="ant-number-keyboard-kb_number"
  36. onTap="tapButton">
  37. {{ itemKey }}
  38. </view>
  39. </block>
  40. </view>
  41. </block>
  42. <view
  43. a:if="{{ !confirmText }}"
  44. class="ant-number-keyboard-kb_row">
  45. <view
  46. a:if="{{ !point }}"
  47. class="ant-number-keyboard-kb_number ant-number-keyboard-kb_point ant-number-keyboard-kb_flex ant-number-keyboard-kb_e" />
  48. <view
  49. a:if="{{ point }}"
  50. class="ant-number-keyboard-kb_number ant-number-keyboard-kb_point ant-number-keyboard-kb_flex"
  51. data-key="."
  52. onTap="tapButton">
  53. .
  54. </view>
  55. <view
  56. class="ant-number-keyboard-kb_number ant-number-keyboard-kb_zero ant-number-keyboard-kb_flex"
  57. data-key="0"
  58. onTap="tapButton">
  59. 0
  60. </view>
  61. <view
  62. class="ant-number-keyboard-kb_number ant-number-keyboard-kb_point ant-number-keyboard-kb_flex {{ point ? '' : 'ant-number-keyboard-kb_e' }}"
  63. data-key="del"
  64. onTap="tapButton">
  65. <ant-icon
  66. type="TextDeletionOutline"
  67. className="ant-number-keyboard-del" />
  68. </view>
  69. </view>
  70. <view
  71. a:if="{{ confirmText }}"
  72. class="ant-number-keyboard-kb_row">
  73. <view
  74. class="ant-number-keyboard-kb_number ant-number-keyboard-kb_zero"
  75. data-key="0"
  76. onTap="tapButton">
  77. 0
  78. </view>
  79. <view
  80. a:if="{{ point }}"
  81. class="ant-number-keyboard-kb_number ant-number-keyboard-kb_point"
  82. data-key="."
  83. onTap="tapButton">
  84. .
  85. </view>
  86. </view>
  87. </view>
  88. <view
  89. a:if="{{ confirmText }}"
  90. class="ant-number-keyboard-kb_function">
  91. <view
  92. class="ant-number-keyboard-kb_number ant-number-keyboard-kb_del"
  93. data-key="del"
  94. onTap="tapButton">
  95. <ant-icon
  96. type="TextDeletionOutline"
  97. className="ant-number-keyboard-del" />
  98. </view>
  99. <view
  100. style="opacity: {{ confirmDisabled ? '0.5' : '1' }}"
  101. onTap="tapButton"
  102. class="ant-number-keyboard-kb_transfer"
  103. data-key="enter">
  104. <slot name="confirm">
  105. <view class="amount-input-kb_transfer-btn">{{ confirmText }}</view>
  106. </slot>
  107. </view>
  108. </view>
  109. </view>
  110. <view class="ant-number-keyboard-kb_iphonex-safe" />
  111. </view>
  112. </view>