feat: refs #8463 add module prop to VnDescriptor component for enhanced functionality
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
39e0f88380
commit
8bdd581764
|
@ -25,6 +25,10 @@ const $props = defineProps({
|
|||
type: String,
|
||||
default: 'md-width',
|
||||
},
|
||||
module: {
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
toModule: {
|
||||
type: String,
|
||||
default: null,
|
||||
|
@ -41,8 +45,8 @@ const moduleName = ref();
|
|||
const isSameModuleName = route.matched[1].meta.moduleName !== moduleName.value;
|
||||
|
||||
function getName() {
|
||||
let name = $props.dataKey;
|
||||
if ($props.dataKey.includes(DESCRIPTOR_PROXY)) {
|
||||
let name = $props.module;
|
||||
if ($props.module.includes(DESCRIPTOR_PROXY)) {
|
||||
name = name.split(DESCRIPTOR_PROXY)[0];
|
||||
}
|
||||
return name;
|
||||
|
|
Loading…
Reference in New Issue