All files / src/components/u-process-info.vue index.designer.vue

75% Statements 9/12
25% Branches 1/4
0% Functions 0/1
75% Lines 9/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30      1x   1x     1x                                          
<template>
    <u-process-info-real v-if="$env.VUE_APP_DESIGNER" ref="info"></u-process-info-real>
    <component
        v-else
        is="u-process-info-real"
        v-bind="[$attrs, $props]"
        v-on="$listeners">
    </component>
</template>
<script>
import UProcessInfoReal from './index.vue';
 
export default {
    component: {
        UProcessInfoReal,
    },
    mounted() {
        if (this.$refs.info) {
            this.$refs.info.detail = {
                startBy: '张三(示例)',
                processStartTime: '2020-01-01 12:00:00(示例)',
                finished: '进行中(示例)',
                currentNodes: '节点1(示例)',
                currentCandidateUsers: '张三, 李四(示例)',
            };
        }
    },
};
</script>