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 |
|
| Attribute | Description | Type | Default | Version |
|
||||||
|------|------|------|------|------|
|
|------|------|------|------|------|
|
||||||
| area-list | Area List | *object* | - | - |
|
| area-list | Area List | *object* | - | - |
|
||||||
|
| area-columns-placeholder | placeholder of area columns | *string[]* | `[]` | - |
|
||||||
| address-info | Address Info | *AddressInfo* | `{}` | - |
|
| address-info | Address Info | *AddressInfo* | `{}` | - |
|
||||||
| search-result | Address search result | *SearchResult[]* | `[]` | - |
|
| search-result | Address search result | *SearchResult[]* | `[]` | - |
|
||||||
| show-postal | Whether to show postal field | *boolean* | `false` | - |
|
| show-postal | Whether to show postal field | *boolean* | `false` | - |
|
||||||
|
@ -64,6 +64,7 @@ export default {
|
|||||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||||
|------|------|------|------|------|
|
|------|------|------|------|------|
|
||||||
| area-list | 地区列表 | *object* | - | - |
|
| area-list | 地区列表 | *object* | - | - |
|
||||||
|
| area-columns-placeholder | 地区选择列占位提示文字 | *string[]* | `[]` | - |
|
||||||
| address-info | 收货人信息初始值 | *AddressInfo* | `{}` | - |
|
| address-info | 收货人信息初始值 | *AddressInfo* | `{}` | - |
|
||||||
| search-result | 详细地址搜索结果 | *SearchResult[]* | `[]` | - |
|
| search-result | 详细地址搜索结果 | *SearchResult[]* | `[]` | - |
|
||||||
| show-postal | 是否显示邮政编码 | *boolean* | `false` | - |
|
| show-postal | 是否显示邮政编码 | *boolean* | `false` | - |
|
||||||
|
@ -68,6 +68,10 @@ export default createComponent({
|
|||||||
postalValidator: {
|
postalValidator: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default: isPostal
|
default: isPostal
|
||||||
|
},
|
||||||
|
areaColumnsPlaceholder: {
|
||||||
|
type: Array,
|
||||||
|
default: () => []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -336,6 +340,7 @@ export default createComponent({
|
|||||||
loading={!this.areaListLoaded}
|
loading={!this.areaListLoaded}
|
||||||
value={data.areaCode}
|
value={data.areaCode}
|
||||||
areaList={this.areaList}
|
areaList={this.areaList}
|
||||||
|
columnsPlaceholder={this.areaColumnsPlaceholder}
|
||||||
onConfirm={this.onAreaConfirm}
|
onConfirm={this.onAreaConfirm}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
this.showAreaPopup = false;
|
this.showAreaPopup = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user