Skip to content

Commit 0ede144

Browse files
chenJJ-88claude
andcommitted
fix: docs 引入 native 包 CSS 修复表格样式丢失,添加类型声明消除 TS 报错
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent c9fbe23 commit 0ede144

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
declare module '*.css';
2+
declare module '*.vue' {
3+
import type { DefineComponent } from 'vue';
4+
const component: DefineComponent<object, object, unknown>;
5+
export default component;
6+
}

packages/docs/.vitepress/theme/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import DefaultTheme from 'vitepress/theme';
22
import ReactDemo from './ReactDemo.vue';
33
import './react-demo.css';
4+
import '@react-editable-tables/native/style.css';
45

56
export default {
67
extends: DefaultTheme,

0 commit comments

Comments
 (0)