File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 2
2
// This file is auto gererated by build/build-entry.js
3
3
export default {
4
4
'changelog.en-US' : ( ) => import ( '../markdown/changelog.en-US.md' ) ,
5
- 'changelog.generated' : ( ) => import ( '../markdown/changelog.generated.md' ) ,
6
5
'changelog.zh-CN' : ( ) => import ( '../markdown/changelog.zh-CN.md' ) ,
7
6
'contribution.zh-CN' : ( ) => import ( '../markdown/contribution.zh-CN.md' ) ,
8
7
'design.zh-CN' : ( ) => import ( '../markdown/design.zh-CN.md' ) ,
Original file line number Diff line number Diff line change 8
8
show-set-default
9
9
show-search-result
10
10
:search-result =" searchResult"
11
+ :area-columns-placeholder =" ['请选择','请选择','请选择']"
11
12
@save =" onSave"
12
13
@delete =" onDelete"
13
14
@change-detail =" onChangeDetail"
Original file line number Diff line number Diff line change @@ -198,7 +198,10 @@ export default sfc({
198
198
} ,
199
199
200
200
getValues ( ) {
201
- return this . $refs . picker ? this . $refs . picker . getValues ( ) . filter ( value => ! ! value ) : [ ] ;
201
+ const { picker } = this . $refs ;
202
+ let getValues = picker ? picker . getValues ( ) : [ ] ;
203
+ getValues = this . parseOutputValues ( getValues ) ;
204
+ return getValues . filter ( value => ! ! value ) ;
202
205
} ,
203
206
204
207
getArea ( ) {
@@ -216,8 +219,9 @@ export default sfc({
216
219
}
217
220
218
221
const names = values . map ( item => item . name ) ;
222
+ const filterCodeValues = values . filter ( value => ! ! value . code ) ;
223
+ area . code = filterCodeValues . length ? filterCodeValues [ filterCodeValues . length - 1 ] . code : '' ;
219
224
220
- area . code = values [ values . length - 1 ] . code ;
221
225
if ( area . code [ 0 ] === '9' ) {
222
226
area . country = names [ 1 ] || '' ;
223
227
area . province = names [ 2 ] || '' ;
You can’t perform that action at this time.
0 commit comments