vue2-client 1.16.90 → 1.16.91
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.
package/package.json
CHANGED
|
@@ -40,10 +40,9 @@ export default {
|
|
|
40
40
|
type: Boolean,
|
|
41
41
|
default: false,
|
|
42
42
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
default: false
|
|
43
|
+
getCalendarContainer: {
|
|
44
|
+
type: Function,
|
|
45
|
+
default: (triggerNode) => triggerNode.parentNode,
|
|
47
46
|
},
|
|
48
47
|
},
|
|
49
48
|
model: {
|
|
@@ -188,9 +187,6 @@ export default {
|
|
|
188
187
|
moment(value[1]).format(this.formatType),
|
|
189
188
|
]
|
|
190
189
|
},
|
|
191
|
-
getBodyContainer (triggerNode) {
|
|
192
|
-
return document.body
|
|
193
|
-
}
|
|
194
190
|
},
|
|
195
191
|
}
|
|
196
192
|
</script>
|
|
@@ -203,8 +199,7 @@ export default {
|
|
|
203
199
|
(attr?.queryType !== 'BETWEEN' || mode !== '查询')) ||
|
|
204
200
|
(['rangePicker'].includes(attr.type) && mode !== '查询')
|
|
205
201
|
"
|
|
206
|
-
:getCalendarContainer="
|
|
207
|
-
:getPopupContainer="enablePopupToBody? getBodyContainer : undefined"
|
|
202
|
+
:getCalendarContainer="getCalendarContainer"
|
|
208
203
|
v-model="localValue"
|
|
209
204
|
:disabled="disabled || readOnly"
|
|
210
205
|
style="width: 100%"
|
|
@@ -220,8 +215,7 @@ export default {
|
|
|
220
215
|
attr.type === 'monthPicker' ||
|
|
221
216
|
(attr.type === 'monthRangePicker' && mode !== '查询')
|
|
222
217
|
"
|
|
223
|
-
:getCalendarContainer="
|
|
224
|
-
:getPopupContainer="enablePopupToBody? getBodyContainer : undefined"
|
|
218
|
+
:getCalendarContainer="(triggerNode) => triggerNode.parentNode"
|
|
225
219
|
v-model="localValue"
|
|
226
220
|
:disabled="disabled || readOnly"
|
|
227
221
|
:show-time="true"
|
|
@@ -235,8 +229,7 @@ export default {
|
|
|
235
229
|
attr.type === 'yearPicker' ||
|
|
236
230
|
(attr.type === 'yearRangePicker' && mode !== '查询')
|
|
237
231
|
"
|
|
238
|
-
:getCalendarContainer="
|
|
239
|
-
:getPopupContainer="enablePopupToBody? getBodyContainer : undefined"
|
|
232
|
+
:getCalendarContainer="(triggerNode) => triggerNode.parentNode"
|
|
240
233
|
v-model="localValue"
|
|
241
234
|
:disabled="disabled || readOnly"
|
|
242
235
|
format="YYYY"
|
|
@@ -261,8 +254,7 @@ export default {
|
|
|
261
254
|
(attr.type === 'rangePicker' && mode === '查询') ||
|
|
262
255
|
['yearRangePicker', 'monthRangePicker'].includes(attr.type)
|
|
263
256
|
"
|
|
264
|
-
:getCalendarContainer="
|
|
265
|
-
:getPopupContainer="enablePopupToBody? getBodyContainer : undefined"
|
|
257
|
+
:getCalendarContainer="(triggerNode) => triggerNode.parentNode"
|
|
266
258
|
v-model="localValue"
|
|
267
259
|
:disabled="disabled"
|
|
268
260
|
:placeholder="placeholder"
|