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
2023-02-14 14:39:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
019441d5d0554d20b0b3feb921b886d511708ca7
019441d5
1 parent
0bb039a2
✨ feat(地址控件): 新增隐藏详细地址字段功能
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
src/components/AreaPickerField/index.vue
src/components/AreaPickerField/index.vue
View file @
019441d
<!--
* @Date: 2022-08-30 14:32:11
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-02-1
0 10:06:14
* @LastEditTime: 2023-02-1
4 14:37:45
* @FilePath: /data-table/src/components/AreaPickerField/index.vue
* @Description: 省市区选择控件
-->
...
...
@@ -17,9 +17,10 @@
placeholder="请选择省市区"
:rules="item.rules"
@click="showPicker = true"
:border="
tru
e"
:border="
show_address ? true : fals
e"
/>
<van-field
v-if="show_address"
name="ignore"
v-model="address"
placeholder="请填写详细地址"
...
...
@@ -61,6 +62,8 @@ const HideShow = computed(() => {
const emit = defineEmits(["active"]);
const show_empty = ref(false);
const show_address = ref(!props.item.component_props.no_street)
const address = ref("");
const city_code = ref("");
const showPicker = ref(false);
...
...
Please
register
or
login
to post a comment