adjustment

This commit is contained in:
2023-04-21 17:17:56 +08:00
parent c4316e7e52
commit 222ca43afb
23 changed files with 341 additions and 293 deletions

View File

@ -218,7 +218,7 @@
];
drop.source.forEach(it => {
const span = document.createElement('span');
span.className = 'drop-item';
span.className = 'ui-drop-item';
span.style.setProperty('--color', it.value);
span.innerText = it.text;
it.html = span;
@ -266,7 +266,7 @@
];
drop.source.forEach(it => {
const span = document.createElement('span');
span.className = 'drop-item';
span.className = 'ui-drop-item';
span.style.setProperty('--color', it.value);
span.innerText = it.text;
it.html = span;
@ -279,18 +279,18 @@
display: flex;
}
#dropdown-sample>.drop-wrapper {
#dropdown-sample>.ui-drop-wrapper {
width: 200px;
margin-right: 10px;
}
.drop-item {
.ui-drop-item {
font-size: .75rem !important;
padding: 0 0 0 22px !important;
position: relative;
}
.drop-item::before {
.ui-drop-item::before {
content: '';
position: absolute;
width: 12px;