From 126d20bc3f8e93d2333207771651eed2a9df7994 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com>
Date: Tue, 1 Feb 2022 07:23:20 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=B9=B4=E7=9A=84=E7=AC=AC=E4=B8=80?=
=?UTF-8?q?=E6=AC=A1=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
build.less.ts | 6 +
example/docs/zh-CN/components/button.md | 1 -
example/src/components/LayCode.vue | 15 +-
src/component/avatar/index.vue | 4 +-
src/component/avatarList/index.vue | 2 +-
src/component/backTop/index.ts | 2 +-
src/component/backTop/index.vue | 42 +-
src/component/badge/index.vue | 1 +
src/component/body/index.vue | 2 +-
src/component/breadcrumbItem/index.ts | 5 +-
src/component/breadcrumbItem/index.vue | 8 +-
src/component/button/index.less | 50 +-
src/component/button/index.ts | 5 +-
src/component/buttonContainer/index.less | 22 +-
src/component/buttonContainer/index.ts | 5 +-
src/component/buttonContainer/index.vue | 12 +-
src/component/buttonGroup/index.ts | 5 +-
src/component/card/index.less | 49 +-
src/component/card/index.ts | 5 +-
src/component/card/index.vue | 32 +-
src/component/carousel/index.ts | 5 +-
src/component/carousel/index.vue | 81 +--
src/component/carouselItem/index.ts | 5 +-
src/component/carouselItem/index.vue | 19 +-
src/component/checkbox/index.ts | 5 +-
src/component/checkboxGroup/index.ts | 5 +-
src/component/checkboxGroup/index.vue | 14 +-
src/component/collapse/index.ts | 5 +-
src/component/collapseItem/index.vue | 34 +-
src/component/container/index.ts | 5 +-
src/component/countUp/index.ts | 5 +-
src/component/countUp/index.vue | 6 +
src/component/dropdown/index.ts | 5 +-
src/component/dropdownItem/index.ts | 5 +-
src/component/dropdownItem/index.vue | 22 +-
src/component/empty/index.ts | 5 +-
src/component/field/index.ts | 5 +-
src/component/field/index.vue | 28 +-
src/component/footer/index.ts | 5 +-
src/component/iconPicker/index.ts | 5 +-
src/component/iconPicker/index.vue | 8 +-
src/component/input/index.ts | 5 +-
src/component/input/index.vue | 36 +-
src/component/line/index.ts | 5 +-
src/component/line/index.vue | 8 +-
src/component/menu/index.less | 8 +-
src/component/menu/index.ts | 5 +-
src/component/menu/index.vue | 18 +-
src/component/menuItem/index.ts | 5 +-
src/component/page/index.ts | 5 +-
src/component/page/index.vue | 138 ++---
src/component/panel/index.ts | 5 +-
src/component/progress/index.ts | 5 +-
src/component/radio/index.ts | 5 +-
src/component/radio/index.vue | 50 +-
src/component/result/index.vue | 3 +
src/component/row/index.ts | 5 +-
src/component/scroll/index.ts | 5 +-
src/component/scroll/index.vue | 12 +-
src/component/select/index.ts | 5 +-
src/component/select/index.vue | 158 +++---
src/component/selectOption/index.vue | 36 +-
src/component/skeleton/index.ts | 5 +-
src/component/skeleton/index.vue | 43 +-
src/component/splitPanel/index.vue | 26 +-
src/component/splitPanelItem/index.vue | 46 +-
src/component/stepItem/index.vue | 166 +++---
src/component/tabItem/index.ts | 5 +-
src/component/table/index.less | 613 ++++++++++++++++++++++-
src/component/timeline/index.ts | 5 +-
src/component/timelineItem/index.ts | 5 +-
src/component/timelineItem/index.vue | 36 +-
src/index.ts | 7 +-
src/provider/index.ts | 8 +
src/provider/index.vue | 19 +
src/theme/index.less | 607 ----------------------
src/theme/variable.less | 27 +
77 files changed, 1393 insertions(+), 1297 deletions(-)
create mode 100644 build.less.ts
create mode 100644 src/provider/index.ts
create mode 100644 src/provider/index.vue
create mode 100644 src/theme/variable.less
diff --git a/build.less.ts b/build.less.ts
new file mode 100644
index 00000000..145881bf
--- /dev/null
+++ b/build.less.ts
@@ -0,0 +1,6 @@
+/**
+ * merge less file
+ *
+ */
+
+
diff --git a/example/docs/zh-CN/components/button.md b/example/docs/zh-CN/components/button.md
index f27fb869..55cf5b4b 100644
--- a/example/docs/zh-CN/components/button.md
+++ b/example/docs/zh-CN/components/button.md
@@ -12,7 +12,6 @@
百搭按钮
暖色按钮
警告按钮
- 禁用按钮
@@ -24,4 +24,4 @@ const props = defineProps<{
size ? 'layui-avatar-' + size : '',
]"
/>
-
+
\ No newline at end of file
diff --git a/src/component/avatarList/index.vue b/src/component/avatarList/index.vue
index 09aefae8..964e48e5 100644
--- a/src/component/avatarList/index.vue
+++ b/src/component/avatarList/index.vue
@@ -12,4 +12,4 @@ import { defineProps } from "vue";
-
+
\ No newline at end of file
diff --git a/src/component/backTop/index.ts b/src/component/backTop/index.ts
index 5511c18f..389b5c17 100644
--- a/src/component/backTop/index.ts
+++ b/src/component/backTop/index.ts
@@ -5,4 +5,4 @@ Component.install = (app: App) => {
app.component(Component.name, Component);
};
-export default Component;
+export default Component;
\ No newline at end of file
diff --git a/src/component/backTop/index.vue b/src/component/backTop/index.vue
index 200a51b1..613dbeb5 100644
--- a/src/component/backTop/index.vue
+++ b/src/component/backTop/index.vue
@@ -1,24 +1,3 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/component/badge/index.vue b/src/component/badge/index.vue
index 2e8b2825..e20e7f5b 100644
--- a/src/component/badge/index.vue
+++ b/src/component/badge/index.vue
@@ -13,6 +13,7 @@ export interface LayBadgeProps {
theme?: string;
color?: string;
}
+
const props = defineProps();
const classes = computed(() => {
diff --git a/src/component/body/index.vue b/src/component/body/index.vue
index 3c4ef659..217e0ca5 100644
--- a/src/component/body/index.vue
+++ b/src/component/body/index.vue
@@ -4,7 +4,7 @@ export default {
};
-
diff --git a/src/component/breadcrumbItem/index.ts b/src/component/breadcrumbItem/index.ts
index e69eb142..5511c18f 100644
--- a/src/component/breadcrumbItem/index.ts
+++ b/src/component/breadcrumbItem/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayBreadcrumbItem", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/breadcrumbItem/index.vue b/src/component/breadcrumbItem/index.vue
index 085763a3..007bc812 100644
--- a/src/component/breadcrumbItem/index.vue
+++ b/src/component/breadcrumbItem/index.vue
@@ -10,7 +10,13 @@
{{ separator }}
-
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/component/buttonGroup/index.ts b/src/component/buttonGroup/index.ts
index 06eec625..5511c18f 100644
--- a/src/component/buttonGroup/index.ts
+++ b/src/component/buttonGroup/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayButtonGroup", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/card/index.less b/src/component/card/index.less
index 542fdb63..dd8058f5 100644
--- a/src/component/card/index.less
+++ b/src/component/card/index.less
@@ -1,41 +1,24 @@
+@import "../../theme/variable.less";
+
.layui-card {
margin-bottom: 15px;
- border-radius: 2px;
+ border-radius: @card-border-radius;
background-color: #fff;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
+ .layui-card-header {
+ height: 42px;
+ line-height: 42px;
+ padding: 0 15px;
+ border-bottom: 1px solid #f6f6f6;
+ color: #333;
+ font-size: 14px;
+ }
+ .layui-card-body {
+ padding: 10px 15px;
+ line-height: 24px;
+ }
}
.layui-card:last-child {
margin-bottom: 0;
-}
-
-.layui-card-header {
- height: 42px;
- line-height: 42px;
- padding: 0 15px;
- border-bottom: 1px solid #f6f6f6;
- color: #333;
- border-radius: 2px 2px 0 0;
- font-size: 14px;
-}
-
-.layui-card-body {
- padding: 10px 15px;
- line-height: 24px;
-}
-
-.layui-card-body[pad15] {
- padding: 15px;
-}
-
-.layui-card-body[pad20] {
- padding: 20px;
-}
-
-.layui-card-body .layui-table {
- margin: 5px 0;
-}
-
-.layui-card .layui-tab {
- margin: 0;
-}
+}
\ No newline at end of file
diff --git a/src/component/card/index.ts b/src/component/card/index.ts
index e264ea66..5511c18f 100644
--- a/src/component/card/index.ts
+++ b/src/component/card/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayCard ", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/card/index.vue b/src/component/card/index.vue
index 64d1ff42..0358e9cc 100644
--- a/src/component/card/index.vue
+++ b/src/component/card/index.vue
@@ -1,17 +1,10 @@
-
-
-
+
-
+
+
+
+
\ No newline at end of file
diff --git a/src/component/carousel/index.ts b/src/component/carousel/index.ts
index c7c431e3..5511c18f 100644
--- a/src/component/carousel/index.ts
+++ b/src/component/carousel/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayCarousel", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/carousel/index.vue b/src/component/carousel/index.vue
index 9890b80d..d48b3c77 100644
--- a/src/component/carousel/index.vue
+++ b/src/component/carousel/index.vue
@@ -1,40 +1,10 @@
-
-
-
-
-
-
-
- {{ anim === "updown" ? "" : "" }}
- {{ anim === "updown" ? "" : "" }}
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ {{ anim === "updown" ? "" : "" }}
+ {{ anim === "updown" ? "" : "" }}
+
+
+
diff --git a/src/component/carouselItem/index.ts b/src/component/carouselItem/index.ts
index cf58b7d4..5511c18f 100644
--- a/src/component/carouselItem/index.ts
+++ b/src/component/carouselItem/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayCarouselItem", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/carouselItem/index.vue b/src/component/carouselItem/index.vue
index 12301a57..f47ef4ba 100644
--- a/src/component/carouselItem/index.vue
+++ b/src/component/carouselItem/index.vue
@@ -1,9 +1,10 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/component/checkbox/index.ts b/src/component/checkbox/index.ts
index ce793aa3..5511c18f 100644
--- a/src/component/checkbox/index.ts
+++ b/src/component/checkbox/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayCheckbox", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/checkboxGroup/index.ts b/src/component/checkboxGroup/index.ts
index c9bb1d3f..5511c18f 100644
--- a/src/component/checkboxGroup/index.ts
+++ b/src/component/checkboxGroup/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayCheckboxGroup", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/checkboxGroup/index.vue b/src/component/checkboxGroup/index.vue
index f6e09c39..8a576d71 100644
--- a/src/component/checkboxGroup/index.vue
+++ b/src/component/checkboxGroup/index.vue
@@ -1,9 +1,3 @@
-
-
-
-
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/component/collapse/index.ts b/src/component/collapse/index.ts
index 74cd4afc..5511c18f 100644
--- a/src/component/collapse/index.ts
+++ b/src/component/collapse/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayCollapse", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/collapseItem/index.vue b/src/component/collapseItem/index.vue
index 532928af..09121bf4 100644
--- a/src/component/collapseItem/index.vue
+++ b/src/component/collapseItem/index.vue
@@ -1,20 +1,3 @@
-
-
-
- {{ title }}
- {{ isShow ? "" : "" }}
-
-
-
-
-
+
+
+
+
+ {{ title }}
+ {{ isShow ? "" : "" }}
+
+
+
+
\ No newline at end of file
diff --git a/src/component/container/index.ts b/src/component/container/index.ts
index 01248b9b..5511c18f 100644
--- a/src/component/container/index.ts
+++ b/src/component/container/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayContainer", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/countUp/index.ts b/src/component/countUp/index.ts
index 696085ce..389b5c17 100644
--- a/src/component/countUp/index.ts
+++ b/src/component/countUp/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayCountUp", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
\ No newline at end of file
+export default Component;
\ No newline at end of file
diff --git a/src/component/countUp/index.vue b/src/component/countUp/index.vue
index 914d8e2a..24a62cff 100644
--- a/src/component/countUp/index.vue
+++ b/src/component/countUp/index.vue
@@ -4,6 +4,12 @@
+
+
-
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/component/empty/index.ts b/src/component/empty/index.ts
index a86e7b29..5511c18f 100644
--- a/src/component/empty/index.ts
+++ b/src/component/empty/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayEmpty", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/field/index.ts b/src/component/field/index.ts
index 960f20df..5511c18f 100644
--- a/src/component/field/index.ts
+++ b/src/component/field/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayField", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/field/index.vue b/src/component/field/index.vue
index e9c7ddfb..83775442 100644
--- a/src/component/field/index.vue
+++ b/src/component/field/index.vue
@@ -1,3 +1,19 @@
+
+
+
+
{{ title }}
@@ -11,14 +27,4 @@
{{ title }}
-
-
-
+
\ No newline at end of file
diff --git a/src/component/footer/index.ts b/src/component/footer/index.ts
index 7e2b6fa5..5511c18f 100644
--- a/src/component/footer/index.ts
+++ b/src/component/footer/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayFooter", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/iconPicker/index.ts b/src/component/iconPicker/index.ts
index be5e1d1c..5511c18f 100644
--- a/src/component/iconPicker/index.ts
+++ b/src/component/iconPicker/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayIconPicker", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/iconPicker/index.vue b/src/component/iconPicker/index.vue
index 53f09442..c187cef3 100644
--- a/src/component/iconPicker/index.vue
+++ b/src/component/iconPicker/index.vue
@@ -78,7 +78,13 @@
-
+
+
-
+
+
+
+
\ No newline at end of file
diff --git a/src/component/line/index.ts b/src/component/line/index.ts
index 9da8e3bd..5511c18f 100644
--- a/src/component/line/index.ts
+++ b/src/component/line/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayLine", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/line/index.vue b/src/component/line/index.vue
index f972f7a8..f7ec3c65 100644
--- a/src/component/line/index.vue
+++ b/src/component/line/index.vue
@@ -1,7 +1,3 @@
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/src/component/menu/index.less b/src/component/menu/index.less
index 454b0f96..574b62d1 100644
--- a/src/component/menu/index.less
+++ b/src/component/menu/index.less
@@ -157,15 +157,15 @@
}
.layui-nav-tree .layui-nav-item {
- display: block;
width: 100%;
+ display: block;
line-height: 42px;
}
.layui-nav-tree .layui-nav-item > a {
- position: relative;
height: 40px;
line-height: 40px;
+ position: relative;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
@@ -208,11 +208,11 @@
}
.layui-nav-tree .layui-nav-child {
- position: relative;
- z-index: 0;
top: 0;
+ z-index: 0;
border: none;
box-shadow: none;
+ position: relative;
}
.layui-nav-tree .layui-nav-child dd {
diff --git a/src/component/menu/index.ts b/src/component/menu/index.ts
index 87a15eb8..5511c18f 100644
--- a/src/component/menu/index.ts
+++ b/src/component/menu/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayMenu", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/menu/index.vue b/src/component/menu/index.vue
index a74a2abf..8e28d508 100644
--- a/src/component/menu/index.vue
+++ b/src/component/menu/index.vue
@@ -1,10 +1,10 @@
-
-
-
+
-
+
+
+
+
\ No newline at end of file
diff --git a/src/component/menuItem/index.ts b/src/component/menuItem/index.ts
index 1aa64550..5511c18f 100644
--- a/src/component/menuItem/index.ts
+++ b/src/component/menuItem/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayMenuItem", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/page/index.ts b/src/component/page/index.ts
index abb44ab1..389b5c17 100644
--- a/src/component/page/index.ts
+++ b/src/component/page/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayPage", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
\ No newline at end of file
diff --git a/src/component/page/index.vue b/src/component/page/index.vue
index 54918345..daa1faa9 100644
--- a/src/component/page/index.vue
+++ b/src/component/page/index.vue
@@ -1,70 +1,10 @@
-
-
-
共 {{ total }} 条 {{ maxPage }} 页
-
-
- 上一页
-
-
-
-
-
- {{ index }}
-
- {{ index }}
-
-
+
-
-
- 下一页
-
-
-
-
- {{ val }} 条/页
-
-
-
-
-
-
-
- 到第
- 页
-
- 确定
-
-
-
-
-
-
+
+
+
+
共 {{ total }} 条 {{ maxPage }} 页
+
+
+ 上一页
+
+
+
+
+
+ {{ index }}
+
+ {{ index }}
+
+
+
+
+
+ 下一页
+
+
+
+
+ {{ val }} 条/页
+
+
+
+
+
+
+
+ 到第
+ 页
+
+ 确定
+
+
+
+
\ No newline at end of file
diff --git a/src/component/panel/index.ts b/src/component/panel/index.ts
index a83dbd49..5511c18f 100644
--- a/src/component/panel/index.ts
+++ b/src/component/panel/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayPanel", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/progress/index.ts b/src/component/progress/index.ts
index 43ad49ba..5511c18f 100644
--- a/src/component/progress/index.ts
+++ b/src/component/progress/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayProgress", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/radio/index.ts b/src/component/radio/index.ts
index e22be4c7..5511c18f 100644
--- a/src/component/radio/index.ts
+++ b/src/component/radio/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayRadio ", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/radio/index.vue b/src/component/radio/index.vue
index 6c33fab9..9652655f 100644
--- a/src/component/radio/index.vue
+++ b/src/component/radio/index.vue
@@ -1,3 +1,30 @@
+
+
+
+
@@ -22,25 +49,4 @@
-
-
-
+
\ No newline at end of file
diff --git a/src/component/result/index.vue b/src/component/result/index.vue
index fa1c6cce..c2e385ae 100644
--- a/src/component/result/index.vue
+++ b/src/component/result/index.vue
@@ -1,4 +1,7 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/component/select/index.ts b/src/component/select/index.ts
index 1d0a968d..5511c18f 100644
--- a/src/component/select/index.ts
+++ b/src/component/select/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LaySelect", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/select/index.vue b/src/component/select/index.vue
index a06e7f2c..083d3812 100644
--- a/src/component/select/index.vue
+++ b/src/component/select/index.vue
@@ -1,79 +1,10 @@
-
-
-
+
-
+
+
+
+
\ No newline at end of file
diff --git a/src/component/selectOption/index.vue b/src/component/selectOption/index.vue
index 0eff970d..6a29e686 100644
--- a/src/component/selectOption/index.vue
+++ b/src/component/selectOption/index.vue
@@ -1,21 +1,3 @@
-
-
-
-
-
- {{ label }}
-
-
-
+
+
+
+
+
+
+ {{ label }}
+
+
\ No newline at end of file
diff --git a/src/component/skeleton/index.ts b/src/component/skeleton/index.ts
index a0c78257..f14ea65f 100644
--- a/src/component/skeleton/index.ts
+++ b/src/component/skeleton/index.ts
@@ -1,9 +1,8 @@
import type { App } from 'vue'
import Component from './index.vue'
-import type { IDefineComponent } from '../../types/index'
Component.install = (app: App) => {
- app.component(Component.name || 'LaySkeleton', Component)
+ app.component(Component.name, Component)
}
-export default Component as IDefineComponent
+export default Component;
diff --git a/src/component/skeleton/index.vue b/src/component/skeleton/index.vue
index 4efe186c..3ce7ac4d 100644
--- a/src/component/skeleton/index.vue
+++ b/src/component/skeleton/index.vue
@@ -1,21 +1,10 @@
-
-
-
-
-
-
-
-
-
-
+
--
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/component/splitPanel/index.vue b/src/component/splitPanel/index.vue
index 0ff720dd..b783af5c 100644
--- a/src/component/splitPanel/index.vue
+++ b/src/component/splitPanel/index.vue
@@ -1,16 +1,3 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/component/splitPanelItem/index.vue b/src/component/splitPanelItem/index.vue
index 0204b1c3..cd9c6ed1 100644
--- a/src/component/splitPanelItem/index.vue
+++ b/src/component/splitPanelItem/index.vue
@@ -1,26 +1,3 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/component/stepItem/index.vue b/src/component/stepItem/index.vue
index 871c9c56..dcbd84e0 100644
--- a/src/component/stepItem/index.vue
+++ b/src/component/stepItem/index.vue
@@ -1,86 +1,3 @@
-
-
-
-
-
-
-
-
-
- {{ index + 1 }}
-
-
-
-
-
-
-
- {{ title }}
- {{ content }}
-
-
-
-
- {{ index + 1 }}.{{ title }}
-
-
-
+
+
+
+
+
+
+
+
+
+
+ {{ index + 1 }}
+
+
+
+
+
+
+
+ {{ title }}
+ {{ content }}
+
+
+
+
+ {{ index + 1 }}.{{ title }}
+
+
\ No newline at end of file
diff --git a/src/component/tabItem/index.ts b/src/component/tabItem/index.ts
index 70cdacd2..5511c18f 100644
--- a/src/component/tabItem/index.ts
+++ b/src/component/tabItem/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayTabItem", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/table/index.less b/src/component/table/index.less
index d4e3a942..f98364de 100644
--- a/src/component/table/index.less
+++ b/src/component/table/index.less
@@ -1,6 +1,613 @@
.laytable-cell-checkbox {
- width: 34px;
+ width: 34px;
}
.layui-table-col-special {
- width: 34px;
-}
\ No newline at end of file
+ width: 34px;
+}
+
+.layui-table {
+ width: 100%;
+ background-color: #fff;
+ color: #666;
+}
+
+.layui-table tr {
+ transition: all 0.3s;
+ -webkit-transition: all 0.3s;
+}
+
+.layui-table th {
+ text-align: left;
+ font-weight: 400;
+}
+
+.layui-table tbody tr:hover,
+.layui-table thead tr,
+.layui-table-click,
+.layui-table-header,
+.layui-table-hover,
+.layui-table-mend,
+.layui-table-patch,
+.layui-table-tool,
+.layui-table-total,
+.layui-table-total tr,
+.layui-table[lay-even] tr:nth-child(even) {
+ background-color: #fafafa;
+}
+
+.layui-table td,
+.layui-table th,
+.layui-table-col-set,
+.layui-table-fixed-r,
+.layui-table-grid-down,
+.layui-table-header,
+.layui-table-page,
+.layui-table-tips-main,
+.layui-table-tool,
+.layui-table-total,
+.layui-table-view,
+.layui-table[lay-skin="line"],
+.layui-table[lay-skin="row"] {
+ border-width: 1px;
+ border-style: solid;
+ border-color: #eee;
+}
+
+.layui-table td,
+.layui-table th {
+ position: relative;
+ padding: 9px 15px;
+ min-height: 20px;
+ line-height: 20px;
+ font-size: 14px;
+}
+
+.layui-table[lay-skin="line"] td,
+.layui-table[lay-skin="line"] th {
+ border-width: 0 0 1px;
+}
+
+.layui-table[lay-skin="row"] td,
+.layui-table[lay-skin="row"] th {
+ border-width: 0 1px 0 0;
+}
+
+.layui-table[lay-skin="nob"] td,
+.layui-table[lay-skin="nob"] th {
+ border: none;
+}
+
+.layui-table img {
+ max-width: 100px;
+}
+
+.layui-table[lay-size="lg"] td,
+.layui-table[lay-size="lg"] th {
+ padding: 15px 30px;
+}
+
+.layui-table-view .layui-table[lay-size="lg"] .layui-table-cell {
+ height: 40px;
+ line-height: 40px;
+}
+
+.layui-table[lay-size="sm"] td,
+.layui-table[lay-size="sm"] th {
+ font-size: 12px;
+ padding: 5px 10px;
+}
+
+.layui-table-view .layui-table[lay-size="sm"] .layui-table-cell {
+ height: 20px;
+ line-height: 20px;
+}
+
+.layui-table[lay-data] {
+ display: none;
+}
+
+.layui-table-box {
+ position: relative;
+ overflow: hidden;
+}
+
+.layui-table-view .layui-table {
+ position: relative;
+ margin: 0;
+ border-collapse: separate;
+}
+
+.layui-table-view .layui-table[lay-skin="line"] {
+ border-width: 0 1px 0 0;
+}
+
+.layui-table-view .layui-table[lay-skin="row"] {
+ border-width: 0 0 1px;
+}
+
+.layui-table-view .layui-table td,
+.layui-table-view .layui-table th {
+ border-top: none;
+ border-left: none;
+}
+
+.layui-table-view .layui-table td.layui-table-col-special,
+.layui-table-view .layui-table th.layui-table-col-special {
+ padding: 5px 16px;
+}
+
+.layui-table-view .layui-table th.layui-unselect .layui-table-cell span {
+ cursor: pointer;
+}
+
+.layui-table-view .layui-table td {
+ cursor: default;
+}
+
+.layui-table-view .layui-table td[data-edit="text"] {
+ cursor: text;
+}
+
+.layui-table-view .layui-form-checkbox[lay-skin="primary"] i {
+ width: 18px;
+ height: 18px;
+}
+
+.layui-table-view .layui-form-radio {
+ line-height: 0;
+ padding: 0;
+}
+
+.layui-table-view .layui-form-radio > i {
+ margin: 0;
+ font-size: 20px;
+}
+
+.layui-table-init {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ text-align: center;
+ z-index: 110;
+}
+
+.layui-table-init .layui-icon {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ margin: -15px 0 0 -15px;
+ font-size: 30px;
+ color: #c2c2c2;
+}
+
+.layui-table-header {
+ border-width: 0 0 1px;
+ overflow: hidden;
+}
+
+.layui-table-header .layui-table {
+ margin-bottom: -1px;
+}
+
+.layui-table-tool .layui-inline[lay-event] {
+ position: relative;
+ width: 26px;
+ height: 26px;
+ padding: 5px;
+ line-height: 16px;
+ margin-right: 10px;
+ text-align: center;
+ color: #333;
+ border: 1px solid #ccc;
+ cursor: pointer;
+ -webkit-transition: 0.5s all;
+ transition: 0.5s all;
+}
+
+.layui-table-tool .layui-inline[lay-event]:hover {
+ border: 1px solid #999;
+}
+
+.layui-table-tool-temp {
+ padding-right: 120px;
+}
+
+.layui-table-tool-self {
+ position: absolute;
+ right: 17px;
+ top: 10px;
+}
+
+.layui-table-tool .layui-table-tool-self .layui-inline[lay-event] {
+ margin: 0 0 0 10px;
+}
+
+.layui-table-tool-panel {
+ position: absolute;
+ top: 29px;
+ left: -1px;
+ padding: 5px 0;
+ min-width: 150px;
+ min-height: 40px;
+ border: 1px solid #d2d2d2;
+ text-align: left;
+ overflow-y: auto;
+ background-color: #fff;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
+}
+
+.layui-table-cell,
+.layui-table-tool-panel li {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.layui-table-tool-panel li {
+ padding: 0 10px;
+ line-height: 30px;
+ -webkit-transition: 0.5s all;
+ transition: 0.5s all;
+}
+
+.layui-table-tool-panel li .layui-form-checkbox[lay-skin="primary"] {
+ width: 100%;
+ padding-left: 28px;
+}
+
+.layui-table-tool-panel li:hover {
+ background-color: #f6f6f6;
+}
+
+.layui-table-tool-panel li .layui-form-checkbox[lay-skin="primary"] i {
+ position: absolute;
+ left: 0;
+ top: 0;
+}
+
+.layui-table-tool-panel li .layui-form-checkbox[lay-skin="primary"] span {
+ padding: 0;
+}
+
+.layui-table-tool .layui-table-tool-self .layui-table-tool-panel {
+ left: auto;
+ right: -1px;
+}
+
+.layui-table-col-set {
+ position: absolute;
+ right: 0;
+ top: 0;
+ width: 20px;
+ height: 100%;
+ border-width: 0 0 0 1px;
+ background-color: #fff;
+}
+
+.layui-table-sort {
+ width: 10px;
+ height: 20px;
+ margin-left: 5px;
+ cursor: pointer !important;
+}
+
+.layui-table-sort .layui-edge {
+ position: absolute;
+ left: 5px;
+ border-width: 5px;
+}
+
+.layui-table-sort .layui-table-sort-asc {
+ top: 3px;
+ border-top: none;
+ border-bottom-style: solid;
+ border-bottom-color: #b2b2b2;
+}
+
+.layui-table-sort .layui-table-sort-asc:hover {
+ border-bottom-color: #666;
+}
+
+.layui-table-sort .layui-table-sort-desc {
+ bottom: 5px;
+ border-bottom: none;
+ border-top-style: solid;
+ border-top-color: #b2b2b2;
+}
+
+.layui-table-sort .layui-table-sort-desc:hover {
+ border-top-color: #666;
+}
+
+.layui-table-sort[lay-sort="asc"] .layui-table-sort-asc {
+ border-bottom-color: #000;
+}
+
+.layui-table-sort[lay-sort="desc"] .layui-table-sort-desc {
+ border-top-color: #000;
+}
+
+.layui-table-cell {
+ height: 28px;
+ line-height: 28px;
+ position: relative;
+ box-sizing: border-box;
+}
+
+.layui-table-cell .layui-form-checkbox[lay-skin="primary"] {
+ top: -1px;
+ padding: 0;
+}
+
+.layui-table-cell .layui-table-link {
+ color: #01aaed;
+}
+
+.laytable-cell-checkbox,
+.laytable-cell-numbers,
+.laytable-cell-radio,
+.laytable-cell-space {
+ padding: 0;
+ text-align: center;
+ -webkit-box-pack: center;
+}
+
+.layui-table-body {
+ position: relative;
+ overflow: auto;
+ margin-right: -1px;
+ margin-bottom: -1px;
+}
+
+.layui-table-body .layui-none {
+ line-height: 26px;
+ padding: 30px 15px;
+ text-align: center;
+ color: #999;
+}
+
+.layui-table-fixed {
+ position: absolute;
+ left: 0;
+ top: 0;
+ z-index: 101;
+}
+
+.layui-table-fixed .layui-table-body {
+ overflow: hidden;
+}
+
+.layui-table-fixed-l {
+ box-shadow: 1px 0 8px rgba(0, 0, 0, 0.08);
+}
+
+.layui-table-fixed-r {
+ left: auto;
+ right: -1px;
+ border-width: 0 0 0 1px;
+ box-shadow: -1px 0 8px rgba(0, 0, 0, 0.08);
+}
+
+.layui-table-fixed-r .layui-table-header {
+ position: relative;
+ overflow: visible;
+}
+
+.layui-table-mend {
+ position: absolute;
+ right: -49px;
+ top: 0;
+ height: 100%;
+ width: 50px;
+}
+
+.layui-table-tool {
+ position: relative;
+ z-index: 890;
+ width: 100%;
+ min-height: 50px;
+ line-height: 30px;
+ padding: 10px 15px;
+ border-width: 0 0 1px;
+}
+
+.layui-table-tool .layui-btn-container {
+ margin-bottom: -10px;
+}
+
+.layui-table-page,
+.layui-table-total {
+ border-width: 1px 0 0;
+ margin-bottom: -1px;
+ overflow: hidden;
+}
+
+.layui-table-page {
+ position: relative;
+ width: 100%;
+ padding: 7px 7px 0;
+ height: 41px;
+ font-size: 12px;
+ white-space: nowrap;
+}
+
+.layui-table-page > div {
+ height: 26px;
+}
+
+.layui-table-page .layui-laypage {
+ margin: 0;
+}
+
+.layui-table-page .layui-laypage a,
+.layui-table-page .layui-laypage span {
+ height: 26px;
+ line-height: 26px;
+ margin-bottom: 10px;
+ border: none;
+ background: 0 0;
+}
+
+.layui-table-page .layui-laypage a,
+.layui-table-page .layui-laypage span.layui-laypage-curr {
+ padding: 0 12px;
+}
+
+.layui-table-page .layui-laypage span {
+ margin-left: 0;
+ padding: 0;
+}
+
+.layui-table-page .layui-laypage .layui-laypage-prev {
+ margin-left: -7px !important;
+}
+
+.layui-table-page .layui-laypage .layui-laypage-curr .layui-laypage-em {
+ left: 0;
+ top: 0;
+ padding: 0;
+}
+
+.layui-table-page .layui-laypage button,
+.layui-table-page .layui-laypage input {
+ height: 26px;
+ line-height: 26px;
+}
+
+.layui-table-page .layui-laypage input {
+ width: 40px;
+}
+
+.layui-table-page .layui-laypage button {
+ padding: 0 10px;
+}
+
+.layui-table-page select {
+ height: 18px;
+}
+
+.layui-table-pagebar {
+ float: right;
+ line-height: 26px;
+}
+
+.layui-table-view select[lay-ignore] {
+ display: inline-block;
+}
+
+.layui-table-patch .layui-table-cell {
+ padding: 0;
+ width: 30px;
+}
+
+.layui-table-edit {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ padding: 0 14px 1px;
+ border-radius: 0;
+ box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.15);
+}
+
+.layui-table-edit:focus {
+ border-color: #5fb878 !important;
+}
+
+select.layui-table-edit {
+ padding: 0 0 0 10px;
+ border-color: #d2d2d2;
+}
+
+.layui-table-view .layui-form-checkbox,
+.layui-table-view .layui-form-radio,
+.layui-table-view .layui-form-switch {
+ top: 0;
+ margin: 0;
+ box-sizing: content-box;
+}
+
+.layui-table-view .layui-form-checkbox {
+ top: -1px;
+ height: 26px;
+ line-height: 26px;
+}
+
+.layui-table-view .layui-form-checkbox i {
+ height: 26px;
+}
+
+.layui-table-grid .layui-table-cell {
+ overflow: visible;
+}
+
+.layui-table-grid-down {
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 26px;
+ height: 100%;
+ padding: 5px 0;
+ border-width: 0 0 0 1px;
+ text-align: center;
+ background-color: #fff;
+ color: #999;
+ cursor: pointer;
+}
+
+.layui-table-grid-down .layui-icon {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ margin: -8px 0 0 -8px;
+}
+
+.layui-table-grid-down:hover {
+ background-color: #fbfbfb;
+}
+
+body .layui-table-tips .layui-layer-content {
+ background: 0 0;
+ padding: 0;
+ box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
+}
+
+.layui-table-tips-main {
+ margin: -44px 0 0 -1px;
+ max-height: 150px;
+ padding: 8px 15px;
+ font-size: 14px;
+ overflow-y: scroll;
+ background-color: #fff;
+ color: #666;
+}
+
+.layui-table-tips-c {
+ position: absolute;
+ right: -3px;
+ top: -13px;
+ width: 20px;
+ height: 20px;
+ padding: 3px;
+ cursor: pointer;
+ background-color: #666;
+ border-radius: 50%;
+ color: #fff;
+}
+
+.layui-table-tips-c:hover {
+ background-color: #777;
+}
+
+.layui-table-tips-c:before {
+ position: relative;
+ right: -2px;
+}
+
+.layui-table,
+.layui-table-view {
+ margin: 10px 0;
+}
diff --git a/src/component/timeline/index.ts b/src/component/timeline/index.ts
index cbb886dd..5511c18f 100644
--- a/src/component/timeline/index.ts
+++ b/src/component/timeline/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayTimeline", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/timelineItem/index.ts b/src/component/timelineItem/index.ts
index 41e4d7c0..5511c18f 100644
--- a/src/component/timelineItem/index.ts
+++ b/src/component/timelineItem/index.ts
@@ -1,9 +1,8 @@
import type { App } from "vue";
import Component from "./index.vue";
-import type { IDefineComponent } from "../../types/index";
Component.install = (app: App) => {
- app.component(Component.name || "LayTimelineItem", Component);
+ app.component(Component.name, Component);
};
-export default Component as IDefineComponent;
+export default Component;
diff --git a/src/component/timelineItem/index.vue b/src/component/timelineItem/index.vue
index 79f76802..2be37e97 100644
--- a/src/component/timelineItem/index.vue
+++ b/src/component/timelineItem/index.vue
@@ -1,21 +1,3 @@
-
-
-
-
-
-
-
-
- {{ title }}
-
-
- {{ title }}
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ {{ title }}
+
+
+ {{ title }}
+
+
+
+
+
\ No newline at end of file
diff --git a/src/index.ts b/src/index.ts
index 4cc5db13..60c861c0 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -75,6 +75,7 @@ import LaySplitPanel from "./component/splitPanel/index";
import LaySplitPanelItem from "./component/splitPanelItem/index";
import LayException from "./component/exception/index"
import LayResult from "./component/result/index"
+import LayConfigProvider from "./provider"
const components: Record = {
LaySplitPanel,
@@ -146,7 +147,8 @@ const components: Record = {
LayStepItem,
LaySubMenu,
LayException,
- LayResult
+ LayResult,
+ LayConfigProvider
};
const install = (app: App): void => {
@@ -226,7 +228,8 @@ export {
LayStepItem,
LaySubMenu,
LayException,
- LayResult
+ LayResult,
+ LayConfigProvider
};
export { layer, useLayer };
diff --git a/src/provider/index.ts b/src/provider/index.ts
new file mode 100644
index 00000000..389b5c17
--- /dev/null
+++ b/src/provider/index.ts
@@ -0,0 +1,8 @@
+import type { App } from "vue";
+import Component from "./index.vue";
+
+Component.install = (app: App) => {
+ app.component(Component.name, Component);
+};
+
+export default Component;
\ No newline at end of file
diff --git a/src/provider/index.vue b/src/provider/index.vue
new file mode 100644
index 00000000..96ca18fd
--- /dev/null
+++ b/src/provider/index.vue
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/theme/index.less b/src/theme/index.less
index 2a118a93..a85e34d8 100644
--- a/src/theme/index.less
+++ b/src/theme/index.less
@@ -1677,11 +1677,6 @@ a cite {
cursor: pointer;
}
-.layui-table,
-.layui-table-view {
- margin: 10px 0;
-}
-
.layui-flow-more {
margin: 10px 0;
text-align: center;
@@ -1716,253 +1711,6 @@ a cite {
color: #737383;
}
-.layui-table {
- width: 100%;
- background-color: #fff;
- color: #666;
-}
-
-.layui-table tr {
- transition: all 0.3s;
- -webkit-transition: all 0.3s;
-}
-
-.layui-table th {
- text-align: left;
- font-weight: 400;
-}
-
-.layui-table tbody tr:hover,
-.layui-table thead tr,
-.layui-table-click,
-.layui-table-header,
-.layui-table-hover,
-.layui-table-mend,
-.layui-table-patch,
-.layui-table-tool,
-.layui-table-total,
-.layui-table-total tr,
-.layui-table[lay-even] tr:nth-child(even) {
- background-color: #fafafa;
-}
-
-.layui-table td,
-.layui-table th,
-.layui-table-col-set,
-.layui-table-fixed-r,
-.layui-table-grid-down,
-.layui-table-header,
-.layui-table-page,
-.layui-table-tips-main,
-.layui-table-tool,
-.layui-table-total,
-.layui-table-view,
-.layui-table[lay-skin="line"],
-.layui-table[lay-skin="row"] {
- border-width: 1px;
- border-style: solid;
- border-color: #eee;
-}
-
-.layui-table td,
-.layui-table th {
- position: relative;
- padding: 9px 15px;
- min-height: 20px;
- line-height: 20px;
- font-size: 14px;
-}
-
-.layui-table[lay-skin="line"] td,
-.layui-table[lay-skin="line"] th {
- border-width: 0 0 1px;
-}
-
-.layui-table[lay-skin="row"] td,
-.layui-table[lay-skin="row"] th {
- border-width: 0 1px 0 0;
-}
-
-.layui-table[lay-skin="nob"] td,
-.layui-table[lay-skin="nob"] th {
- border: none;
-}
-
-.layui-table img {
- max-width: 100px;
-}
-
-.layui-table[lay-size="lg"] td,
-.layui-table[lay-size="lg"] th {
- padding: 15px 30px;
-}
-
-.layui-table-view .layui-table[lay-size="lg"] .layui-table-cell {
- height: 40px;
- line-height: 40px;
-}
-
-.layui-table[lay-size="sm"] td,
-.layui-table[lay-size="sm"] th {
- font-size: 12px;
- padding: 5px 10px;
-}
-
-.layui-table-view .layui-table[lay-size="sm"] .layui-table-cell {
- height: 20px;
- line-height: 20px;
-}
-
-.layui-table[lay-data] {
- display: none;
-}
-
-.layui-table-box {
- position: relative;
- overflow: hidden;
-}
-
-.layui-table-view .layui-table {
- position: relative;
- margin: 0;
- border-collapse: separate;
-}
-
-.layui-table-view .layui-table[lay-skin="line"] {
- border-width: 0 1px 0 0;
-}
-
-.layui-table-view .layui-table[lay-skin="row"] {
- border-width: 0 0 1px;
-}
-
-.layui-table-view .layui-table td,
-.layui-table-view .layui-table th {
- border-top: none;
- border-left: none;
-}
-
-.layui-table-view .layui-table td.layui-table-col-special,
-.layui-table-view .layui-table th.layui-table-col-special {
- padding: 5px 16px;
-}
-
-.layui-table-view .layui-table th.layui-unselect .layui-table-cell span {
- cursor: pointer;
-}
-
-.layui-table-view .layui-table td {
- cursor: default;
-}
-
-.layui-table-view .layui-table td[data-edit="text"] {
- cursor: text;
-}
-
-.layui-table-view .layui-form-checkbox[lay-skin="primary"] i {
- width: 18px;
- height: 18px;
-}
-
-.layui-table-view .layui-form-radio {
- line-height: 0;
- padding: 0;
-}
-
-.layui-table-view .layui-form-radio > i {
- margin: 0;
- font-size: 20px;
-}
-
-.layui-table-init {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- text-align: center;
- z-index: 110;
-}
-
-.layui-table-init .layui-icon {
- position: absolute;
- left: 50%;
- top: 50%;
- margin: -15px 0 0 -15px;
- font-size: 30px;
- color: #c2c2c2;
-}
-
-.layui-table-header {
- border-width: 0 0 1px;
- overflow: hidden;
-}
-
-.layui-table-header .layui-table {
- margin-bottom: -1px;
-}
-
-.layui-table-tool .layui-inline[lay-event] {
- position: relative;
- width: 26px;
- height: 26px;
- padding: 5px;
- line-height: 16px;
- margin-right: 10px;
- text-align: center;
- color: #333;
- border: 1px solid #ccc;
- cursor: pointer;
- -webkit-transition: 0.5s all;
- transition: 0.5s all;
-}
-
-.layui-table-tool .layui-inline[lay-event]:hover {
- border: 1px solid #999;
-}
-
-.layui-table-tool-temp {
- padding-right: 120px;
-}
-
-.layui-table-tool-self {
- position: absolute;
- right: 17px;
- top: 10px;
-}
-
-.layui-table-tool .layui-table-tool-self .layui-inline[lay-event] {
- margin: 0 0 0 10px;
-}
-
-.layui-table-tool-panel {
- position: absolute;
- top: 29px;
- left: -1px;
- padding: 5px 0;
- min-width: 150px;
- min-height: 40px;
- border: 1px solid #d2d2d2;
- text-align: left;
- overflow-y: auto;
- background-color: #fff;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
-}
-
-.layui-table-cell,
-.layui-table-tool-panel li {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.layui-table-tool-panel li {
- padding: 0 10px;
- line-height: 30px;
- -webkit-transition: 0.5s all;
- transition: 0.5s all;
-}
-
.layui-iconpicker-list li,
.layui-keyboard-list li,
.layui-menu li,
@@ -1971,284 +1719,6 @@ a cite {
transition: all 0.3s;
}
-.layui-table-tool-panel li .layui-form-checkbox[lay-skin="primary"] {
- width: 100%;
- padding-left: 28px;
-}
-
-.layui-table-tool-panel li:hover {
- background-color: #f6f6f6;
-}
-
-.layui-table-tool-panel li .layui-form-checkbox[lay-skin="primary"] i {
- position: absolute;
- left: 0;
- top: 0;
-}
-
-.layui-table-tool-panel li .layui-form-checkbox[lay-skin="primary"] span {
- padding: 0;
-}
-
-.layui-table-tool .layui-table-tool-self .layui-table-tool-panel {
- left: auto;
- right: -1px;
-}
-
-.layui-table-col-set {
- position: absolute;
- right: 0;
- top: 0;
- width: 20px;
- height: 100%;
- border-width: 0 0 0 1px;
- background-color: #fff;
-}
-
-.layui-table-sort {
- width: 10px;
- height: 20px;
- margin-left: 5px;
- cursor: pointer !important;
-}
-
-.layui-table-sort .layui-edge {
- position: absolute;
- left: 5px;
- border-width: 5px;
-}
-
-.layui-table-sort .layui-table-sort-asc {
- top: 3px;
- border-top: none;
- border-bottom-style: solid;
- border-bottom-color: #b2b2b2;
-}
-
-.layui-table-sort .layui-table-sort-asc:hover {
- border-bottom-color: #666;
-}
-
-.layui-table-sort .layui-table-sort-desc {
- bottom: 5px;
- border-bottom: none;
- border-top-style: solid;
- border-top-color: #b2b2b2;
-}
-
-.layui-table-sort .layui-table-sort-desc:hover {
- border-top-color: #666;
-}
-
-.layui-table-sort[lay-sort="asc"] .layui-table-sort-asc {
- border-bottom-color: #000;
-}
-
-.layui-table-sort[lay-sort="desc"] .layui-table-sort-desc {
- border-top-color: #000;
-}
-
-.layui-table-cell {
- height: 28px;
- line-height: 28px;
- position: relative;
- box-sizing: border-box;
-}
-
-.layui-table-cell .layui-form-checkbox[lay-skin="primary"] {
- top: -1px;
- padding: 0;
-}
-
-.layui-table-cell .layui-table-link {
- color: #01aaed;
-}
-
-.laytable-cell-checkbox,
-.laytable-cell-numbers,
-.laytable-cell-radio,
-.laytable-cell-space {
- padding: 0;
- text-align: center;
- -webkit-box-pack: center;
-}
-
-.layui-table-body {
- position: relative;
- overflow: auto;
- margin-right: -1px;
- margin-bottom: -1px;
-}
-
-.layui-table-body .layui-none {
- line-height: 26px;
- padding: 30px 15px;
- text-align: center;
- color: #999;
-}
-
-.layui-table-fixed {
- position: absolute;
- left: 0;
- top: 0;
- z-index: 101;
-}
-
-.layui-table-fixed .layui-table-body {
- overflow: hidden;
-}
-
-.layui-table-fixed-l {
- box-shadow: 1px 0 8px rgba(0, 0, 0, 0.08);
-}
-
-.layui-table-fixed-r {
- left: auto;
- right: -1px;
- border-width: 0 0 0 1px;
- box-shadow: -1px 0 8px rgba(0, 0, 0, 0.08);
-}
-
-.layui-table-fixed-r .layui-table-header {
- position: relative;
- overflow: visible;
-}
-
-.layui-table-mend {
- position: absolute;
- right: -49px;
- top: 0;
- height: 100%;
- width: 50px;
-}
-
-.layui-table-tool {
- position: relative;
- z-index: 890;
- width: 100%;
- min-height: 50px;
- line-height: 30px;
- padding: 10px 15px;
- border-width: 0 0 1px;
-}
-
-.layui-table-tool .layui-btn-container {
- margin-bottom: -10px;
-}
-
-.layui-table-page,
-.layui-table-total {
- border-width: 1px 0 0;
- margin-bottom: -1px;
- overflow: hidden;
-}
-
-.layui-table-page {
- position: relative;
- width: 100%;
- padding: 7px 7px 0;
- height: 41px;
- font-size: 12px;
- white-space: nowrap;
-}
-
-.layui-table-page > div {
- height: 26px;
-}
-
-.layui-table-page .layui-laypage {
- margin: 0;
-}
-
-.layui-table-page .layui-laypage a,
-.layui-table-page .layui-laypage span {
- height: 26px;
- line-height: 26px;
- margin-bottom: 10px;
- border: none;
- background: 0 0;
-}
-
-.layui-table-page .layui-laypage a,
-.layui-table-page .layui-laypage span.layui-laypage-curr {
- padding: 0 12px;
-}
-
-.layui-table-page .layui-laypage span {
- margin-left: 0;
- padding: 0;
-}
-
-.layui-table-page .layui-laypage .layui-laypage-prev {
- margin-left: -7px !important;
-}
-
-.layui-table-page .layui-laypage .layui-laypage-curr .layui-laypage-em {
- left: 0;
- top: 0;
- padding: 0;
-}
-
-.layui-table-page .layui-laypage button,
-.layui-table-page .layui-laypage input {
- height: 26px;
- line-height: 26px;
-}
-
-.layui-table-page .layui-laypage input {
- width: 40px;
-}
-
-.layui-table-page .layui-laypage button {
- padding: 0 10px;
-}
-
-.layui-table-page select {
- height: 18px;
-}
-
-.layui-table-pagebar {
- float: right;
- line-height: 26px;
-}
-
-.layui-table-view select[lay-ignore] {
- display: inline-block;
-}
-
-.layui-table-patch .layui-table-cell {
- padding: 0;
- width: 30px;
-}
-
-.layui-table-edit {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- padding: 0 14px 1px;
- border-radius: 0;
- box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.15);
-}
-
-.layui-table-edit:focus {
- border-color: #5fb878 !important;
-}
-
-select.layui-table-edit {
- padding: 0 0 0 10px;
- border-color: #d2d2d2;
-}
-
-.layui-table-view .layui-form-checkbox,
-.layui-table-view .layui-form-radio,
-.layui-table-view .layui-form-switch {
- top: 0;
- margin: 0;
- box-sizing: content-box;
-}
-
.layui-colorpicker-alpha-slider,
.layui-colorpicker-side-slider,
.layui-menu,
@@ -2257,83 +1727,6 @@ select.layui-table-edit {
box-sizing: border-box;
}
-.layui-table-view .layui-form-checkbox {
- top: -1px;
- height: 26px;
- line-height: 26px;
-}
-
-.layui-table-view .layui-form-checkbox i {
- height: 26px;
-}
-
-.layui-table-grid .layui-table-cell {
- overflow: visible;
-}
-
-.layui-table-grid-down {
- position: absolute;
- top: 0;
- right: 0;
- width: 26px;
- height: 100%;
- padding: 5px 0;
- border-width: 0 0 0 1px;
- text-align: center;
- background-color: #fff;
- color: #999;
- cursor: pointer;
-}
-
-.layui-table-grid-down .layui-icon {
- position: absolute;
- top: 50%;
- left: 50%;
- margin: -8px 0 0 -8px;
-}
-
-.layui-table-grid-down:hover {
- background-color: #fbfbfb;
-}
-
-body .layui-table-tips .layui-layer-content {
- background: 0 0;
- padding: 0;
- box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
-}
-
-.layui-table-tips-main {
- margin: -44px 0 0 -1px;
- max-height: 150px;
- padding: 8px 15px;
- font-size: 14px;
- overflow-y: scroll;
- background-color: #fff;
- color: #666;
-}
-
-.layui-table-tips-c {
- position: absolute;
- right: -3px;
- top: -13px;
- width: 20px;
- height: 20px;
- padding: 3px;
- cursor: pointer;
- background-color: #666;
- border-radius: 50%;
- color: #fff;
-}
-
-.layui-table-tips-c:hover {
- background-color: #777;
-}
-
-.layui-table-tips-c:before {
- position: relative;
- right: -2px;
-}
-
.layui-upload-file {
display: none !important;
opacity: 0.01;
diff --git a/src/theme/variable.less b/src/theme/variable.less
new file mode 100644
index 00000000..e6848950
--- /dev/null
+++ b/src/theme/variable.less
@@ -0,0 +1,27 @@
+@global-primary-color: #009688;
+
+@global-danger-color: #ff5722;
+
+@global-normal-color: #1e9fff;
+
+@global-warm-color: #ffb800;
+
+@global-bg-color: #393D49;
+
+@global-text-color: #fff;
+
+@global-border-radius: 2px;
+
+@button-primary-color: @global-primary-color;
+
+@button-normal-color: @global-normal-color;
+
+@button-danger-color: @global-danger-color;
+
+@button-warm-color: @global-warm-color;
+
+@button-border-radius: @global-border-radius;
+
+@card-border-radius: @global-border-radius;
+
+@card-bg-color: @global-bg-color;
\ No newline at end of file