exploria-ui-mcp-server 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +194 -0
- package/README.md +242 -0
- package/dist/README.md +633 -0
- package/dist/components/advanced/e_parallax_scrolling/Document.vue +23 -0
- package/dist/components/advanced/e_parallax_scrolling/Using.vue +20 -0
- package/dist/components/advanced/e_parallax_scrolling/img.png +0 -0
- package/dist/components/advanced/e_parallax_scrolling/img_1.png +0 -0
- package/dist/components/advanced/e_parallax_scrolling//350/247/206/345/267/256/346/273/232/345/212/250 +0 -0
- package/dist/components/advanced/e_rolling_follow/Document.vue +21 -0
- package/dist/components/advanced/e_rolling_follow/Using.vue +54 -0
- package/dist/components/advanced/e_virtual_list/ComprehensiveCase.vue +209 -0
- package/dist/components/advanced/e_virtual_list/Document.vue +68 -0
- package/dist/components/advanced/e_virtual_list/DynamicData.vue +42 -0
- package/dist/components/advanced/e_virtual_list/Using.vue +32 -0
- package/dist/components/advanced/e_virtual_list/iconfont/iconfont.css +19 -0
- package/dist/components/advanced/e_virtual_list/iconfont/iconfont.ttf +0 -0
- package/dist/components/advanced/e_virtual_list/iconfont/iconfont.woff +0 -0
- package/dist/components/advanced/e_virtual_list/iconfont/iconfont.woff2 +0 -0
- package/dist/components/advanced/e_virtual_list/img.png +0 -0
- package/dist/components/advanced/e_watermark/AutoSize.vue +89 -0
- package/dist/components/advanced/e_watermark/BasicUsing.vue +9 -0
- package/dist/components/advanced/e_watermark/CustomFont.vue +73 -0
- package/dist/components/advanced/e_watermark/CustomStyle.vue +76 -0
- package/dist/components/advanced/e_watermark/Dense.vue +28 -0
- package/dist/components/advanced/e_watermark/Document.vue +197 -0
- package/dist/components/advanced/e_watermark/HighZIndex.vue +105 -0
- package/dist/components/advanced/e_watermark/ImageWatermark.vue +31 -0
- package/dist/components/advanced/e_watermark/MultiLine.vue +29 -0
- package/dist/components/advanced/e_watermark/OpacityWatermark.vue +73 -0
- package/dist/components/ai/typing_effect/Document.vue +47 -0
- package/dist/components/ai/typing_effect/Using1.vue +189 -0
- package/dist/components/ai/typing_effect/Using2.vue +167 -0
- package/dist/components/basic/e_badge/BasicBadge.vue +31 -0
- package/dist/components/basic/e_badge/Document.vue +137 -0
- package/dist/components/basic/e_badge/DotBadge.vue +35 -0
- package/dist/components/basic/e_badge/MaxBadge.vue +33 -0
- package/dist/components/basic/e_badge/ShowZeroBadge.vue +30 -0
- package/dist/components/basic/e_badge/SizeBadge.vue +29 -0
- package/dist/components/basic/e_badge/TypeBadge.vue +36 -0
- package/dist/components/basic/e_button/CircleButtons.vue +30 -0
- package/dist/components/basic/e_button/DisabledButtons.vue +30 -0
- package/dist/components/basic/e_button/Document.vue +171 -0
- package/dist/components/basic/e_button/LoadingButtons.vue +30 -0
- package/dist/components/basic/e_button/NormalButtons.vue +30 -0
- package/dist/components/basic/e_button/PlainButtons.vue +30 -0
- package/dist/components/basic/e_button/RoundButtons.vue +30 -0
- package/dist/components/basic/e_button/RoundedRectangleButtons.vue +35 -0
- package/dist/components/basic/e_button/SizeButtons.vue +19 -0
- package/dist/components/basic/e_button/Using.vue +89 -0
- package/dist/components/basic/e_card/BasicCard.vue +9 -0
- package/dist/components/basic/e_card/BorderlessCard.vue +8 -0
- package/dist/components/basic/e_card/ComplexContentCard.vue +92 -0
- package/dist/components/basic/e_card/CustomHeaderCard.vue +24 -0
- package/dist/components/basic/e_card/Document.vue +131 -0
- package/dist/components/basic/e_card/FooterCard.vue +12 -0
- package/dist/components/basic/e_card/ShadowCard.vue +30 -0
- package/dist/components/basic/e_card/SizesCard.vue +29 -0
- package/dist/components/basic/e_svg_icon/Document.vue +38 -0
- package/dist/components/basic/e_svg_icon/Using.vue +7 -0
- package/dist/components/basic/e_underline/BaseUsing.vue +13 -0
- package/dist/components/basic/e_underline/Document.vue +27 -0
- package/dist/components/basic/e_underline/ImgUsing.vue +36 -0
- package/dist/components/data/e_calendar/Document.vue +41 -0
- package/dist/components/data/e_calendar/Using.vue +9 -0
- package/dist/components/data/e_calendar//346/227/245/345/216/206 +0 -0
- package/dist/components/data/e_carousel/Document.vue +143 -0
- package/dist/components/data/e_carousel/Using.vue +20 -0
- package/dist/components/data/e_carousel/Using1.vue +23 -0
- package/dist/components/data/e_carousel/Using2.vue +17 -0
- package/dist/components/data/e_carousel/Using3.vue +17 -0
- package/dist/components/data/e_collapse/Document.vue +40 -0
- package/dist/components/data/e_collapse/Using.vue +9 -0
- package/dist/components/data/e_collapse//346/212/230/345/217/240/351/235/242/346/235/277 +0 -0
- package/dist/components/data/e_image/Document.vue +71 -0
- package/dist/components/data/e_image/Using.vue +21 -0
- package/dist/components/data/e_image/img.png +0 -0
- package/dist/components/data/e_list/BasicUsage.vue +18 -0
- package/dist/components/data/e_list/CustomCheckboxUsage.vue +22 -0
- package/dist/components/data/e_list/CustomEmptyDataUsage.vue +38 -0
- package/dist/components/data/e_list/CustomRowUsage.vue +64 -0
- package/dist/components/data/e_list/DividerUsage.vue +20 -0
- package/dist/components/data/e_list/Document.vue +261 -0
- package/dist/components/data/e_list/EmptyDataUsage.vue +3 -0
- package/dist/components/data/e_list/EventUsage.vue +23 -0
- package/dist/components/data/e_list/MultipleSelectUsage.vue +22 -0
- package/dist/components/data/e_list/SingleSelectUsage.vue +21 -0
- package/dist/components/data/e_list/SizeUsage.vue +35 -0
- package/dist/components/data/e_media_viewer/Document.vue +39 -0
- package/dist/components/data/e_media_viewer/Using.vue +30 -0
- package/dist/components/data/e_media_viewer/img.png +0 -0
- package/dist/components/data/e_progress/BasicProgress.vue +21 -0
- package/dist/components/data/e_progress/CircleProgress.vue +23 -0
- package/dist/components/data/e_progress/CustomColorProgress.vue +63 -0
- package/dist/components/data/e_progress/Document.vue +179 -0
- package/dist/components/data/e_progress/IndeterminateProgress.vue +49 -0
- package/dist/components/data/e_progress/ProgressSize.vue +50 -0
- package/dist/components/data/e_progress/ProgressStatus.vue +21 -0
- package/dist/components/data/e_progress/ProgressText.vue +52 -0
- package/dist/components/data/e_rolling_pagination/Document.vue +21 -0
- package/dist/components/data/e_rolling_pagination/Using.vue +33 -0
- package/dist/components/data/e_rolling_pagination//346/273/232/345/212/250/345/210/206/351/241/265 +0 -0
- package/dist/components/data/e_skeleton/Document.vue +26 -0
- package/dist/components/data/e_skeleton/Using.vue +18 -0
- package/dist/components/data/e_skeleton//351/252/250/346/236/266 +0 -0
- package/dist/components/data/e_table/Document.vue +85 -0
- package/dist/components/data/e_table/Using.vue +131 -0
- package/dist/components/data/e_timeline/Document.vue +90 -0
- package/dist/components/data/e_timeline/Using.vue +124 -0
- package/dist/components/feedback/e_dialog/AsyncUsing.vue +30 -0
- package/dist/components/feedback/e_dialog/BaseUsing.vue +15 -0
- package/dist/components/feedback/e_dialog/Document.vue +26 -0
- package/dist/components/feedback/e_drawer/BaseUsing.vue +35 -0
- package/dist/components/feedback/e_drawer/DirectionUsing.vue +93 -0
- package/dist/components/feedback/e_drawer/Document.vue +153 -0
- package/dist/components/feedback/e_drawer/LargeSizeDrawer.vue +29 -0
- package/dist/components/feedback/e_drawer/MediumSizeDrawer.vue +29 -0
- package/dist/components/feedback/e_drawer/SizeUsing.vue +67 -0
- package/dist/components/feedback/e_drawer/SmallSizeDrawer.vue +29 -0
- package/dist/components/feedback/e_message/Document.vue +18 -0
- package/dist/components/feedback/e_message/Using.vue +16 -0
- package/dist/components/feedback/e_message_box/BaseUsing.vue +11 -0
- package/dist/components/feedback/e_message_box/Document.vue +18 -0
- package/dist/components/feedback/e_message_box/intro.md +12 -0
- package/dist/components/feedback/e_notification/AllPositionsNotification.vue +35 -0
- package/dist/components/feedback/e_notification/BasicTypesNotification.vue +47 -0
- package/dist/components/feedback/e_notification/ClickableNotification.vue +18 -0
- package/dist/components/feedback/e_notification/Document.vue +147 -0
- package/dist/components/feedback/e_notification/ManualCloseNotification.vue +17 -0
- package/dist/components/feedback/e_notification/Using.vue +253 -0
- package/dist/components/feedback/e_popover/BasicUsage.vue +51 -0
- package/dist/components/feedback/e_popover/ContextmenuTrigger.vue +27 -0
- package/dist/components/feedback/e_popover/CustomContent.vue +43 -0
- package/dist/components/feedback/e_popover/CustomTrigger.vue +39 -0
- package/dist/components/feedback/e_popover/Document.vue +84 -0
- package/dist/components/feedback/e_popover/HoverTrigger.vue +29 -0
- package/dist/components/feedback/e_popover/SizeVariants.vue +36 -0
- package/dist/components/feedback/e_popover/Using.vue +177 -0
- package/dist/components/feedback/e_tooltip/Document.vue +42 -0
- package/dist/components/feedback/e_tooltip/SizeUsing.vue +28 -0
- package/dist/components/feedback/e_tooltip/Using.vue +44 -0
- package/dist/components/form/e_checkbox/Document.vue +88 -0
- package/dist/components/form/e_checkbox/Using.vue +10 -0
- package/dist/components/form/e_color_picker/Document.vue +55 -0
- package/dist/components/form/e_color_picker/Using.vue +10 -0
- package/dist/components/form/e_condition_group/Document.vue +52 -0
- package/dist/components/form/e_condition_group/Using.vue +165 -0
- package/dist/components/form/e_file_selector/Document.vue +50 -0
- package/dist/components/form/e_file_selector/Using.vue +44 -0
- package/dist/components/form/e_form/BaseUsage.vue +155 -0
- package/dist/components/form/e_form/Document.vue +93 -0
- package/dist/components/form/e_form/LoginForm.vue +150 -0
- package/dist/components/form/e_form/RegisterForm.vue +46 -0
- package/dist/components/form/e_form/iconfont/iconfont.css +67 -0
- package/dist/components/form/e_form/iconfont/iconfont.ttf +0 -0
- package/dist/components/form/e_form/iconfont/iconfont.woff +0 -0
- package/dist/components/form/e_form/iconfont/iconfont.woff2 +0 -0
- package/dist/components/form/e_input/BaseUsage.vue +16 -0
- package/dist/components/form/e_input/Clearable.vue +24 -0
- package/dist/components/form/e_input/Document.vue +111 -0
- package/dist/components/form/e_input/Number.vue +10 -0
- package/dist/components/form/e_input/Password.vue +52 -0
- package/dist/components/form/e_input/iconfont/iconfont.css +67 -0
- package/dist/components/form/e_input/iconfont/iconfont.ttf +0 -0
- package/dist/components/form/e_input/iconfont/iconfont.woff +0 -0
- package/dist/components/form/e_input/iconfont/iconfont.woff2 +0 -0
- package/dist/components/form/e_radio/Document.vue +88 -0
- package/dist/components/form/e_radio/Using.vue +14 -0
- package/dist/components/form/e_select/Document.vue +32 -0
- package/dist/components/form/e_select/Using.vue +24 -0
- package/dist/components/form/e_select//351/200/211/351/241/271/346/241/206 +0 -0
- package/dist/components/form/e_slider/BaseUsage.vue +10 -0
- package/dist/components/form/e_slider/CustomRange.vue +21 -0
- package/dist/components/form/e_slider/Disabled.vue +10 -0
- package/dist/components/form/e_slider/Document.vue +55 -0
- package/dist/components/form/e_slider/ShowValue.vue +10 -0
- package/dist/components/form/e_slider/Sizes.vue +47 -0
- package/dist/components/form/e_time_picker/Document.vue +58 -0
- package/dist/components/form/e_time_picker/Using.vue +13 -0
- package/dist/components/geometry/css_3d/Document.vue +17 -0
- package/dist/components/geometry/css_3d/Using.vue +9 -0
- package/dist/components/layout/e_scroll_x/Document.vue +39 -0
- package/dist/components/layout/e_scroll_x/Using.vue +38 -0
- package/dist/components/navigation/e_dropdown/BasicUsage.vue +64 -0
- package/dist/components/navigation/e_dropdown/Contextmenu.vue +41 -0
- package/dist/components/navigation/e_dropdown/Document.vue +72 -0
- package/dist/components/navigation/e_dropdown/HoverTrigger.vue +66 -0
- package/dist/components/navigation/e_dropdown/NestedDropdown.vue +143 -0
- package/dist/components/navigation/e_tabs/Document.vue +33 -0
- package/dist/components/navigation/e_tabs/Using.vue +40 -0
- package/dist/directives/e_uuid_util/Document.vue +15 -0
- package/dist/directives/e_uuid_util/Using.vue +13 -0
- package/dist/index.js +13708 -0
- package/dist/other/advanced/gsap/BasicUsing.vue +26 -0
- package/dist/other/advanced/gsap/Document.vue +45 -0
- package/dist/other/advanced/gsap/GSAP/345/212/250/347/224/273 +0 -0
- package/dist/other/advanced/gsap/ScrollTrigger.vue +195 -0
- package/dist/other/advanced/gsap/ScrollX.vue +81 -0
- package/dist/other/advanced/gsap/Timeline.vue +30 -0
- package/dist/other/advanced/lottie/BasicUsing.vue +33 -0
- package/dist/other/advanced/lottie/Document.vue +30 -0
- package/dist/other/advanced/lottie/Lottie /345/212/250/347/224/273 +0 -0
- package/dist/other/advanced/rich_text_editor/Document.vue +24 -0
- package/dist/other/advanced/rich_text_editor/RichTextEditor.vue +105 -0
- package/dist/other/advanced/rich_text_editor/wangeditor_style.css +684 -0
- package/dist/other/advanced/sortablejs/Document.vue +32 -0
- package/dist/other/advanced/sortablejs/ShuttleFrame.vue +181 -0
- package/dist/other/advanced/sortablejs/Using.vue +68 -0
- package/dist/other/advanced/sortablejs/iconfont/iconfont.ttf +0 -0
- package/dist/other/advanced/sortablejs/iconfont/iconfont.woff +0 -0
- package/dist/other/advanced/sortablejs/iconfont/iconfont.woff2 +0 -0
- package/dist/other/advanced/spelling/Document.vue +17 -0
- package/dist/other/advanced/spelling/Using.vue +104 -0
- package/dist/other/advanced/svg/BasicUsing.vue +12 -0
- package/dist/other/advanced/svg/Document.vue +24 -0
- package/dist/other/advanced/svg/FeDisplacementMap/FeDisplacementMap.vue +30 -0
- package/dist/other/advanced/svg/FeDisplacementMap/example/Image.vue +41 -0
- package/dist/other/advanced/svg/FeDisplacementMap/example//346/225/205/351/232/234/346/263/242/347/272/271/346/225/210/346/236/234 +0 -0
- package/dist/other/advanced/svg/FeDisplacementMap//344/275/215/347/275/256/346/233/277/346/215/242/346/273/244/351/225/234 +0 -0
- package/dist/other/advanced/svg/FeTurbulence/FeTurbulence.vue +28 -0
- package/dist/other/advanced/svg/FeTurbulence/example/Image.vue +41 -0
- package/dist/other/advanced/svg/FeTurbulence/example//346/225/205/351/232/234/346/263/242/347/272/271/346/225/210/346/236/234 +0 -0
- package/dist/other/advanced/svg/FeTurbulence//346/271/215/346/265/201/346/273/244/351/225/234 +0 -0
- package/dist/other/canvas/base/Document.vue +15 -0
- package/dist/other/canvas/base/Using.vue +125 -0
- package/dist/other/canvas/burrow/Clip.vue +66 -0
- package/dist/other/canvas/burrow/Document.vue +36 -0
- package/dist/other/canvas/burrow/Erase.vue +58 -0
- package/dist/other/canvas/burrow/NonZeroSurroundRule.vue +70 -0
- package/dist/other/canvas/clip/Clip.vue +58 -0
- package/dist/other/canvas/clip/Document.vue +26 -0
- package/dist/other/canvas/definition/Document.vue +26 -0
- package/dist/other/canvas/definition/Using.vue +60 -0
- package/dist/other/echarts/basic/Document.vue +36 -0
- package/dist/other/echarts/basic/Label.vue +98 -0
- package/dist/other/echarts/data_zoom/Document.vue +38 -0
- package/dist/other/echarts/data_zoom/Using.vue +119 -0
- package/dist/other/echarts/data_zoom/img.svg +33 -0
- package/dist/other/echarts/gauge/Document.vue +38 -0
- package/dist/other/echarts/gauge/Gauge.vue +340 -0
- package/dist/other/echarts/gauge//344/273/252/350/241/250/347/233/230 +0 -0
- package/dist/other/echarts/liquidfill/Document.vue +46 -0
- package/dist/other/echarts/liquidfill/Using.vue +239 -0
- package/dist/other/git/sample_set/Document.vue +43 -0
- package/dist/other/git/sample_set/img/img.png +0 -0
- package/dist/other/git/sample_set/img/img_1.png +0 -0
- package/dist/other/git/sample_set/img/img_2.png +0 -0
- package/dist/other/layout/flex/Advanced.vue +104 -0
- package/dist/other/layout/flex/Advanced2.vue +181 -0
- package/dist/other/layout/flex/Base.vue +48 -0
- package/dist/other/layout/flex/Document.vue +57 -0
- package/dist/other/layout/flex/Grid.vue +54 -0
- package/dist/other/layout/flex/Height100.vue +35 -0
- package/dist/other/layout/flex/intro.md +1 -0
- package/dist/other/layout/grid/Base.vue +29 -0
- package/dist/other/layout/grid/Document.vue +54 -0
- package/dist/other/layout/grid/Grid.vue +28 -0
- package/dist/other/layout/grid/Height100.vue +35 -0
- package/dist/other/layout/grid/intro.md +1 -0
- package/dist/other/navigation/new_tab_page/Document.vue +18 -0
- package/dist/other/navigation/new_tab_page/OpenNewTabPage.vue +7 -0
- package/dist/other/navigation/new_tab_page/new-tab-page-demo.html +450 -0
- package/dist/other/network/sse/Document.vue +21 -0
- package/dist/other/network/sse/Using.vue +24 -0
- package/dist/other/network/sse/server/app.ts +62 -0
- package/dist/other/network/sse/server/static/text.md +99 -0
- package/dist/other/network/sse/server/utils/sleep.ts +5 -0
- package/dist/other/observer/mutation_observer/Document.vue +15 -0
- package/dist/other/observer/mutation_observer/Using.vue +46 -0
- package/dist/other/optimize/Document.vue +19 -0
- package/dist/other/optimize/HeavyComp.vue +19 -0
- package/dist/other/optimize/Using.vue +14 -0
- package/dist/other/optimize/useDefer.ts +28 -0
- package/dist/other/svg/base/BasicUsing.vue +12 -0
- package/dist/other/svg/base/Document.vue +24 -0
- package/dist/other/svg/base/FeDisplacementMap/FeDisplacementMap.vue +30 -0
- package/dist/other/svg/base/FeDisplacementMap/example/Image.vue +41 -0
- package/dist/other/svg/base/FeDisplacementMap/example//346/225/205/351/232/234/346/263/242/347/272/271/346/225/210/346/236/234 +0 -0
- package/dist/other/svg/base/FeDisplacementMap//344/275/215/347/275/256/346/233/277/346/215/242/346/273/244/351/225/234 +0 -0
- package/dist/other/svg/base/FeTurbulence/FeTurbulence.vue +28 -0
- package/dist/other/svg/base/FeTurbulence/example/Image.vue +41 -0
- package/dist/other/svg/base/FeTurbulence/example//346/225/205/351/232/234/346/263/242/347/272/271/346/225/210/346/236/234 +0 -0
- package/dist/other/svg/base/FeTurbulence//346/271/215/346/265/201/346/273/244/351/225/234 +0 -0
- package/dist/other/threejs/base/Document.vue +17 -0
- package/dist/other/threejs/base/Using.vue +127 -0
- package/dist/other/threejs/controller_sync/Document.vue +15 -0
- package/dist/other/threejs/controller_sync/Using.vue +347 -0
- package/dist/other/threejs/controller_sync/bone//345/217/214/350/204/232/345/206/205/344/276/247/350/270/242/347/220/203.fbx +0 -0
- package/dist/other/threejs/controller_sync/motion//345/217/214/350/204/232/345/206/205/344/276/247/350/270/242/347/220/203.fbx +0 -0
- package/dist/other/threejs/controller_sync/scene/EnvMapTexture.jpg +0 -0
- package/dist/other/threejs/controller_sync/scene//347/257/256/347/220/203/345/234/272.glb +0 -0
- package/dist/other/threejs/controller_sync/scene//347/276/275/346/257/233/347/220/203/345/234/272.glb +0 -0
- package/dist/other/threejs/phoenix/Document.vue +17 -0
- package/dist/other/threejs/phoenix/Using.vue +79 -0
- package/dist/other/vue/life_cycle/Child.vue +43 -0
- package/dist/other/vue/life_cycle/Document.vue +15 -0
- package/dist/other/vue/life_cycle/Using.vue +16 -0
- package/dist/utils/e_echarts_util/Document.vue +14 -0
- package/dist/utils/e_echarts_util/Using.vue +81 -0
- package/dist/utils/e_image_util/Document.vue +15 -0
- package/dist/utils/e_image_util/Using.vue +24 -0
- package/dist/utils/e_image_util/author_avatar.png +0 -0
- package/dist/utils/e_uuid_util/Document.vue +15 -0
- package/dist/utils/e_uuid_util/Using.vue +13 -0
- package/dist/utils/type_utils/Document.vue +16 -0
- package/dist/utils/type_utils/TupleType.vue +16 -0
- package/package.json +33 -0
- package/public/README.md +633 -0
- package/public/components/advanced/e_parallax_scrolling/Document.vue +23 -0
- package/public/components/advanced/e_parallax_scrolling/Using.vue +20 -0
- package/public/components/advanced/e_parallax_scrolling/img.png +0 -0
- package/public/components/advanced/e_parallax_scrolling/img_1.png +0 -0
- package/public/components/advanced/e_parallax_scrolling//350/247/206/345/267/256/346/273/232/345/212/250 +0 -0
- package/public/components/advanced/e_rolling_follow/Document.vue +21 -0
- package/public/components/advanced/e_rolling_follow/Using.vue +54 -0
- package/public/components/advanced/e_virtual_list/ComprehensiveCase.vue +209 -0
- package/public/components/advanced/e_virtual_list/Document.vue +68 -0
- package/public/components/advanced/e_virtual_list/DynamicData.vue +42 -0
- package/public/components/advanced/e_virtual_list/Using.vue +32 -0
- package/public/components/advanced/e_virtual_list/iconfont/iconfont.css +19 -0
- package/public/components/advanced/e_virtual_list/iconfont/iconfont.ttf +0 -0
- package/public/components/advanced/e_virtual_list/iconfont/iconfont.woff +0 -0
- package/public/components/advanced/e_virtual_list/iconfont/iconfont.woff2 +0 -0
- package/public/components/advanced/e_virtual_list/img.png +0 -0
- package/public/components/advanced/e_watermark/AutoSize.vue +89 -0
- package/public/components/advanced/e_watermark/BasicUsing.vue +9 -0
- package/public/components/advanced/e_watermark/CustomFont.vue +73 -0
- package/public/components/advanced/e_watermark/CustomStyle.vue +76 -0
- package/public/components/advanced/e_watermark/Dense.vue +28 -0
- package/public/components/advanced/e_watermark/Document.vue +197 -0
- package/public/components/advanced/e_watermark/HighZIndex.vue +105 -0
- package/public/components/advanced/e_watermark/ImageWatermark.vue +31 -0
- package/public/components/advanced/e_watermark/MultiLine.vue +29 -0
- package/public/components/advanced/e_watermark/OpacityWatermark.vue +73 -0
- package/public/components/ai/typing_effect/Document.vue +47 -0
- package/public/components/ai/typing_effect/Using1.vue +189 -0
- package/public/components/ai/typing_effect/Using2.vue +167 -0
- package/public/components/basic/e_badge/BasicBadge.vue +31 -0
- package/public/components/basic/e_badge/Document.vue +137 -0
- package/public/components/basic/e_badge/DotBadge.vue +35 -0
- package/public/components/basic/e_badge/MaxBadge.vue +33 -0
- package/public/components/basic/e_badge/ShowZeroBadge.vue +30 -0
- package/public/components/basic/e_badge/SizeBadge.vue +29 -0
- package/public/components/basic/e_badge/TypeBadge.vue +36 -0
- package/public/components/basic/e_button/CircleButtons.vue +30 -0
- package/public/components/basic/e_button/DisabledButtons.vue +30 -0
- package/public/components/basic/e_button/Document.vue +171 -0
- package/public/components/basic/e_button/LoadingButtons.vue +30 -0
- package/public/components/basic/e_button/NormalButtons.vue +30 -0
- package/public/components/basic/e_button/PlainButtons.vue +30 -0
- package/public/components/basic/e_button/RoundButtons.vue +30 -0
- package/public/components/basic/e_button/RoundedRectangleButtons.vue +35 -0
- package/public/components/basic/e_button/SizeButtons.vue +19 -0
- package/public/components/basic/e_button/Using.vue +89 -0
- package/public/components/basic/e_card/BasicCard.vue +9 -0
- package/public/components/basic/e_card/BorderlessCard.vue +8 -0
- package/public/components/basic/e_card/ComplexContentCard.vue +92 -0
- package/public/components/basic/e_card/CustomHeaderCard.vue +24 -0
- package/public/components/basic/e_card/Document.vue +131 -0
- package/public/components/basic/e_card/FooterCard.vue +12 -0
- package/public/components/basic/e_card/ShadowCard.vue +30 -0
- package/public/components/basic/e_card/SizesCard.vue +29 -0
- package/public/components/basic/e_svg_icon/Document.vue +38 -0
- package/public/components/basic/e_svg_icon/Using.vue +7 -0
- package/public/components/basic/e_underline/BaseUsing.vue +13 -0
- package/public/components/basic/e_underline/Document.vue +27 -0
- package/public/components/basic/e_underline/ImgUsing.vue +36 -0
- package/public/components/data/e_calendar/Document.vue +41 -0
- package/public/components/data/e_calendar/Using.vue +9 -0
- package/public/components/data/e_calendar//346/227/245/345/216/206 +0 -0
- package/public/components/data/e_carousel/Document.vue +143 -0
- package/public/components/data/e_carousel/Using.vue +20 -0
- package/public/components/data/e_carousel/Using1.vue +23 -0
- package/public/components/data/e_carousel/Using2.vue +17 -0
- package/public/components/data/e_carousel/Using3.vue +17 -0
- package/public/components/data/e_collapse/Document.vue +40 -0
- package/public/components/data/e_collapse/Using.vue +9 -0
- package/public/components/data/e_collapse//346/212/230/345/217/240/351/235/242/346/235/277 +0 -0
- package/public/components/data/e_image/Document.vue +71 -0
- package/public/components/data/e_image/Using.vue +21 -0
- package/public/components/data/e_image/img.png +0 -0
- package/public/components/data/e_list/BasicUsage.vue +18 -0
- package/public/components/data/e_list/CustomCheckboxUsage.vue +22 -0
- package/public/components/data/e_list/CustomEmptyDataUsage.vue +38 -0
- package/public/components/data/e_list/CustomRowUsage.vue +64 -0
- package/public/components/data/e_list/DividerUsage.vue +20 -0
- package/public/components/data/e_list/Document.vue +261 -0
- package/public/components/data/e_list/EmptyDataUsage.vue +3 -0
- package/public/components/data/e_list/EventUsage.vue +23 -0
- package/public/components/data/e_list/MultipleSelectUsage.vue +22 -0
- package/public/components/data/e_list/SingleSelectUsage.vue +21 -0
- package/public/components/data/e_list/SizeUsage.vue +35 -0
- package/public/components/data/e_media_viewer/Document.vue +39 -0
- package/public/components/data/e_media_viewer/Using.vue +30 -0
- package/public/components/data/e_media_viewer/img.png +0 -0
- package/public/components/data/e_progress/BasicProgress.vue +21 -0
- package/public/components/data/e_progress/CircleProgress.vue +23 -0
- package/public/components/data/e_progress/CustomColorProgress.vue +63 -0
- package/public/components/data/e_progress/Document.vue +179 -0
- package/public/components/data/e_progress/IndeterminateProgress.vue +49 -0
- package/public/components/data/e_progress/ProgressSize.vue +50 -0
- package/public/components/data/e_progress/ProgressStatus.vue +21 -0
- package/public/components/data/e_progress/ProgressText.vue +52 -0
- package/public/components/data/e_rolling_pagination/Document.vue +21 -0
- package/public/components/data/e_rolling_pagination/Using.vue +33 -0
- package/public/components/data/e_rolling_pagination//346/273/232/345/212/250/345/210/206/351/241/265 +0 -0
- package/public/components/data/e_skeleton/Document.vue +26 -0
- package/public/components/data/e_skeleton/Using.vue +18 -0
- package/public/components/data/e_skeleton//351/252/250/346/236/266 +0 -0
- package/public/components/data/e_table/Document.vue +85 -0
- package/public/components/data/e_table/Using.vue +131 -0
- package/public/components/data/e_timeline/Document.vue +90 -0
- package/public/components/data/e_timeline/Using.vue +124 -0
- package/public/components/feedback/e_dialog/AsyncUsing.vue +30 -0
- package/public/components/feedback/e_dialog/BaseUsing.vue +15 -0
- package/public/components/feedback/e_dialog/Document.vue +26 -0
- package/public/components/feedback/e_drawer/BaseUsing.vue +35 -0
- package/public/components/feedback/e_drawer/DirectionUsing.vue +93 -0
- package/public/components/feedback/e_drawer/Document.vue +153 -0
- package/public/components/feedback/e_drawer/LargeSizeDrawer.vue +29 -0
- package/public/components/feedback/e_drawer/MediumSizeDrawer.vue +29 -0
- package/public/components/feedback/e_drawer/SizeUsing.vue +67 -0
- package/public/components/feedback/e_drawer/SmallSizeDrawer.vue +29 -0
- package/public/components/feedback/e_message/Document.vue +18 -0
- package/public/components/feedback/e_message/Using.vue +16 -0
- package/public/components/feedback/e_message_box/BaseUsing.vue +11 -0
- package/public/components/feedback/e_message_box/Document.vue +18 -0
- package/public/components/feedback/e_message_box/intro.md +12 -0
- package/public/components/feedback/e_notification/AllPositionsNotification.vue +35 -0
- package/public/components/feedback/e_notification/BasicTypesNotification.vue +47 -0
- package/public/components/feedback/e_notification/ClickableNotification.vue +18 -0
- package/public/components/feedback/e_notification/Document.vue +147 -0
- package/public/components/feedback/e_notification/ManualCloseNotification.vue +17 -0
- package/public/components/feedback/e_notification/Using.vue +253 -0
- package/public/components/feedback/e_popover/BasicUsage.vue +51 -0
- package/public/components/feedback/e_popover/ContextmenuTrigger.vue +27 -0
- package/public/components/feedback/e_popover/CustomContent.vue +43 -0
- package/public/components/feedback/e_popover/CustomTrigger.vue +39 -0
- package/public/components/feedback/e_popover/Document.vue +84 -0
- package/public/components/feedback/e_popover/HoverTrigger.vue +29 -0
- package/public/components/feedback/e_popover/SizeVariants.vue +36 -0
- package/public/components/feedback/e_popover/Using.vue +177 -0
- package/public/components/feedback/e_tooltip/Document.vue +42 -0
- package/public/components/feedback/e_tooltip/SizeUsing.vue +28 -0
- package/public/components/feedback/e_tooltip/Using.vue +44 -0
- package/public/components/form/e_checkbox/Document.vue +88 -0
- package/public/components/form/e_checkbox/Using.vue +10 -0
- package/public/components/form/e_color_picker/Document.vue +55 -0
- package/public/components/form/e_color_picker/Using.vue +10 -0
- package/public/components/form/e_condition_group/Document.vue +52 -0
- package/public/components/form/e_condition_group/Using.vue +165 -0
- package/public/components/form/e_file_selector/Document.vue +50 -0
- package/public/components/form/e_file_selector/Using.vue +44 -0
- package/public/components/form/e_form/BaseUsage.vue +155 -0
- package/public/components/form/e_form/Document.vue +93 -0
- package/public/components/form/e_form/LoginForm.vue +150 -0
- package/public/components/form/e_form/RegisterForm.vue +46 -0
- package/public/components/form/e_form/iconfont/iconfont.css +67 -0
- package/public/components/form/e_form/iconfont/iconfont.ttf +0 -0
- package/public/components/form/e_form/iconfont/iconfont.woff +0 -0
- package/public/components/form/e_form/iconfont/iconfont.woff2 +0 -0
- package/public/components/form/e_input/BaseUsage.vue +16 -0
- package/public/components/form/e_input/Clearable.vue +24 -0
- package/public/components/form/e_input/Document.vue +111 -0
- package/public/components/form/e_input/Number.vue +10 -0
- package/public/components/form/e_input/Password.vue +52 -0
- package/public/components/form/e_input/iconfont/iconfont.css +67 -0
- package/public/components/form/e_input/iconfont/iconfont.ttf +0 -0
- package/public/components/form/e_input/iconfont/iconfont.woff +0 -0
- package/public/components/form/e_input/iconfont/iconfont.woff2 +0 -0
- package/public/components/form/e_radio/Document.vue +88 -0
- package/public/components/form/e_radio/Using.vue +14 -0
- package/public/components/form/e_select/Document.vue +32 -0
- package/public/components/form/e_select/Using.vue +24 -0
- package/public/components/form/e_select//351/200/211/351/241/271/346/241/206 +0 -0
- package/public/components/form/e_slider/BaseUsage.vue +10 -0
- package/public/components/form/e_slider/CustomRange.vue +21 -0
- package/public/components/form/e_slider/Disabled.vue +10 -0
- package/public/components/form/e_slider/Document.vue +55 -0
- package/public/components/form/e_slider/ShowValue.vue +10 -0
- package/public/components/form/e_slider/Sizes.vue +47 -0
- package/public/components/form/e_time_picker/Document.vue +58 -0
- package/public/components/form/e_time_picker/Using.vue +13 -0
- package/public/components/geometry/css_3d/Document.vue +17 -0
- package/public/components/geometry/css_3d/Using.vue +9 -0
- package/public/components/layout/e_scroll_x/Document.vue +39 -0
- package/public/components/layout/e_scroll_x/Using.vue +38 -0
- package/public/components/navigation/e_dropdown/BasicUsage.vue +64 -0
- package/public/components/navigation/e_dropdown/Contextmenu.vue +41 -0
- package/public/components/navigation/e_dropdown/Document.vue +72 -0
- package/public/components/navigation/e_dropdown/HoverTrigger.vue +66 -0
- package/public/components/navigation/e_dropdown/NestedDropdown.vue +143 -0
- package/public/components/navigation/e_tabs/Document.vue +33 -0
- package/public/components/navigation/e_tabs/Using.vue +40 -0
- package/public/directives/e_uuid_util/Document.vue +15 -0
- package/public/directives/e_uuid_util/Using.vue +13 -0
- package/public/other/advanced/gsap/BasicUsing.vue +26 -0
- package/public/other/advanced/gsap/Document.vue +45 -0
- package/public/other/advanced/gsap/GSAP/345/212/250/347/224/273 +0 -0
- package/public/other/advanced/gsap/ScrollTrigger.vue +195 -0
- package/public/other/advanced/gsap/ScrollX.vue +81 -0
- package/public/other/advanced/gsap/Timeline.vue +30 -0
- package/public/other/advanced/lottie/BasicUsing.vue +33 -0
- package/public/other/advanced/lottie/Document.vue +30 -0
- package/public/other/advanced/lottie/Lottie /345/212/250/347/224/273 +0 -0
- package/public/other/advanced/rich_text_editor/Document.vue +24 -0
- package/public/other/advanced/rich_text_editor/RichTextEditor.vue +105 -0
- package/public/other/advanced/rich_text_editor/wangeditor_style.css +684 -0
- package/public/other/advanced/sortablejs/Document.vue +32 -0
- package/public/other/advanced/sortablejs/ShuttleFrame.vue +181 -0
- package/public/other/advanced/sortablejs/Using.vue +68 -0
- package/public/other/advanced/sortablejs/iconfont/iconfont.ttf +0 -0
- package/public/other/advanced/sortablejs/iconfont/iconfont.woff +0 -0
- package/public/other/advanced/sortablejs/iconfont/iconfont.woff2 +0 -0
- package/public/other/advanced/spelling/Document.vue +17 -0
- package/public/other/advanced/spelling/Using.vue +104 -0
- package/public/other/advanced/svg/BasicUsing.vue +12 -0
- package/public/other/advanced/svg/Document.vue +24 -0
- package/public/other/advanced/svg/FeDisplacementMap/FeDisplacementMap.vue +30 -0
- package/public/other/advanced/svg/FeDisplacementMap/example/Image.vue +41 -0
- package/public/other/advanced/svg/FeDisplacementMap/example//346/225/205/351/232/234/346/263/242/347/272/271/346/225/210/346/236/234 +0 -0
- package/public/other/advanced/svg/FeDisplacementMap//344/275/215/347/275/256/346/233/277/346/215/242/346/273/244/351/225/234 +0 -0
- package/public/other/advanced/svg/FeTurbulence/FeTurbulence.vue +28 -0
- package/public/other/advanced/svg/FeTurbulence/example/Image.vue +41 -0
- package/public/other/advanced/svg/FeTurbulence/example//346/225/205/351/232/234/346/263/242/347/272/271/346/225/210/346/236/234 +0 -0
- package/public/other/advanced/svg/FeTurbulence//346/271/215/346/265/201/346/273/244/351/225/234 +0 -0
- package/public/other/canvas/base/Document.vue +15 -0
- package/public/other/canvas/base/Using.vue +125 -0
- package/public/other/canvas/burrow/Clip.vue +66 -0
- package/public/other/canvas/burrow/Document.vue +36 -0
- package/public/other/canvas/burrow/Erase.vue +58 -0
- package/public/other/canvas/burrow/NonZeroSurroundRule.vue +70 -0
- package/public/other/canvas/clip/Clip.vue +58 -0
- package/public/other/canvas/clip/Document.vue +26 -0
- package/public/other/canvas/definition/Document.vue +26 -0
- package/public/other/canvas/definition/Using.vue +60 -0
- package/public/other/echarts/basic/Document.vue +36 -0
- package/public/other/echarts/basic/Label.vue +98 -0
- package/public/other/echarts/data_zoom/Document.vue +38 -0
- package/public/other/echarts/data_zoom/Using.vue +119 -0
- package/public/other/echarts/data_zoom/img.svg +33 -0
- package/public/other/echarts/gauge/Document.vue +38 -0
- package/public/other/echarts/gauge/Gauge.vue +340 -0
- package/public/other/echarts/gauge//344/273/252/350/241/250/347/233/230 +0 -0
- package/public/other/echarts/liquidfill/Document.vue +46 -0
- package/public/other/echarts/liquidfill/Using.vue +239 -0
- package/public/other/git/sample_set/Document.vue +43 -0
- package/public/other/git/sample_set/img/img.png +0 -0
- package/public/other/git/sample_set/img/img_1.png +0 -0
- package/public/other/git/sample_set/img/img_2.png +0 -0
- package/public/other/layout/flex/Advanced.vue +104 -0
- package/public/other/layout/flex/Advanced2.vue +181 -0
- package/public/other/layout/flex/Base.vue +48 -0
- package/public/other/layout/flex/Document.vue +57 -0
- package/public/other/layout/flex/Grid.vue +54 -0
- package/public/other/layout/flex/Height100.vue +35 -0
- package/public/other/layout/flex/intro.md +1 -0
- package/public/other/layout/grid/Base.vue +29 -0
- package/public/other/layout/grid/Document.vue +54 -0
- package/public/other/layout/grid/Grid.vue +28 -0
- package/public/other/layout/grid/Height100.vue +35 -0
- package/public/other/layout/grid/intro.md +1 -0
- package/public/other/navigation/new_tab_page/Document.vue +18 -0
- package/public/other/navigation/new_tab_page/OpenNewTabPage.vue +7 -0
- package/public/other/navigation/new_tab_page/new-tab-page-demo.html +450 -0
- package/public/other/network/sse/Document.vue +21 -0
- package/public/other/network/sse/Using.vue +24 -0
- package/public/other/network/sse/server/app.ts +62 -0
- package/public/other/network/sse/server/static/text.md +99 -0
- package/public/other/network/sse/server/utils/sleep.ts +5 -0
- package/public/other/observer/mutation_observer/Document.vue +15 -0
- package/public/other/observer/mutation_observer/Using.vue +46 -0
- package/public/other/optimize/Document.vue +19 -0
- package/public/other/optimize/HeavyComp.vue +19 -0
- package/public/other/optimize/Using.vue +14 -0
- package/public/other/optimize/useDefer.ts +28 -0
- package/public/other/svg/base/BasicUsing.vue +12 -0
- package/public/other/svg/base/Document.vue +24 -0
- package/public/other/svg/base/FeDisplacementMap/FeDisplacementMap.vue +30 -0
- package/public/other/svg/base/FeDisplacementMap/example/Image.vue +41 -0
- package/public/other/svg/base/FeDisplacementMap/example//346/225/205/351/232/234/346/263/242/347/272/271/346/225/210/346/236/234 +0 -0
- package/public/other/svg/base/FeDisplacementMap//344/275/215/347/275/256/346/233/277/346/215/242/346/273/244/351/225/234 +0 -0
- package/public/other/svg/base/FeTurbulence/FeTurbulence.vue +28 -0
- package/public/other/svg/base/FeTurbulence/example/Image.vue +41 -0
- package/public/other/svg/base/FeTurbulence/example//346/225/205/351/232/234/346/263/242/347/272/271/346/225/210/346/236/234 +0 -0
- package/public/other/svg/base/FeTurbulence//346/271/215/346/265/201/346/273/244/351/225/234 +0 -0
- package/public/other/threejs/base/Document.vue +17 -0
- package/public/other/threejs/base/Using.vue +127 -0
- package/public/other/threejs/controller_sync/Document.vue +15 -0
- package/public/other/threejs/controller_sync/Using.vue +347 -0
- package/public/other/threejs/controller_sync/bone//345/217/214/350/204/232/345/206/205/344/276/247/350/270/242/347/220/203.fbx +0 -0
- package/public/other/threejs/controller_sync/motion//345/217/214/350/204/232/345/206/205/344/276/247/350/270/242/347/220/203.fbx +0 -0
- package/public/other/threejs/controller_sync/scene/EnvMapTexture.jpg +0 -0
- package/public/other/threejs/controller_sync/scene//347/257/256/347/220/203/345/234/272.glb +0 -0
- package/public/other/threejs/controller_sync/scene//347/276/275/346/257/233/347/220/203/345/234/272.glb +0 -0
- package/public/other/threejs/phoenix/Document.vue +17 -0
- package/public/other/threejs/phoenix/Using.vue +79 -0
- package/public/other/vue/life_cycle/Child.vue +43 -0
- package/public/other/vue/life_cycle/Document.vue +15 -0
- package/public/other/vue/life_cycle/Using.vue +16 -0
- package/public/utils/e_echarts_util/Document.vue +14 -0
- package/public/utils/e_echarts_util/Using.vue +81 -0
- package/public/utils/e_image_util/Document.vue +15 -0
- package/public/utils/e_image_util/Using.vue +24 -0
- package/public/utils/e_image_util/author_avatar.png +0 -0
- package/public/utils/e_uuid_util/Document.vue +15 -0
- package/public/utils/e_uuid_util/Using.vue +13 -0
- package/public/utils/type_utils/Document.vue +16 -0
- package/public/utils/type_utils/TupleType.vue +16 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* 适用于一次性返回所有内容的场景
|
|
4
|
+
*/
|
|
5
|
+
import { onMounted, useTemplateRef, ref, nextTick } from 'vue';
|
|
6
|
+
import { marked } from 'marked';
|
|
7
|
+
|
|
8
|
+
// 扩展HTMLDivElement类型,添加blinkAnimation属性
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLDivElement {
|
|
11
|
+
blinkAnimation?: Animation;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const usingRef = useTemplateRef<HTMLDivElement>('using');
|
|
16
|
+
import xss from 'xss';
|
|
17
|
+
import mdStr from '../../../../../../../README.md?raw';
|
|
18
|
+
|
|
19
|
+
const getLastNode = (node: ChildNode): ChildNode | null => {
|
|
20
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
21
|
+
return node;
|
|
22
|
+
}
|
|
23
|
+
for (let i = node.childNodes.length; i >= 0; i--) {
|
|
24
|
+
const childNode = node.childNodes[i];
|
|
25
|
+
if (childNode) {
|
|
26
|
+
const lastNode = getLastNode(childNode);
|
|
27
|
+
if (lastNode) {
|
|
28
|
+
return lastNode;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return null;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// 光标元素引用
|
|
36
|
+
let cursorElement: HTMLDivElement | null = null;
|
|
37
|
+
|
|
38
|
+
// 创建光标元素
|
|
39
|
+
const createCursor = () => {
|
|
40
|
+
if (cursorElement) return;
|
|
41
|
+
|
|
42
|
+
cursorElement = document.createElement('div');
|
|
43
|
+
cursorElement.className = 'typing-cursor';
|
|
44
|
+
cursorElement.textContent = '|';
|
|
45
|
+
|
|
46
|
+
// 设置样式
|
|
47
|
+
Object.assign(cursorElement.style, {
|
|
48
|
+
position: 'fixed',
|
|
49
|
+
color: '#000',
|
|
50
|
+
fontSize: '20px',
|
|
51
|
+
fontWeight: 'normal',
|
|
52
|
+
lineHeight: 'normal',
|
|
53
|
+
pointerEvents: 'none',
|
|
54
|
+
zIndex: '9999',
|
|
55
|
+
opacity: '1',
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
// 使用Web Animations API的animate()方法创建闪烁动画
|
|
59
|
+
cursorElement!.blinkAnimation = cursorElement!.animate(
|
|
60
|
+
[{ opacity: '1' }, { opacity: '0' }, { opacity: '1' }],
|
|
61
|
+
{
|
|
62
|
+
duration: 800,
|
|
63
|
+
iterations: Infinity,
|
|
64
|
+
easing: 'ease-in-out',
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
// 添加到body
|
|
69
|
+
document.body.appendChild(cursorElement);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
// 更新光标位置
|
|
73
|
+
const updateCursorPosition = () => {
|
|
74
|
+
if (!cursorElement) return;
|
|
75
|
+
|
|
76
|
+
const htmlContainer = usingRef.value!.querySelector(
|
|
77
|
+
'.html-container'
|
|
78
|
+
) as HTMLDivElement;
|
|
79
|
+
|
|
80
|
+
// 这个节点的 textContent 的末尾可能包含 |
|
|
81
|
+
const lastNode = getLastNode(htmlContainer);
|
|
82
|
+
if (lastNode && lastNode.toString() != '') {
|
|
83
|
+
const range = document.createRange();
|
|
84
|
+
|
|
85
|
+
// 框选 '|'
|
|
86
|
+
if (lastNode.textContent?.length === 1) {
|
|
87
|
+
range.setStart(lastNode, 0);
|
|
88
|
+
range.setEnd(lastNode, 0);
|
|
89
|
+
} else {
|
|
90
|
+
const lastCharIndex = lastNode.toString().length - 1;
|
|
91
|
+
range.setStart(lastNode, lastCharIndex - 1);
|
|
92
|
+
range.setEnd(lastNode, lastCharIndex);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// 获取文本节点的位置
|
|
96
|
+
const rect = range.getBoundingClientRect();
|
|
97
|
+
|
|
98
|
+
// 更新光标位置
|
|
99
|
+
cursorElement.style.left = `${rect.left}px`;
|
|
100
|
+
cursorElement.style.top = `${rect.top}px`;
|
|
101
|
+
|
|
102
|
+
// 删除 textContent 末尾的 |
|
|
103
|
+
if (lastNode.textContent?.length === 1) {
|
|
104
|
+
lastNode.textContent = '';
|
|
105
|
+
} else {
|
|
106
|
+
const lastCharIndex = lastNode.toString().length - 1;
|
|
107
|
+
lastNode.textContent = lastNode
|
|
108
|
+
.toString()
|
|
109
|
+
.substring(0, lastCharIndex);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
// 移除光标元素
|
|
115
|
+
const removeCursor = () => {
|
|
116
|
+
if (cursorElement && cursorElement.parentNode) {
|
|
117
|
+
// 停止并取消闪烁动画
|
|
118
|
+
if (cursorElement.blinkAnimation) {
|
|
119
|
+
cursorElement.blinkAnimation.cancel();
|
|
120
|
+
}
|
|
121
|
+
cursorElement.parentNode.removeChild(cursorElement);
|
|
122
|
+
cursorElement = null;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
onMounted(() => {
|
|
127
|
+
speak(mdStr);
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
const scrollToBottom = () => {
|
|
131
|
+
const htmlContainer = usingRef.value;
|
|
132
|
+
if (htmlContainer) {
|
|
133
|
+
htmlContainer.scrollTop = htmlContainer.scrollHeight;
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
const htmlStr = ref('');
|
|
138
|
+
let timer: ReturnType<typeof setTimeout>;
|
|
139
|
+
const speak = (mdStr: string) => {
|
|
140
|
+
let wordIndex = 0;
|
|
141
|
+
|
|
142
|
+
// 创建光标
|
|
143
|
+
createCursor();
|
|
144
|
+
|
|
145
|
+
const nextWord = () => {
|
|
146
|
+
clearTimeout(timer);
|
|
147
|
+
timer = setTimeout(() => {
|
|
148
|
+
wordIndex += Math.ceil(Math.random() * 10); // 这个决定了每一小段的长度
|
|
149
|
+
htmlStr.value = mdToHtml(
|
|
150
|
+
// + '|' 是为了做光标位置计算
|
|
151
|
+
mdStr.slice(0, wordIndex) + '|'
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
// 等 htmlStr 在页面上渲染出来
|
|
155
|
+
nextTick(() => {
|
|
156
|
+
scrollToBottom();
|
|
157
|
+
updateCursorPosition();
|
|
158
|
+
|
|
159
|
+
if (wordIndex >= mdStr.length) {
|
|
160
|
+
// 文本输出完成,移除光标
|
|
161
|
+
removeCursor();
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
nextWord();
|
|
165
|
+
});
|
|
166
|
+
}, Math.random() * 300);
|
|
167
|
+
};
|
|
168
|
+
nextWord();
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
const mdToHtml = (md: string) => marked.parse(md, { async: false });
|
|
172
|
+
</script>
|
|
173
|
+
|
|
174
|
+
<template>
|
|
175
|
+
<div class="using" ref="using">
|
|
176
|
+
<!-- 滚动条是属于 using 的 -->
|
|
177
|
+
<div class="html-container" v-html="xss(htmlStr)" />
|
|
178
|
+
</div>
|
|
179
|
+
</template>
|
|
180
|
+
|
|
181
|
+
<style scoped lang="scss">
|
|
182
|
+
.using {
|
|
183
|
+
position: relative;
|
|
184
|
+
height: 400px;
|
|
185
|
+
overflow-y: auto;
|
|
186
|
+
box-sizing: border-box;
|
|
187
|
+
white-space: pre-wrap;
|
|
188
|
+
}
|
|
189
|
+
</style>
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { nextTick, onMounted, ref } from 'vue';
|
|
3
|
+
import { marked } from 'marked';
|
|
4
|
+
import txt from '../../../../../../../README.md?raw';
|
|
5
|
+
import xss from 'xss';
|
|
6
|
+
|
|
7
|
+
// 扩展HTMLDivElement类型,添加blinkAnimation属性
|
|
8
|
+
declare global {
|
|
9
|
+
interface HTMLDivElement {
|
|
10
|
+
blinkAnimation?: Animation;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
marked.setOptions({
|
|
15
|
+
breaks: true, // 识别换行符
|
|
16
|
+
gfm: true,
|
|
17
|
+
pedantic: false,
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const using = ref<HTMLDivElement | null>(null);
|
|
21
|
+
const mdStr = txt as string;
|
|
22
|
+
onMounted(() => {
|
|
23
|
+
speak(mdStr);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
// 获取最后一个文本节点
|
|
27
|
+
const getLastNode = (node: ChildNode): ChildNode | null => {
|
|
28
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
29
|
+
return node;
|
|
30
|
+
}
|
|
31
|
+
for (let i = node.childNodes.length; i >= 0; i--) {
|
|
32
|
+
const childNode = node.childNodes[i];
|
|
33
|
+
if (childNode) {
|
|
34
|
+
const lastNode = getLastNode(childNode);
|
|
35
|
+
if (lastNode) {
|
|
36
|
+
return lastNode;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// 光标元素引用
|
|
44
|
+
let cursorElement: HTMLDivElement | null = null;
|
|
45
|
+
|
|
46
|
+
// 创建光标元素
|
|
47
|
+
const createCursor = () => {
|
|
48
|
+
if (cursorElement) return;
|
|
49
|
+
|
|
50
|
+
cursorElement = document.createElement('div');
|
|
51
|
+
cursorElement.className = 'typing-cursor';
|
|
52
|
+
cursorElement.textContent = '|';
|
|
53
|
+
|
|
54
|
+
// 设置样式
|
|
55
|
+
Object.assign(cursorElement.style, {
|
|
56
|
+
position: 'fixed',
|
|
57
|
+
color: '#000',
|
|
58
|
+
fontSize: '20px',
|
|
59
|
+
fontWeight: 'normal',
|
|
60
|
+
lineHeight: 'normal',
|
|
61
|
+
pointerEvents: 'none',
|
|
62
|
+
zIndex: '9999',
|
|
63
|
+
opacity: '1',
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// 使用Web Animations API的animate()方法创建闪烁动画
|
|
67
|
+
cursorElement!.blinkAnimation = cursorElement!.animate(
|
|
68
|
+
[{ opacity: '1' }, { opacity: '0' }, { opacity: '1' }],
|
|
69
|
+
{
|
|
70
|
+
duration: 800,
|
|
71
|
+
iterations: Infinity,
|
|
72
|
+
easing: 'ease-in-out',
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
// 添加到body
|
|
77
|
+
document.body.appendChild(cursorElement);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// 更新光标位置
|
|
81
|
+
const updateCursorPosition = () => {
|
|
82
|
+
if (!cursorElement || !using.value) return;
|
|
83
|
+
|
|
84
|
+
const htmlContainer = using.value;
|
|
85
|
+
|
|
86
|
+
// 为了准确计算光标位置,临时添加一个标记
|
|
87
|
+
htmlContainer.innerHTML += '<span id="cursor-marker">|</span>';
|
|
88
|
+
|
|
89
|
+
const marker = htmlContainer.querySelector('#cursor-marker');
|
|
90
|
+
if (marker) {
|
|
91
|
+
const rect = marker.getBoundingClientRect();
|
|
92
|
+
|
|
93
|
+
// 更新光标位置
|
|
94
|
+
cursorElement.style.left = `${rect.left}px`;
|
|
95
|
+
cursorElement.style.top = `${rect.top}px`;
|
|
96
|
+
|
|
97
|
+
// 移除标记
|
|
98
|
+
marker.remove();
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// 移除光标元素
|
|
103
|
+
const removeCursor = () => {
|
|
104
|
+
if (cursorElement && cursorElement.parentNode) {
|
|
105
|
+
// 停止并取消闪烁动画
|
|
106
|
+
if (cursorElement.blinkAnimation) {
|
|
107
|
+
cursorElement.blinkAnimation.cancel();
|
|
108
|
+
}
|
|
109
|
+
cursorElement.parentNode.removeChild(cursorElement);
|
|
110
|
+
cursorElement = null;
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
// 滚动到底部
|
|
115
|
+
const scrollToBottom = () => {
|
|
116
|
+
if (using.value) {
|
|
117
|
+
using.value.scrollTop = using.value.scrollHeight;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
let timer: ReturnType<typeof setTimeout>;
|
|
122
|
+
const htmlStr = ref('');
|
|
123
|
+
const speak = (md: string) => {
|
|
124
|
+
const lines = md.split('\n');
|
|
125
|
+
|
|
126
|
+
// 创建光标
|
|
127
|
+
createCursor();
|
|
128
|
+
|
|
129
|
+
let index = 0;
|
|
130
|
+
const nextWord = () => {
|
|
131
|
+
clearTimeout(timer);
|
|
132
|
+
timer = setTimeout(() => {
|
|
133
|
+
index++;
|
|
134
|
+
const str = lines.slice(0, index).join('');
|
|
135
|
+
htmlStr.value = mdToHtml(str);
|
|
136
|
+
|
|
137
|
+
// 等 htmlStr 在页面上渲染出来
|
|
138
|
+
nextTick(() => {
|
|
139
|
+
scrollToBottom();
|
|
140
|
+
updateCursorPosition();
|
|
141
|
+
|
|
142
|
+
if (index === lines.length) {
|
|
143
|
+
// 文本输出完成,移除光标
|
|
144
|
+
removeCursor();
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
nextWord();
|
|
148
|
+
});
|
|
149
|
+
}, Math.random() * 100);
|
|
150
|
+
};
|
|
151
|
+
nextWord();
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
const mdToHtml = (md: string) => marked.parse(md) as string;
|
|
155
|
+
</script>
|
|
156
|
+
|
|
157
|
+
<template>
|
|
158
|
+
<div class="using" ref="using" v-html="xss(htmlStr)"></div>
|
|
159
|
+
</template>
|
|
160
|
+
|
|
161
|
+
<style scoped lang="scss">
|
|
162
|
+
.using {
|
|
163
|
+
height: 400px;
|
|
164
|
+
overflow-y: auto;
|
|
165
|
+
white-space: pre-wrap;
|
|
166
|
+
}
|
|
167
|
+
</style>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { EBadge, EButton, ESvgIcon } from 'exploria-ui';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div class="demo-badge">
|
|
7
|
+
<EBadge value="5">
|
|
8
|
+
<EButton>消息</EButton>
|
|
9
|
+
</EBadge>
|
|
10
|
+
<EBadge value="10">
|
|
11
|
+
<EButton type="success">通知</EButton>
|
|
12
|
+
</EBadge>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<style scoped>
|
|
17
|
+
.demo-badge {
|
|
18
|
+
display: flex;
|
|
19
|
+
gap: 20px;
|
|
20
|
+
align-items: center;
|
|
21
|
+
|
|
22
|
+
.e-button {
|
|
23
|
+
margin-right: 10px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.e-svg-icon {
|
|
27
|
+
font-size: 24px;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import DemoBox from '@/components/DemoBox/DemoBox.vue';
|
|
3
|
+
import PageLayout from '@/components/PageLayout.vue';
|
|
4
|
+
import APITable from '@/components/APITable.vue';
|
|
5
|
+
|
|
6
|
+
// 导入各个独立的demo组件
|
|
7
|
+
import BasicBadge from './BasicBadge.vue';
|
|
8
|
+
import BasicBadgeRaw from './BasicBadge.vue?raw';
|
|
9
|
+
|
|
10
|
+
import TypeBadge from './TypeBadge.vue';
|
|
11
|
+
import TypeBadgeRaw from './TypeBadge.vue?raw';
|
|
12
|
+
|
|
13
|
+
import SizeBadge from './SizeBadge.vue';
|
|
14
|
+
import SizeBadgeRaw from './SizeBadge.vue?raw';
|
|
15
|
+
|
|
16
|
+
import MaxBadge from './MaxBadge.vue';
|
|
17
|
+
import MaxBadgeRaw from './MaxBadge.vue?raw';
|
|
18
|
+
|
|
19
|
+
import ShowZeroBadge from './ShowZeroBadge.vue';
|
|
20
|
+
import ShowZeroBadgeRaw from './ShowZeroBadge.vue?raw';
|
|
21
|
+
|
|
22
|
+
import DotBadge from './DotBadge.vue';
|
|
23
|
+
import DotBadgeRaw from './DotBadge.vue?raw';
|
|
24
|
+
|
|
25
|
+
// API表格数据
|
|
26
|
+
const apiData = [
|
|
27
|
+
{
|
|
28
|
+
subTitle: 'EBadge Props',
|
|
29
|
+
list: [
|
|
30
|
+
{
|
|
31
|
+
name: 'value',
|
|
32
|
+
description: '角标显示的值',
|
|
33
|
+
type: 'number | string',
|
|
34
|
+
defaultValue: 'undefined',
|
|
35
|
+
required: false,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'max',
|
|
39
|
+
description: '角标显示的最大值,超过最大值时显示 最大值+',
|
|
40
|
+
type: 'number',
|
|
41
|
+
defaultValue: 99,
|
|
42
|
+
required: false,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'type',
|
|
46
|
+
description: '角标类型',
|
|
47
|
+
type: 'primary | success | danger | info | warning',
|
|
48
|
+
defaultValue: 'danger',
|
|
49
|
+
required: false,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'size',
|
|
53
|
+
description: '角标尺寸',
|
|
54
|
+
type: 'small | medium | large',
|
|
55
|
+
defaultValue: 'medium',
|
|
56
|
+
required: false,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'showZero',
|
|
60
|
+
description: '当值为 0 时是否显示角标',
|
|
61
|
+
type: 'boolean',
|
|
62
|
+
defaultValue: false,
|
|
63
|
+
required: false,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'dot',
|
|
67
|
+
description: '是否显示为点模式',
|
|
68
|
+
type: 'boolean',
|
|
69
|
+
defaultValue: false,
|
|
70
|
+
required: false,
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
</script>
|
|
76
|
+
|
|
77
|
+
<template>
|
|
78
|
+
<PageLayout>
|
|
79
|
+
<DemoBox title="介绍">
|
|
80
|
+
<h2>EBadge 数字角标</h2>
|
|
81
|
+
<p>
|
|
82
|
+
数字角标组件,用于显示未读消息数或状态提示,支持多种类型、尺寸和样式。
|
|
83
|
+
</p>
|
|
84
|
+
</DemoBox>
|
|
85
|
+
|
|
86
|
+
<!-- 基础用法示例 -->
|
|
87
|
+
<DemoBox :code="BasicBadgeRaw" title="基础用法">
|
|
88
|
+
<BasicBadge />
|
|
89
|
+
<template #description>
|
|
90
|
+
基本的数字角标用法,通过 value 属性设置显示的值。
|
|
91
|
+
</template>
|
|
92
|
+
</DemoBox>
|
|
93
|
+
|
|
94
|
+
<!-- 不同类型示例 -->
|
|
95
|
+
<DemoBox :code="TypeBadgeRaw" title="不同类型">
|
|
96
|
+
<TypeBadge />
|
|
97
|
+
<template #description>
|
|
98
|
+
角标支持五种主题颜色:primary、success、danger、info 和
|
|
99
|
+
warning。
|
|
100
|
+
</template>
|
|
101
|
+
</DemoBox>
|
|
102
|
+
|
|
103
|
+
<!-- 不同尺寸示例 -->
|
|
104
|
+
<DemoBox :code="SizeBadgeRaw" title="不同尺寸">
|
|
105
|
+
<SizeBadge />
|
|
106
|
+
<template #description>
|
|
107
|
+
角标支持三种尺寸:small、medium 和 large。
|
|
108
|
+
</template>
|
|
109
|
+
</DemoBox>
|
|
110
|
+
|
|
111
|
+
<!-- 最大值限制示例 -->
|
|
112
|
+
<DemoBox :code="MaxBadgeRaw" title="最大值限制">
|
|
113
|
+
<MaxBadge />
|
|
114
|
+
<template #description>
|
|
115
|
+
通过 max 属性设置角标显示的最大值,超过最大值时显示 "最大值+"。
|
|
116
|
+
</template>
|
|
117
|
+
</DemoBox>
|
|
118
|
+
|
|
119
|
+
<!-- 显示/隐藏零示例 -->
|
|
120
|
+
<DemoBox :code="ShowZeroBadgeRaw" title="显示/隐藏零">
|
|
121
|
+
<ShowZeroBadge />
|
|
122
|
+
<template #description>
|
|
123
|
+
通过 showZero 属性控制当值为 0 时是否显示角标。
|
|
124
|
+
</template>
|
|
125
|
+
</DemoBox>
|
|
126
|
+
|
|
127
|
+
<!-- 点模式示例 -->
|
|
128
|
+
<DemoBox :code="DotBadgeRaw" title="点模式">
|
|
129
|
+
<DotBadge />
|
|
130
|
+
<template #description>
|
|
131
|
+
通过 dot 属性设置角标为点模式,只显示一个小点,不显示具体数值。
|
|
132
|
+
</template>
|
|
133
|
+
</DemoBox>
|
|
134
|
+
|
|
135
|
+
<APITable :data="apiData" />
|
|
136
|
+
</PageLayout>
|
|
137
|
+
</template>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { EBadge, EButton, ESvgIcon } from 'exploria-ui';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div class="demo-badge">
|
|
7
|
+
<EBadge dot>
|
|
8
|
+
<EButton>点模式</EButton>
|
|
9
|
+
</EBadge>
|
|
10
|
+
<EBadge dot type="success">
|
|
11
|
+
<EButton>成功点</EButton>
|
|
12
|
+
</EBadge>
|
|
13
|
+
<EBadge dot type="warning">
|
|
14
|
+
<EButton>警告点</EButton>
|
|
15
|
+
</EBadge>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<style scoped>
|
|
20
|
+
.demo-badge {
|
|
21
|
+
display: flex;
|
|
22
|
+
gap: 10px;
|
|
23
|
+
align-items: center;
|
|
24
|
+
flex-wrap: wrap;
|
|
25
|
+
|
|
26
|
+
.e-button {
|
|
27
|
+
margin-right: 10px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.e-svg-icon {
|
|
31
|
+
font-size: 24px;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
</style>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { EBadge, EButton } from 'exploria-ui';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div class="demo-badge">
|
|
7
|
+
<EBadge value="50" :max="50">
|
|
8
|
+
<EButton>50</EButton>
|
|
9
|
+
</EBadge>
|
|
10
|
+
<EBadge value="99" :max="99">
|
|
11
|
+
<EButton>99</EButton>
|
|
12
|
+
</EBadge>
|
|
13
|
+
<EBadge value="100" :max="99">
|
|
14
|
+
<EButton>100</EButton>
|
|
15
|
+
</EBadge>
|
|
16
|
+
<EBadge value="200" :max="99">
|
|
17
|
+
<EButton>200</EButton>
|
|
18
|
+
</EBadge>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<style scoped>
|
|
23
|
+
.demo-badge {
|
|
24
|
+
display: flex;
|
|
25
|
+
gap: 10px;
|
|
26
|
+
align-items: center;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
|
|
29
|
+
.e-button {
|
|
30
|
+
margin-right: 10px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
</style>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { EBadge, EButton } from 'exploria-ui';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div class="demo-badge">
|
|
7
|
+
<EBadge value="0">
|
|
8
|
+
<EButton>默认(隐藏0)</EButton>
|
|
9
|
+
</EBadge>
|
|
10
|
+
<EBadge value="0" show-zero>
|
|
11
|
+
<EButton>显示0</EButton>
|
|
12
|
+
</EBadge>
|
|
13
|
+
<EBadge value="5">
|
|
14
|
+
<EButton>显示5</EButton>
|
|
15
|
+
</EBadge>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<style scoped>
|
|
20
|
+
.demo-badge {
|
|
21
|
+
display: flex;
|
|
22
|
+
gap: 10px;
|
|
23
|
+
align-items: center;
|
|
24
|
+
flex-wrap: wrap;
|
|
25
|
+
|
|
26
|
+
.e-button {
|
|
27
|
+
margin-right: 10px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
</style>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { EBadge, EButton } from 'exploria-ui';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div class="demo-badge">
|
|
7
|
+
<EBadge value="5" size="small">
|
|
8
|
+
<EButton size="small">small</EButton>
|
|
9
|
+
</EBadge>
|
|
10
|
+
<EBadge value="10" size="medium">
|
|
11
|
+
<EButton size="medium">medium</EButton>
|
|
12
|
+
</EBadge>
|
|
13
|
+
<EBadge value="20" size="large">
|
|
14
|
+
<EButton size="large">large</EButton>
|
|
15
|
+
</EBadge>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<style scoped>
|
|
20
|
+
.demo-badge {
|
|
21
|
+
display: flex;
|
|
22
|
+
gap: 20px;
|
|
23
|
+
align-items: center;
|
|
24
|
+
|
|
25
|
+
.e-button {
|
|
26
|
+
margin-right: 10px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
</style>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { EBadge, EButton } from 'exploria-ui';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div class="demo-badge">
|
|
7
|
+
<EBadge value="5" type="primary">
|
|
8
|
+
<EButton>primary</EButton>
|
|
9
|
+
</EBadge>
|
|
10
|
+
<EBadge value="10" type="success">
|
|
11
|
+
<EButton>success</EButton>
|
|
12
|
+
</EBadge>
|
|
13
|
+
<EBadge value="20" type="danger">
|
|
14
|
+
<EButton>danger</EButton>
|
|
15
|
+
</EBadge>
|
|
16
|
+
<EBadge value="30" type="info">
|
|
17
|
+
<EButton>info</EButton>
|
|
18
|
+
</EBadge>
|
|
19
|
+
<EBadge value="40" type="warning">
|
|
20
|
+
<EButton>warning</EButton>
|
|
21
|
+
</EBadge>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<style scoped>
|
|
26
|
+
.demo-badge {
|
|
27
|
+
display: flex;
|
|
28
|
+
gap: 10px;
|
|
29
|
+
align-items: center;
|
|
30
|
+
flex-wrap: wrap;
|
|
31
|
+
|
|
32
|
+
.e-button {
|
|
33
|
+
margin-right: 10px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
</style>
|