[scss] migrate @import to @use.

[grid] isExpandable.
[popup] showInput, options.
This commit is contained in:
lchen committed 2026-11-16 20:11:07 +08:00
1 parent 409333993b
commit 6de354ad47
27 files changed
+113 -5083

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
@import "./functions/func.scss";
@use "functions/func.scss";
.ui-check-image-wrapper {
>input[type="checkbox"] {
@@ -29,7 +29,7 @@
align-items: center;
padding: 0 8px;
height: 36px;
@include ui-check();
@include func.ui-check();
.ui-check-inner {
flex: 0 0 auto;
+3 -3
View File
@@ -1,11 +1,11 @@
@import "./functions/func.scss";
@use "functions/func.scss";
.ui-text,
.ui-input[type] {
font-size: var(--font-size);
font-family: var(--font-family);
@include outborder();
@include func.outborder();
&.validation-error,
&:invalid {
@@ -25,7 +25,7 @@
.ui-loading {
position: absolute;
@include inset(0, 0, 0, 0);
@include func.inset(0, 0, 0, 0);
visibility: hidden;
opacity: 0;
transition: visibility 0s linear .12s, opacity .12s ease;
+6 -5
View File
@@ -1,4 +1,4 @@
@import "./functions/func.scss";
@use "functions/func.scss";
$headerHeight: 26px;
$caretWidth: 26px;
@@ -24,11 +24,12 @@ $listMaxHeight: 210px;
display: flex;
height: $headerHeight;
@include outborder();
@include func.outborder();
> .ui-drop-text {
flex: 1 1 auto;
cursor: pointer;
font-family: var(--font-family);
font-size: var(--font-size);
line-height: $headerHeight;
min-height: $headerHeight;
@@ -38,7 +39,7 @@ $listMaxHeight: 210px;
border: none;
white-space: nowrap;
@include outline();
@include func.outline();
}
> .ui-drop-text::before {
@@ -137,7 +138,7 @@ $listMaxHeight: 210px;
padding: 0 6px 0 22px;
color: var(--color);
@include outborder();
@include func.outborder();
// &:focus {
// box-shadow: 0 0 3px 1px rgba(0, 0, 0, .2);
// }
@@ -161,7 +162,7 @@ $listMaxHeight: 210px;
overflow-y: auto;
position: relative;
font-size: var(--font-size);
@include scrollbar();
@include func.scrollbar();
&.filtered > .drop-content > .li:first-child {
background-color: var(--hover-bg-color);
+10 -10
View File
@@ -1,4 +1,4 @@
@import "./functions/func.scss";
@use "functions/func.scss";
.ui-grid-container {
position: relative;
@@ -53,8 +53,8 @@
--filter-item-padding: 0 4px;
}
@include outline();
@include scrollbar();
@include func.outline();
@include func.scrollbar();
&,
input[type="text"],
@@ -122,7 +122,7 @@
text-overflow: ellipsis;
&.wrap {
@include wrap();
@include func.wrap();
}
}
@@ -307,7 +307,7 @@
white-space: pre;
&.wrap {
@include wrap();
@include func.wrap();
}
}
}
@@ -393,7 +393,7 @@
padding: 0;
max-height: none !important;
@include outline();
@include func.outline();
&:disabled {
color: var(--text-disabled-color);
@@ -411,7 +411,7 @@
display: block;
padding: var(--spacing-cell);
white-space: nowrap;
@include scrollbar();
@include func.scrollbar();
}
.ui-check-wrapper,
@@ -450,7 +450,7 @@
}
&.wrap>span {
@include wrap();
@include func.wrap();
}
}
@@ -638,7 +638,7 @@
overflow-x: hidden;
position: relative;
user-select: none;
@include scrollbar();
@include func.scrollbar();
>.filter-content {
position: absolute;
@@ -688,7 +688,7 @@
border-radius: 0;
transition: background-color .12s ease;
@include outline();
@include func.outline();
&:hover {
background-color: var(--hover-bg-color);
+5 -5
View File
@@ -1,11 +1,11 @@
@import "./functions/func.scss";
@use "functions/func.scss";
$headerLineHeight: 24px;
$buttonHeight: 28px;
.ui-popup-mask {
position: fixed;
@include inset(0, 0, 0, 0);
@include func.inset(0, 0, 0, 0);
background-color: rgba(0 0 0 /20%);
display: flex;
justify-content: center;
@@ -41,7 +41,7 @@ $buttonHeight: 28px;
display: flex;
flex-direction: column;
@include outline();
@include func.outline();
.ui-popup-header {
flex: 0 0 auto;
@@ -114,7 +114,7 @@ $buttonHeight: 28px;
>.ui-popup-loading {
position: absolute;
@include inset(0, 0, -46px, 0);
@include func.inset(0, 0, -46px, 0);
visibility: hidden;
opacity: 0;
transition: visibility 0s linear .12s, opacity .12s ease;
@@ -242,7 +242,7 @@ $buttonHeight: 28px;
opacity: .8;
}
@include outline();
@include func.outline();
&:disabled {
opacity: .4;
+2 -2
View File
@@ -1,11 +1,11 @@
@import "./functions/func.scss";
@use "functions/func.scss";
.ui-tooltip-color {
background-color: #fff;
color: #323130;
border-color: rgba(204, 204, 204, .8);
@include outline();
@include func.outline();
}
.ui-tooltip-wrapper {