Browse Source

修改页面

qin_26
herenshan112 3 weeks ago
parent
commit
f6b5095eb1
  1. 19
      src/widget/urllink/index.vue

19
src/widget/urllink/index.vue

@ -11,6 +11,7 @@ import {
import validate from '@/api/DesignForm/validate'
import { FormItem, FormList } from '@/api/DesignForm/types'
import Tooltips from '@/components/DesignForm/tooltip.vue'
import { AnalysisCss,AnalysisInputCss } from '@/components/DesignForm/public/form/calculate/cssInfo'
import { nodePoweInfo,powerAryInfo } from "@/api/taskapi/types";
const props = withDefaults(
defineProps<{
@ -157,6 +158,17 @@ const openUrl = () => {
onMounted(() => {
// console.log("-url--",props.data)
})
const getFormItemLableStyle = (ele: any) => {
if(ele?.labelStyle){
// console.log("3",AnalysisCss(ele?.labelStyle))
return AnalysisCss(ele?.labelStyle)
}
}
//css
const configStyle = computed(() => {
return props.data.styles || {}
})
const allNodePwoer = inject('flowNodePower') as any
const currentNodePowerKey = inject('currentNodeKey') as any
@ -227,7 +239,8 @@ const judgeIsEdit = (key: string) => {
v-if="judgeIsShow(data.name)"
>
<template v-if="config.help" #label >
{{ getLabel(data.item) }}
<span :style="getFormItemLableStyle(configStyle)">{{ getLabel(data.item) }}</span>
<Tooltips :content="config.help" />
</template>
<div v-if="type === 4" class="form-value" v-html="value"></div>
@ -242,7 +255,11 @@ const judgeIsEdit = (key: string) => {
<template #append><el-button type="warning" @click="openUrl">访问</el-button></template>
</el-input>
</template>
</el-form-item>
</template>
<style lang='scss' scoped>

Loading…
Cancel
Save