dashboard-shell-shell 0.0.1000000000001140 → 1.0.6
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.
|
@@ -18,6 +18,7 @@ type RcDropdownMenuComponentProps = {
|
|
|
18
18
|
dataTestid?: string;
|
|
19
19
|
resource: Object;
|
|
20
20
|
customActions?: DropdownOption[];
|
|
21
|
+
showIcon?: Boolean;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
const props = defineProps <RcDropdownMenuComponentProps>();
|
|
@@ -100,6 +101,7 @@ const menuOptions = () => {
|
|
|
100
101
|
:dropdown-aria-label="dropdownAriaLabel"
|
|
101
102
|
:options="menuOptions()"
|
|
102
103
|
:data-testid="dataTestid"
|
|
104
|
+
:showIcon="showIcon"
|
|
103
105
|
@update:open="openChanged"
|
|
104
106
|
@select="(e: MouseEvent, option: object) => execute(option, e)"
|
|
105
107
|
/>
|
|
@@ -416,6 +416,7 @@ export default {
|
|
|
416
416
|
</script>
|
|
417
417
|
|
|
418
418
|
<template>
|
|
419
|
+
测试111111111111111111111111
|
|
419
420
|
<div class="project-namespaces outlet">
|
|
420
421
|
<Masthead
|
|
421
422
|
:schema="projectSchema"
|
|
@@ -505,21 +506,19 @@ export default {
|
|
|
505
506
|
<div class="right">
|
|
506
507
|
<router-link
|
|
507
508
|
v-if="isNamespaceCreatable && (canSeeProjectlessNamespaces || group.group.key !== notInProjectKey)"
|
|
508
|
-
class="create-namespace
|
|
509
|
+
class="create-namespace"
|
|
510
|
+
style="margin-bottom: 3px;"
|
|
509
511
|
:to="createNamespaceLocation(group.group)"
|
|
510
512
|
>
|
|
511
513
|
{{ t('projectNamespaces.createNamespace') }}
|
|
512
514
|
</router-link>
|
|
515
|
+
<span style="color: var(--link);margin-bottom: 3px;">|</span>
|
|
513
516
|
<template v-if="featureDropdownMenu">
|
|
514
517
|
<ActionMenu
|
|
515
|
-
|
|
518
|
+
:showIcon="true"
|
|
516
519
|
:resource="getProjectActions(group.group)"
|
|
517
520
|
:button-aria-label="t('projectNamespaces.tableActionsLabel', { resource: projectResource(group.group) })"
|
|
518
521
|
/>
|
|
519
|
-
<div
|
|
520
|
-
v-else
|
|
521
|
-
class="invisible"
|
|
522
|
-
/>
|
|
523
522
|
</template>
|
|
524
523
|
<template v-else>
|
|
525
524
|
<ButtonMultiAction
|
|
@@ -595,6 +594,7 @@ export default {
|
|
|
595
594
|
</template>
|
|
596
595
|
<style lang="scss" scoped>
|
|
597
596
|
.invisible {
|
|
597
|
+
width: 42px;
|
|
598
598
|
display: inline-block;
|
|
599
599
|
}
|
|
600
600
|
|
|
@@ -621,6 +621,7 @@ export default {
|
|
|
621
621
|
|
|
622
622
|
.create-namespace {
|
|
623
623
|
color: var(--link);
|
|
624
|
+
padding: 0 18px;
|
|
624
625
|
}
|
|
625
626
|
|
|
626
627
|
.group-tab {
|
package/package.json
CHANGED
|
@@ -33,8 +33,10 @@ const hasOptions = (options: DropdownOption[]) => {
|
|
|
33
33
|
:data-testid="dataTestid"
|
|
34
34
|
:aria-label="buttonAriaLabel"
|
|
35
35
|
>
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
<div v-if="showIcon">
|
|
37
|
+
<i data-v-5db2c2c7="" class="icon icon-actions" alt="More actions icon"></i>
|
|
38
|
+
</div>
|
|
39
|
+
<a v-else href="javascript:;">操作</a>
|
|
38
40
|
</rc-dropdown-trigger>
|
|
39
41
|
<template #dropdownCollection>
|
|
40
42
|
<template
|