From 1916f4accb58f7408de4c2f7ea76cea36cb49c33 Mon Sep 17 00:00:00 2001
From: wangqing <250543222@qq.com>
Date: Wed, 5 May 2021 22:43:28 +0800
Subject: [PATCH] =?UTF-8?q?=E9=80=BB=E8=BE=91=E6=98=BE=E7=A4=BA=E5=AE=8C?=
=?UTF-8?q?=E6=88=9070%?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/assets/styles/index.scss | 40 +++++++
src/components/parser/Parser.vue | 30 ++++--
src/layout/example.vue | 43 --------
src/utils/convert.js | 23 ++--
src/utils/expression.js | 50 +++++++++
src/views/form/ProjectForm.vue | 63 +++++++++--
src/views/form/editor.vue | 6 +-
src/views/form/logic.vue | 175 ++++++++++++++++++++++---------
8 files changed, 304 insertions(+), 126 deletions(-)
delete mode 100644 src/layout/example.vue
create mode 100644 src/utils/expression.js
diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss
index 5f3a061..7399d94 100644
--- a/src/assets/styles/index.scss
+++ b/src/assets/styles/index.scss
@@ -3,6 +3,7 @@
@import './transition.scss';
@import './element-ui.scss';
@import './btn.scss';
+
body {
height: 100%;
margin: 0;
@@ -11,33 +12,41 @@ body {
text-rendering: optimizeLegibility;
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}
+
label {
font-weight: 700;
}
+
html {
height: 100%;
margin: 0;
box-sizing: border-box;
}
+
#app {
margin: 0;
height: 100%;
}
+
*,
*::before,
*::after {
box-sizing: inherit;
}
+
.no-padding {
padding: 0 !important;
}
+
.padding-content {
padding: 4px 0;
}
+
a:focus,
a:active {
outline: none;
}
+
a,
a:focus,
a:hover {
@@ -45,33 +54,49 @@ a:hover {
color: inherit;
text-decoration: none;
}
+
div:focus {
outline: none;
}
+
.fr {
float: right;
}
+
.fl {
float: left;
}
+
.pr-5 {
padding-right: 5px;
}
+
.pl-5 {
padding-left: 5px;
}
+
.pl-10 {
padding-left: 10px;
}
+
+.mt-5 {
+ margin-top: 5px;
+}
+.mr-10 {
+ margin-right: 10px;
+}
.block {
display: block;
}
+
.pointer {
cursor: pointer;
}
+
.inlineBlock {
display: block;
}
+
.clearfix {
&::after {
visibility: hidden;
@@ -82,6 +107,7 @@ div:focus {
height: 0;
}
}
+
aside {
background: #eef1f6;
padding: 8px 24px;
@@ -94,9 +120,11 @@ aside {
color: #2c3e50;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
+
a {
color: #337ab7;
cursor: pointer;
+
&:hover {
color: rgb(32, 160, 255);
}
@@ -107,16 +135,20 @@ aside {
.app-container {
padding: 20px;
}
+
.components-container {
margin: 30px 50px;
position: relative;
}
+
.pagination-container {
margin-top: 30px;
}
+
.text-center {
text-align: center;
}
+
.sub-navbar {
height: 50px;
line-height: 50px;
@@ -126,27 +158,34 @@ aside {
padding-right: 20px;
transition: 600ms ease position;
background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
+
.subtitle {
font-size: 20px;
color: #fff;
}
+
&.draft {
background: #d0d0d0;
}
+
&.deleted {
background: #d0d0d0;
}
}
+
.link-type,
.link-type:focus {
color: #337ab7;
cursor: pointer;
+
&:hover {
color: rgb(32, 160, 255);
}
}
+
.filter-container {
padding-bottom: 10px;
+
.filter-item {
display: inline-block;
vertical-align: middle;
@@ -158,6 +197,7 @@ aside {
.multiselect {
line-height: 16px;
}
+
.multiselect--active {
z-index: 1000 !important;
}
diff --git a/src/components/parser/Parser.vue b/src/components/parser/Parser.vue
index 10ac043..508dea3 100644
--- a/src/components/parser/Parser.vue
+++ b/src/components/parser/Parser.vue
@@ -1,5 +1,6 @@
-