| | |
| | | :placeholder="placeholder" |
| | | :value="selected" |
| | | > |
| | | <view class="at-icon at-icon-chevron-right" /> |
| | | <AtIcon :value="loading ? 'loading':'chevron-right'" /> |
| | | </AtInput> |
| | | </view> |
| | | </picker> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { AtInput } from 'taro-ui-vue'; |
| | | import { AtInput, AtIcon } from 'taro-ui-vue'; |
| | | import ChinaLocations from './ChinaLocations'; |
| | | import './cChinaArea.scss'; |
| | | |
| | |
| | | name: 'CChinaArea', |
| | | components: { |
| | | AtInput, |
| | | AtIcon, |
| | | }, |
| | | props: { |
| | | loading: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | placeholder: String, |
| | | itemData: Object, |
| | | }, |
| | |
| | | &::after { |
| | | display: none; |
| | | } |
| | | .at-icon-loading, |
| | | .at-icon-chevron-right { |
| | | font-size: 1.024rem; |
| | | color: #ccc; |
| | | } |
| | | .at-icon-loading { |
| | | margin-right: 0.2rem; |
| | | animation: atRotate 1s linear infinite; |
| | | } |
| | | } |
| | | } |