resolver-egretimp-plus 0.0.144 → 0.0.146
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
|
@@ -93,7 +93,7 @@ export async function dispatchClickEvent(service, { dynamicMapComp, requestTrace
|
|
|
93
93
|
})
|
|
94
94
|
}
|
|
95
95
|
const beforeRequestServiceRetValid = await beforeRequestServiceRet
|
|
96
|
-
if (
|
|
96
|
+
if (beforeRequestServiceRetValid === false) {
|
|
97
97
|
return
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -342,8 +342,8 @@ export function openDailg({
|
|
|
342
342
|
beforeOpenDialogRet = paramsBeforeOpenDialog?.(...arg)
|
|
343
343
|
}
|
|
344
344
|
const beforeOpenDialogRetValid = await beforeOpenDialogRet
|
|
345
|
-
if (
|
|
346
|
-
return
|
|
345
|
+
if (beforeOpenDialogRetValid === false) {
|
|
346
|
+
return false
|
|
347
347
|
}
|
|
348
348
|
if (configBeforeOpenDialog) {
|
|
349
349
|
return configBeforeOpenDialog?.(...arg)
|
|
@@ -367,7 +367,7 @@ export function openDailg({
|
|
|
367
367
|
if (beforeOpenDialogRet !== null && beforeOpenDialogRet !== undefined) {
|
|
368
368
|
if (isPromise(beforeOpenDialogRet)) {
|
|
369
369
|
beforeOpenDialogRet.then(res => {
|
|
370
|
-
if (res) {
|
|
370
|
+
if (res !== false) {
|
|
371
371
|
toOpenDialog()
|
|
372
372
|
}
|
|
373
373
|
})
|
|
@@ -459,7 +459,7 @@ export async function executeDataValid(validConfig, {
|
|
|
459
459
|
})
|
|
460
460
|
}
|
|
461
461
|
const beforeRequestServiceRetValid = await beforeRequestServiceRet
|
|
462
|
-
if (
|
|
462
|
+
if (beforeRequestServiceRetValid === false) {
|
|
463
463
|
return
|
|
464
464
|
}
|
|
465
465
|
const ret = await buildInRequest(url, {
|
|
@@ -573,8 +573,8 @@ export async function executeEventOrchestration({
|
|
|
573
573
|
beforeRequestServiceRet = beforeRequestService?.(...arg)
|
|
574
574
|
}
|
|
575
575
|
const beforeRequestServiceRetValid = await beforeRequestServiceRet
|
|
576
|
-
if (
|
|
577
|
-
return
|
|
576
|
+
if (beforeRequestServiceRetValid === false) {
|
|
577
|
+
return false
|
|
578
578
|
}
|
|
579
579
|
if (configBeforeRequestService) {
|
|
580
580
|
return configBeforeRequestService?.(...arg)
|
|
@@ -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
|
* 层级为一的时候,并且只有一个页签,激活的页签头,应该有分割线
|