sadais-piui 1.2.7-beta97 → 1.2.7-beta98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author: zhangzhenfei
|
|
3
3
|
* @Date: 2022-05-18 11:08:49
|
|
4
|
-
* @LastEditTime:
|
|
4
|
+
* @LastEditTime: 2024-03-19 18:23:46
|
|
5
5
|
* @LastEditors: zhangzhenfei
|
|
6
6
|
* @Description: 日历输入
|
|
7
|
-
* @FilePath:
|
|
7
|
+
* @FilePath: /piui-awesome/src/piui/components/pi-regions-select-input/index.vue
|
|
8
8
|
-->
|
|
9
9
|
|
|
10
10
|
<template>
|
|
11
11
|
<view class="pi-regions-select-input">
|
|
12
12
|
<!-- 输入框 -->
|
|
13
|
-
<view
|
|
13
|
+
<view
|
|
14
|
+
v-if="$slots.default || $slots.$default"
|
|
15
|
+
class="pi-w-100P"
|
|
16
|
+
@click="show = true"
|
|
17
|
+
>
|
|
14
18
|
<slot />
|
|
15
19
|
</view>
|
|
16
20
|
<pi-input
|
|
@@ -149,7 +153,13 @@ export default {
|
|
|
149
153
|
return this.$pi.lang.mergeDeep(regionsSelectInput.input, this.input)
|
|
150
154
|
},
|
|
151
155
|
getRegionsSelect() {
|
|
152
|
-
return
|
|
156
|
+
return {
|
|
157
|
+
...this.$pi.lang.mergeDeep(
|
|
158
|
+
regionsSelectInput.regionsSelect,
|
|
159
|
+
this.regionsSelect
|
|
160
|
+
),
|
|
161
|
+
regionsData: this.regionsSelect.regionsData
|
|
162
|
+
}
|
|
153
163
|
},
|
|
154
164
|
getInputValue() {
|
|
155
165
|
const parseValueFn = this.parseValueFn[PI_DEFAULT_FN_FLAG]
|
|
@@ -164,7 +174,10 @@ export default {
|
|
|
164
174
|
const code = this.getRegionsSelect.keyDefaultValue
|
|
165
175
|
? this.val
|
|
166
176
|
: this.val[this.getRegionsSelect.keyField]
|
|
167
|
-
const regions = this.$pi.regions.parseRegions(
|
|
177
|
+
const regions = this.$pi.regions.parseRegions(
|
|
178
|
+
code,
|
|
179
|
+
this.getRegionsSelect.regionsData
|
|
180
|
+
)
|
|
168
181
|
return this.generateRegionsName(regions)
|
|
169
182
|
}
|
|
170
183
|
},
|