vue2-client 1.16.89 → 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"
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
<XFormDatePicker
|
|
382
382
|
:attr="attr"
|
|
383
383
|
:mode="mode"
|
|
384
|
-
:
|
|
384
|
+
:getCalendarContainer="getPopupContainer"
|
|
385
385
|
:disabled="disabled"
|
|
386
386
|
:readOnly="readOnly"
|
|
387
387
|
:showLabel="showLabel"
|
|
@@ -1486,7 +1486,23 @@ export default {
|
|
|
1486
1486
|
this.emitFunc('recordingData', data)
|
|
1487
1487
|
},
|
|
1488
1488
|
getPopupContainer (triggerNode) {
|
|
1489
|
-
//
|
|
1489
|
+
// 行编辑模式特殊处理
|
|
1490
|
+
if (this.$vnode?.key.startsWith('editRow')) {
|
|
1491
|
+
// 限制最多向上查找5层
|
|
1492
|
+
let parent = triggerNode.parentNode
|
|
1493
|
+
let depth = 0
|
|
1494
|
+
const maxDepth = 10
|
|
1495
|
+
|
|
1496
|
+
while (parent && parent !== document.body && depth < maxDepth) {
|
|
1497
|
+
if (parent.tagName === 'TBODY') {
|
|
1498
|
+
return parent
|
|
1499
|
+
}
|
|
1500
|
+
parent = parent.parentNode
|
|
1501
|
+
depth++
|
|
1502
|
+
}
|
|
1503
|
+
// 如果5层内没找到,回退到body
|
|
1504
|
+
return document.body
|
|
1505
|
+
}
|
|
1490
1506
|
return triggerNode.parentNode
|
|
1491
1507
|
},
|
|
1492
1508
|
colorPickerComboboxSelect (val) {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@action="action"
|
|
9
9
|
@selectRow="selectRow"
|
|
10
10
|
@columnClick="columnClick"
|
|
11
|
-
serviceName="af-
|
|
11
|
+
serviceName="af-system"
|
|
12
12
|
ref="xFormTable">
|
|
13
13
|
</x-form-table>
|
|
14
14
|
</a-card>
|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
data () {
|
|
27
27
|
return {
|
|
28
28
|
// 查询配置文件名
|
|
29
|
-
queryParamsName: '
|
|
29
|
+
queryParamsName: 'ceshiCRUD',
|
|
30
30
|
// 查询配置左侧tree
|
|
31
31
|
xTreeConfigName: 'addressType',
|
|
32
32
|
// 新增表单固定值
|