chore: split index.css

This commit is contained in:
就眠儀式 2022-03-12 19:39:07 +08:00
parent 633af9be24
commit 8321ef1e25
33 changed files with 1503 additions and 1440 deletions

View File

@ -11,9 +11,9 @@ import "@docsearch/css";
onMounted(() => {
docsearch({
container: "#docsearch",
appId: "Y8NT7MICRP",
apiKey: "fb23e7bbc001828e56c50d66e6be26b2",
indexName: "indexName"
appId: "BIYZTK0F0Q",
apiKey: "4b228ca4dcda0f1d5d9ff9938c2b4f59",
indexName: "layui-vue"
});
});
</script>

View File

@ -8,6 +8,27 @@
<br />
<div class="layui-container" style="width: 80%">
<div class="layui-row layui-col-space16">
<div class="layui-col layui-col-md6">
<a href="https://github.com/rstacruz/nprogress">
<div class="project-list-item">
<img
class="project-list-item-cover"
src="https://gw.alipayobjects.com/zos/rmsportal/iZBVOIhGJiAnhplqjvZW.png"
/>
<div class="project-list-item-body">
<h2>vueUse</h2>
<div class="project-list-item-text layui-text">
Collection of essential Vue Composition Utilities for Vue 2 and 3
</div>
<div class="project-list-item-desc">
<span class="time">几秒前</span>
<div class="ew-head-list"></div>
</div>
</div>
</div>
</a>
</div>
<div class="layui-col layui-col-md6">
<a href="https://github.com/scopewu/qrcode.vue">
<div class="project-list-item">

View File

@ -1 +1,31 @@
@import "../../theme/variable.less";
@import "../../theme/variable.less";
.layui-breadcrumb {
font-size: 0;
}
.layui-breadcrumb > * {
font-size: 14px;
}
.layui-breadcrumb a {
color: #999;
}
.layui-breadcrumb a:hover {
color: @global-checked-color !important;
}
.layui-breadcrumb a:nth-last-child(2) {
color: #666;
font-style: normal;
}
.layui-breadcrumb span:last-child {
display: none;
}
.layui-breadcrumb span[lay-separator] {
margin: 0 10px;
color: @global-neutral-color-7;
}

View File

