diff --git a/src/components/DesignForm/assembly/index.ts b/src/components/DesignForm/assembly/index.ts index 65a19c1..ced14d3 100644 --- a/src/components/DesignForm/assembly/index.ts +++ b/src/components/DesignForm/assembly/index.ts @@ -1027,10 +1027,7 @@ export default [ }, styles: { divStyle: { - marginBot: "15", - divbox: "all", - transparency: 100, - paddingLeft: "7" + marginBot: "15" }, labelStyle: { paddingLeft: "7", diff --git a/src/components/DesignForm/public/form/formItem.vue b/src/components/DesignForm/public/form/formItem.vue index 77f405f..bec899b 100644 --- a/src/components/DesignForm/public/form/formItem.vue +++ b/src/components/DesignForm/public/form/formItem.vue @@ -1059,7 +1059,7 @@ const diGuiJilian = (val: any, options: any[]) => { :tablekey="props.tablekey" :numrun="props.numrun" /> - + { /> diff --git a/src/widget/number/index.vue b/src/widget/number/index.vue index 23f8b94..5deff1b 100644 --- a/src/widget/number/index.vue +++ b/src/widget/number/index.vue @@ -10,6 +10,7 @@ import { constGetControlByName, } from "@/api/DesignForm/utils"; import validate from "@/api/DesignForm/validate"; +import { AnalysisCss,AnalysisInputCss } from '@/components/DesignForm/public/form/calculate/cssInfo' import { useRoute } from "vue-router"; import { FormItem, FormList } from "@/api/DesignForm/types"; import { gainNumber } from "@/api/DesignForm/requestapi"; @@ -186,6 +187,17 @@ const formatCustomRules = () => { }); return temp; }; + +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 || {} +}) diff --git a/src/widget/urllink/index.vue b/src/widget/urllink/index.vue index 569db48..4f98199 100644 --- a/src/widget/urllink/index.vue +++ b/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' const props = withDefaults( defineProps<{ data: FormList @@ -156,6 +157,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 || {} +})