+ :style="{width:props.dimensions.width*props.ratioWidth+'px',height:props.dimensions.height*props.ratioHeight+'px',pointerEvents:props.isView?'auto': 'none'}">
数据映射
@@ -20,6 +20,16 @@ import { Refresh } from '@element-plus/icons-vue';
import { Handle, Position } from '@vue-flow/core';
const props = defineProps({
+ ratioWidth: {
+ type: Number,
+ required: false,
+ default: 1
+ },
+ ratioHeight: {
+ type: Number,
+ required: false,
+ default: 1
+ },
isView: {
type: Boolean,
required: false
@@ -55,8 +65,8 @@ const convertData = () => {
props.data.options.dataMap.forEach(item => {
rule[item.target] = item.source;
});
- console.log('props.inputData', props.inputData);
- console.log('rule', rule);
+ // console.log('props.inputData', props.inputData);
+ // console.log('rule', rule);
let res = {};
Object.keys(rule).forEach(item => {
if (Object.keys(props.inputData).includes(rule[item])) {
@@ -66,7 +76,7 @@ const convertData = () => {
// res[item] = props.inputData[item];
}
});
- console.log('res', res);
+ // console.log('res', res);
props.data.outputData = res;
};
watch(() => JSON.parse(JSON.stringify(props.inputData)), (obj1, obj2) => {
diff --git a/src/views/boardGenerate/nodes/form/paginationNode.vue b/src/views/boardGenerate/nodes/form/paginationNode.vue
index 735ef22..48ecdf6 100644
--- a/src/views/boardGenerate/nodes/form/paginationNode.vue
+++ b/src/views/boardGenerate/nodes/form/paginationNode.vue
@@ -1,12 +1,12 @@
+ :style="{width:props.dimensions.width*props.ratioWidth+'px',height:props.dimensions.height*props.ratioHeight+'px'}">
$emit('resize', e)" color="#fff"
v-if="!props.isView && !props.isHideHandle && props.selected"
@resize="resize" />
+ :style="{width:props.dimensions.width*props.ratioWidth+'px',height:props.dimensions.height*props.ratioHeight+'px',pointerEvents:props.isView?'auto': 'none'}">
{
};
watch(() => JSON.parse(JSON.stringify(props.inputData || '{}')), (obj1, obj2) => {
if (JSON.stringify(obj1) !== JSON.stringify(obj2)) {
+ console.log(props.inputData);
if (Array.isArray(props.inputData?.total)) {
total.value = props.inputData?.total[0] || 0;
} else {
diff --git a/src/views/boardGenerate/nodes/form/scrollTableNode.vue b/src/views/boardGenerate/nodes/form/scrollTableNode.vue
index e5eb2f9..556408b 100644
--- a/src/views/boardGenerate/nodes/form/scrollTableNode.vue
+++ b/src/views/boardGenerate/nodes/form/scrollTableNode.vue
@@ -1,11 +1,11 @@
+ :style="{width:props.dimensions.width*props.ratioWidth+'px',height:props.dimensions.height*props.ratioHeight+'px'}">
$emit('resize', e)" color="#fff" v-if="!props.isView && !props.isHideHandle && props.selected"
@resize="resize" />
+ :style="{width:props.dimensions.width*props.ratioWidth+'px',height:props.dimensions.height*props.ratioHeight+'px',pointerEvents:props.isView?'auto': 'none'}">