@ -5,6 +5,7 @@ export default {
</script>
<script setup lang="ts">
import "./index.less";
import { provide, withDefaults } from "vue";
export interface LayBreadcrumbProps {

View File

@ -1 +1,278 @@
@import "../../theme/variable.less";
@import "../../theme/variable.less";
.layui-carousel {
position: relative;
left: 0;
top: 0;
background-color: #f8f8f8;
}
.layui-carousel > [carousel-item] {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.layui-carousel > [carousel-item]:before {
position: absolute;
content: "\e63d";
left: 50%;
top: 50%;
width: 100px;
line-height: 20px;
margin: -10px 0 0 -50px;
text-align: center;
color: @global-neutral-color-8;
font-family: layui-icon !important;
font-size: 30px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.layui-carousel > [carousel-item] > * {
display: none;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: #f8f8f8;
transition-duration: 0.3s;
-webkit-transition-duration: 0.3s;
}
.layui-carousel-updown > * {
-webkit-transition: 0.3s ease-in-out up;
transition: 0.3s ease-in-out up;
}
.layui-carousel-arrow {
display: none\9;
opacity: 0;
position: absolute;
left: 10px;
top: 50%;
margin-top: -18px;
width: 36px;
height: 36px;
line-height: 36px;
text-align: center;
font-size: 20px;
border: 0;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.2);
color: #fff;
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
cursor: pointer;
}
.layui-carousel-arrow[lay-type="add"] {
left: auto !important;
right: 10px;
}
.layui-carousel:hover .layui-carousel-arrow[lay-type="add"],
.layui-carousel[lay-arrow="always"] .layui-carousel-arrow[lay-type="add"] {
right: 20px;
}
.layui-carousel[lay-arrow="always"] .layui-carousel-arrow {
opacity: 1;
left: 20px;
}
.layui-carousel[lay-arrow="none"] .layui-carousel-arrow {
display: none;
}
.layui-carousel-arrow:hover,
.layui-carousel-ind ul:hover {
background-color: rgba(0, 0, 0, 0.35);
}
.layui-carousel:hover .layui-carousel-arrow {
display: block\9;
opacity: 1;
left: 20px;
}
.layui-carousel-ind {
position: relative;
top: -35px;
width: 100%;
line-height: 0 !important;
text-align: center;
font-size: 0;
}
.layui-carousel[lay-indicator="outside"] {
margin-bottom: 30px;
}
.layui-carousel[lay-indicator="outside"] .layui-carousel-ind {
top: 10px;
}
.layui-carousel[lay-indicator="outside"] .layui-carousel-ind ul {
background-color: rgba(0, 0, 0, 0.5);
}
.layui-carousel[lay-indicator="none"] .layui-carousel-ind {
display: none;
}
.layui-carousel-ind ul {
display: inline-block;
padding: 5px;
background-color: rgba(0, 0, 0, 0.2);
border-radius: 10px;
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
}
.layui-carousel-ind li {
display: inline-block;
width: 10px;
height: 10px;
margin: 0 3px;
font-size: 14px;
background-color: @global-neutral-color-3;
background-color: rgba(255, 255, 255, 0.5);
border-radius: 50%;
cursor: pointer;
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
}
.layui-carousel-ind li:hover {
background-color: rgba(255, 255, 255, 0.7);
}
.layui-carousel-ind li.layui-this {
background-color: #fff;
}
.layui-carousel > [carousel-item] > .layui-carousel-next,
.layui-carousel > [carousel-item] > .layui-carousel-prev,
.layui-carousel > [carousel-item] > .layui-this {
display: block;
}
.layui-carousel > [carousel-item] > .layui-this {
left: 0;
}
.layui-carousel > [carousel-item] > .layui-carousel-prev {
left: -100%;
}
.layui-carousel > [carousel-item] > .layui-carousel-next {
left: 100%;
}
.layui-carousel > [carousel-item] > .layui-carousel-next.layui-carousel-left,
.layui-carousel > [carousel-item] > .layui-carousel-prev.layui-carousel-right {
left: 0;
}
.layui-carousel > [carousel-item] > .layui-this.layui-carousel-left {
left: -100%;
}
.layui-carousel > [carousel-item] > .layui-this.layui-carousel-right {
left: 100%;
}
.layui-carousel[lay-anim="updown"] .layui-carousel-arrow {
left: 50% !important;
top: 20px;
margin: 0 0 0 -18px;
}
.layui-carousel[lay-anim="updown"] > [carousel-item] > *,
.layui-carousel[lay-anim="fade"] > [carousel-item] > * {
left: 0 !important;
}
.layui-carousel[lay-anim="updown"] .layui-carousel-arrow[lay-type="add"] {
top: auto !important;
bottom: 20px;
}
.layui-carousel[lay-anim="updown"] .layui-carousel-ind {
position: absolute;
top: 50%;
right: 20px;
width: auto;
height: auto;
}
.layui-carousel[lay-anim="updown"] .layui-carousel-ind ul {
padding: 3px 5px;
}
.layui-carousel[lay-anim="updown"] .layui-carousel-ind li {
display: block;
margin: 6px 0;
}
.layui-carousel[lay-anim="updown"] > [carousel-item] > .layui-this {
top: 0;
}
.layui-carousel[lay-anim="updown"] > [carousel-item] > .layui-carousel-prev {
top: -100%;
}
.layui-carousel[lay-anim="updown"] > [carousel-item] > .layui-carousel-next {
top: 100%;
}
.layui-carousel[lay-anim="updown"]
> [carousel-item]
> .layui-carousel-next.layui-carousel-left,
.layui-carousel[lay-anim="updown"]
> [carousel-item]
> .layui-carousel-prev.layui-carousel-right {
top: 0;
}
.layui-carousel[lay-anim="updown"]
> [carousel-item]
> .layui-this.layui-carousel-left {
top: -100%;
}
.layui-carousel[lay-anim="updown"]
> [carousel-item]
> .layui-this.layui-carousel-right {
top: 100%;
}
.layui-carousel[lay-anim="fade"] > [carousel-item] > .layui-carousel-next,
.layui-carousel[lay-anim="fade"] > [carousel-item] > .layui-carousel-prev {
opacity: 0;
}
.layui-carousel[lay-anim="fade"]
> [carousel-item]
> .layui-carousel-next.layui-carousel-left,
.layui-carousel[lay-anim="fade"]
> [carousel-item]
> .layui-carousel-prev.layui-carousel-right {
opacity: 1;
}
.layui-carousel[lay-anim="fade"]
> [carousel-item]
> .layui-this.layui-carousel-left,
.layui-carousel[lay-anim="fade"]
> [carousel-item]
> .layui-this.layui-carousel-right {
opacity: 0;
}

View File

@ -5,6 +5,7 @@ export default {
</script>
<script setup lang="ts">
import "./index.less";
import { withDefaults, provide, useSlots, ref, computed } from "vue";
const slot = useSlots() as any;

View File

@ -1 +1,128 @@
@import "../../theme/variable.less";
@import "../../theme/variable.less";
.layui-form-checkbox {
position: relative;
height: 30px;
line-height: 30px;
margin-right: 10px;
padding-right: 30px;
cursor: pointer;
font-size: 0;
-webkit-transition: 0.1s linear;
transition: 0.1s linear;
box-sizing: border-box;
}
.layui-form-checkbox span {
padding: 0 10px;
height: 100%;
font-size: 14px;
border-radius: 2px 0 0 2px;
background-color: @global-neutral-color-6;
color: #fff;
overflow: hidden;
}
.layui-form-checkbox:hover span {
background-color: @global-neutral-color-8;
}
.layui-form-checkbox i {
position: absolute;
right: 0;
top: 0;
width: 30px;
height: 28px;
border: 1px solid @global-neutral-color-6;
border-left: none;
border-radius: 0 2px 2px 0;
color: #fff;
font-size: 20px;
text-align: center;
}
.layui-form-checkbox:hover i {
border-color: @global-neutral-color-8;
color: @global-neutral-color-8;
}
.layui-form-checkbox[lay-skin="primary"] {
height: auto !important;
line-height: normal !important;
min-width: 18px;
min-height: 18px;
border: none !important;
margin-right: 0;
padding-left: 28px;
padding-right: 0;
background: 0 0;
}
.layui-form-checkbox[lay-skin="primary"] span {
padding-left: 0;
padding-right: 15px;
line-height: 18px;
background: 0 0;
color: #666;
}
.layui-form-checkbox[lay-skin="primary"] i {
right: auto;
left: 0;
width: 16px;
height: 16px;
line-height: 16px;
border: 1px solid @global-neutral-color-6;
font-size: 12px;
border-radius: 2px;
background-color: #fff;
-webkit-transition: 0.1s linear;
transition: 0.1s linear;
}
.layui-form-checkbox[lay-skin="primary"]:hover i {
border-color: @global-checked-color;
color: #fff;
}
.layui-form-checked,
.layui-form-checked:hover {
border-color: @global-checked-color;
}
.layui-form-checked i,
.layui-form-checked:hover i {
color: @global-checked-color;
}
.layui-form-checked[lay-skin="primary"] i {
border-color: @global-checked-color !important;
background-color: @global-checked-color;
color: #fff;
}
.layui-checkbox-disabled[lay-skin="primary"] span {
background: 0 0 !important;
color: @global-neutral-color-8 !important;
}
.layui-checkbox-disabled[lay-skin="primary"]:hover i {
border-color: @global-neutral-color-6;
}
.layui-checkbox-disabled,
.layui-checkbox-disabled i {
border-color: @global-neutral-color-3 !important;
}
.layui-checkbox-disabled span {
background-color: @global-neutral-color-3 !important;
}
.layui-checkbox-disabled em {
color: @global-neutral-color-6 !important;
}
.layui-checkbox-disabled:hover i {
color: #fff !important;
}

View File

@ -99,7 +99,7 @@ const handleClick = function () {
<div
class="layui-unselect layui-form-checkbox"
:class="{
'layui-checkbox-disbaled layui-disabled': disabled,
'layui-checkbox-disabled layui-disabled': disabled,
'layui-form-checked': isChecked,
}"
:lay-skin="skin"
@ -108,4 +108,4 @@ const handleClick = function () {
<i class="layui-icon layui-icon-ok"></i>
</div>
</span>
</template>
</template>

View File

@ -1 +1,7 @@
@import "../../theme/variable.less";
@import "../../theme/variable.less";
.layui-collapse {
border-width: 1px;
border-style: solid;
border-radius: 2px;
}

View File

@ -5,6 +5,7 @@ export default {
</script>
<script setup lang="ts">
import "./index.less";
import { withDefaults, provide, ref, watch } from "vue";
export interface LayCollapseProps {

View File

@ -1 +1,37 @@
@import "../../theme/variable.less";
@import "../../theme/variable.less";
.layui-colla-content,
.layui-colla-item {
border-top-width: 1px;
border-top-style: solid;
}
.layui-colla-item:first-child {
border-top: none;
}
.layui-colla-title {
position: relative;
height: 42px;
line-height: 42px;
padding: 0 15px 0 35px;
color: #333;
background-color: @global-neutral-color-1;
cursor: pointer;
font-size: 14px;
overflow: hidden;
}
.layui-colla-content {
display: none;
padding: 10px 15px;
line-height: 1.6;
color: #666;
}
.layui-colla-icon {
position: absolute;
left: 15px;
top: 0;
font-size: 14px;
}

View File

@ -5,6 +5,7 @@ export default {
</script>
<script setup lang="ts">
import "./index.less";
import { withDefaults, inject, computed, ref } from "vue";
export interface LayCollapseItemProps {

View File

@ -177,3 +177,213 @@
border: 1px solid #eee;
border-radius: 2px;
}
.layui-colorpicker {
border: 1px solid @global-neutral-color-3;
padding: 5px;
border-radius: @global-border-radius;
line-height: 24px;
display: inline-block;
cursor: pointer;
transition: all 0.3s;
-webkit-transition: all 0.3s;
}
.layui-colorpicker:hover {
border-color: @global-neutral-color-6;
}
.layui-colorpicker.layui-colorpicker-lg {
width: 34px;
height: 34px;
line-height: 32px;
}
.layui-colorpicker.layui-colorpicker-sm {
width: 24px;
height: 24px;
line-height: 22px;
}
.layui-colorpicker.layui-colorpicker-xs {
width: 22px;
height: 22px;
line-height: 20px;
}
.layui-colorpicker-trigger-bgcolor {
display: block;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
border-radius: 2px;
}
.layui-colorpicker-trigger-span {
display: block;
height: 100%;
box-sizing: border-box;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: @global-border-radius;
text-align: center;
}
.layui-colorpicker-trigger-i {
display: inline-block;
color: #fff;
font-size: 12px;
}
.layui-colorpicker-trigger-i.layui-icon-close {
color: #999;
}
.layui-colorpicker-main {
position: absolute;
left: -999999px;
top: -999999px;
z-index: 66666666;
width: 280px;
margin: 5px 0;
padding: 7px;
background: #fff;
border: 1px solid @global-neutral-color-6;
border-radius: 2px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}
.layui-colorpicker-main-wrapper {
height: 180px;
position: relative;
}
.layui-colorpicker-basis {
width: 260px;
height: 100%;
position: relative;
}
.layui-colorpicker-basis-white {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0));
}
.layui-colorpicker-basis-black {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background: linear-gradient(0deg, #000, transparent);
}
.layui-colorpicker-basis-cursor {
width: 10px;
height: 10px;
border: 1px solid #fff;
border-radius: 50%;
position: absolute;
top: -3px;
right: -3px;
cursor: pointer;
}
.layui-colorpicker-side {
position: absolute;
top: 0;
right: 0;
width: 12px;
height: 100%;
background: linear-gradient(red, #ff0, #0f0, #0ff, #00f, #f0f, red);
}
.layui-colorpicker-side-slider {
width: 100%;
height: 5px;
box-shadow: 0 0 1px #888;
background: #fff;
border-radius: 1px;
border: 1px solid #f0f0f0;
cursor: pointer;
position: absolute;
left: 0;
}
.layui-colorpicker-main-alpha {
display: none;
height: 12px;
margin-top: 7px;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
}
.layui-colorpicker-alpha-bgcolor {
height: 100%;
position: relative;
}
.layui-colorpicker-alpha-slider {
width: 5px;
height: 100%;
box-shadow: 0 0 1px #888;
background: #fff;
border-radius: 1px;
border: 1px solid #f0f0f0;
cursor: pointer;
position: absolute;
top: 0;
}
.layui-colorpicker-main-pre {
padding-top: 7px;
font-size: 0;
}
.layui-colorpicker-pre {
width: 20px;
height: 20px;
border-radius: 2px;
display: inline-block;
margin-left: 6px;
margin-bottom: 7px;
cursor: pointer;
}
.layui-colorpicker-pre:nth-child(11n + 1) {
margin-left: 0;
}
.layui-colorpicker-pre-isalpha {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);
}
.layui-colorpicker-pre.layui-this {
box-shadow: 0 0 3px 2px rgba(0, 0, 0, 0.15);
}
.layui-colorpicker-pre > div {
height: 100%;
border-radius: 2px;
}
.layui-colorpicker-main-input {
text-align: right;
padding-top: 7px;
}
.layui-colorpicker-main-input .layui-btn-container .layui-btn {
margin: 0 0 0 10px;
}
.layui-colorpicker-main-input div.layui-inline {
float: left;
margin-right: 10px;
font-size: 14px;
}
.layui-colorpicker-main-input input.layui-input {
width: 150px;
height: 30px;
color: #666;
}

View File

@ -11,4 +11,4 @@
position: relative;
margin: 0 auto;
padding: 0 15px;
}
}

View File

@ -1 +1,26 @@
@import "../../theme/variable.less";
@import "../../theme/variable.less";
.layui-dropdown {
position: relative;
display: inline-block;
}
.layui-dropdown dl {
display: none;
position: absolute;
left: 0;
margin-top: 2px;
z-index: 899;
min-width: 100%;
background-color: #fff;
box-sizing: border-box;
}
.layui-dropdown dl > .layui-dropdown-menu {
border: 1px solid @global-neutral-color-3;
border-radius: @global-border-radius;
}
.layui-dropdown-up > dl {
display: block;
}

View File

@ -5,6 +5,7 @@ export default {
</script>
<script setup lang="ts">
import "./index.less";
import { provide, ref, watch } from "vue";
import { onClickOutside } from "@vueuse/core";
@ -73,4 +74,4 @@ defineExpose({ open, hide, toggle });
</ul>
</dl>
</div>
</template>
</template>

View File

@ -8,4 +8,4 @@
height: 100%;
z-index: 10;
overflow: auto;
}
}

View File

@ -0,0 +1,61 @@
@import "../../theme/variable.less";
.layui-keyboard-header {
height: 40px;
line-height: 40px;
padding: 0 60px;
text-align: center;
background-color: #fff;
box-shadow: 0 2px 8px #f0f1f2;
border-bottom: 1px solid whitesmoke;
}
.layui-keyboard-list {
padding: 10px 10px 5px;
text-align: center;
}
.layui-keyboard-header button {
position: absolute;
right: 10px;
top: 10px;
height: 20px;
line-height: 20px;
border: none;
color: @global-primary-color;
}
.layui-keyboard-header button:first-child {
left: 10px;
right: auto;
color: #999;
}
.layui-keyboard-list ul {
margin-right: -5px;
}
.layui-keyboard-list li {
display: inline-block;
vertical-align: top;
margin: 0 5px 5px 0;
padding: 5px;
width: 30px;
height: 36px;
line-height: 26px;
border: 1px solid @global-neutral-color-3;
border-radius: 2px;
cursor: pointer;
text-align: center;
background-color: #fff;
}
.layui-keyboard-list li:hover {
background-color: @global-neutral-color-1;
color: rgba(0, 0, 0, 0.5);
}
.layui-keyboard-list li.layui-this {
border-color: @global-checked-color;
color: @global-checked-color;
}

View File

@ -0,0 +1,159 @@
@import "../../theme/variable.less";
.layui-laypage {
display: inline-block;
*display: inline;
*zoom: 1;
vertical-align: middle;
margin: 10px 0;
font-size: 0;
}
.layui-laypage > a:first-child,
.layui-laypage > a:first-child em {
border-radius: 2px 0 0 2px;
}
.layui-laypage > a:last-child,
.layui-laypage > a:last-child em {
border-radius: 0 2px 2px 0;
}
.layui-laypage > :first-child {
margin-left: 0 !important;
}
.layui-laypage > :last-child {
margin-right: 0 !important;
}
.layui-laypage a,
.layui-laypage button,
.layui-laypage input,
.layui-laypage select,
.layui-laypage span {
border: 1px solid @global-neutral-color-3;
}
.layui-laypage a,
.layui-laypage span {
display: inline-block;
*display: inline;
*zoom: 1;
vertical-align: middle;
padding: 0 15px;
height: 28px;
line-height: 28px;
margin: 0 -1px 5px 0;
background-color: #fff;
color: #333;
font-size: 12px;
}
.layui-laypage a:hover {
color: @global-primary-color;
}
.layui-laypage em {
font-style: normal;
}
.layui-laypage .layui-laypage-spr {
color: #999;
font-weight: 700;
}
.layui-laypage a {
text-decoration: none;
}
.layui-laypage .layui-laypage-curr {
position: relative;
}
.layui-laypage .layui-laypage-curr em {
position: relative;
color: #fff;
}
.layui-laypage .layui-laypage-curr .layui-laypage-em {
position: absolute;
left: -1px;
top: -1px;
padding: 1px;
width: 100%;
height: 100%;
background-color: @global-primary-color;
}
.layui-laypage-em {
border-radius: 2px;
}
.layui-laypage-next em,
.layui-laypage-prev em {
font-family: Sim sun;
font-size: 16px;
}
.layui-laypage .layui-laypage-count,
.layui-laypage .layui-laypage-limits,
.layui-laypage .layui-laypage-refresh,
.layui-laypage .layui-laypage-skip {
margin-left: 10px;
margin-right: 10px;
padding: 0;
border: none;
}
.layui-laypage .layui-laypage-limits,
.layui-laypage .layui-laypage-refresh {
vertical-align: top;
}
.layui-laypage .layui-laypage-refresh i {
font-size: 18px;
cursor: pointer;
}
.layui-laypage select {
height: 22px;
padding: 3px;
border-radius: 2px;
cursor: pointer;
}
.layui-laypage .layui-laypage-skip {
height: 30px;
line-height: 30px;
color: #999;
}
.layui-laypage button,
.layui-laypage input {
height: 30px;
line-height: 30px;
border-radius: 2px;
vertical-align: top;
background-color: #fff;
box-sizing: border-box;
}
.layui-laypage input {
display: inline-block;
width: 40px;
margin: 0 10px;
padding: 0 3px;
text-align: center;
}
.layui-laypage input:focus,
.layui-laypage select:focus {
border-color: @global-primary-color !important;
}
.layui-laypage button {
margin-left: 10px;
padding: 0 10px;
cursor: pointer;
}

View File

@ -5,6 +5,7 @@ export default {
</script>
<script setup lang="ts">
import "./index.less";
import { Ref, ref, watch, useSlots, computed } from "vue";
import { useI18n } from "vue-i18n";

View File

@ -0,0 +1,42 @@
@import "../../theme/variable.less";
.layui-progress {
position: relative;
height: 6px;
border-radius: 20px;
background-color: @global-neutral-color-3;
}
.layui-progress-bar {
position: absolute;
left: 0;
top: 0;
width: 0;
max-width: 100%;
height: 6px;
border-radius: 20px;
text-align: right;
background-color: @global-checked-color;
transition: all 0.3s;
-webkit-transition: all 0.3s;
}
.layui-progress-big,
.layui-progress-big .layui-progress-bar {
height: 18px;
line-height: 18px;
}
.layui-progress-text {
position: relative;
top: -20px;
line-height: 18px;
font-size: 12px;
color: #666;
}
.layui-progress-big .layui-progress-text {
position: static;
padding: 0 10px;
color: #fff;
}

View File

@ -5,6 +5,7 @@ export default {
</script>
<script setup lang="ts">
import "./index.less";
import { computed } from "vue";
export interface LayProgressProps {

View File

@ -0,0 +1,39 @@
@import "../../theme/variable.less";
.layui-form-radio,
.layui-form-radio * {
display: inline-block;
vertical-align: middle;
}
.layui-form-radio {
line-height: 28px;
margin: 6px 10px 0 0;
padding-right: 10px;
cursor: pointer;
font-size: 0;
}
.layui-form-radio * {
font-size: 14px;
}
.layui-form-radio > i {
margin-right: 8px;
font-size: 22px;
color: @global-neutral-color-8;
}
.layui-form-radio:hover *,
.layui-form-radioed,
.layui-form-radioed > i {
color: @global-checked-color;
}
.layui-radio-disabled > i {
color: @global-neutral-color-3 !important;
}
.layui-radio-disabled * {
color: @global-neutral-color-8 !important;
}

View File

@ -5,6 +5,8 @@ export default {
</script>
<script setup lang="ts">
import "./index.less";
export interface LayRadioProps {
modelValue: string;
disabled?: boolean;
@ -32,7 +34,7 @@ const handleClick = function () {
class="layui-unselect layui-form-radio"
:class="{
'layui-form-radioed': modelValue == label,
'layui-radio-disbaled layui-disabled': disabled,
'layui-radio-disabled layui-disabled': disabled,
}"
@click.stop="handleClick"
>

View File

@ -58,3 +58,90 @@ dl.layui-anim-upbit > dd .layui-form-checkbox,
.layui-select::-webkit-input-placeholder {
line-height: 1.3;
}
.layui-form-select {
position: relative;
}
.layui-form-select .layui-input {
padding-right: 30px;
cursor: pointer;
}
.layui-form-select .layui-edge {
position: absolute;
right: 10px;
top: 50%;
margin-top: -3px;
cursor: pointer;
border-width: 6px;
border-top-color: @global-neutral-color-8;
border-top-style: solid;
transition: all 0.3s;
-webkit-transition: all 0.3s;
}
.layui-form-select dl {
display: none;
position: absolute;
left: 0;
top: 42px;
padding: 5px 0;
z-index: 899;
min-width: 100%;
border: 1px solid @global-neutral-color-3;
max-height: 300px;
overflow-y: auto;
background-color: #fff;
border-radius: @global-border-radius;
box-sizing: border-box;
}
.layui-form-select dl dd,
.layui-form-select dl dt {
padding: 0 10px;
line-height: 36px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.layui-form-select dl dt {
font-size: 12px;
color: #999;
}
.layui-form-select dl dd {
cursor: pointer;
}
.layui-form-select dl dd:hover {
background-color: @global-neutral-color-2;
-webkit-transition: 0.5s all;
transition: 0.5s all;
}
.layui-form-select .layui-select-group dd {
padding-left: 20px;
}
.layui-form-select dl dd.layui-select-tips {
padding-left: 10px !important;
color: #999;
}
.layui-form-select dl dd.layui-this {
background-color: @global-neutral-color-2;
color: @global-checked-color;
font-weight: 700;
}
.layui-form-checkbox,
.layui-form-select dl dd.layui-disabled {
background-color: #fff;
}
.layui-form-selected dl {
display: block;
}

View File

@ -0,0 +1,82 @@
@import "../../theme/variable.less";
.layui-form-switch {
position: relative;
height: 22px;
line-height: 22px;
min-width: 35px;
padding: 0 5px;
border: 1px solid @global-neutral-color-6;
border-radius: 20px;
cursor: pointer;
background-color: #fff;
-webkit-transition: 0.1s linear;
transition: 0.1s linear;
}
.layui-form-switch i {
position: absolute;
left: 5px;
top: 3px;
width: 16px;
height: 16px;
border-radius: 20px;
background-color: @global-neutral-color-6;
-webkit-transition: 0.1s linear;
transition: 0.1s linear;
}
.layui-form-switch em {
position: relative;
top: 0;
width: 25px;
margin-left: 21px;
padding: 0 !important;
text-align: center !important;
color: #999 !important;
font-style: normal !important;
font-size: 12px;
}
.layui-form-onswitch {
border-color: @global-checked-color;
background-color: @global-checked-color;
}
.layui-form-onswitch i {
left: 100%;
margin-left: -21px;
background-color: #fff;
}
.layui-form-onswitch em {
margin-left: 5px;
margin-right: 21px;
color: #fff !important;
}
.layui-switch-disabled[lay-skin="primary"] span {
background: 0 0 !important;
color: @global-neutral-color-8 !important;
}
.layui-switch-disabled[lay-skin="primary"]:hover i {
border-color: @global-neutral-color-6;
}
.layui-switch-disabled,
.layui-switch-disabled i {
border-color: @global-neutral-color-3 !important;
}
.layui-switch-disabled span {
background-color: @global-neutral-color-3 !important;
}
.layui-switch-disabled em {
color: @global-neutral-color-6 !important;
}
.layui-switch-disabled:hover i {
color: #fff !important;
}

View File

@ -47,7 +47,7 @@ const handleClick = function () {
:class="{
'layui-disabled': disabled,
'layui-form-onswitch': isActive,
'layui-checkbox-disbaled': disabled,
'layui-switch-disabled': disabled,
}"
>
<em>{{ isActive == true ? activeText : inactiveText }}</em>

View File

@ -0,0 +1,196 @@
@import "../../theme/variable.less";
.layui-tab {
margin: 10px 0;
text-align: left !important;
}
.layui-tab[overflow] > .layui-tab-title {
overflow: hidden;
}
.layui-tab-title {
position: relative;
left: 0;
height: 40px;
white-space: nowrap;
font-size: 0;
border-bottom-width: 1px;
border-bottom-style: solid;
transition: all 0.2s;
-webkit-transition: all 0.2s;
}
.layui-tab-title li {
display: inline-block;
*display: inline;
*zoom: 1;
vertical-align: middle;
font-size: 14px;
transition: all 0.2s;
-webkit-transition: all 0.2s;
position: relative;
line-height: 40px;
min-width: 65px;
padding: 0 15px;
text-align: center;
cursor: pointer;
}
.layui-tab-title li a {
display: block;
padding: 0 15px;
margin: 0 -15px;
}
.layui-tab-title .layui-this {
color: #000;
}
.layui-tab-title .layui-this:after {
position: absolute;
left: 0;
top: 0;
content: "";
width: 100%;
height: 41px;
border-width: 1px;
border-style: solid;
border-bottom-color: #fff;
border-radius: 2px 2px 0 0;
box-sizing: border-box;
pointer-events: none;
}
.layui-tab-bar {
position: absolute;
right: 0;
top: 0;
z-index: 10;
width: 30px;
height: 39px;
line-height: 39px;
border-width: 1px;
border-style: solid;
border-radius: 2px;
text-align: center;
background-color: #fff;
cursor: pointer;
}
.layui-tab-bar .layui-icon {
position: relative;
display: inline-block;
top: 3px;
transition: all 0.3s;
-webkit-transition: all 0.3s;
}
.layui-tab-item {
display: none;
}
.layui-tab-more {
padding-right: 30px;
height: auto !important;
white-space: normal !important;
}
.layui-tab-more li.layui-this:after {
border-bottom-color: @global-neutral-color-3;
border-radius: 2px;
}
.layui-tab-more .layui-tab-bar .layui-icon {
top: -2px;
top: 3px\9;
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
:root .layui-tab-more .layui-tab-bar .layui-icon {
top: -2px\0 / IE9;
}
.layui-tab-content {
padding: 15px 0;
}
.layui-tab-title li .layui-tab-close {
position: relative;
display: inline-block;
width: 18px;
height: 18px;
line-height: 20px;
margin-left: 8px;
top: 1px;
text-align: center;
font-size: 14px;
color: @global-neutral-color-8;
transition: all 0.2s;
-webkit-transition: all 0.2s;
}
.layui-tab-title li .layui-tab-close:hover {
border-radius: 2px;
background-color: #ff5722;
color: #fff;
}
.layui-tab-brief > .layui-tab-title .layui-this {
color: @global-primary-color;
}
.layui-tab-brief > .layui-tab-more li.layui-this:after,
.layui-tab-brief > .layui-tab-title .layui-this:after {
border: none;
border-radius: 0;
border-bottom: 2px solid @global-checked-color;
}
.layui-tab-brief[overflow] > .layui-tab-title .layui-this:after {
top: -1px;
}
.layui-tab-card {
border-width: 1px;
border-style: solid;
border-radius: 2px;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
}
.layui-tab-card > .layui-tab-title {
background-color: @global-neutral-color-1;
}
.layui-tab-card > .layui-tab-title li {
margin-right: -1px;
margin-left: -1px;
}
.layui-tab-card > .layui-tab-title .layui-this {
background-color: #fff;
}
.layui-tab-card > .layui-tab-title .layui-this:after {
border-top: none;
border-width: 1px;
border-bottom-color: #fff;
}
.layui-tab-card > .layui-tab-title .layui-tab-bar {
height: 40px;
line-height: 40px;
border-radius: 0;
border-top: none;
border-right: none;
}
.layui-tab-card > .layui-tab-more .layui-this {
background: 0 0;
color: @global-checked-color;
}
.layui-tab-card > .layui-tab-more .layui-this:after {
border: none;
}

View File

@ -5,6 +5,7 @@ export default {
</script>
<script setup lang="ts">
import "./index.less"
import tabItem from "../tabItem/index.vue";
import {
Component,

View File

@ -169,6 +169,7 @@ onMounted(() => {
</th>
<template v-for="column in columns" :key="column">
<th v-if="tableColumnKeys.includes(column.key)">
<!-- TODO Table header slot -->
<div
class="layui-table-cell"
:style="{ width: column.width }"

View File

@ -0,0 +1,77 @@
@import "../../theme/variable.less";
.layui-upload-file {
display: none !important;
opacity: 0.01;
filter: Alpha(opacity=1);
}
.layui-upload-drag,
.layui-upload-form,
.layui-upload-wrap {
display: inline-block;
}
.layui-upload-list {
margin: 10px 0;
}
.layui-upload-choose {
max-width: 200px;
padding: 0 10px;
color: #999;
font-size: 14px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.layui-upload-drag {
position: relative;
padding: 30px;
border: 1px dashed @global-neutral-color-4;
background-color: #fff;
text-align: center;
cursor: pointer;
color: #999;
}
.layui-upload-drag .layui-icon {
font-size: 50px;
color: @global-primary-color;
}
.layui-upload-drag[lay-over] {
border-color: @global-primary-color;
}
.layui-upload-iframe {
position: absolute;
width: 0;
height: 0;
border: 0;
visibility: hidden;
}
.layui-upload-wrap {
position: relative;
vertical-align: middle;
}
.layui-upload-wrap .layui-upload-file {
display: block !important;
position: absolute;
left: 0;
top: 0;
z-index: 10;
font-size: 100px;
width: 100%;
height: 100%;
opacity: 0.01;
filter: Alpha(opacity=1);
cursor: pointer;
}
.layui-btn-container .layui-upload-choose {
padding-left: 0;
}

File diff suppressed because it is too large Load Diff

1
src/theme/public.less Normal file
View File

@ -0,0 +1 @@
/** public.css 公共样式 */