From 6db3199fd67b5f31d1f363ba9947c84c9e02ea4b Mon Sep 17 00:00:00 2001 From: augushong Date: Sun, 11 Apr 2021 20:08:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=AC=94=E8=AE=B0=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/list.html | 44 ++++++++++++++++++++++++++++++++++++++- demo/tree.html | 12 +++++------ public/cdn/layui-ul.css | 46 +++++++++++++++++++++++++++++++++++++---- 3 files changed, 91 insertions(+), 11 deletions(-) diff --git a/demo/list.html b/demo/list.html index f73637a..c792984 100644 --- a/demo/list.html +++ b/demo/list.html @@ -176,10 +176,52 @@
- + + + + +
+ 笔记列表 +
+
+
+
+
+ +
+
+
未命名的笔记
+
未命名的笔记未命名的笔记未命名的笔记
+
2021-04-11
+
+ ddd +
+ +
+
+
+
+ +
+
+
未命名的笔记
+
未命名的笔记未命名的笔记未命名的笔记
+
2021-04-11
+
+ ddd +
+ +
+
+ + +
+
+ +
\ No newline at end of file diff --git a/demo/tree.html b/demo/tree.html index d4adb79..576c287 100644 --- a/demo/tree.html +++ b/demo/tree.html @@ -101,7 +101,7 @@ } console.log('点击收缩目录'); // 一般不用写这个逻辑 - }else{ + } else { console.log('点击目录项'); // 在这里写点击逻辑 } @@ -128,10 +128,10 @@ 读书笔记
- +
- +
@@ -148,12 +148,12 @@ 小说
- +
- +

@@ -194,4 +194,4 @@
       
     
   
-
\ No newline at end of file
+
diff --git a/public/cdn/layui-ul.css b/public/cdn/layui-ul.css
index efdcbdc..b06dcb4 100644
--- a/public/cdn/layui-ul.css
+++ b/public/cdn/layui-ul.css
@@ -523,13 +523,13 @@
 
 .ul-tree-item {
   background-color: #fbfbfb;
-  cursor: pointer;
+  cursor          : pointer;
 }
 
 .ul-tree-item-info {
   border-left: 3px solid transparent;
-  padding         : 8px 0;
-  position        : relative;
+  padding    : 8px 0;
+  position   : relative;
 }
 
 
@@ -537,7 +537,8 @@
   background-color: #9cf;
   border-color    : #6699CC;
 }
-.ul-tree-item-info:hover{
+
+.ul-tree-item-info:hover {
   background-color: rgb(190, 222, 255);
   border-color    : #6699CC;
 }
@@ -550,4 +551,41 @@
   position: absolute;
   left    : 5px;
   top     : 10px;
+}
+
+
+.ul-note-item {
+  display        : flex;
+  justify-content: flex-start;
+  align-items    : flex-start;
+  cursor         : pointer;
+  padding        : 15px;
+}
+
+.ul-note-item.current,
+.ul-note-item:hover {
+  background-color: #eee;
+}
+
+.ul-note-item .ul-note-item-icon {
+  margin-right: 10px;
+  ;
+}
+
+.ul-note-item .ul-note-item-desc {
+  color    : #999;
+  font-size: 12px;
+  margin-top: 5px;
+}
+
+.ul-note-item .ul-note-item-time {
+  color     : #bbb;
+  font-size : 12px;
+  margin-top: 5px;
+}
+
+.ul-note-item .ul-note-item-tree {
+  font-size : 12px;
+  color     : #bbb;
+  margin-top: 5px;
 }
\ No newline at end of file