| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <template>
- <view class="">
- <radio-group @change="radioChange">
- <label class="radio-list" v-for="(item, index) in list" :key="index">
- <radio class="radio" :value="item.name" />
- <CellRadio :item="item"></CellRadio>
- </label>
- </radio-group>
- </view>
- </template>
- <script>
- import CellRadio from '../components/CellRadio.vue'
- import OrderList from '../components/OrderList.vue'
- export default {
- components: {
- CellRadio,
- OrderList
- },
- props: {
- list: {
- type: Array,
- default: () => []
- }
- },
- data() {
- return {}
- },
- methods: {
- radioChange(e) {
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .radio-list {
- display: flex;
- padding: 20rpx 10rpx 20rpx;
- align-items: center;
- color: $uni-text-color;
- border-bottom: 2rpx solid #d8d8d8;
- font-size: $uni-font-size-base;
- line-height: 1.8;
- .radio {
- margin-right: 10rpx;
- }
- }
- </style>
|