From 15d8e8e6e6d14bd1f337837bd67260226f04e128 Mon Sep 17 00:00:00 2001 From: xujiang Date: Sun, 30 Aug 2020 10:40:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dlist=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=97=B6=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DynamicEngine/schema.js | 10 ++- src/pages/editor/components/Header/index.less | 75 +++++++++---------- 2 files changed, 45 insertions(+), 40 deletions(-) diff --git a/src/components/DynamicEngine/schema.js b/src/components/DynamicEngine/schema.js index f85ca27..375173f 100644 --- a/src/components/DynamicEngine/schema.js +++ b/src/components/DynamicEngine/schema.js @@ -134,6 +134,11 @@ export default { "name": "文字大小", "type": "Number" }, + { + "key": "imgSize", + "name": "图片大小", + "type": "Number" + }, { "key": "sourceData", "name": "数据源", @@ -145,6 +150,7 @@ export default { "color": "rgba(153,153,153,1)", "activeColor": "rgba(0,102,204,1)", "fontSize": 16, + "imgSize": 100, "sourceData": [ { "id": 1, @@ -472,6 +478,7 @@ export default { "config": { "sourceData": [ { + "id": "1", "title": "趣谈小课", "desc": "致力于打造优质小课程", "link": "xxxxx", @@ -485,12 +492,13 @@ export default { ] }, { + "id": "2", "title": "趣谈小课", "desc": "致力于打造优质小课程", "link": "xxxxx", "imgUrl": [ { - "uid": "001", + "uid": "002", "name": "image.png", "status": "done", "url": "http://io.nainor.com/uploads/1_1740c6fbcd9.png", diff --git a/src/pages/editor/components/Header/index.less b/src/pages/editor/components/Header/index.less index d50ff14..16f2826 100644 --- a/src/pages/editor/components/Header/index.less +++ b/src/pages/editor/components/Header/index.less @@ -1,42 +1,39 @@ .header { - position: relative; - z-index: 10; - padding-left: 30px; - padding-right: 30px; - display: flex; - align-items: center; - height: 80px; - background: #fff; - box-shadow: 0 2px 4px rgba(0,0,0,0.1); - .logoArea { - width: 300px; - .backBtn { - display: inline-block; - padding: 12px 10px; - margin-right: 26px; - background-color: rgba(222, 224, 230, 0.3); - cursor: pointer; - } - .logo { - display: inline-block; - width: 105px; - font-size: 24px; - font-weight: bold; - img { - width: 100%; - } + position: relative; + z-index: 10; + padding-left: 30px; + padding-right: 30px; + display: flex; + align-items: center; + height: 56px; + background: #fff; + box-shadow: 0 2px 4px rgba(0,0,0,0.1); + .logoArea { + width: 300px; + .backBtn { + display: inline-block; + padding: 12px 10px; + margin-right: 22px; + cursor: pointer; + } + .logo { + display: inline-block; + width: 52px; + overflow: hidden; + border-radius: 3px; + vertical-align: middle; + img { + width: 100%; } } - .controlArea { - flex: 1; - text-align: center; - .tit { - font-size: 18px; - color: #000; - } - } - .btnArea { - width: 400px; - text-align: right; - } - } \ No newline at end of file + } + .controlArea { + flex: 1; + text-align: center; + + } + .btnArea { + width: 320px; + text-align: right; + } +} \ No newline at end of file