Procházet zdrojové kódy

修改font访问路径/新增自写表格样式

fanghuisheng před 2 roky
rodič
revize
7322d0fe71

+ 1 - 1
src/static/font/iconfont.css → src/static/iconfont/font/iconfont.css

@@ -1,6 +1,6 @@
 @font-face {
   font-family: "iconfont";
-  src: url('@/static/font/iconfont.ttf') format('truetype');
+  src: url('@/static/iconfont/font/iconfont.ttf') format('truetype');
 }
 
 .iconfont {

+ 0 - 0
src/static/font/iconfont.ttf → src/static/iconfont/font/iconfont.ttf


+ 1 - 1
src/static/scss/index.scss

@@ -3,4 +3,4 @@
 // color-ui
 @import "@/static/scss/colorui.css";
 // iconfont
-@import "@/static/font/iconfont.css";
+@import "@/static/iconfont/font/iconfont.css";

+ 56 - 0
src/static/scss/public.scss

@@ -239,3 +239,59 @@ uni-input {
  * @/pages/xunJian/plan/components/siteDetails.vue
  * @/pages/xunJian/plan/components/content.vue
  */
+
+//自写table表格样式-普通
+.tableType1 {
+  .u-row:nth-child(1) {
+    > .u-col {
+      background-color: #f7f7f7;
+    }
+  }
+
+  .u-row {
+    align-items: initial !important;
+    line-height: 28px;
+    border: 1px #e5e5e5 solid;
+    border-bottom: 0px;
+
+    > .u-col {
+      border-right: 1px #e5e5e5 solid;
+    }
+
+    > .u-col:last-child {
+      border-right: 0px #e5e5e5 solid;
+    }
+  }
+
+  .u-row:last-child {
+    .u-col {
+      border-bottom: 1px #e5e5e5 solid;
+    }
+  }
+}
+//自写table表格样式-横向
+.tableType2 {
+  .u-row {
+    align-items: initial !important;
+    line-height: 28px;
+    border: 1px #e5e5e5 solid;
+    border-bottom: 0px;
+    background-color: #f7f7f7;
+
+    > .u-col {
+      border-right: 1px #e5e5e5 solid;
+    }
+
+    > .u-col:nth-child(even) {
+      background-color: #ffffff;
+    }
+
+    > .u-col:last-child {
+      border-right: 0px;
+    }
+  }
+
+  .u-row:last-child {
+    border-bottom: 1px #e5e5e5 solid;
+  }
+}