修改表单选择内容
parent
44b2e0d505
commit
b7ee7ce55d
|
|
@ -1,9 +1,9 @@
|
|||
<template>
|
||||
<view class="flex-col gap-5">
|
||||
<checkbox-group @change="data_change" class="flex-row gap-10 flex-wrap">
|
||||
<label v-for="item in option_list" :key="item.value" class="flex-row align-c">
|
||||
<label v-for="item in option_list" :key="item.value" class="flex-row align-c margin-right-xxl">
|
||||
<view>
|
||||
<checkbox :value="item.value" :checked="!isEmpty(form_value) && form_value.includes(item.value)" class="flex-row align-c" />
|
||||
<checkbox :value="item.value" :checked="!isEmpty(form_value) && form_value.includes(item.value)" class="flex-row align-c" style="transform:scale(0.7)" />
|
||||
</view>
|
||||
<view :style="is_multicolour == '1' ? 'background:' + item.color + ';color:' + (item.is_other == '1' ? '#141E31' : '#fff') + ';border-radius:8rpx;' + color_style : color_style + 'padding-left:0rpx;padding-right:0rpx;'">{{ item.name }}</view>
|
||||
</label>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<radio-group @change="data_change" class="flex-row gap-10 flex-wrap">
|
||||
<label v-for="item in option_list" :key="item.value" class="flex-row align-c">
|
||||
<label v-for="item in option_list" :key="item.value" class="flex-row align-c margin-right-xxl">
|
||||
<view>
|
||||
<radio :value="item.value" :checked="!isEmpty(form_value) && form_value.includes(item.value)" />
|
||||
<radio :value="item.value" :checked="!isEmpty(form_value) && form_value.includes(item.value)" style="transform:scale(0.7)"/>
|
||||
</view>
|
||||
<view :style="is_multicolour == '1' ? 'background:' + item.color + ';color:' + (item.is_other == '1' ? '#141E31' : '#fff') + ';border-radius:8rpx;' + color_style : color_style + 'padding-left:0rpx;padding-right:0rpx;'">{{ item.name }}</view>
|
||||
</label>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
<view :class="'flex-col gap-10 mt-10 ' + ( com_data.is_add_option == '1' ? 'popup-add-list' : 'popup-list')">
|
||||
<checkbox-group @change="data_all_change" class="flex-col gap-10">
|
||||
<label class="popup-checkbox flex-row align-c">
|
||||
<checkbox value="all" :checked="select_value == 'all'" class="flex-row align-c" />
|
||||
<checkbox value="all" :checked="select_value == 'all'" class="flex-row align-c" style="transform:scale(0.7)" />
|
||||
<view :style="color_style + 'padding-left:0rpx;padding-right:0rpx;'">全选</view>
|
||||
</label>
|
||||
</checkbox-group>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
<radio-group @change="data_change" class="flex-col gap-10">
|
||||
<label v-for="item in new_option_list" class="popup-radio flex-row align-c" :key="item.value">
|
||||
<view>
|
||||
<radio :value="item.value" :checked="!isEmpty(form_value) && form_value == item.value" />
|
||||
<radio :value="item.value" :checked="!isEmpty(form_value) && form_value == item.value" style="transform:scale(0.7)" />
|
||||
</view>
|
||||
<view :style="is_multicolour == '1' ? 'background:' + item.color + ';color:' + (item.is_other == '1' ? '#141E31' : '#fff') + ';border-radius:8rpx;' + color_style : color_style + 'padding-left:0rpx;padding-right:0rpx;'">{{ item.name }}</view>
|
||||
</label>
|
||||
|
|
|
|||
Loading…
Reference in New Issue