Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(ui-plugin-sheets): toolbar tooltip
Dushusir2824832f85f3
diff --git a/packages/base-ui/src/Components/Button/Style/index.module.css b/packages/base-ui/src/Components/Button/Style/index.module.cssdeleted file mode 100644index 2185fa3cda..0000000000--- a/packages/base-ui/src/Components/Button/Style/index.module.css+++ /dev/null@@ -1,196 +0,0 @@-/*-1. 所有的变量加到这里,复用-2. 组件要用的话,在这定义好,导入组件使用-3. 需要作为皮肤变量的,导入到所有皮肤中导出使用-*/-.btn {- line-height: 1.5715;- position: relative;- display: inline-block;- font-weight: 400;- white-space: nowrap;- text-align: center;- background-image: none;- padding: 0 10px;- border: 1px solid transparent;- cursor: pointer;- user-select: none;- height: 30px;- border-radius: 1px;- font-size: 14px;- color: var(--text-color);- background: var(--bg);- border-color: var(--border-color-base);-}-.btn,-.btn:active {- outline: 0;-}-.btn[disabled] {- cursor: not-allowed;-}-.btn[disabled] > * {- pointer-events: none;-}-.btn-lg {- height: 40px;- border-radius: 2px;- font-size: 16px;-}-.btn-sm {- height: 24px;- border-radius: 2px;- font-size: 12px;-}-.btn:hover,-.btn:active {- color: #0188fb;- background: var(--bg);- border-color: #0188fb;-}-.btn[disabled],-.btn[disabled]:hover,-.btn[disabled]:active {- color: var(--disabled-color);- background: var(--disabled-bg);- border-color: var(--border-color-base);- text-shadow: none;- box-shadow: none;-}-.btn > span {- display: inline-block;-}-.btn-primary {- color: var(--bg);- background: #0188fb;- border-color: #0188fb;-}-.btn-primary:hover {- color: var(--bg);- background: rgba(1, 136, 251, 0.7);- border-color: rgba(1, 136, 251, 0.7);-}-.btn-primary:active {- color: var(--bg);- background: rgba(1, 136, 251, 0.5);- border-color: rgba(1, 136, 251, 0.5);-}-.btn-primary[disabled],-.btn-primary[disabled]:hover,-.btn-primary[disabled]:active {- color: var(--disabled-color);- background: var(--disabled-bg);- border-color: var(--border-color-base);- text-shadow: none;- box-shadow: none;-}-.btn-danger {- color: var(--bg);- background: #f5222d;- border-color: #f5222d;-}-.btn-danger:hover {- color: var(--bg);- background: rgba(245, 34, 45, 0.7);- border-color: rgba(245, 34, 45, 0.7);-}-.btn-danger:active {- color: var(--bg);- background: rgba(245, 34, 45, 0.5);- border-color: rgba(245, 34, 45, 0.5);-}-.btn-danger[disabled],-.btn-danger[disabled]:hover,-.btn-danger[disabled]:active {- color: var(--disabled-color);- background: var(--disabled-bg);- border-color: var(--border-color-base);- text-shadow: none;- box-shadow: none;-}-.btn-text {- color: var(--text-color);- background: transparent;- border-color: transparent;- box-shadow: none;-}-.btn-text:hover {- color: var(--text-color);- background: #eee;- border-color: transparent;-}-.btn-text:active {- color: var(--text-color);- background: #eee;- border-color: transparent;-}-.btn-text[disabled],-.btn-text[disabled]:hover,-.btn-text[disabled]:active {- color: var(--disabled-color);- background: transparent;- border-color: transparent;- text-shadow: none;- box-shadow: none;-}-.btn-active {- color: var(--text-color);- background: var(--bg-hover);- border-color: var(--border-color-base);- text-shadow: none;- box-shadow: none;-}-.btn-round {- height: 30px;- border-radius: 30px;- font-size: 14px;-}-.btn-round.btn-lg {- height: 40px;- border-radius: 40px;- font-size: 16px;-}-.btn-round.btn-sm {- height: 24px;- border-radius: 24px;- font-size: 12px;-}-.btn-circle {- min-width: 30px;- padding-right: 0;- padding-left: 0;- text-align: center;- border-radius: 50%;-}-.btn-circle.btn-lg {- min-width: 40px;- border-radius: 50%;-}-.btn-circle.btn-sm {- min-width: 24px;- border-radius: 50%;-}-.btn-block {- width: 100%;-}-.btn-loading {- position: relative;-}-.btn::before {- position: absolute;- top: -1px;- right: -1px;- bottom: -1px;- left: -1px;- z-index: 1;- display: none;- background: var(--bg);- border-radius: inherit;- opacity: 0.35;- transition: opacity 0.2s;- content: '';- pointer-events: none;-}-.btn:active > span {- position: relative;-}diff --git a/packages/base-ui/src/Components/Tooltip/index.module.less b/packages/base-ui/src/Components/Tooltip/index.module.lessindex 8323d18f94..c2ac89aeed 100644--- a/packages/base-ui/src/Components/Tooltip/index.module.less+++ b/packages/base-ui/src/Components/Tooltip/index.module.less@@ -12,6 +12,7 @@.tooltip-title {display: none;+ position: absolute;white-space: nowrap;background-color: @Tooltip-bg;color: #fff;@@ -19,7 +20,7 @@box-shadow: var(--box-shadow-base);border-radius: @border-radius-base;font-size: @font-size-base;- line-height: 1.5;+ line-height: 1.5;}.tooltip-body {diff --git a/packages/ui-plugin-sheets/src/View/Toolbar/index.module.css b/packages/ui-plugin-sheets/src/View/Toolbar/index.module.cssdeleted file mode 100644index 9e3a5b2d04..0000000000--- a/packages/ui-plugin-sheets/src/View/Toolbar/index.module.css+++ /dev/null@@ -1,122 +0,0 @@-.toolbar-warp {- max-height: fit-content;- width: 100%;- overflow: unset;- box-sizing: border-box;- font-size: var(--font-size);- background-color: var(--bg);- position: relative;- display: flex;- align-items: center;- border-bottom: 1px solid var(--border-color-base);-}-.toolbar-warp .single-button.more-hide {- display: none;-}-.toolbar-warp .single-button.more-show {- display: block;-}-.toolbar {- max-width: 100%;- color: var(--text-color);- padding: 0 15px;- height: 40px;- position: relative;- display: flex;- align-items: center;-}-.toolbar > div {- height: 26px;- display: inline-block;- vertical-align: middle;- margin: 0 3px;- cursor: pointer;-}-.toolbar > div.select-button:hover {- background-color: #efefef;-}-.toolbar .cols-menu {- overflow-y: auto;-}-.toolbar .select-label-string .drop-content > div {- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;- width: 90px;-}-.toolbar .select-double-string .drop-content > div {- width: 24px;-}-.toolbar .select-color-picker-parent .select-item-content {- width: 100%;-}-.toolbar .select-color-picker-parent ul {- padding: 0;-}-.toolbar .select-color-picker-parent .select-color-picker {- padding: 0;-}-.toolbar .select-color-picker-parent .select-color-picker .select-item {- padding: 0;-}-.toolbar .select-line-bold-parent .select-item-content {- width: 100%;-}-.toolbar .select-single {- height: 26px;- line-height: 26px;-}-.toolbar .select-input {- height: 26px;- line-height: 26px;-}-.toolbar .select-double {- height: 26px;- line-height: 26px;-}-.toolbar button {- padding: 0;- height: 26px;-}-.toolbar span[role='img'].univericon-nextIcon {- font-size: 12px;-}-.toolbar .text-button span[role="img"] {- font-size: 24px;-}-.toolbar .text-button button {- padding: 0 5px;-}-.more-button {- position: absolute;- right: 15px;- top: 50%;- transform: translateY(-50%);- padding: 0px;- line-height: 1;-}-.more-button.more-show {- display: block;-}-.more-tool {- padding: 0 10px;- background-color: var(--bg);- box-shadow: var(--box-shadow-base);- position: absolute;- right: 2em;- top: 40px;- z-index: 100;-}-.more-tool.more-show {- display: flex;-}-.more-tool button {- padding: 0px;- line-height: 1;-}-.tooltip-title {- display: none;-}-.bottom {- display: none;-}diff --git a/packages/ui-plugin-sheets/src/View/Toolbar/index.module.less b/packages/ui-plugin-sheets/src/View/Toolbar/index.module.lessindex 96ebf0100e..d553d866e1 100644--- a/packages/ui-plugin-sheets/src/View/Toolbar/index.module.less+++ b/packages/ui-plugin-sheets/src/View/Toolbar/index.module.less@@ -163,9 +163,9 @@line-height: 1;}-.tooltip-title {- display: none;-}+// .tooltip-title {+// display: none;+// }.bottom {display: none;