centaline-data-driven-v3 0.1.51 → 0.1.52
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
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<teleport to="body" v-if="vmodel.appendToBody">
|
|
3
|
+
<render />
|
|
4
|
+
</teleport>
|
|
5
|
+
<render v-else />
|
|
3
6
|
</template>
|
|
4
7
|
<script setup>
|
|
5
8
|
import { h, ref, onActivated, resolveComponent, onBeforeUnmount } from 'vue'
|
|
@@ -12,9 +15,9 @@ const contentTop = ref(0)
|
|
|
12
15
|
const content = ref()
|
|
13
16
|
const captionBarButtons = ref([])
|
|
14
17
|
const modelSelf = ref(null)
|
|
15
|
-
const submitCancelData= ref(null)
|
|
16
|
-
onBeforeUnmount(()=>{
|
|
17
|
-
|
|
18
|
+
const submitCancelData = ref(null)
|
|
19
|
+
onBeforeUnmount(() => {
|
|
20
|
+
modelSelf.value = null
|
|
18
21
|
})
|
|
19
22
|
onActivated(() => {
|
|
20
23
|
if (contentTop.value && content) {
|
|
@@ -33,7 +36,7 @@ function scrollHandle(ev) {
|
|
|
33
36
|
ev.stopPropagation();
|
|
34
37
|
}
|
|
35
38
|
|
|
36
|
-
const render = () => {
|
|
39
|
+
const render = () => {
|
|
37
40
|
return h('div', {}, [
|
|
38
41
|
h('div', {
|
|
39
42
|
style: {
|
|
@@ -49,7 +52,7 @@ const render = () => {
|
|
|
49
52
|
'ct-dialog_wrapper'
|
|
50
53
|
],
|
|
51
54
|
style: {
|
|
52
|
-
'z-index': props.zindex,
|
|
55
|
+
'z-index': props.vmodel.appendToBody ? props.zindex + 1000 : props.zindex,
|
|
53
56
|
'height': '100%',
|
|
54
57
|
'width': '100%',
|
|
55
58
|
}
|
|
@@ -184,11 +187,11 @@ const render = () => {
|
|
|
184
187
|
item.height = (props.vmodel.pane.clientHeight - 60) + 'px';
|
|
185
188
|
}
|
|
186
189
|
if (item.component == 'ct-form') {
|
|
187
|
-
if(props.vmodel.pane.clientHeight>window.innerHeight){
|
|
190
|
+
if (props.vmodel.pane.clientHeight > window.innerHeight) {
|
|
188
191
|
item.documentHeight = (window.innerHeight) + 'px';
|
|
189
192
|
}
|
|
190
|
-
else{
|
|
191
|
-
|
|
193
|
+
else {
|
|
194
|
+
item.documentHeight = (props.vmodel.pane.clientHeight - 60) + 'px';
|
|
192
195
|
}
|
|
193
196
|
}
|
|
194
197
|
}
|