update
This commit is contained in:
@@ -9,7 +9,11 @@
|
||||
</template>
|
||||
<template #suffix>
|
||||
<n-flex style="margin: 0 8px">
|
||||
<n-button v-if="roleAdmin || roleSuper" text @click="showStats = true">
|
||||
<n-button
|
||||
v-if="roleAdmin || roleSuper"
|
||||
text
|
||||
@click="showStats = true"
|
||||
>
|
||||
<Icon :width="16" icon="lucide:bar-chart-2" />
|
||||
</n-button>
|
||||
<n-button
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
<template>
|
||||
<n-flex class="container" :wrap="false">
|
||||
<div class="sidebar">
|
||||
<div
|
||||
class="back-btn"
|
||||
@click="() => goHome($router, taskTab, step)"
|
||||
>
|
||||
<div class="back-btn" @click="() => goHome($router, taskTab, step)">
|
||||
← 返回
|
||||
</div>
|
||||
<n-divider style="margin: 8px 0" />
|
||||
@@ -78,7 +75,9 @@ const menu = computed(() =>
|
||||
color: #888;
|
||||
cursor: pointer;
|
||||
border-radius: 6px;
|
||||
transition: background-color 0.15s, color 0.15s;
|
||||
transition:
|
||||
background-color 0.15s,
|
||||
color 0.15s;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
@@ -93,7 +92,9 @@ const menu = computed(() =>
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
color: #444;
|
||||
transition: background-color 0.15s, color 0.15s;
|
||||
transition:
|
||||
background-color 0.15s,
|
||||
color 0.15s;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,17 @@
|
||||
style="height: 100%; padding-right: 10px; overflow: hidden"
|
||||
>
|
||||
<n-flex justify="space-between" style="flex-shrink: 0">
|
||||
<n-button secondary @click="() => goHome($router, taskTab, taskTab === TASK_TYPE.Challenge ? challengeDisplay : step)">
|
||||
<n-button
|
||||
secondary
|
||||
@click="
|
||||
() =>
|
||||
goHome(
|
||||
$router,
|
||||
taskTab,
|
||||
taskTab === TASK_TYPE.Challenge ? challengeDisplay : step,
|
||||
)
|
||||
"
|
||||
>
|
||||
首页
|
||||
</n-button>
|
||||
<n-flex align="center">
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
<template>
|
||||
<n-split
|
||||
:size="panelSize"
|
||||
@update-size="changeSize"
|
||||
min="400px"
|
||||
max="900px"
|
||||
>
|
||||
<n-split :size="panelSize" @update-size="changeSize" min="400px" max="900px">
|
||||
<template #1>
|
||||
<TaskPanel @hide="hide" />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user