From 9bec4dcae002f36aa23231da11cb03a156b40110 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周三, 30 4月 2025 16:24:16 +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