exploria-ui-mcp-server 2.1.4 → 2.2.6
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/README.md +169 -109
- package/dist/index.js +3346 -2933
- package/dist/knowledge/vector-db.json +120728 -0
- package/package.json +5 -5
- package/dist/README.md +0 -633
- package/dist/components/advanced/e_parallax_scrolling/Document.vue +0 -23
- package/dist/components/advanced/e_parallax_scrolling/Using.vue +0 -20
- 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 +0 -21
- package/dist/components/advanced/e_rolling_follow/Using.vue +0 -54
- package/dist/components/advanced/e_virtual_list/ComprehensiveCase.vue +0 -209
- package/dist/components/advanced/e_virtual_list/Document.vue +0 -68
- package/dist/components/advanced/e_virtual_list/DynamicData.vue +0 -42
- package/dist/components/advanced/e_virtual_list/Using.vue +0 -32
- package/dist/components/advanced/e_virtual_list/iconfont/iconfont.css +0 -19
- 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 +0 -89
- package/dist/components/advanced/e_watermark/BasicUsing.vue +0 -9
- package/dist/components/advanced/e_watermark/CustomFont.vue +0 -73
- package/dist/components/advanced/e_watermark/CustomStyle.vue +0 -76
- package/dist/components/advanced/e_watermark/Dense.vue +0 -28
- package/dist/components/advanced/e_watermark/Document.vue +0 -197
- package/dist/components/advanced/e_watermark/HighZIndex.vue +0 -105
- package/dist/components/advanced/e_watermark/ImageWatermark.vue +0 -31
- package/dist/components/advanced/e_watermark/MultiLine.vue +0 -29
- package/dist/components/advanced/e_watermark/OpacityWatermark.vue +0 -73
- package/dist/components/ai/typing_effect/Document.vue +0 -47
- package/dist/components/ai/typing_effect/Using1.vue +0 -189
- package/dist/components/ai/typing_effect/Using2.vue +0 -167
- package/dist/components/basic/e_badge/BasicBadge.vue +0 -31
- package/dist/components/basic/e_badge/Document.vue +0 -137
- package/dist/components/basic/e_badge/DotBadge.vue +0 -35
- package/dist/components/basic/e_badge/MaxBadge.vue +0 -33
- package/dist/components/basic/e_badge/ShowZeroBadge.vue +0 -30
- package/dist/components/basic/e_badge/SizeBadge.vue +0 -29
- package/dist/components/basic/e_badge/TypeBadge.vue +0 -36
- package/dist/components/basic/e_button/CircleButtons.vue +0 -30
- package/dist/components/basic/e_button/DisabledButtons.vue +0 -30
- package/dist/components/basic/e_button/Document.vue +0 -171
- package/dist/components/basic/e_button/LoadingButtons.vue +0 -30
- package/dist/components/basic/e_button/NormalButtons.vue +0 -30
- package/dist/components/basic/e_button/PlainButtons.vue +0 -30
- package/dist/components/basic/e_button/RoundButtons.vue +0 -30
- package/dist/components/basic/e_button/RoundedRectangleButtons.vue +0 -35
- package/dist/components/basic/e_button/SizeButtons.vue +0 -19
- package/dist/components/basic/e_button/Using.vue +0 -89
- package/dist/components/basic/e_card/BasicCard.vue +0 -9
- package/dist/components/basic/e_card/BorderlessCard.vue +0 -8
- package/dist/components/basic/e_card/ComplexContentCard.vue +0 -92
- package/dist/components/basic/e_card/CustomHeaderCard.vue +0 -24
- package/dist/components/basic/e_card/Document.vue +0 -131
- package/dist/components/basic/e_card/FooterCard.vue +0 -12
- package/dist/components/basic/e_card/ShadowCard.vue +0 -30
- package/dist/components/basic/e_card/SizesCard.vue +0 -29
- package/dist/components/basic/e_svg_icon/Document.vue +0 -38
- package/dist/components/basic/e_svg_icon/Using.vue +0 -7
- package/dist/components/basic/e_underline/BaseUsing.vue +0 -13
- package/dist/components/basic/e_underline/Document.vue +0 -27
- package/dist/components/basic/e_underline/ImgUsing.vue +0 -36
- package/dist/components/data/e_calendar/Document.vue +0 -41
- package/dist/components/data/e_calendar/Using.vue +0 -9
- package/dist/components/data/e_calendar//346/227/245/345/216/206 +0 -0
- package/dist/components/data/e_carousel/Document.vue +0 -143
- package/dist/components/data/e_carousel/Using.vue +0 -20
- package/dist/components/data/e_carousel/Using1.vue +0 -23
- package/dist/components/data/e_carousel/Using2.vue +0 -17
- package/dist/components/data/e_carousel/Using3.vue +0 -17
- package/dist/components/data/e_collapse/Document.vue +0 -40
- package/dist/components/data/e_collapse/Using.vue +0 -9
- 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 +0 -71
- package/dist/components/data/e_image/Using.vue +0 -21
- package/dist/components/data/e_image/img.png +0 -0
- package/dist/components/data/e_list/BasicUsage.vue +0 -18
- package/dist/components/data/e_list/CustomCheckboxUsage.vue +0 -22
- package/dist/components/data/e_list/CustomEmptyDataUsage.vue +0 -38
- package/dist/components/data/e_list/CustomRowUsage.vue +0 -64
- package/dist/components/data/e_list/DividerUsage.vue +0 -20
- package/dist/components/data/e_list/Document.vue +0 -261
- package/dist/components/data/e_list/EmptyDataUsage.vue +0 -3
- package/dist/components/data/e_list/EventUsage.vue +0 -23
- package/dist/components/data/e_list/MultipleSelectUsage.vue +0 -22
- package/dist/components/data/e_list/SingleSelectUsage.vue +0 -21
- package/dist/components/data/e_list/SizeUsage.vue +0 -35
- package/dist/components/data/e_media_viewer/Document.vue +0 -39
- package/dist/components/data/e_media_viewer/Using.vue +0 -30
- package/dist/components/data/e_media_viewer/img.png +0 -0
- package/dist/components/data/e_progress/BasicProgress.vue +0 -21
- package/dist/components/data/e_progress/CircleProgress.vue +0 -23
- package/dist/components/data/e_progress/CustomColorProgress.vue +0 -63
- package/dist/components/data/e_progress/Document.vue +0 -179
- package/dist/components/data/e_progress/IndeterminateProgress.vue +0 -49
- package/dist/components/data/e_progress/ProgressSize.vue +0 -50
- package/dist/components/data/e_progress/ProgressStatus.vue +0 -21
- package/dist/components/data/e_progress/ProgressText.vue +0 -52
- package/dist/components/data/e_rolling_pagination/Document.vue +0 -21
- package/dist/components/data/e_rolling_pagination/Using.vue +0 -33
- 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 +0 -26
- package/dist/components/data/e_skeleton/Using.vue +0 -18
- package/dist/components/data/e_skeleton//351/252/250/346/236/266 +0 -0
- package/dist/components/data/e_table/Document.vue +0 -85
- package/dist/components/data/e_table/Using.vue +0 -131
- package/dist/components/data/e_timeline/Document.vue +0 -90
- package/dist/components/data/e_timeline/Using.vue +0 -124
- package/dist/components/feedback/e_dialog/AsyncUsing.vue +0 -30
- package/dist/components/feedback/e_dialog/BaseUsing.vue +0 -15
- package/dist/components/feedback/e_dialog/Document.vue +0 -26
- package/dist/components/feedback/e_drawer/BaseUsing.vue +0 -35
- package/dist/components/feedback/e_drawer/DirectionUsing.vue +0 -93
- package/dist/components/feedback/e_drawer/Document.vue +0 -153
- package/dist/components/feedback/e_drawer/LargeSizeDrawer.vue +0 -29
- package/dist/components/feedback/e_drawer/MediumSizeDrawer.vue +0 -29
- package/dist/components/feedback/e_drawer/SizeUsing.vue +0 -67
- package/dist/components/feedback/e_drawer/SmallSizeDrawer.vue +0 -29
- package/dist/components/feedback/e_message/Document.vue +0 -18
- package/dist/components/feedback/e_message/Using.vue +0 -16
- package/dist/components/feedback/e_message_box/BaseUsing.vue +0 -11
- package/dist/components/feedback/e_message_box/Document.vue +0 -18
- package/dist/components/feedback/e_message_box/intro.md +0 -12
- package/dist/components/feedback/e_notification/AllPositionsNotification.vue +0 -35
- package/dist/components/feedback/e_notification/BasicTypesNotification.vue +0 -47
- package/dist/components/feedback/e_notification/ClickableNotification.vue +0 -18
- package/dist/components/feedback/e_notification/Document.vue +0 -147
- package/dist/components/feedback/e_notification/ManualCloseNotification.vue +0 -17
- package/dist/components/feedback/e_notification/Using.vue +0 -253
- package/dist/components/feedback/e_popover/BasicUsage.vue +0 -51
- package/dist/components/feedback/e_popover/ContextmenuTrigger.vue +0 -27
- package/dist/components/feedback/e_popover/CustomContent.vue +0 -43
- package/dist/components/feedback/e_popover/CustomTrigger.vue +0 -39
- package/dist/components/feedback/e_popover/Document.vue +0 -84
- package/dist/components/feedback/e_popover/HoverTrigger.vue +0 -29
- package/dist/components/feedback/e_popover/SizeVariants.vue +0 -36
- package/dist/components/feedback/e_popover/Using.vue +0 -177
- package/dist/components/feedback/e_tooltip/Document.vue +0 -42
- package/dist/components/feedback/e_tooltip/SizeUsing.vue +0 -28
- package/dist/components/feedback/e_tooltip/Using.vue +0 -44
- package/dist/components/form/e_checkbox/Document.vue +0 -88
- package/dist/components/form/e_checkbox/Using.vue +0 -10
- package/dist/components/form/e_color_picker/Document.vue +0 -55
- package/dist/components/form/e_color_picker/Using.vue +0 -10
- package/dist/components/form/e_condition_group/Document.vue +0 -52
- package/dist/components/form/e_condition_group/Using.vue +0 -165
- package/dist/components/form/e_file_selector/Document.vue +0 -50
- package/dist/components/form/e_file_selector/Using.vue +0 -44
- package/dist/components/form/e_form/BaseUsage.vue +0 -155
- package/dist/components/form/e_form/Document.vue +0 -93
- package/dist/components/form/e_form/LoginForm.vue +0 -150
- package/dist/components/form/e_form/RegisterForm.vue +0 -46
- package/dist/components/form/e_form/iconfont/iconfont.css +0 -67
- 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 +0 -16
- package/dist/components/form/e_input/Clearable.vue +0 -24
- package/dist/components/form/e_input/Document.vue +0 -111
- package/dist/components/form/e_input/Number.vue +0 -10
- package/dist/components/form/e_input/Password.vue +0 -52
- package/dist/components/form/e_input/iconfont/iconfont.css +0 -67
- 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 +0 -88
- package/dist/components/form/e_radio/Using.vue +0 -14
- package/dist/components/form/e_select/Document.vue +0 -32
- package/dist/components/form/e_select/Using.vue +0 -24
- 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 +0 -10
- package/dist/components/form/e_slider/CustomRange.vue +0 -21
- package/dist/components/form/e_slider/Disabled.vue +0 -10
- package/dist/components/form/e_slider/Document.vue +0 -55
- package/dist/components/form/e_slider/ShowValue.vue +0 -10
- package/dist/components/form/e_slider/Sizes.vue +0 -47
- package/dist/components/form/e_time_picker/Document.vue +0 -58
- package/dist/components/form/e_time_picker/Using.vue +0 -13
- package/dist/components/geometry/css_3d/Document.vue +0 -17
- package/dist/components/geometry/css_3d/Using.vue +0 -9
- package/dist/components/layout/e_scroll_x/Document.vue +0 -39
- package/dist/components/layout/e_scroll_x/Using.vue +0 -38
- package/dist/components/navigation/e_dropdown/BasicUsage.vue +0 -64
- package/dist/components/navigation/e_dropdown/Contextmenu.vue +0 -41
- package/dist/components/navigation/e_dropdown/Document.vue +0 -72
- package/dist/components/navigation/e_dropdown/HoverTrigger.vue +0 -66
- package/dist/components/navigation/e_dropdown/NestedDropdown.vue +0 -143
- package/dist/components/navigation/e_tabs/Document.vue +0 -33
- package/dist/components/navigation/e_tabs/Using.vue +0 -40
- package/dist/directives/e_uuid_util/Document.vue +0 -15
- package/dist/directives/e_uuid_util/Using.vue +0 -13
- package/dist/other/advanced/gsap/BasicUsing.vue +0 -26
- package/dist/other/advanced/gsap/Document.vue +0 -45
- package/dist/other/advanced/gsap/GSAP/345/212/250/347/224/273 +0 -0
- package/dist/other/advanced/gsap/ScrollTrigger.vue +0 -195
- package/dist/other/advanced/gsap/ScrollX.vue +0 -81
- package/dist/other/advanced/gsap/Timeline.vue +0 -30
- package/dist/other/advanced/lottie/BasicUsing.vue +0 -33
- package/dist/other/advanced/lottie/Document.vue +0 -30
- package/dist/other/advanced/lottie/Lottie /345/212/250/347/224/273 +0 -0
- package/dist/other/advanced/rich_text_editor/Document.vue +0 -24
- package/dist/other/advanced/rich_text_editor/RichTextEditor.vue +0 -105
- package/dist/other/advanced/rich_text_editor/wangeditor_style.css +0 -684
- package/dist/other/advanced/sortablejs/Document.vue +0 -32
- package/dist/other/advanced/sortablejs/ShuttleFrame.vue +0 -181
- package/dist/other/advanced/sortablejs/Using.vue +0 -68
- 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 +0 -17
- package/dist/other/advanced/spelling/Using.vue +0 -104
- package/dist/other/advanced/svg/BasicUsing.vue +0 -12
- package/dist/other/advanced/svg/Document.vue +0 -24
- package/dist/other/advanced/svg/FeDisplacementMap/FeDisplacementMap.vue +0 -30
- package/dist/other/advanced/svg/FeDisplacementMap/example/Image.vue +0 -41
- 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 +0 -28
- package/dist/other/advanced/svg/FeTurbulence/example/Image.vue +0 -41
- 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 +0 -15
- package/dist/other/canvas/base/Using.vue +0 -125
- package/dist/other/canvas/burrow/Clip.vue +0 -66
- package/dist/other/canvas/burrow/Document.vue +0 -36
- package/dist/other/canvas/burrow/Erase.vue +0 -58
- package/dist/other/canvas/burrow/NonZeroSurroundRule.vue +0 -70
- package/dist/other/canvas/clip/Clip.vue +0 -58
- package/dist/other/canvas/clip/Document.vue +0 -26
- package/dist/other/canvas/definition/Document.vue +0 -26
- package/dist/other/canvas/definition/Using.vue +0 -60
- package/dist/other/echarts/basic/Document.vue +0 -36
- package/dist/other/echarts/basic/Label.vue +0 -98
- package/dist/other/echarts/data_zoom/Document.vue +0 -38
- package/dist/other/echarts/data_zoom/Using.vue +0 -119
- package/dist/other/echarts/data_zoom/img.svg +0 -33
- package/dist/other/echarts/gauge/Document.vue +0 -38
- package/dist/other/echarts/gauge/Gauge.vue +0 -340
- package/dist/other/echarts/gauge//344/273/252/350/241/250/347/233/230 +0 -0
- package/dist/other/echarts/liquidfill/Document.vue +0 -46
- package/dist/other/echarts/liquidfill/Using.vue +0 -239
- package/dist/other/git/sample_set/Document.vue +0 -43
- 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 +0 -104
- package/dist/other/layout/flex/Advanced2.vue +0 -181
- package/dist/other/layout/flex/Base.vue +0 -48
- package/dist/other/layout/flex/Document.vue +0 -57
- package/dist/other/layout/flex/Grid.vue +0 -54
- package/dist/other/layout/flex/Height100.vue +0 -35
- package/dist/other/layout/flex/intro.md +0 -1
- package/dist/other/layout/grid/Base.vue +0 -29
- package/dist/other/layout/grid/Document.vue +0 -54
- package/dist/other/layout/grid/Grid.vue +0 -28
- package/dist/other/layout/grid/Height100.vue +0 -35
- package/dist/other/layout/grid/intro.md +0 -1
- package/dist/other/navigation/new_tab_page/Document.vue +0 -18
- package/dist/other/navigation/new_tab_page/OpenNewTabPage.vue +0 -7
- package/dist/other/navigation/new_tab_page/new-tab-page-demo.html +0 -450
- package/dist/other/network/sse/Document.vue +0 -21
- package/dist/other/network/sse/Using.vue +0 -24
- package/dist/other/network/sse/server/app.ts +0 -62
- package/dist/other/network/sse/server/static/text.md +0 -99
- package/dist/other/network/sse/server/utils/sleep.ts +0 -5
- package/dist/other/observer/mutation_observer/Document.vue +0 -15
- package/dist/other/observer/mutation_observer/Using.vue +0 -46
- package/dist/other/optimize/Document.vue +0 -19
- package/dist/other/optimize/HeavyComp.vue +0 -19
- package/dist/other/optimize/Using.vue +0 -14
- package/dist/other/optimize/useDefer.ts +0 -28
- package/dist/other/svg/base/BasicUsing.vue +0 -12
- package/dist/other/svg/base/Document.vue +0 -24
- package/dist/other/svg/base/FeDisplacementMap/FeDisplacementMap.vue +0 -30
- package/dist/other/svg/base/FeDisplacementMap/example/Image.vue +0 -41
- 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 +0 -28
- package/dist/other/svg/base/FeTurbulence/example/Image.vue +0 -41
- 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 +0 -17
- package/dist/other/threejs/base/Using.vue +0 -127
- package/dist/other/threejs/controller_sync/Document.vue +0 -15
- package/dist/other/threejs/controller_sync/Using.vue +0 -347
- 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 +0 -17
- package/dist/other/threejs/phoenix/Using.vue +0 -79
- package/dist/other/vue/life_cycle/Child.vue +0 -43
- package/dist/other/vue/life_cycle/Document.vue +0 -15
- package/dist/other/vue/life_cycle/Using.vue +0 -16
- package/dist/utils/e_echarts_util/Document.vue +0 -14
- package/dist/utils/e_echarts_util/Using.vue +0 -81
- package/dist/utils/e_image_util/Document.vue +0 -15
- package/dist/utils/e_image_util/Using.vue +0 -24
- package/dist/utils/e_image_util/author_avatar.png +0 -0
- package/dist/utils/e_uuid_util/Document.vue +0 -15
- package/dist/utils/e_uuid_util/Using.vue +0 -13
- package/dist/utils/type_utils/Document.vue +0 -16
- package/dist/utils/type_utils/TupleType.vue +0 -16
- package/public/README.md +0 -633
- package/public/components/advanced/e_parallax_scrolling/Document.vue +0 -23
- package/public/components/advanced/e_parallax_scrolling/Using.vue +0 -20
- 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 +0 -21
- package/public/components/advanced/e_rolling_follow/Using.vue +0 -54
- package/public/components/advanced/e_virtual_list/ComprehensiveCase.vue +0 -209
- package/public/components/advanced/e_virtual_list/Document.vue +0 -68
- package/public/components/advanced/e_virtual_list/DynamicData.vue +0 -42
- package/public/components/advanced/e_virtual_list/Using.vue +0 -32
- package/public/components/advanced/e_virtual_list/iconfont/iconfont.css +0 -19
- 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 +0 -89
- package/public/components/advanced/e_watermark/BasicUsing.vue +0 -9
- package/public/components/advanced/e_watermark/CustomFont.vue +0 -73
- package/public/components/advanced/e_watermark/CustomStyle.vue +0 -76
- package/public/components/advanced/e_watermark/Dense.vue +0 -28
- package/public/components/advanced/e_watermark/Document.vue +0 -197
- package/public/components/advanced/e_watermark/HighZIndex.vue +0 -105
- package/public/components/advanced/e_watermark/ImageWatermark.vue +0 -31
- package/public/components/advanced/e_watermark/MultiLine.vue +0 -29
- package/public/components/advanced/e_watermark/OpacityWatermark.vue +0 -73
- package/public/components/ai/typing_effect/Document.vue +0 -47
- package/public/components/ai/typing_effect/Using1.vue +0 -189
- package/public/components/ai/typing_effect/Using2.vue +0 -167
- package/public/components/basic/e_badge/BasicBadge.vue +0 -31
- package/public/components/basic/e_badge/Document.vue +0 -137
- package/public/components/basic/e_badge/DotBadge.vue +0 -35
- package/public/components/basic/e_badge/MaxBadge.vue +0 -33
- package/public/components/basic/e_badge/ShowZeroBadge.vue +0 -30
- package/public/components/basic/e_badge/SizeBadge.vue +0 -29
- package/public/components/basic/e_badge/TypeBadge.vue +0 -36
- package/public/components/basic/e_button/CircleButtons.vue +0 -30
- package/public/components/basic/e_button/DisabledButtons.vue +0 -30
- package/public/components/basic/e_button/Document.vue +0 -171
- package/public/components/basic/e_button/LoadingButtons.vue +0 -30
- package/public/components/basic/e_button/NormalButtons.vue +0 -30
- package/public/components/basic/e_button/PlainButtons.vue +0 -30
- package/public/components/basic/e_button/RoundButtons.vue +0 -30
- package/public/components/basic/e_button/RoundedRectangleButtons.vue +0 -35
- package/public/components/basic/e_button/SizeButtons.vue +0 -19
- package/public/components/basic/e_button/Using.vue +0 -89
- package/public/components/basic/e_card/BasicCard.vue +0 -9
- package/public/components/basic/e_card/BorderlessCard.vue +0 -8
- package/public/components/basic/e_card/ComplexContentCard.vue +0 -92
- package/public/components/basic/e_card/CustomHeaderCard.vue +0 -24
- package/public/components/basic/e_card/Document.vue +0 -131
- package/public/components/basic/e_card/FooterCard.vue +0 -12
- package/public/components/basic/e_card/ShadowCard.vue +0 -30
- package/public/components/basic/e_card/SizesCard.vue +0 -29
- package/public/components/basic/e_svg_icon/Document.vue +0 -38
- package/public/components/basic/e_svg_icon/Using.vue +0 -7
- package/public/components/basic/e_underline/BaseUsing.vue +0 -13
- package/public/components/basic/e_underline/Document.vue +0 -27
- package/public/components/basic/e_underline/ImgUsing.vue +0 -36
- package/public/components/data/e_calendar/Document.vue +0 -41
- package/public/components/data/e_calendar/Using.vue +0 -9
- package/public/components/data/e_calendar//346/227/245/345/216/206 +0 -0
- package/public/components/data/e_carousel/Document.vue +0 -143
- package/public/components/data/e_carousel/Using.vue +0 -20
- package/public/components/data/e_carousel/Using1.vue +0 -23
- package/public/components/data/e_carousel/Using2.vue +0 -17
- package/public/components/data/e_carousel/Using3.vue +0 -17
- package/public/components/data/e_collapse/Document.vue +0 -40
- package/public/components/data/e_collapse/Using.vue +0 -9
- 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 +0 -71
- package/public/components/data/e_image/Using.vue +0 -21
- package/public/components/data/e_image/img.png +0 -0
- package/public/components/data/e_list/BasicUsage.vue +0 -18
- package/public/components/data/e_list/CustomCheckboxUsage.vue +0 -22
- package/public/components/data/e_list/CustomEmptyDataUsage.vue +0 -38
- package/public/components/data/e_list/CustomRowUsage.vue +0 -64
- package/public/components/data/e_list/DividerUsage.vue +0 -20
- package/public/components/data/e_list/Document.vue +0 -261
- package/public/components/data/e_list/EmptyDataUsage.vue +0 -3
- package/public/components/data/e_list/EventUsage.vue +0 -23
- package/public/components/data/e_list/MultipleSelectUsage.vue +0 -22
- package/public/components/data/e_list/SingleSelectUsage.vue +0 -21
- package/public/components/data/e_list/SizeUsage.vue +0 -35
- package/public/components/data/e_media_viewer/Document.vue +0 -39
- package/public/components/data/e_media_viewer/Using.vue +0 -30
- package/public/components/data/e_media_viewer/img.png +0 -0
- package/public/components/data/e_progress/BasicProgress.vue +0 -21
- package/public/components/data/e_progress/CircleProgress.vue +0 -23
- package/public/components/data/e_progress/CustomColorProgress.vue +0 -63
- package/public/components/data/e_progress/Document.vue +0 -179
- package/public/components/data/e_progress/IndeterminateProgress.vue +0 -49
- package/public/components/data/e_progress/ProgressSize.vue +0 -50
- package/public/components/data/e_progress/ProgressStatus.vue +0 -21
- package/public/components/data/e_progress/ProgressText.vue +0 -52
- package/public/components/data/e_rolling_pagination/Document.vue +0 -21
- package/public/components/data/e_rolling_pagination/Using.vue +0 -33
- 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 +0 -26
- package/public/components/data/e_skeleton/Using.vue +0 -18
- package/public/components/data/e_skeleton//351/252/250/346/236/266 +0 -0
- package/public/components/data/e_table/Document.vue +0 -85
- package/public/components/data/e_table/Using.vue +0 -131
- package/public/components/data/e_timeline/Document.vue +0 -90
- package/public/components/data/e_timeline/Using.vue +0 -124
- package/public/components/feedback/e_dialog/AsyncUsing.vue +0 -30
- package/public/components/feedback/e_dialog/BaseUsing.vue +0 -15
- package/public/components/feedback/e_dialog/Document.vue +0 -26
- package/public/components/feedback/e_drawer/BaseUsing.vue +0 -35
- package/public/components/feedback/e_drawer/DirectionUsing.vue +0 -93
- package/public/components/feedback/e_drawer/Document.vue +0 -153
- package/public/components/feedback/e_drawer/LargeSizeDrawer.vue +0 -29
- package/public/components/feedback/e_drawer/MediumSizeDrawer.vue +0 -29
- package/public/components/feedback/e_drawer/SizeUsing.vue +0 -67
- package/public/components/feedback/e_drawer/SmallSizeDrawer.vue +0 -29
- package/public/components/feedback/e_message/Document.vue +0 -18
- package/public/components/feedback/e_message/Using.vue +0 -16
- package/public/components/feedback/e_message_box/BaseUsing.vue +0 -11
- package/public/components/feedback/e_message_box/Document.vue +0 -18
- package/public/components/feedback/e_message_box/intro.md +0 -12
- package/public/components/feedback/e_notification/AllPositionsNotification.vue +0 -35
- package/public/components/feedback/e_notification/BasicTypesNotification.vue +0 -47
- package/public/components/feedback/e_notification/ClickableNotification.vue +0 -18
- package/public/components/feedback/e_notification/Document.vue +0 -147
- package/public/components/feedback/e_notification/ManualCloseNotification.vue +0 -17
- package/public/components/feedback/e_notification/Using.vue +0 -253
- package/public/components/feedback/e_popover/BasicUsage.vue +0 -51
- package/public/components/feedback/e_popover/ContextmenuTrigger.vue +0 -27
- package/public/components/feedback/e_popover/CustomContent.vue +0 -43
- package/public/components/feedback/e_popover/CustomTrigger.vue +0 -39
- package/public/components/feedback/e_popover/Document.vue +0 -84
- package/public/components/feedback/e_popover/HoverTrigger.vue +0 -29
- package/public/components/feedback/e_popover/SizeVariants.vue +0 -36
- package/public/components/feedback/e_popover/Using.vue +0 -177
- package/public/components/feedback/e_tooltip/Document.vue +0 -42
- package/public/components/feedback/e_tooltip/SizeUsing.vue +0 -28
- package/public/components/feedback/e_tooltip/Using.vue +0 -44
- package/public/components/form/e_checkbox/Document.vue +0 -88
- package/public/components/form/e_checkbox/Using.vue +0 -10
- package/public/components/form/e_color_picker/Document.vue +0 -55
- package/public/components/form/e_color_picker/Using.vue +0 -10
- package/public/components/form/e_condition_group/Document.vue +0 -52
- package/public/components/form/e_condition_group/Using.vue +0 -165
- package/public/components/form/e_file_selector/Document.vue +0 -50
- package/public/components/form/e_file_selector/Using.vue +0 -44
- package/public/components/form/e_form/BaseUsage.vue +0 -155
- package/public/components/form/e_form/Document.vue +0 -93
- package/public/components/form/e_form/LoginForm.vue +0 -150
- package/public/components/form/e_form/RegisterForm.vue +0 -46
- package/public/components/form/e_form/iconfont/iconfont.css +0 -67
- 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 +0 -16
- package/public/components/form/e_input/Clearable.vue +0 -24
- package/public/components/form/e_input/Document.vue +0 -111
- package/public/components/form/e_input/Number.vue +0 -10
- package/public/components/form/e_input/Password.vue +0 -52
- package/public/components/form/e_input/iconfont/iconfont.css +0 -67
- 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 +0 -88
- package/public/components/form/e_radio/Using.vue +0 -14
- package/public/components/form/e_select/Document.vue +0 -32
- package/public/components/form/e_select/Using.vue +0 -24
- 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 +0 -10
- package/public/components/form/e_slider/CustomRange.vue +0 -21
- package/public/components/form/e_slider/Disabled.vue +0 -10
- package/public/components/form/e_slider/Document.vue +0 -55
- package/public/components/form/e_slider/ShowValue.vue +0 -10
- package/public/components/form/e_slider/Sizes.vue +0 -47
- package/public/components/form/e_time_picker/Document.vue +0 -58
- package/public/components/form/e_time_picker/Using.vue +0 -13
- package/public/components/geometry/css_3d/Document.vue +0 -17
- package/public/components/geometry/css_3d/Using.vue +0 -9
- package/public/components/layout/e_scroll_x/Document.vue +0 -39
- package/public/components/layout/e_scroll_x/Using.vue +0 -38
- package/public/components/navigation/e_dropdown/BasicUsage.vue +0 -64
- package/public/components/navigation/e_dropdown/Contextmenu.vue +0 -41
- package/public/components/navigation/e_dropdown/Document.vue +0 -72
- package/public/components/navigation/e_dropdown/HoverTrigger.vue +0 -66
- package/public/components/navigation/e_dropdown/NestedDropdown.vue +0 -143
- package/public/components/navigation/e_tabs/Document.vue +0 -33
- package/public/components/navigation/e_tabs/Using.vue +0 -40
- package/public/directives/e_uuid_util/Document.vue +0 -15
- package/public/directives/e_uuid_util/Using.vue +0 -13
- package/public/other/advanced/gsap/BasicUsing.vue +0 -26
- package/public/other/advanced/gsap/Document.vue +0 -45
- package/public/other/advanced/gsap/GSAP/345/212/250/347/224/273 +0 -0
- package/public/other/advanced/gsap/ScrollTrigger.vue +0 -195
- package/public/other/advanced/gsap/ScrollX.vue +0 -81
- package/public/other/advanced/gsap/Timeline.vue +0 -30
- package/public/other/advanced/lottie/BasicUsing.vue +0 -33
- package/public/other/advanced/lottie/Document.vue +0 -30
- package/public/other/advanced/lottie/Lottie /345/212/250/347/224/273 +0 -0
- package/public/other/advanced/rich_text_editor/Document.vue +0 -24
- package/public/other/advanced/rich_text_editor/RichTextEditor.vue +0 -105
- package/public/other/advanced/rich_text_editor/wangeditor_style.css +0 -684
- package/public/other/advanced/sortablejs/Document.vue +0 -32
- package/public/other/advanced/sortablejs/ShuttleFrame.vue +0 -181
- package/public/other/advanced/sortablejs/Using.vue +0 -68
- 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 +0 -17
- package/public/other/advanced/spelling/Using.vue +0 -104
- package/public/other/advanced/svg/BasicUsing.vue +0 -12
- package/public/other/advanced/svg/Document.vue +0 -24
- package/public/other/advanced/svg/FeDisplacementMap/FeDisplacementMap.vue +0 -30
- package/public/other/advanced/svg/FeDisplacementMap/example/Image.vue +0 -41
- 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 +0 -28
- package/public/other/advanced/svg/FeTurbulence/example/Image.vue +0 -41
- 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 +0 -15
- package/public/other/canvas/base/Using.vue +0 -125
- package/public/other/canvas/burrow/Clip.vue +0 -66
- package/public/other/canvas/burrow/Document.vue +0 -36
- package/public/other/canvas/burrow/Erase.vue +0 -58
- package/public/other/canvas/burrow/NonZeroSurroundRule.vue +0 -70
- package/public/other/canvas/clip/Clip.vue +0 -58
- package/public/other/canvas/clip/Document.vue +0 -26
- package/public/other/canvas/definition/Document.vue +0 -26
- package/public/other/canvas/definition/Using.vue +0 -60
- package/public/other/echarts/basic/Document.vue +0 -36
- package/public/other/echarts/basic/Label.vue +0 -98
- package/public/other/echarts/data_zoom/Document.vue +0 -38
- package/public/other/echarts/data_zoom/Using.vue +0 -119
- package/public/other/echarts/data_zoom/img.svg +0 -33
- package/public/other/echarts/gauge/Document.vue +0 -38
- package/public/other/echarts/gauge/Gauge.vue +0 -340
- package/public/other/echarts/gauge//344/273/252/350/241/250/347/233/230 +0 -0
- package/public/other/echarts/liquidfill/Document.vue +0 -46
- package/public/other/echarts/liquidfill/Using.vue +0 -239
- package/public/other/git/sample_set/Document.vue +0 -43
- 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 +0 -104
- package/public/other/layout/flex/Advanced2.vue +0 -181
- package/public/other/layout/flex/Base.vue +0 -48
- package/public/other/layout/flex/Document.vue +0 -57
- package/public/other/layout/flex/Grid.vue +0 -54
- package/public/other/layout/flex/Height100.vue +0 -35
- package/public/other/layout/flex/intro.md +0 -1
- package/public/other/layout/grid/Base.vue +0 -29
- package/public/other/layout/grid/Document.vue +0 -54
- package/public/other/layout/grid/Grid.vue +0 -28
- package/public/other/layout/grid/Height100.vue +0 -35
- package/public/other/layout/grid/intro.md +0 -1
- package/public/other/navigation/new_tab_page/Document.vue +0 -18
- package/public/other/navigation/new_tab_page/OpenNewTabPage.vue +0 -7
- package/public/other/navigation/new_tab_page/new-tab-page-demo.html +0 -450
- package/public/other/network/sse/Document.vue +0 -21
- package/public/other/network/sse/Using.vue +0 -24
- package/public/other/network/sse/server/app.ts +0 -62
- package/public/other/network/sse/server/static/text.md +0 -99
- package/public/other/network/sse/server/utils/sleep.ts +0 -5
- package/public/other/observer/mutation_observer/Document.vue +0 -15
- package/public/other/observer/mutation_observer/Using.vue +0 -46
- package/public/other/optimize/Document.vue +0 -19
- package/public/other/optimize/HeavyComp.vue +0 -19
- package/public/other/optimize/Using.vue +0 -14
- package/public/other/optimize/useDefer.ts +0 -28
- package/public/other/svg/base/BasicUsing.vue +0 -12
- package/public/other/svg/base/Document.vue +0 -24
- package/public/other/svg/base/FeDisplacementMap/FeDisplacementMap.vue +0 -30
- package/public/other/svg/base/FeDisplacementMap/example/Image.vue +0 -41
- 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 +0 -28
- package/public/other/svg/base/FeTurbulence/example/Image.vue +0 -41
- 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 +0 -17
- package/public/other/threejs/base/Using.vue +0 -127
- package/public/other/threejs/controller_sync/Document.vue +0 -15
- package/public/other/threejs/controller_sync/Using.vue +0 -347
- 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 +0 -17
- package/public/other/threejs/phoenix/Using.vue +0 -79
- package/public/other/vue/life_cycle/Child.vue +0 -43
- package/public/other/vue/life_cycle/Document.vue +0 -15
- package/public/other/vue/life_cycle/Using.vue +0 -16
- package/public/utils/e_echarts_util/Document.vue +0 -14
- package/public/utils/e_echarts_util/Using.vue +0 -81
- package/public/utils/e_image_util/Document.vue +0 -15
- package/public/utils/e_image_util/Using.vue +0 -24
- package/public/utils/e_image_util/author_avatar.png +0 -0
- package/public/utils/e_uuid_util/Document.vue +0 -15
- package/public/utils/e_uuid_util/Using.vue +0 -13
- package/public/utils/type_utils/Document.vue +0 -16
- package/public/utils/type_utils/TupleType.vue +0 -16
|
@@ -1,189 +0,0 @@
|
|
|
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>
|
|
@@ -1,167 +0,0 @@
|
|
|
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>
|
|
@@ -1,31 +0,0 @@
|
|
|
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>
|
|
@@ -1,137 +0,0 @@
|
|
|
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>
|
|
@@ -1,35 +0,0 @@
|
|
|
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>
|
|
@@ -1,33 +0,0 @@
|
|
|
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>
|
|
@@ -1,30 +0,0 @@
|
|
|
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>
|
|
@@ -1,29 +0,0 @@
|
|
|
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>
|
|
@@ -1,36 +0,0 @@
|
|
|
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>
|