mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(address-edit): add area-columns-placeholder props (#4582)
This commit is contained in:
parent
8740376218
commit
7ad6c324f8
@ -64,6 +64,7 @@ export default {
|
||||
| Attribute | Description | Type | Default | Version |
|
||||
|------|------|------|------|------|
|
||||
| area-list | Area List | *object* | - | - |
|
||||
| area-columns-placeholder | placeholder of area columns | *string[]* | `[]` | - |
|
||||
| address-info | Address Info | *AddressInfo* | `{}` | - |
|
||||
| search-result | Address search result | *SearchResult[]* | `[]` | - |
|
||||
| show-postal | Whether to show postal field | *boolean* | `false` | - |
|
||||
|
@ -64,6 +64,7 @@ export default {
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
|------|------|------|------|------|
|
||||
| area-list | 地区列表 | *object* | - | - |
|
||||
| area-columns-placeholder | 地区选择列占位提示文字 | *string[]* | `[]` | - |
|
||||
| address-info | 收货人信息初始值 | *AddressInfo* | `{}` | - |
|
||||
| search-result | 详细地址搜索结果 | *SearchResult[]* | `[]` | - |
|
||||
| show-postal | 是否显示邮政编码 | *boolean* | `false` | - |
|
||||
|
@ -68,6 +68,10 @@ export default createComponent({
|
||||
postalValidator: {
|
||||
type: Function,
|
||||
default: isPostal
|
||||
},
|
||||
areaColumnsPlaceholder: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
}
|
||||
},
|
||||
|
||||
@ -336,6 +340,7 @@ export default createComponent({
|
||||
loading={!this.areaListLoaded}
|
||||
value={data.areaCode}
|
||||
areaList={this.areaList}
|
||||
columnsPlaceholder={this.areaColumnsPlaceholder}
|
||||
onConfirm={this.onAreaConfirm}
|
||||
onCancel={() => {
|
||||
this.showAreaPopup = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user