dashboard-shell-shell 0.0.1000000000001140 → 1.0.7
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/components/ActionMenuShell.vue +2 -0
- package/components/ExplorerProjectsNamespaces.vue +10 -9
- package/components/SortableTable/index.vue +1 -0
- package/package.json +1 -1
- package/pages/c/_cluster/_product/projectsnamespaces.vue +4 -1
- package/rancher-components/Form/Checkbox/Checkbox.vue +1 -0
- package/rancher-components/RcDropdown/RcDropdownMenu.vue +4 -2
|
@@ -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"
|
|
@@ -502,26 +503,24 @@ export default {
|
|
|
502
503
|
{{ projectDescription(group.group) }}
|
|
503
504
|
</div>
|
|
504
505
|
</div>
|
|
505
|
-
<div class="right">
|
|
506
|
+
<div class="right">1
|
|
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>
|
|
513
|
-
<
|
|
515
|
+
<span style="color: var(--link);margin-bottom: 3px;">|</span>
|
|
516
|
+
<template v-if="featureDropdownMenu">2
|
|
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
|
-
<template v-else>
|
|
523
|
+
<template v-else>3
|
|
525
524
|
<ButtonMultiAction
|
|
526
525
|
class="project-action"
|
|
527
526
|
:borderless="true"
|
|
@@ -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 {
|
|
@@ -1224,6 +1224,7 @@ export default {
|
|
|
1224
1224
|
ref="container"
|
|
1225
1225
|
:data-testid="componentTestid + '-list-container'"
|
|
1226
1226
|
>
|
|
1227
|
+
<!-- 主标题和过滤器区域 -->
|
|
1227
1228
|
<div
|
|
1228
1229
|
:class="{'titled': $slots.title && $slots.title.length, 'mb-40': isFilterLabel, 'mb-20': search || isCreatable}"
|
|
1229
1230
|
class="sortable-table-header "
|
package/package.json
CHANGED
|
@@ -3,4 +3,7 @@ import ExplorerProjectsNamespaces from '@shell/components/ExplorerProjectsNamesp
|
|
|
3
3
|
export default { components: { ExplorerProjectsNamespaces } };
|
|
4
4
|
</script>
|
|
5
5
|
|
|
6
|
-
<template
|
|
6
|
+
<template>
|
|
7
|
+
测试页面--------------------------------------1
|
|
8
|
+
<ExplorerProjectsNamespaces v-bind="$attrs" />
|
|
9
|
+
</template>
|
|
@@ -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
|