From ecd0a49e85981dae77c673f206344f1f59bea708 Mon Sep 17 00:00:00 2001
From: juzi <819872918@qq.com>
Date: Fri, 14 Jul 2023 12:34:01 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9searchbar=E5=A2=9E=E5=8A=A0?=
=?UTF-8?q?=E5=B1=95=E5=BC=80=E6=94=B6=E8=B5=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 2 +-
src/assets/iconfont/demo_index.html | 58 +++++-
src/assets/iconfont/iconfont.css | 20 +-
src/assets/iconfont/iconfont.eot | Bin 2448 -> 2664 bytes
src/assets/iconfont/iconfont.js | 2 +-
src/assets/iconfont/iconfont.json | 14 ++
src/assets/iconfont/iconfont.svg | 4 +
src/assets/iconfont/iconfont.ttf | Bin 2280 -> 2496 bytes
src/assets/iconfont/iconfont.woff | Bin 1416 -> 1544 bytes
src/assets/iconfont/iconfont.woff2 | Bin 976 -> 1120 bytes
src/components/SearchBar/SearchBar.vue | 261 +++++++++++++++----------
11 files changed, 239 insertions(+), 122 deletions(-)
diff --git a/package.json b/package.json
index a267353..1f2fdc9 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "code-brick-zj",
- "version": "0.1.0",
+ "version": "1.0.0",
"private": false,
"description": "组件封装",
"main": "index.js"
diff --git a/src/assets/iconfont/demo_index.html b/src/assets/iconfont/demo_index.html
index 5b4d21c..348d9b9 100644
--- a/src/assets/iconfont/demo_index.html
+++ b/src/assets/iconfont/demo_index.html
@@ -54,6 +54,18 @@
+ -
+
+
downward
+ 
+
+
+ -
+
+
upward
+ 
+
+
-
detail
@@ -90,12 +102,12 @@
@font-face {
font-family: 'iconfont';
- src: url('iconfont.eot?t=1670833747896'); /* IE9 */
- src: url('iconfont.eot?t=1670833747896#iefix') format('embedded-opentype'), /* IE6-IE8 */
- url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAPQAAsAAAAAC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GaPTdBWTdN1xIK0xJD5YTtmA4aGDAe+HaY0wEhDQMWVYx77ujZ9V6nUkBdbBAkMaUB6A54yKEycn+v3d4Ksu0QgIPImJTPFkcZBq9IAkEd6AeU8yTKzB6vDmAEMQs4MHKQUJcs+AGN/uwAprOJmWEe92s9noPRqf2a+vHWAwVtSpQkplPDgHbLwaTNZey59EjIuFg==') format('woff2'),
- url('iconfont.woff?t=1670833747896') format('woff'),
- url('iconfont.ttf?t=1670833747896') format('truetype'),
- url('iconfont.svg?t=1670833747896#iconfont') format('svg');
+ src: url('iconfont.eot?t=1689233106339'); /* IE9 */
+ src: url('iconfont.eot?t=1689233106339#iefix') format('embedded-opentype'), /* IE6-IE8 */
+ url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAARgAAsAAAAACcAAAAQUAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACDKAqGSIUsATYCJAMYCw4ABCAFhGcHVBtUCMiuMG7hiaIkox1FaBhxvd1fpwAN4YKo1v7tWTr8hBRkBQgO7yqKUJKPUKzDjkixjn7/q0vlANCkEHCJtsMvx2eQn04h5rHEE8593TK2y1SC5nbvNG5gqgZBNEWTqFUQLGVFNnVu1TjyMm3SafEsC3y0myW12KdEh2x+deP/zzHTJeG3AVBm4lrnAxpQN0US7s3ijuSE6Jbh1UGv08cgQEivMg5z6m49Qj77TVxDEZww6gXicNkviSbkxgswNeGCj+CgMw1yFRpAnUNegSv+8+UfU/igsBpjnRV3rRV9+Su8Fk1Agv6CW4eAeyvAAhronJlI1tcrVnIMHZ0cCcsUTrRTnQ0CP50B4KfgEub9Lw80BougQBwGI8bYJU4LPwUbBw0/HXAw8NORUM90wsT9JeIMFACux9QckHyQ9FDYTobcGi+FLSjwMxDe3L5s+w9THFYeEs8H303FWMnZ1JuBWFgNPh3bd5wOvJmKI9aTqXeD8eJ66HnfnV1dJPE8cy4EgqT+s/SbdSWbp9Pn24NbZ1MnGw7CDbvT6+lL1CXVh++hcH56umDT9vOviL/grQ6srHjE57uLHdQn+dtO9x2v94WN6+eXm0HWlZOzta3tUDp1JWjymsiD8r0ViWGkC+n4GeH5aODSM+9COnilpdfdZsRIvMerLmS0uICTplrOnb99LT3NkJNeajPfpDznblq6bXH8efBjlPIUxhQcX+U0qEdt4bjxy6rMdOkbEn0/3mlvrXZL60ysxdwcn/qKLJ/82pnzGS61z5rBeGmrxf33ZXN/IBWUvb8KSvnttbwwq+YTkweZHue0M0+c0ssZGY/Rs+aVF8+3GaW07CkvLC/KcBvP8c2uGpsdm0THlazwlPE22Kdi9ZK4Hdsmtw9eHVQwPjG0p33Q7tGMJ6TUJ2VK1MMw6ftI6qPPtruCvEPmLZqiHcj1Aw3Rup/sdzj+lt/w3f5TrAHgx++nD7A+8xaD4CL8m60Q+KWYO7CgUY3gTFl+OwUBHKteh00BoWmGDIYm301frAJwKAg+BTEoPCpA41OPNNh2sET0g8NnCkI61M6PKKBzREwANBtGIOS6BEU2D0CT6xvSYP+Apdg/cOT6DyErI68W0RzbqhmYOFixuRNLFqoRi839Zh+A2KqYWJH1CTC7hM04My0j664HDVgXY+xtYhbnBBNGVVzH7geKQrHOqA0sPK2Fc70oPZ2UPSTNQlVUjQEmHLDCzDphEgtKQ9zCPP16DwBRK4UJAyKfyBg7jaeaxzKlyQAg6xkaKO9M2tu1EWXhOEL3IxhKhdWpMqCYDgrTy7vZAAsuTUsLm65IOlWIQBlp47PUS9wAhBgHOFGixYgVJx7+dtqutZuY1eXTvXYncJOkOF1Wicd+CnBACA==') format('woff2'),
+ url('iconfont.woff?t=1689233106339') format('woff'),
+ url('iconfont.ttf?t=1689233106339') format('truetype'),
+ url('iconfont.svg?t=1689233106339#iconfont') format('svg');
}
第二步:定义使用 iconfont 的样式
@@ -121,6 +133,24 @@
+ -
+
+
+ downward
+
+ .icon-downward
+
+
+
+ -
+
+
+ upward
+
+ .icon-upward
+
+
+
-
@@ -175,6 +205,22 @@
+ -
+
+
downward
+ #icon-downward
+
+
+ -
+
+
upward
+ #icon-upward
+
+
-