diff --git a/example/docs/zh-CN/components/animation.md b/example/docs/zh-CN/components/animation.md index 7629100c..142890c1 100644 --- a/example/docs/zh-CN/components/animation.md +++ b/example/docs/zh-CN/components/animation.md @@ -102,8 +102,7 @@ export default { ::: -::: comment -::: + ::: previousNext animation ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/avatar.md b/example/docs/zh-CN/components/avatar.md index c2f3d36b..622fe4ef 100644 --- a/example/docs/zh-CN/components/avatar.md +++ b/example/docs/zh-CN/components/avatar.md @@ -135,8 +135,7 @@ export default { ::: -::: comment -::: + ::: previousNext avatar ::: diff --git a/example/docs/zh-CN/components/badge.md b/example/docs/zh-CN/components/badge.md index b85bbbfb..43eaba6d 100644 --- a/example/docs/zh-CN/components/badge.md +++ b/example/docs/zh-CN/components/badge.md @@ -68,8 +68,7 @@ export default { ::: -::: comment -::: + ::: previousNext badge ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/breadcrumb.md b/example/docs/zh-CN/components/breadcrumb.md index af9a57e8..a84db196 100644 --- a/example/docs/zh-CN/components/breadcrumb.md +++ b/example/docs/zh-CN/components/breadcrumb.md @@ -110,8 +110,7 @@ export default { ::: -::: comment -::: + ::: previousNext breadcrumb ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/button.md b/example/docs/zh-CN/components/button.md index 1a60bf0d..2d5282a6 100644 --- a/example/docs/zh-CN/components/button.md +++ b/example/docs/zh-CN/components/button.md @@ -341,8 +341,7 @@ export default { ::: -::: comment -::: + ::: previousNext button ::: diff --git a/example/docs/zh-CN/components/card.md b/example/docs/zh-CN/components/card.md index 5b638cf0..3a5cbb87 100644 --- a/example/docs/zh-CN/components/card.md +++ b/example/docs/zh-CN/components/card.md @@ -220,8 +220,7 @@ export default { ::: -::: comment -::: + ::: previousNext card ::: diff --git a/example/docs/zh-CN/components/carousel.md b/example/docs/zh-CN/components/carousel.md index d51a2d06..4994c222 100644 --- a/example/docs/zh-CN/components/carousel.md +++ b/example/docs/zh-CN/components/carousel.md @@ -182,8 +182,7 @@ export default { ::: -::: comment -::: + ::: previousNext carousel ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/checkbox.md b/example/docs/zh-CN/components/checkbox.md index 1e5dd5bc..68444592 100644 --- a/example/docs/zh-CN/components/checkbox.md +++ b/example/docs/zh-CN/components/checkbox.md @@ -220,8 +220,7 @@ export default { ::: -::: comment -::: + ::: previousNext checkbox ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/collapse.md b/example/docs/zh-CN/components/collapse.md index cae8cb2e..b8e60751 100644 --- a/example/docs/zh-CN/components/collapse.md +++ b/example/docs/zh-CN/components/collapse.md @@ -249,8 +249,7 @@ export default { ::: -::: comment -::: + ::: previousNext collapse ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/color.md b/example/docs/zh-CN/components/color.md index 433e6d32..e0d50a88 100644 --- a/example/docs/zh-CN/components/color.md +++ b/example/docs/zh-CN/components/color.md @@ -170,8 +170,7 @@ export default { ::: -::: comment -::: + ::: previousNext color ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/colorPicker.md b/example/docs/zh-CN/components/colorPicker.md index d9f62cd8..1ac089ac 100644 --- a/example/docs/zh-CN/components/colorPicker.md +++ b/example/docs/zh-CN/components/colorPicker.md @@ -66,8 +66,7 @@ export default { ::: -::: comment -::: + ::: previousNext colorPicker ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/confirm.md b/example/docs/zh-CN/components/confirm.md index 23562dbe..22dc925f 100644 --- a/example/docs/zh-CN/components/confirm.md +++ b/example/docs/zh-CN/components/confirm.md @@ -83,8 +83,7 @@ layer.confirm(content, options) ::: -::: comment -::: + ::: previousNext confirm ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/container.md b/example/docs/zh-CN/components/container.md index dc54ef69..c4ba4e65 100644 --- a/example/docs/zh-CN/components/container.md +++ b/example/docs/zh-CN/components/container.md @@ -85,8 +85,7 @@ export default { ::: -::: comment -::: + ::: previousNext container ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/datePicker.md b/example/docs/zh-CN/components/datePicker.md index caf08ba1..61b49880 100644 --- a/example/docs/zh-CN/components/datePicker.md +++ b/example/docs/zh-CN/components/datePicker.md @@ -112,8 +112,7 @@ export default { ::: -::: comment -::: + ::: previousNext transfer ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/dropdown.md b/example/docs/zh-CN/components/dropdown.md index 74e60521..c6841457 100644 --- a/example/docs/zh-CN/components/dropdown.md +++ b/example/docs/zh-CN/components/dropdown.md @@ -104,8 +104,7 @@ export default { ::: -::: comment -::: + ::: previousNext dropdown ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/empty.md b/example/docs/zh-CN/components/empty.md index d7e6c572..0390cb31 100644 --- a/example/docs/zh-CN/components/empty.md +++ b/example/docs/zh-CN/components/empty.md @@ -64,8 +64,7 @@ export default { ::: -::: comment -::: + ::: previousNext empty ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/exception.md b/example/docs/zh-CN/components/exception.md index b0e6d538..a757d006 100644 --- a/example/docs/zh-CN/components/exception.md +++ b/example/docs/zh-CN/components/exception.md @@ -144,8 +144,7 @@ export default { ::: -::: comment -::: + ::: previousNext field ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/field.md b/example/docs/zh-CN/components/field.md index ffeff7b9..5eb48c54 100644 --- a/example/docs/zh-CN/components/field.md +++ b/example/docs/zh-CN/components/field.md @@ -75,8 +75,7 @@ export default { ::: -::: comment -::: + ::: previousNext field ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/form.md b/example/docs/zh-CN/components/form.md index c577d1d3..bb563aac 100644 --- a/example/docs/zh-CN/components/form.md +++ b/example/docs/zh-CN/components/form.md @@ -580,8 +580,7 @@ export default { ``` -::: comment -::: + ::: previousNext form ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/grid.md b/example/docs/zh-CN/components/grid.md index bb429ca1..6ee55ba7 100644 --- a/example/docs/zh-CN/components/grid.md +++ b/example/docs/zh-CN/components/grid.md @@ -188,8 +188,7 @@ export default { ::: -::: comment -::: + ::: previousNext grid ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/icon.md b/example/docs/zh-CN/components/icon.md index 96b92998..f90d71f6 100644 --- a/example/docs/zh-CN/components/icon.md +++ b/example/docs/zh-CN/components/icon.md @@ -1137,8 +1137,7 @@ npm install @layui/icons-vue ::: -::: comment -::: + ::: previousNext iconfont ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/iconPicker.md b/example/docs/zh-CN/components/iconPicker.md index e4f68693..a573360e 100644 --- a/example/docs/zh-CN/components/iconPicker.md +++ b/example/docs/zh-CN/components/iconPicker.md @@ -145,8 +145,7 @@ export default { ::: -::: comment -::: + ::: previousNext iconPicker ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/input.md b/example/docs/zh-CN/components/input.md index d7ec1470..427184b9 100644 --- a/example/docs/zh-CN/components/input.md +++ b/example/docs/zh-CN/components/input.md @@ -192,8 +192,7 @@ export default { ::: -::: comment -::: + ::: previousNext input ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/inputNumber.md b/example/docs/zh-CN/components/inputNumber.md index a769fe4a..ed331ca7 100644 --- a/example/docs/zh-CN/components/inputNumber.md +++ b/example/docs/zh-CN/components/inputNumber.md @@ -147,8 +147,7 @@ ::: -::: comment -::: + ::: previousNext inputNumber ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/layout.md b/example/docs/zh-CN/components/layout.md index 027774cd..b8fa62ea 100644 --- a/example/docs/zh-CN/components/layout.md +++ b/example/docs/zh-CN/components/layout.md @@ -263,8 +263,7 @@ export default { ::: -::: comment -::: + ::: previousNext layout ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/line.md b/example/docs/zh-CN/components/line.md index d14c2f2a..62830f11 100644 --- a/example/docs/zh-CN/components/line.md +++ b/example/docs/zh-CN/components/line.md @@ -48,8 +48,7 @@ export default { ::: -::: comment -::: + ::: previousNext line ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/load.md b/example/docs/zh-CN/components/load.md index 2e2a3794..8881d23e 100644 --- a/example/docs/zh-CN/components/load.md +++ b/example/docs/zh-CN/components/load.md @@ -133,8 +133,7 @@ layer.load(load, options) ::: -::: comment -::: + ::: previousNext load ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/menu.md b/example/docs/zh-CN/components/menu.md index 57059716..a157540d 100644 --- a/example/docs/zh-CN/components/menu.md +++ b/example/docs/zh-CN/components/menu.md @@ -534,8 +534,7 @@ export default { ::: -::: comment -::: + ::: previousNext nav ::: diff --git a/example/docs/zh-CN/components/modal.md b/example/docs/zh-CN/components/modal.md index d648a5ce..ab64b764 100644 --- a/example/docs/zh-CN/components/modal.md +++ b/example/docs/zh-CN/components/modal.md @@ -320,8 +320,7 @@ export default { ::: -::: comment -::: + ::: previousNext modal ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/msg.md b/example/docs/zh-CN/components/msg.md index 6fbd3cfb..8f47d84e 100644 --- a/example/docs/zh-CN/components/msg.md +++ b/example/docs/zh-CN/components/msg.md @@ -94,8 +94,7 @@ layer.msg(content, options) ::: -::: comment -::: + ::: previousNext msg ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/noticeBar.md b/example/docs/zh-CN/components/noticeBar.md index b0c301c7..6766c99f 100644 --- a/example/docs/zh-CN/components/noticeBar.md +++ b/example/docs/zh-CN/components/noticeBar.md @@ -94,8 +94,7 @@ export default { ::: -::: comment -::: + ::: previousNext transfer ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/page.md b/example/docs/zh-CN/components/page.md index 60d5b315..92b2dd47 100644 --- a/example/docs/zh-CN/components/page.md +++ b/example/docs/zh-CN/components/page.md @@ -308,8 +308,7 @@ export default { ::: -::: comment -::: + ::: previousNext page ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/panel.md b/example/docs/zh-CN/components/panel.md index f88b3a44..d000e066 100644 --- a/example/docs/zh-CN/components/panel.md +++ b/example/docs/zh-CN/components/panel.md @@ -62,8 +62,7 @@ export default { ::: -::: comment -::: + ::: previousNext panel ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/progress.md b/example/docs/zh-CN/components/progress.md index e7a08ff8..e48683bd 100644 --- a/example/docs/zh-CN/components/progress.md +++ b/example/docs/zh-CN/components/progress.md @@ -135,8 +135,7 @@ export default { ::: -::: comment -::: + ::: previousNext progress ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/quote.md b/example/docs/zh-CN/components/quote.md index c4553f0d..39404a14 100644 --- a/example/docs/zh-CN/components/quote.md +++ b/example/docs/zh-CN/components/quote.md @@ -61,8 +61,7 @@ export default { ::: -::: comment -::: + ::: previousNext block ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/radio.md b/example/docs/zh-CN/components/radio.md index dbc994b2..13031594 100644 --- a/example/docs/zh-CN/components/radio.md +++ b/example/docs/zh-CN/components/radio.md @@ -127,8 +127,7 @@ export default { ::: -::: comment -::: + ::: previousNext radio ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/rate.md b/example/docs/zh-CN/components/rate.md index 36bfd939..d0a0b226 100644 --- a/example/docs/zh-CN/components/rate.md +++ b/example/docs/zh-CN/components/rate.md @@ -315,8 +315,7 @@ export default { ::: -::: comment -::: + ::: previousNext rate ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/result.md b/example/docs/zh-CN/components/result.md index f0bd3d3d..e24c1a3a 100644 --- a/example/docs/zh-CN/components/result.md +++ b/example/docs/zh-CN/components/result.md @@ -78,8 +78,7 @@ export default { ::: -::: comment -::: + ::: previousNext field ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/scroll.md b/example/docs/zh-CN/components/scroll.md index dded2065..6de0e536 100644 --- a/example/docs/zh-CN/components/scroll.md +++ b/example/docs/zh-CN/components/scroll.md @@ -46,8 +46,7 @@ export default { ::: -::: comment -::: + ::: previousNext field ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/select.md b/example/docs/zh-CN/components/select.md index 35410341..0ff61116 100644 --- a/example/docs/zh-CN/components/select.md +++ b/example/docs/zh-CN/components/select.md @@ -235,8 +235,7 @@ export default { ::: -::: comment -::: + ::: previousNext select ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/skeleton.md b/example/docs/zh-CN/components/skeleton.md index ae6e45df..a7338ca9 100644 --- a/example/docs/zh-CN/components/skeleton.md +++ b/example/docs/zh-CN/components/skeleton.md @@ -113,8 +113,7 @@ export default { ::: -::: comment -::: + ::: previousNext skeleton ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/slider.md b/example/docs/zh-CN/components/slider.md index e032027b..124c5a2d 100644 --- a/example/docs/zh-CN/components/slider.md +++ b/example/docs/zh-CN/components/slider.md @@ -117,8 +117,7 @@ export default { | max | 最大值 | `Number` | - | - | ::: -::: comment -::: + ::: previousNext slider ::: diff --git a/example/docs/zh-CN/components/splitPanel.md b/example/docs/zh-CN/components/splitPanel.md index 872047e3..ae1a8b66 100644 --- a/example/docs/zh-CN/components/splitPanel.md +++ b/example/docs/zh-CN/components/splitPanel.md @@ -116,8 +116,7 @@ ::: -::: comment -::: + ::: previousNext splitPanel ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/step.md b/example/docs/zh-CN/components/step.md index 79fe9a6f..7c35e44c 100644 --- a/example/docs/zh-CN/components/step.md +++ b/example/docs/zh-CN/components/step.md @@ -468,8 +468,7 @@ export default { ::: -::: comment -::: + ::: previousNext step ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/switch.md b/example/docs/zh-CN/components/switch.md index dd85ed89..c8d7d0c2 100644 --- a/example/docs/zh-CN/components/switch.md +++ b/example/docs/zh-CN/components/switch.md @@ -172,8 +172,7 @@ export default { ::: -::: comment -::: + ::: previousNext switch ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/tab.md b/example/docs/zh-CN/components/tab.md index d8d64be0..7194acd6 100644 --- a/example/docs/zh-CN/components/tab.md +++ b/example/docs/zh-CN/components/tab.md @@ -264,8 +264,7 @@ export default { ::: -::: comment -::: + ::: previousNext tab ::: diff --git a/example/docs/zh-CN/components/table.md b/example/docs/zh-CN/components/table.md index 41f53f6a..1e7fa007 100644 --- a/example/docs/zh-CN/components/table.md +++ b/example/docs/zh-CN/components/table.md @@ -390,8 +390,7 @@ export default { | titleSlot | 标题插槽 | -- | ::: -::: comment -::: + ::: previousNext table ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/textarea.md b/example/docs/zh-CN/components/textarea.md index 55690be7..a74d7007 100644 --- a/example/docs/zh-CN/components/textarea.md +++ b/example/docs/zh-CN/components/textarea.md @@ -118,8 +118,7 @@ export default { ::: -::: comment -::: + ::: previousNext textarea ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/timeline.md b/example/docs/zh-CN/components/timeline.md index dfa602ca..959c19ba 100644 --- a/example/docs/zh-CN/components/timeline.md +++ b/example/docs/zh-CN/components/timeline.md @@ -137,8 +137,7 @@ export default { ::: -::: comment -::: + ::: previousNext timeline ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/tooltip.md b/example/docs/zh-CN/components/tooltip.md index 4a4870ee..4d0440ce 100644 --- a/example/docs/zh-CN/components/tooltip.md +++ b/example/docs/zh-CN/components/tooltip.md @@ -128,8 +128,7 @@ ::: -::: comment -::: + ::: previousNext tooltip ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/transfer.md b/example/docs/zh-CN/components/transfer.md index 3e07c708..e2ae8a74 100644 --- a/example/docs/zh-CN/components/transfer.md +++ b/example/docs/zh-CN/components/transfer.md @@ -185,8 +185,7 @@ export default { ::: -::: comment -::: + ::: previousNext transfer ::: \ No newline at end of file diff --git a/example/docs/zh-CN/components/tree.md b/example/docs/zh-CN/components/tree.md index b7567c72..63797573 100644 --- a/example/docs/zh-CN/components/tree.md +++ b/example/docs/zh-CN/components/tree.md @@ -268,8 +268,7 @@ function handleClick(node) { ::: -::: comment -::: + ::: previousNext tree ::: diff --git a/example/docs/zh-CN/components/upload.md b/example/docs/zh-CN/components/upload.md index fda11610..c7a973ce 100644 --- a/example/docs/zh-CN/components/upload.md +++ b/example/docs/zh-CN/components/upload.md @@ -186,7 +186,6 @@ export default { ::: -::: comment -::: + ::: previousNext button diff --git a/example/docs/zh-CN/guide/dark.md b/example/docs/zh-CN/guide/dark.md new file mode 100644 index 00000000..e69de29b diff --git a/example/docs/zh-CN/guide/problem.md b/example/docs/zh-CN/guide/problem.md index c17c3d8e..3a524a79 100644 --- a/example/docs/zh-CN/guide/problem.md +++ b/example/docs/zh-CN/guide/problem.md @@ -4,5 +4,4 @@ ::: describe 以下整理了一些 Layui Vue 社区常见的问题和官方答复,在提问之前建议找找有没有类似的问题。 ::: -::: comment -::: \ No newline at end of file + \ No newline at end of file diff --git a/example/src/assets/background.svg b/example/src/assets/background.svg index 52bde394..c7333c48 100644 --- a/example/src/assets/background.svg +++ b/example/src/assets/background.svg @@ -1,3 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/example/src/assets/logo-png.png b/example/src/assets/logo-png.png new file mode 100644 index 00000000..5b32cd0a Binary files /dev/null and b/example/src/assets/logo-png.png differ diff --git a/example/src/assets/logo.jpg b/example/src/assets/logo.jpg deleted file mode 100644 index 1e600184..00000000 Binary files a/example/src/assets/logo.jpg and /dev/null differ diff --git a/example/src/components/LayComment.vue b/example/src/components/LayComment.vue deleted file mode 100644 index c65747f8..00000000 --- a/example/src/components/LayComment.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - - \ No newline at end of file diff --git a/example/src/components/LaySearch.vue b/example/src/components/LaySearch.vue index 31e5a01d..2ce4342f 100644 --- a/example/src/components/LaySearch.vue +++ b/example/src/components/LaySearch.vue @@ -31,8 +31,28 @@ onMounted(() => { :root { --docsearch-logo-color: var(--global-primary-color); --docsearch-primary-color: var(--global-primary-color); - --docsearch-searchbox-background: rgba(255, 255, 255, 0.05); - --docsearch-searchbox-focus-background: rgba(255, 255, 255, 0.05); + --docsearch-searchbox-background: rgba(255, 255, 255, 0.02); + --docsearch-searchbox-focus-background: rgba(255, 255, 255, 0.02); --docsearch-container-background: rgba(0, 0, 0, 0.1); } + +.DocSearch-Button, +.DocSearch-Button:hover, +.DocSearch-Button:active, +.DocSearch-Button:focus { + border: 1px solid rgb(224, 224, 230); + box-shadow: none; +} + +.DocSearch-Button-Key { + border: 1px solid rgba(60, 60, 60, .29); + background: transparent; + box-shadow: none; +} + +.DocSearch-Button +.DocSearch-Search-Icon, +.DocSearch-Button-Placeholder { + color: rgba(0, 0, 0, 0.6); +} diff --git a/example/src/layouts/Layout.vue b/example/src/layouts/Layout.vue index 350531fc..652fee7c 100644 --- a/example/src/layouts/Layout.vue +++ b/example/src/layouts/Layout.vue @@ -5,10 +5,10 @@ :locales="locales" :themeVariable="themeVariable" > - + - + > + - - - {{ t("nav.material") }} - - @@ -52,7 +47,6 @@ size="15px" type="layui-icon-theme" style=" - color: rgba(255, 255, 255, 0.7); padding-left: 30px; padding-right: 30px; " @@ -143,11 +137,6 @@ > - - - - - .layui-layout > .layui-side { @@ -321,13 +310,7 @@ export default { margin-top: 60px; z-index: 99; height: calc(100% - 60px); - box-shadow: 2px 0 8px 0 rgb(29 35 41 / 5%); -} - -.layui-layout-document .layui-body, -.layui-layout-document .layui-menu, -.layui-layout-document .lay-aside { - background-color: var(--global-back-color); + border-right: 1px solid #EEEEEE; } .layui-layout-document > .layui-layout > .layui-body { @@ -338,11 +321,20 @@ export default { height: calc(100% - 60px); } +.layui-layout-document .layui-header .layui-form-switch { + border: 1px solid rgba(60, 60, 60, .29); + background-color: #f1f1f1!important; +} + +.layui-layout-document .layui-nav .layui-nav-item > a, +.layui-layout-document .layui-nav .layui-nav-item > a:hover { + color: rgba(0, 0, 0, 0.8); +} + .layui-logo img { - height: 31px; - width: 82px; + height: 45px; left: 15px; - top: 16px; + top: 0px; } .layui-header > .layui-nav { @@ -352,13 +344,6 @@ export default { .layui-header .layui-local-badge { font-size: 12.4px; background: transparent; - color: rgba(255, 255, 255, 0.7); - border-color: rgba(255, 255, 255, 0.7); -} - -.layui-header > .layui-local:hover { - color: white; - border-color: white; } .layui-menu-docs { diff --git a/example/src/main.ts b/example/src/main.ts index 095f7aa9..399ea9c2 100644 --- a/example/src/main.ts +++ b/example/src/main.ts @@ -6,7 +6,6 @@ import layui from '../../src/index' import LayCode from './components/LayCode.vue' import LaySearch from './components/LaySearch.vue' import LayTableBox from './components/LayTableBox.vue' -import LayComment from './components/LayComment.vue' import LayAnchor from './components/LayAnchor.vue' import './assets/css/index.css' @@ -24,7 +23,6 @@ export function createApp(): { .component('LayCode', LayCode) .component('LaySearch', LaySearch) .component('LayTableBox', LayTableBox) - .component('LayComment', LayComment) .component('LayAnchor',LayAnchor) return { app, router } diff --git a/example/src/plugin/common-plugins.ts b/example/src/plugin/common-plugins.ts index 8fbae2c4..5ceb222d 100644 --- a/example/src/plugin/common-plugins.ts +++ b/example/src/plugin/common-plugins.ts @@ -8,7 +8,6 @@ import createTitle from "./create-title"; import createQuote from "./create-quote"; import createDescribe from "./create-describe"; import createTable from "./create-table"; -import createComment from "./create-comment"; import createAnchor from "./create-anchor"; import preWrapper from "./pre-wrapper"; import previousNext from "./previous-next"; @@ -32,7 +31,6 @@ const plugins = [ .use(...createQuote("quote", "")) .use(...createTitle("title", "")) .use(...createDescribe("describe", "")) - .use(...createComment("comment", "")) .use(...createAnchor("anchor", "")) .use(...previousNext("previousNext", "")); }, diff --git a/example/src/plugin/create-comment.ts b/example/src/plugin/create-comment.ts deleted file mode 100644 index 995e2eaa..00000000 --- a/example/src/plugin/create-comment.ts +++ /dev/null @@ -1,27 +0,0 @@ -import container from 'markdown-it-container' -import type Token from 'markdown-it/lib/token' - -type ContainerArgs = [ - typeof container, string, - { render(tokens: Token[], idx: number): string } -] - -export default function createContainer( - klass: string, - defaultTitle: string -): ContainerArgs { - return [ - container, - klass, - { - render(tokens, idx) { - const token = tokens[idx] - if (token.nesting === 1) { - return `` - } else { - return '\n' - } - }, - }, - ] -} \ No newline at end of file diff --git a/example/src/plugin/previous-next.ts b/example/src/plugin/previous-next.ts index 56990caa..af30628e 100644 --- a/example/src/plugin/previous-next.ts +++ b/example/src/plugin/previous-next.ts @@ -30,7 +30,7 @@ export default function createContainer( } }); if (token.nesting === 1) { - return ` + return ` @@ -20,14 +20,7 @@ > - {{ t('home.version') }}:v0.4.4 - {{ t('home.changelog') }} + {{ t('home.version') }}:0.4.4 {{ t('home.download') }}:5463 @@ -121,18 +114,27 @@ export default { }