@@ -175,6 +205,22 @@
+ -
+
+
downward
+ #icon-downward
+
+
+ -
+
+
upward
+ #icon-upward
+
+
-
--
2.45.2
From 899a0b72407ee496602ace140dca119c7697c9a8 Mon Sep 17 00:00:00 2001
From: juzi <819872918@qq.com>
Date: Fri, 14 Jul 2023 12:45:56 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E4=B8=AAbug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 2 +-
src/components/SearchBar/SearchBar.vue | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package.json b/package.json
index 1f2fdc9..91f1a78 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "code-brick-zj",
- "version": "1.0.0",
+ "version": "1.0.1",
"private": false,
"description": "组件封装",
"main": "index.js"
diff --git a/src/components/SearchBar/SearchBar.vue b/src/components/SearchBar/SearchBar.vue
index be68378..488b19b 100644
--- a/src/components/SearchBar/SearchBar.vue
+++ b/src/components/SearchBar/SearchBar.vue
@@ -278,7 +278,7 @@ export default {
margin-top: 12px;
}
.searchBar .el-form-item {
- margin-bottom: 10px;
+ margin-bottom: 4px;
}
.searchBar .el-date-editor .el-range__icon {
font-size: 16px;
--
2.45.2
From 7cd61b744fa1c6bb0cfd5a06500db1b59c035d88 Mon Sep 17 00:00:00 2001
From: juzi <819872918@qq.com>
Date: Fri, 14 Jul 2023 14:59:38 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9id=E4=B8=BAref?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 2 +-
src/components/SearchBar/SearchBar.vue | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/package.json b/package.json
index 91f1a78..2164a95 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "code-brick-zj",
- "version": "1.0.1",
+ "version": "1.0.2",
"private": false,
"description": "组件封装",
"main": "index.js"
diff --git a/src/components/SearchBar/SearchBar.vue b/src/components/SearchBar/SearchBar.vue
index 488b19b..64ce641 100644
--- a/src/components/SearchBar/SearchBar.vue
+++ b/src/components/SearchBar/SearchBar.vue
@@ -1,8 +1,8 @@
-
+
@@ -69,6 +69,7 @@
v-if="item.type === 'autocomplete'"
v-model="formInline[item.param]"
:value-key="item.valueKey ? item.valueKey : 'value'"
+ :size="item.size ? item.size : 'small'"
:fetch-suggestions="item.querySearch"
:placeholder="item.placeholder"
:clearable="item.clearable === false ? false : true"
@@ -80,6 +81,7 @@
v-model="formInline[item.param]"
:options="item.selectOptions"
:props="item.cascaderProps"
+ :size="item.size ? item.size : 'small'"
:clearable="item.clearable === false ? false : true"
:show-all-levels="item.showAllLevels === false ? false : true"
:collapse-tags="item.collapseTags === true ? true : false"
@@ -242,7 +244,7 @@ export default {
},
switchMode() {// 展开和收起切换
this.isExpand = !this.isExpand
- const element = document.getElementById('searchBarBox')
+ const element = this.$refs.searchBarRef
if (this.isExpand) {
element.classList.remove('divHeight')
} else {
--
2.45.2