From 2895db6aa2f83f1a6c72ae3e896881491719701d Mon Sep 17 00:00:00 2001 From: CyanSalt Date: Mon, 1 Apr 2024 10:11:15 +0800 Subject: [PATCH] docs: table style --- docs/.vitepress/components/REventsTable.vue | 59 ++++++++++------- docs/.vitepress/components/RPropsTable.vue | 73 ++++++++++++--------- docs/.vitepress/components/RSlotsTable.vue | 59 ++++++++++------- docs/.vitepress/components/RStylesTable.vue | 73 ++++++++++++--------- docs/.vitepress/theme/style.scss | 4 +- docs/components/graphics.md | 2 +- docs/components/table.md | 5 +- 7 files changed, 158 insertions(+), 117 deletions(-) diff --git a/docs/.vitepress/components/REventsTable.vue b/docs/.vitepress/components/REventsTable.vue index 0a5680d..0483038 100644 --- a/docs/.vitepress/components/REventsTable.vue +++ b/docs/.vitepress/components/REventsTable.vue @@ -18,28 +18,39 @@ const events = useList(eventsInjection) + + diff --git a/docs/.vitepress/components/RPropsTable.vue b/docs/.vitepress/components/RPropsTable.vue index 40ae92f..b503dfa 100644 --- a/docs/.vitepress/components/RPropsTable.vue +++ b/docs/.vitepress/components/RPropsTable.vue @@ -19,35 +19,46 @@ const props = useList(propsInjection) + + diff --git a/docs/.vitepress/components/RSlotsTable.vue b/docs/.vitepress/components/RSlotsTable.vue index 2b16113..d18795a 100644 --- a/docs/.vitepress/components/RSlotsTable.vue +++ b/docs/.vitepress/components/RSlotsTable.vue @@ -18,28 +18,39 @@ const slots = useList(slotsInjection) + + diff --git a/docs/.vitepress/components/RStylesTable.vue b/docs/.vitepress/components/RStylesTable.vue index bc7fc35..a2b71ed 100644 --- a/docs/.vitepress/components/RStylesTable.vue +++ b/docs/.vitepress/components/RStylesTable.vue @@ -19,35 +19,46 @@ const styles = useList(stylesInjection) + + diff --git a/docs/.vitepress/theme/style.scss b/docs/.vitepress/theme/style.scss index 353c049..3718d1b 100644 --- a/docs/.vitepress/theme/style.scss +++ b/docs/.vitepress/theme/style.scss @@ -22,9 +22,7 @@ } .vp-doc .r-table { - &[data-example] { - display: revert; - } + display: revert; tr { border-top: revert; background-color: transparent; diff --git a/docs/components/graphics.md b/docs/components/graphics.md index e2bf79c..f7fbe48 100644 --- a/docs/components/graphics.md +++ b/docs/components/graphics.md @@ -164,7 +164,7 @@ function draw(rc: RoughSVG, svg: SVGSVGElement) { - +