Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-12-06 16:43:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5a662c611a48715dc3e2ad6275b54c517574a842
5a662c61
1 parent
a343e756
fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
src/App.vue
src/components/AreaPickerField/index.vue
src/App.vue
View file @
5a662c6
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-12-06 16:
13:12
* @LastEditTime: 2022-12-06 16:
41:55
* @FilePath: /data-table/src/App.vue
* @Description:
-->
...
...
@@ -72,7 +72,8 @@ onMounted(async () => {
// console.warn(err);
// });
// 数据收集设置
const { data, extend } = await getFormSettingAPI({ form_code: $route.query.code });
const code = $route.query.code;
const { data, extend } = await getFormSettingAPI({ form_code: code });
const form_setting = {};
if (data.length) {
data[0].property_list.forEach((prop) => {
...
...
src/components/AreaPickerField/index.vue
View file @
5a662c6
<!--
* @Date: 2022-08-30 14:32:11
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-12-06 1
5:42:08
* @LastEditTime: 2022-12-06 1
6:33:22
* @FilePath: /data-table/src/components/AreaPickerField/index.vue
* @Description: 省市区选择控件
-->
...
...
@@ -23,15 +23,17 @@
:placeholder="item.component_props.placeholder"
@blur="onBlur"
:rules="item.rules"
:border="
tru
e"
:border="
fals
e"
/>
<div
<
!-- <
div
v-if="show_empty"
class="van-field__error-message"
style="padding: 0 1rem 1rem 1rem"
>
地址不能为空
</div>
</div> -->
<van-divider />
<van-popup v-model:show="showPicker" position="bottom">
<van-area
v-model="item.city_code"
...
...
@@ -116,4 +118,5 @@ defineExpose({ validAreaPicker });
}
}
}
</style>
...
...
Please
register
or
login
to post a comment