hookehuyr

fix

1 <!-- 1 <!--
2 * @Date: 2022-08-30 11:34:19 2 * @Date: 2022-08-30 11:34:19
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-02-01 00:19:34 4 + * @LastEditTime: 2023-02-01 00:26:07
5 * @FilePath: /data-table/src/components/CheckboxField/index.vue 5 * @FilePath: /data-table/src/components/CheckboxField/index.vue
6 * @Description: 多项选择控件 6 * @Description: 多项选择控件
7 --> 7 -->
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
39 v-model="x.affix" 39 v-model="x.affix"
40 label="" 40 label=""
41 placeholder="请输入补充信息" 41 placeholder="请输入补充信息"
42 - style="border: 1px solid #eaeaea;border-radius: 0.25rem; padding: 0.25rem 0.5rem;" 42 + style="border: 1px solid #eaeaea;border-radius: 0.25rem; padding: 0.25rem 0.5rem; margin-bottom: 0.25rem;"
43 /> 43 />
44 </template> 44 </template>
45 </van-checkbox-group> 45 </van-checkbox-group>
......
1 <!-- 1 <!--
2 * @Date: 2022-08-30 13:46:51 2 * @Date: 2022-08-30 13:46:51
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-01-30 14:20:52 4 + * @LastEditTime: 2023-02-01 09:12:24
5 * @FilePath: /data-table/src/components/PickerField/index.vue 5 * @FilePath: /data-table/src/components/PickerField/index.vue
6 * @Description: 单列选择器组件 6 * @Description: 单列选择器组件
7 --> 7 -->
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
22 @click="showPicker = true" 22 @click="showPicker = true"
23 :border="false" 23 :border="false"
24 /> 24 />
25 - <van-field v-if="has_add_info" :name="add_info_name" v-model="add_info" label="" placeholder="请输入补充信息" :border="false" style="border: 1px solid #eaeaea;border-radius: 0.25rem; padding: 0.25rem 0.5rem; margin-top: 0.25rem;" /> 25 + <!-- <van-field v-if="has_add_info" :name="add_info_name" v-model="add_info" label="" placeholder="请输入补充信息" :border="false" style="border: 1px solid #eaeaea;border-radius: 0.25rem; padding: 0.25rem 0.5rem; margin-top: 0.25rem;" /> -->
26 <van-popup v-model:show="showPicker" position="bottom"> 26 <van-popup v-model:show="showPicker" position="bottom">
27 <van-picker 27 <van-picker
28 :columns="item.component_props.options" 28 :columns="item.component_props.options"
...@@ -40,13 +40,13 @@ const props = defineProps({ ...@@ -40,13 +40,13 @@ const props = defineProps({
40 40
41 // TEST: 测试新功能:选择其他选项时,下方出现输入框,如果其他项被选中,输入框值为最终录入值。 41 // TEST: 测试新功能:选择其他选项时,下方出现输入框,如果其他项被选中,输入框值为最终录入值。
42 // 绑定值发生变化时回调,处理选项为其他时的输入项录入 42 // 绑定值发生变化时回调,处理选项为其他时的输入项录入
43 -const has_add_info = ref(false); // TODO: 文字不一定是其他,后续可能需要字段绑定一个值,标识是否有其他输入框进行判断 43 +// const has_add_info = ref(false); // TODO: 文字不一定是其他,后续可能需要字段绑定一个值,标识是否有其他输入框进行判断
44 -const add_info = ref(''); 44 +// const add_info = ref('');
45 -const add_info_name = ref(props.item.key + '#'); 45 +// const add_info_name = ref(props.item.key + '#');
46 -const add_info_key = ref('其他'); // TODO: 以后动态获取 46 +// const add_info_key = ref('其他'); // TODO: 以后动态获取
47 47
48 onMounted(() => { 48 onMounted(() => {
49 - add_info_name.value = `${props.item.key}#${add_info_key.value}` 49 + // add_info_name.value = `${props.item.key}#${add_info_key.value}`
50 // props.item.component_props.options = props.item.component_props.options.map((opt) => { 50 // props.item.component_props.options = props.item.component_props.options.map((opt) => {
51 // return { 51 // return {
52 // text: opt, 52 // text: opt,
......
1 <!-- 1 <!--
2 * @Date: 2022-08-30 11:34:19 2 * @Date: 2022-08-30 11:34:19
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-01-31 23:22:38 4 + * @LastEditTime: 2023-02-01 00:25:55
5 * @FilePath: /data-table/src/components/RadioField/index.vue 5 * @FilePath: /data-table/src/components/RadioField/index.vue
6 * @Description: 单项选择控件 6 * @Description: 单项选择控件
7 --> 7 -->
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
34 v-model="x.affix" 34 v-model="x.affix"
35 label="" 35 label=""
36 placeholder="请输入补充信息" 36 placeholder="请输入补充信息"
37 - style="border: 1px solid #eaeaea;border-radius: 0.25rem; padding: 0.25rem 0.5rem;" 37 + style="border: 1px solid #eaeaea;border-radius: 0.25rem; padding: 0.25rem 0.5rem; margin-bottom: 0.25rem;"
38 /> 38 />
39 </template> 39 </template>
40 </van-radio-group> 40 </van-radio-group>
......