Skip to content

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.

fix(debugger): add data attribute to Fab component for debugging (#6424)

白熱8020985b8b5e
diff --git a/common/debugger/src/views/Fab.tsx b/common/debugger/src/views/Fab.tsx
index 21bd4e2f88..43898fdcfc 100644
--- a/common/debugger/src/views/Fab.tsx
+++ b/common/debugger/src/views/Fab.tsx
@@ -68,6 +68,7 @@ export function Fab() {
return (
<div
+ data-u-comp="debugger-fab"
className={`
univer-fixed univer-bottom-12 univer-right-8 univer-z-[9999] univer-flex univer-select-none
univer-flex-col univer-items-center univer-gap-1
diff --git a/examples/tailwind.config.ts b/examples/tailwind.config.ts
index 648746fbad..1730c01793 100644
--- a/examples/tailwind.config.ts
+++ b/examples/tailwind.config.ts
@@ -24,8 +24,9 @@ import animate from 'tailwindcss-animate';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const packagesDir = fs.readdirSync(path.resolve(__dirname, '../packages')).map((dir) => path.resolve(__dirname, `../packages/${dir}`));
+const packagesExperimentalDir = fs.readdirSync(path.resolve(__dirname, '../common')).map((dir) => path.resolve(__dirname, `../common/${dir}`));
-const tailwindProjects = packagesDir.reduce((acc, dir) => {
+const tailwindProjects = packagesDir.concat(packagesExperimentalDir).reduce((acc, dir) => {
const tailwindConfig = path.resolve(dir, 'tailwind.config.ts');
if (fs.existsSync(tailwindConfig)) {
acc.push(`${dir}/src/**/*.{js,ts,jsx,tsx}`);