resolver-egretimp-plus 0.0.145 → 0.0.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -61,13 +61,17 @@ const level = computed(() => {
|
|
|
61
61
|
return props.config.level || tabpanes.value.find(tabpane => hasOwn(tabpane, 'level'))?.level || 1
|
|
62
62
|
})
|
|
63
63
|
const transTabsProps = computed(() => {
|
|
64
|
-
|
|
64
|
+
const polyProps = level.value == 1 ? {
|
|
65
65
|
stretch: true,
|
|
66
66
|
type: 'border-card'
|
|
67
67
|
} : level.value == 2 ? {
|
|
68
68
|
} : level.value == 3 ? {
|
|
69
69
|
type: 'card'
|
|
70
|
-
} :
|
|
70
|
+
} : {}
|
|
71
|
+
return {
|
|
72
|
+
...tabsProps.value,
|
|
73
|
+
...polyProps
|
|
74
|
+
}
|
|
71
75
|
})
|
|
72
76
|
/**
|
|
73
77
|
* 层级为一的时候,并且只有一个页签,激活的页签头,应该有分割线
|
package/src/utils/const.js
CHANGED
package/src/utils/render.jsx
CHANGED
|
@@ -618,7 +618,7 @@ function generateFormItemPc (config, lang, compProps, params,) {
|
|
|
618
618
|
slots.label = () => createFormLable(config, lang)
|
|
619
619
|
}
|
|
620
620
|
return (
|
|
621
|
-
<formItemComp class="custom-form-item" {...props}>{slots}</formItemComp>
|
|
621
|
+
<formItemComp key={config.requiredFlag} class="custom-form-item" {...props}>{slots}</formItemComp>
|
|
622
622
|
)
|
|
623
623
|
}
|
|
624
624
|
}
|