2 Commits
Author SHA1 Message Date
Timi 5c9b7ad620 v2.0.1
Release / release (pull_request) Successful in 35s
2026-11-26 12:09:12 +08:00
Timi 96febc972b style: refine scroll bar and rename class to tui-scroll-bar 2026-11-26 12:08:11 +08:00
3 changed files with 23 additions and 13 deletions
@@ -1,5 +1,5 @@
<template> <template>
<div class="tui-demo"> <div class="tui-demo tui-scroll-bar">
<section class="stage"> <section class="stage">
<slot /> <slot />
</section> </section>
+1 -1
View File
@@ -9,7 +9,7 @@
"**/*.css" "**/*.css"
], ],
"private": false, "private": false,
"version": "2.0.0", "version": "2.0.1",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"dev": "pnpm run -C docs dev", "dev": "pnpm run -C docs dev",
+15 -5
View File
@@ -1,18 +1,28 @@
@import url(./variable); @import url(./variable);
.custom-scroll-bar *::-webkit-scrollbar { .tui-scroll-bar {
*::-webkit-scrollbar {
width: 10px !important; width: 10px !important;
height: 10px !important; height: 10px !important;
cursor: default;
background: #CFD2E0; background: #CFD2E0;
} }
.custom-scroll-bar *::-webkit-scrollbar-corner { *::-webkit-scrollbar-corner {
background: #CFD2E0; background: #CFD2E0;
} }
.custom-scroll-bar *::-webkit-scrollbar-thumb { *::-webkit-scrollbar-thumb {
cursor: default;
background: #525870; background: #525870;
border-radius: 0 !important; border-radius: 0 !important;
&:hover {
cursor: default;
background: #636981;
}
}
} }
*::selection { *::selection {