hookehuyr

描述文本控件联调

1 <!-- 1 <!--
2 * @Date: 2022-08-29 14:31:20 2 * @Date: 2022-08-29 14:31:20
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2022-11-22 13:56:17 4 + * @LastEditTime: 2022-12-08 14:37:28
5 * @FilePath: /data-table/src/components/DesField/index.vue 5 * @FilePath: /data-table/src/components/DesField/index.vue
6 - * @Description: 描述文本 6 + * @Description: 描述文本控件
7 --> 7 -->
8 <template> 8 <template>
9 <div class="des-field-page"> 9 <div class="des-field-page">
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
15 :border="false" 15 :border="false"
16 /> 16 />
17 </div> 17 </div>
18 + <van-divider />
18 </template> 19 </template>
19 20
20 <script setup> 21 <script setup>
......
1 <!-- 1 <!--
2 * @Date: 2022-07-18 10:22:22 2 * @Date: 2022-07-18 10:22:22
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2022-12-07 16:57:12 4 + * @LastEditTime: 2022-12-08 14:21:21
5 * @FilePath: /data-table/src/views/index.vue 5 * @FilePath: /data-table/src/views/index.vue
6 * @Description: 首页 6 * @Description: 首页
7 --> 7 -->
...@@ -146,7 +146,10 @@ const formatData = (data) => { ...@@ -146,7 +146,10 @@ const formatData = (data) => {
146 field.property_list.forEach((prop) => { 146 field.property_list.forEach((prop) => {
147 const key = prop["property_code"]; 147 const key = prop["property_code"];
148 const obj = { 148 const obj = {
149 - [key]: prop["setting_value"], 149 + [key]:
150 + key !== 'label'
151 + ? prop["setting_value"]
152 + : prop["setting_value"][0],
150 }; 153 };
151 Object.assign(component_props, obj); 154 Object.assign(component_props, obj);
152 }); 155 });
......