From 06097837de2d955665d5575dbe8e94588f00af91 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周日, 04 5月 2025 21:47:33 +0800
Subject: [PATCH] 222
---
PipeLineLems/web/src/components/TdButton/TdButton.tsx | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/PipeLineLems/web/src/components/TdButton/TdButton.tsx b/PipeLineLems/web/src/components/TdButton/TdButton.tsx
index 5a1090f..c3bd672 100644
--- a/PipeLineLems/web/src/components/TdButton/TdButton.tsx
+++ b/PipeLineLems/web/src/components/TdButton/TdButton.tsx
@@ -26,9 +26,13 @@
type: Boolean,
default: false,
},
+ style: {
+ type: Object,
+ default: () => ({}),
+ },
},
emits: ['click'],
- setup(props, { attrs, slots, emit }) {
+ setup(props, { slots, emit }) {
return () => {
const style = {
filter: `grayscale(${props.disabled ? 1 : 0})`,
@@ -36,10 +40,10 @@
}
return (
<div
- class={{ [styles.text]: true, [styles.hover]: props.hover }}
+ class={{ [styles.text]: true, 's-row--td-hover': props.hover }}
style={style}
>
- <div class={styles.name}>
+ <div class="s-td-name" style={props.style}>
<Text truncated={true} tip={props.tip}>
{slots.default?.()}
</Text>
@@ -48,7 +52,7 @@
disabled={props.disabled}
onClick={() => emit('click')}
icon={props.icon}
- class={styles.iconBtn}
+ class="s-icon-btn"
>
{props.text}
</IconButton>
--
Gitblit v1.9.3