35 lines
1.0 KiB
Vue
35 lines
1.0 KiB
Vue
|
|
<template>
|
||
|
|
<NodeContainer :nodeModel="nodeModel">
|
||
|
|
<h5 class="title-decoration-1 mb-8">全局变量</h5>
|
||
|
|
<div
|
||
|
|
class="flex-between border-r-4 p-8-12 mb-8 layout-bg lighter"
|
||
|
|
@mouseenter="showicon = true"
|
||
|
|
@mouseleave="showicon = false"
|
||
|
|
>
|
||
|
|
<span>当前时间 {time}</span>
|
||
|
|
<el-tooltip effect="dark" content="复制参数" placement="top" v-if="showicon === true">
|
||
|
|
<el-button link @click="copyClick(globeLabel)" style="padding: 0">
|
||
|
|
<AppIcon iconName="app-copy"></AppIcon>
|
||
|
|
</el-button>
|
||
|
|
</el-tooltip>
|
||
|
|
</div>
|
||
|
|
</NodeContainer>
|
||
|
|
</template>
|
||
|
|
<script setup lang="ts">
|
||
|
|
import { set } from 'lodash'
|
||
|
|
import NodeContainer from '@/workflow/common/NodeContainer.vue'
|
||
|
|
import { copyClick } from '@/utils/clipboard'
|
||
|
|
import { ref, computed, onMounted } from 'vue'
|
||
|
|
|
||
|
|
const props = defineProps<{ nodeModel: any }>()
|
||
|
|
|
||
|
|
const globeLabel = '{{全局变量.time}}'
|
||
|
|
|
||
|
|
const showicon = ref(false)
|
||
|
|
|
||
|
|
// onMounted(() => {
|
||
|
|
// set(props.nodeModel, 'validate', validate)
|
||
|
|
// })
|
||
|
|
</script>
|
||
|
|
<style lang="scss" scoped></style>
|