From 6f82aef8d8f65d547b15c322d2316351a15f318e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=82=85=E6=9A=84=E6=A1=93?= Date: Sat, 9 Dec 2023 11:56:54 +0800 Subject: [PATCH] add: icon add: collapse function to make the left column smaller --- ai-json-form/package-lock.json | 1 + ai-json-form/package.json | 1 + ai-json-form/src/App.vue | 145 ++++++++++++--------------------- 3 files changed, 54 insertions(+), 93 deletions(-) diff --git a/ai-json-form/package-lock.json b/ai-json-form/package-lock.json index 21456b5..1285b40 100644 --- a/ai-json-form/package-lock.json +++ b/ai-json-form/package-lock.json @@ -8,6 +8,7 @@ "name": "ai-json-forms", "version": "1.1.3", "dependencies": { + "@element-plus/icons-vue": "^2.3.1", "@jsonforms/core": "^3.1.0", "@jsonforms/vue": "^3.1.0", "@jsonforms/vue-vanilla": "^3.1.0", diff --git a/ai-json-form/package.json b/ai-json-form/package.json index d63bf52..ba1e5b2 100644 --- a/ai-json-form/package.json +++ b/ai-json-form/package.json @@ -10,6 +10,7 @@ "preview": "vite preview" }, "dependencies": { + "@element-plus/icons-vue": "^2.3.1", "@jsonforms/core": "^3.1.0", "@jsonforms/vue": "^3.1.0", "@jsonforms/vue-vanilla": "^3.1.0", diff --git a/ai-json-form/src/App.vue b/ai-json-form/src/App.vue index 01d5218..59e7a35 100644 --- a/ai-json-form/src/App.vue +++ b/ai-json-form/src/App.vue @@ -18,6 +18,10 @@ import { ElTag, ElDialog } from 'element-plus' +import { + ArrowLeft, + ArrowRight +} from '@element-plus/icons-vue' import { basicSchema } from './configs.js' import { codeMirrorConfig } from './codeMirror.js' import { getVersion } from './axios.js' @@ -48,9 +52,11 @@ const frontendVersion = ref(fontendVersion) const backendVersion = ref('') const imagePreviewDialogVisible = ref(false) const imagePreviewUrl = ref('') +const leftColSpan = ref(12) console.log('Frontend version:', frontendVersion.value) const { SocketIOBackendHandler, FrontendOnlyHandler } = handlers +const leastColSpan = 4; let handler = null let handlerParameters = { inferencing: inferencing, @@ -195,56 +201,36 @@ onMounted(() => {