| | |
| | | }, |
| | | mounted() { |
| | | if (process.env.TARO_ENV === 'h5') { |
| | | $(this.$refs.switch.$el).find('.at-switch').prepend(this.$refs.radio.$el); |
| | | $(this.$refs.switch.$el).append(this.$refs.radio.$el); |
| | | } else if (process.env.TARO_ENV === 'weapp') { |
| | | $(this.$refs.switch.$el).find('.at-switch').append(this.$refs.radio); |
| | | } |
| | |
| | | display: none; |
| | | } |
| | | .c-switch-radio-group { |
| | | @include flexbox(flex, flex-start center, n wrap); |
| | | @include flexbox(flex, flex-end center, n wrap); |
| | | flex: 1; |
| | | } |
| | | .c-switch-radio-item { |
| | |
| | | } |
| | | &.c-switch-radio-left { |
| | | .c-switch-radio-group { |
| | | @include flexbox(flex, flex-start center, n wrap); |
| | | padding-right: 0; |
| | | .c-switch-radio-item { |
| | | padding-left: 0; |