feat(工具箱): 处理工具箱分类“enabled”属性

This commit is contained in:
2024-09-08 15:08:15 +08:00
parent 2365231986
commit 05f3fbc454
2 changed files with 8 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ export const toolList = [
{ {
id: 'calculation-tools', id: 'calculation-tools',
title: '计算', title: '计算',
enabled: false,
items: [ items: [
{ {
id: 'calc-download-time', id: 'calc-download-time',
@@ -39,6 +40,7 @@ export const toolList = [
{ {
id: 'conversion-tools', id: 'conversion-tools',
title: '转换', title: '转换',
enabled: false,
items: [ items: [
{ {
id: 'convert-html-entities', id: 'convert-html-entities',
@@ -89,6 +91,7 @@ export const toolList = [
{ {
id: 'edit-tools', id: 'edit-tools',
title: '编辑', title: '编辑',
enabled: false,
items: [ items: [
{ {
id: 'csv-editor', id: 'csv-editor',
@@ -106,6 +109,7 @@ export const toolList = [
{ {
id: 'generator-tools', id: 'generator-tools',
title: '生成', title: '生成',
enabled: false,
items: [ items: [
{ {
id: 'generate-urls', id: 'generate-urls',
@@ -134,6 +138,7 @@ export const toolList = [
{ {
id: 'minecraft-tools', id: 'minecraft-tools',
title: 'Minecraft', title: 'Minecraft',
enabled: false,
items: [ items: [
{ {
id: 'calc-minecraft-chunk-location', id: 'calc-minecraft-chunk-location',
@@ -173,6 +178,7 @@ export const toolList = [
{ {
id: 'network-tools', id: 'network-tools',
title: '网络', title: '网络',
enabled: false,
items: [ items: [
{ {
id: 'websocket-test-tool', id: 'websocket-test-tool',
@@ -190,6 +196,7 @@ export const toolList = [
{ {
id: 'other-tools', id: 'other-tools',
title: '其他', title: '其他',
enabled: false,
items: [ items: [
{ {
id: 'open-new-window', id: 'open-new-window',

View File

@@ -14,6 +14,7 @@
<!-- 分类项 --> <!-- 分类项 -->
<n-collapse-item <n-collapse-item
v-for="categoryItem in toolList" v-for="categoryItem in toolList"
v-show="categoryItem.enabled"
:key="categoryItem.id" :key="categoryItem.id"
:name="categoryItem.id" :name="categoryItem.id"
:title="categoryItem.title" :title="categoryItem.title"