Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
netvs-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scc-net
netvs
netvs-core
Commits
46254b18
Commit
46254b18
authored
3 weeks ago
by
Nazik Abdyldabekova
Browse files
Options
Downloads
Patches
Plain Diff
ADD: collapse-button
parent
86256174
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/TransactionSidebar.vue
+12
-5
12 additions, 5 deletions
src/components/TransactionSidebar.vue
with
12 additions
and
5 deletions
src/components/TransactionSidebar.vue
+
12
−
5
View file @
46254b18
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
const
providerRef
=
useTemplateRef
(
'
providerRef
'
)
const
providerRef
=
useTemplateRef
(
'
providerRef
'
)
defineExpose
({
providerRef
})
defineExpose
({
providerRef
})
const
actions
=
ref
([
const
actions
=
ref
([
{
{
id
:
0
,
id
:
0
,
...
@@ -40,12 +41,19 @@ function clearList() {
...
@@ -40,12 +41,19 @@ function clearList() {
<SidebarInset>
<SidebarInset>
<slot
/>
<slot
/>
</SidebarInset>
</SidebarInset>
<Sidebar
collapsible=
"offcanvas"
side=
"right"
style=
"--sidebar-width: 26rem"
>
<Sidebar
collapsible=
"offcanvas"
side=
"right"
style=
"--sidebar-width: 26rem
;
"
>
<SidebarHeader
mt-
topbar
text-center
>
<SidebarHeader
mt-
1
text-center
>
Planned Actions
Planned Actions
</SidebarHeader>
</SidebarHeader>
<SidebarSeparator
/>
<SidebarSeparator
/>
<SidebarContent>
<SidebarContent>
<SidebarGroup>
<Button
variant=
"secondary"
bg-background
@
click=
"providerRef?.toggleSidebar()"
>
Collapse
<IconTooling
/>
</Button>
</SidebarGroup>
<SidebarSeparator
/>
<SidebarGroup
class=
"m-b-2 m-t-2 flex flex-row justify-center"
>
<SidebarGroup
class=
"m-b-2 m-t-2 flex flex-row justify-center"
>
<Button
variant=
"outline"
w=
"1/8"
rounded-bl-lg
rounded-br-none
rounded-tl-lg
rounded-tr-none
>
<Button
variant=
"outline"
w=
"1/8"
rounded-bl-lg
rounded-br-none
rounded-tl-lg
rounded-tr-none
>
<IconTooling
/>
<IconTooling
/>
...
@@ -54,7 +62,7 @@ function clearList() {
...
@@ -54,7 +62,7 @@ function clearList() {
<IconTooling
/>
<IconTooling
/>
</Button>
</Button>
</SidebarGroup>
</SidebarGroup>
<SidebarSeparator/>
<SidebarSeparator
/>
<SidebarGroup
class=
"m-b-2 flex flex-row justify-center"
>
<SidebarGroup
class=
"m-b-2 flex flex-row justify-center"
>
<div
flex
flex-row
justify-center
>
<div
flex
flex-row
justify-center
>
<Button
variant=
"outline"
w-8rem
rounded-bl-lg
rounded-br-none
rounded-tl-lg
rounded-tr-none
@
click=
"clearList()"
>
<Button
variant=
"outline"
w-8rem
rounded-bl-lg
rounded-br-none
rounded-tl-lg
rounded-tr-none
@
click=
"clearList()"
>
...
@@ -81,8 +89,7 @@ function clearList() {
...
@@ -81,8 +89,7 @@ function clearList() {
<SidebarSeparator
/>
<SidebarSeparator
/>
<SidebarGroup>
<SidebarGroup>
<DragAndDrop
:length=
"actions.length"
:emptyListPhrase=
"emptyListPhrase"
>
<DragAndDrop
:length=
"actions.length"
:emptyListPhrase=
"emptyListPhrase"
>
<DragAndDropItem
v-for=
"action in actions"
:key=
"action.id"
:item=
"action"
:items=
"actions"
>
<DragAndDropItem
v-for=
"action in actions"
:key=
"action.id"
:item=
"action"
:items=
"actions"
/>
</DragAndDropItem>
</DragAndDrop>
</DragAndDrop>
</SidebarGroup>
</SidebarGroup>
</SidebarContent>
</SidebarContent>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment