@oinone/kunlun-vue-admin-layout 6.2.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/README.md +1 -0
- package/dist/oinone-kunlun-vue-admin-layout.css +1 -0
- package/dist/oinone-kunlun-vue-admin-layout.esm.js +12049 -0
- package/dist/oinone-kunlun-vue-admin-layout.scss +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/src/basic/MaskWidget.d.ts +17 -0
- package/dist/types/src/basic/index.d.ts +2 -0
- package/dist/types/src/basic/register/index.d.ts +1 -0
- package/dist/types/src/basic/register/manager.d.ts +7 -0
- package/dist/types/src/basic/token/BaseMaskWidget.d.ts +55 -0
- package/dist/types/src/basic/token/index.d.ts +1 -0
- package/dist/types/src/component/app-switcher/AppSwitcher.vue.d.ts +84 -0
- package/dist/types/src/component/app-switcher/AppSwitcherMask.vue.d.ts +61 -0
- package/dist/types/src/component/app-switcher/AppSwitcherWidget.d.ts +33 -0
- package/dist/types/src/component/app-switcher/index.d.ts +3 -0
- package/dist/types/src/component/breadcrumb/BreadcrumbWidget.d.ts +33 -0
- package/dist/types/src/component/breadcrumb/DefaultBreadcrumb.vue.d.ts +58 -0
- package/dist/types/src/component/breadcrumb/index.d.ts +2 -0
- package/dist/types/src/component/debug/Debug.vue.d.ts +11 -0
- package/dist/types/src/component/debug/DebugWidget.d.ts +8 -0
- package/dist/types/src/component/debug/constants.d.ts +2 -0
- package/dist/types/src/component/debug/index.d.ts +6 -0
- package/dist/types/src/component/debug/spi/DebugMaskEditor.d.ts +6 -0
- package/dist/types/src/component/debug/spi/DebugRouterInitializeService.d.ts +4 -0
- package/dist/types/src/component/debug/spi/index.d.ts +1 -0
- package/dist/types/src/component/debug/typing.d.ts +159 -0
- package/dist/types/src/component/debug/view/DebugMainView.vue.d.ts +28 -0
- package/dist/types/src/component/debug/view/DebugMainViewWidget.d.ts +9 -0
- package/dist/types/src/component/debug/view/components/DebugDefaultInfo.vue.d.ts +22 -0
- package/dist/types/src/component/debug/view/components/DebugJsonView.vue.d.ts +26 -0
- package/dist/types/src/component/debug/view/components/DebugRequestInfoPanel.vue.d.ts +22 -0
- package/dist/types/src/component/debug/view/components/DebugResponsePanel.vue.d.ts +12 -0
- package/dist/types/src/component/debug/view/debug-api/DebugApi.vue.d.ts +52 -0
- package/dist/types/src/component/debug/view/debug-api/DebugApiWidget.d.ts +32 -0
- package/dist/types/src/component/debug/view/debug-utils.d.ts +44 -0
- package/dist/types/src/component/debug/view/debug-view/DebugView.vue.d.ts +78 -0
- package/dist/types/src/component/debug/view/debug-view/DebugViewWidget.d.ts +26 -0
- package/dist/types/src/component/debug/view/index.d.ts +5 -0
- package/dist/types/src/component/debug/view/service/DebugRuntimeContextService.d.ts +18 -0
- package/dist/types/src/component/debug/view/service/DebugStackInfoService.d.ts +27 -0
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugDefaultRuntimeContextService.d.ts +6 -0
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeActionService.d.ts +7 -0
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeDslService.d.ts +6 -0
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeFieldService.d.ts +7 -0
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeLayoutService.d.ts +6 -0
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeMaskService.d.ts +6 -0
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeTemplateService.d.ts +6 -0
- package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeViewService.d.ts +6 -0
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugBizStackService.d.ts +6 -0
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugConfigureService.d.ts +4 -0
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugDefaultStackInfoService.d.ts +8 -0
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugExceptionStackService.d.ts +6 -0
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugFunctionService.d.ts +4 -0
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugHalfBizStackService.d.ts +6 -0
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugModelService.d.ts +4 -0
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugPureBizStackService.d.ts +6 -0
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugStacktraceGqlRequestContextService.d.ts +6 -0
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugStacktraceSceneAnalysisService.d.ts +7 -0
- package/dist/types/src/component/debug/view/service/impl/stack-info/DebugStacktraceSessionService.d.ts +6 -0
- package/dist/types/src/component/debug/view/service/index.d.ts +20 -0
- package/dist/types/src/component/debug/view/storage.d.ts +19 -0
- package/dist/types/src/component/debug/view/useDebugRequestInfo.d.ts +7 -0
- package/dist/types/src/component/divider/Divider.vue.d.ts +2 -0
- package/dist/types/src/component/divider/DividerWidget.d.ts +4 -0
- package/dist/types/src/component/divider/index.d.ts +1 -0
- package/dist/types/src/component/index.d.ts +14 -0
- package/dist/types/src/component/language/DefaultLanguage.vue.d.ts +34 -0
- package/dist/types/src/component/language/LanguageWidget.d.ts +16 -0
- package/dist/types/src/component/language/index.d.ts +1 -0
- package/dist/types/src/component/layout/BaseMaskLayoutWidget.d.ts +4 -0
- package/dist/types/src/component/layout/MaskBlock.vue.d.ts +24 -0
- package/dist/types/src/component/layout/block/MaskBlockWidget.d.ts +4 -0
- package/dist/types/src/component/layout/block/index.d.ts +1 -0
- package/dist/types/src/component/layout/container/MaskContainerWidget.d.ts +4 -0
- package/dist/types/src/component/layout/container/index.d.ts +1 -0
- package/dist/types/src/component/layout/content/MaskContentWidget.d.ts +7 -0
- package/dist/types/src/component/layout/content/index.d.ts +1 -0
- package/dist/types/src/component/layout/grid/Grid.vue.d.ts +2 -0
- package/dist/types/src/component/layout/grid/GridWidget.d.ts +9 -0
- package/dist/types/src/component/layout/grid/index.d.ts +1 -0
- package/dist/types/src/component/layout/header/MaskHeaderWidget.d.ts +4 -0
- package/dist/types/src/component/layout/header/index.d.ts +1 -0
- package/dist/types/src/component/layout/index.d.ts +9 -0
- package/dist/types/src/component/layout/mask/MaskRootWidget.d.ts +4 -0
- package/dist/types/src/component/layout/mask/index.d.ts +1 -0
- package/dist/types/src/component/layout/sidebar/MaskSidebarWidget.d.ts +10 -0
- package/dist/types/src/component/layout/sidebar/index.d.ts +1 -0
- package/dist/types/src/component/layout/widget/MaskCommonWidget.d.ts +14 -0
- package/dist/types/src/component/layout/widget/index.d.ts +1 -0
- package/dist/types/src/component/menu/DefaultMenu.vue.d.ts +115 -0
- package/dist/types/src/component/menu/DefaultSubMenu.vue.d.ts +17 -0
- package/dist/types/src/component/menu/MenuWidget.d.ts +71 -0
- package/dist/types/src/component/menu/index.d.ts +3 -0
- package/dist/types/src/component/multi-tabs/MultiTabs.vue.d.ts +151 -0
- package/dist/types/src/component/multi-tabs/MultiTabsWidget.d.ts +60 -0
- package/dist/types/src/component/multi-tabs/index.d.ts +2 -0
- package/dist/types/src/component/multi-tabs/typing.d.ts +6 -0
- package/dist/types/src/component/notification/DefaultNotification.vue.d.ts +61 -0
- package/dist/types/src/component/notification/NotificationWidget.d.ts +139 -0
- package/dist/types/src/component/notification/index.d.ts +2 -0
- package/dist/types/src/component/order-statistic/OrderStatistic.vue.d.ts +8 -0
- package/dist/types/src/component/order-statistic/index.d.ts +14 -0
- package/dist/types/src/component/partner-switcher/PartnerSwitcher.vue.d.ts +28 -0
- package/dist/types/src/component/partner-switcher/PartnerSwitcherWidget.d.ts +15 -0
- package/dist/types/src/component/partner-switcher/index.d.ts +6 -0
- package/dist/types/src/component/partner-switcher/service/PartnerSwitcherService.d.ts +17 -0
- package/dist/types/src/component/partner-switcher/service/impl/PartnerSwitcherServiceImpl.d.ts +17 -0
- package/dist/types/src/component/partner-switcher/service/index.d.ts +2 -0
- package/dist/types/src/component/partner-switcher/session/PartnerInfoSession.d.ts +26 -0
- package/dist/types/src/component/partner-switcher/session/impl/DefaultPartnerInfoSession.d.ts +15 -0
- package/dist/types/src/component/partner-switcher/session/index.d.ts +2 -0
- package/dist/types/src/component/partner-switcher/spi/PartnerSwitcherMaskEditor.d.ts +6 -0
- package/dist/types/src/component/partner-switcher/spi/index.d.ts +1 -0
- package/dist/types/src/component/partner-switcher/typing/index.d.ts +1 -0
- package/dist/types/src/component/partner-switcher/typing/partner.d.ts +20 -0
- package/dist/types/src/component/quick-search/QuickSearch.vue.d.ts +29 -0
- package/dist/types/src/component/quick-search/index.d.ts +24 -0
- package/dist/types/src/component/user/DefaultUser.vue.d.ts +39 -0
- package/dist/types/src/component/user/UserWidget.d.ts +16 -0
- package/dist/types/src/component/user/index.d.ts +1 -0
- package/dist/types/src/config/DebugConfig.d.ts +16 -0
- package/dist/types/src/config/PartnerSwitcherConfig.d.ts +16 -0
- package/dist/types/src/config/index.d.ts +2 -0
- package/dist/types/src/index.d.ts +10 -0
- package/dist/types/src/service/index.d.ts +5 -0
- package/dist/types/src/service/menu-service.d.ts +12 -0
- package/dist/types/src/service/message-service.d.ts +16 -0
- package/dist/types/src/service/module-service.d.ts +7 -0
- package/dist/types/src/service/top-bar-service.d.ts +10 -0
- package/dist/types/src/service/user-service.d.ts +4 -0
- package/dist/types/src/spi/index.d.ts +1 -0
- package/dist/types/src/spi/mask-editor.d.ts +54 -0
- package/dist/types/src/tags/Block.vue.d.ts +5 -0
- package/dist/types/src/tags/Breadcrumb.vue.d.ts +5 -0
- package/dist/types/src/tags/Container.vue.d.ts +5 -0
- package/dist/types/src/tags/Content.vue.d.ts +5 -0
- package/dist/types/src/tags/Header.vue.d.ts +5 -0
- package/dist/types/src/tags/Mask.vue.d.ts +5 -0
- package/dist/types/src/tags/MultiTabs.vue.d.ts +5 -0
- package/dist/types/src/tags/Sidebar.vue.d.ts +5 -0
- package/dist/types/src/tags/Widget.vue.d.ts +5 -0
- package/dist/types/src/tags/context/context.d.ts +8 -0
- package/dist/types/src/tags/context/index.d.ts +1 -0
- package/dist/types/src/tags/index.d.ts +6 -0
- package/dist/types/src/tags/mixin/MaskWidgetTagMixin.d.ts +2 -0
- package/dist/types/src/tags/mixin/index.d.ts +3 -0
- package/dist/types/src/tags/mixin/typing.d.ts +6 -0
- package/dist/types/src/tags/mixin/use-mask-widget-tag.d.ts +38 -0
- package/dist/types/src/tags/register/index.d.ts +1 -0
- package/dist/types/src/tags/register/manager.d.ts +9 -0
- package/dist/types/src/tags/resolve/index.d.ts +2 -0
- package/dist/types/src/tags/resolve/internal/index.d.ts +2 -0
- package/dist/types/src/tags/resolve/internal/typing.d.ts +5 -0
- package/dist/types/src/tags/resolve/internal/widget-resolve.d.ts +3 -0
- package/dist/types/src/tags/resolve/typing.d.ts +26 -0
- package/dist/types/src/tags/resolve/widget-resolve.d.ts +5 -0
- package/dist/types/src/template/default-mask.d.ts +2 -0
- package/dist/types/src/template/index.d.ts +6 -0
- package/dist/types/src/theme/index.d.ts +1 -0
- package/dist/types/src/typing/constant.d.ts +1 -0
- package/dist/types/src/typing/index.d.ts +3 -0
- package/dist/types/src/typing/menu.d.ts +12 -0
- package/dist/types/src/typing/stream-symble.d.ts +12 -0
- package/dist/types/src/util/HomepageUtils.d.ts +3 -0
- package/dist/types/src/util/MenuUtil.d.ts +5 -0
- package/dist/types/src/util/index.d.ts +3 -0
- package/dist/types/src/util/unauthorized-action.d.ts +14 -0
- package/dist/types/src/utils.d.ts +86 -0
- package/index.ts +1 -0
- package/package.json +47 -0
- package/rollup.config.js +33 -0
- package/src/basic/MaskWidget.ts +74 -0
- package/src/basic/index.ts +2 -0
- package/src/basic/register/index.ts +1 -0
- package/src/basic/register/manager.ts +17 -0
- package/src/basic/token/BaseMaskWidget.ts +187 -0
- package/src/basic/token/index.ts +1 -0
- package/src/component/app-switcher/AppSwitcher.vue +133 -0
- package/src/component/app-switcher/AppSwitcherMask.vue +237 -0
- package/src/component/app-switcher/AppSwitcherWidget.ts +152 -0
- package/src/component/app-switcher/index.ts +3 -0
- package/src/component/breadcrumb/BreadcrumbWidget.ts +167 -0
- package/src/component/breadcrumb/DefaultBreadcrumb.vue +95 -0
- package/src/component/breadcrumb/index.ts +2 -0
- package/src/component/debug/Debug.vue +28 -0
- package/src/component/debug/DebugWidget.ts +38 -0
- package/src/component/debug/constants.ts +3 -0
- package/src/component/debug/index.ts +6 -0
- package/src/component/debug/spi/DebugMaskEditor.ts +19 -0
- package/src/component/debug/spi/DebugRouterInitializeService.ts +21 -0
- package/src/component/debug/spi/index.ts +1 -0
- package/src/component/debug/typing.ts +191 -0
- package/src/component/debug/view/DebugMainView.vue +206 -0
- package/src/component/debug/view/DebugMainViewWidget.ts +42 -0
- package/src/component/debug/view/components/DebugDefaultInfo.vue +31 -0
- package/src/component/debug/view/components/DebugJsonView.vue +107 -0
- package/src/component/debug/view/components/DebugRequestInfoPanel.vue +129 -0
- package/src/component/debug/view/components/DebugResponsePanel.vue +66 -0
- package/src/component/debug/view/components/runtime-context/DebugRuntimeFieldComponent.vue +29 -0
- package/src/component/debug/view/debug-api/DebugApi.vue +225 -0
- package/src/component/debug/view/debug-api/DebugApiWidget.ts +400 -0
- package/src/component/debug/view/debug-utils.ts +114 -0
- package/src/component/debug/view/debug-view/DebugView.vue +331 -0
- package/src/component/debug/view/debug-view/DebugViewWidget.ts +181 -0
- package/src/component/debug/view/index.ts +6 -0
- package/src/component/debug/view/service/DebugRuntimeContextService.ts +21 -0
- package/src/component/debug/view/service/DebugStackInfoService.ts +33 -0
- package/src/component/debug/view/service/impl/runtime-context/DebugDefaultRuntimeContextService.ts +16 -0
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeActionService.ts +28 -0
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeDslService.ts +16 -0
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeFieldService.ts +33 -0
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeLayoutService.ts +16 -0
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeMaskService.ts +30 -0
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeTemplateService.ts +16 -0
- package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeViewService.ts +16 -0
- package/src/component/debug/view/service/impl/stack-info/DebugBizStackService.ts +19 -0
- package/src/component/debug/view/service/impl/stack-info/DebugConfigureService.ts +6 -0
- package/src/component/debug/view/service/impl/stack-info/DebugDefaultStackInfoService.ts +62 -0
- package/src/component/debug/view/service/impl/stack-info/DebugExceptionStackService.ts +19 -0
- package/src/component/debug/view/service/impl/stack-info/DebugFunctionService.ts +6 -0
- package/src/component/debug/view/service/impl/stack-info/DebugHalfBizStackService.ts +19 -0
- package/src/component/debug/view/service/impl/stack-info/DebugModelService.ts +6 -0
- package/src/component/debug/view/service/impl/stack-info/DebugPureBizStackService.ts +19 -0
- package/src/component/debug/view/service/impl/stack-info/DebugStacktraceGqlRequestContextService.ts +22 -0
- package/src/component/debug/view/service/impl/stack-info/DebugStacktraceSceneAnalysisService.ts +35 -0
- package/src/component/debug/view/service/impl/stack-info/DebugStacktraceSessionService.ts +19 -0
- package/src/component/debug/view/service/index.ts +22 -0
- package/src/component/debug/view/storage.ts +35 -0
- package/src/component/debug/view/useDebugRequestInfo.ts +17 -0
- package/src/component/divider/Divider.vue +15 -0
- package/src/component/divider/DividerWidget.ts +12 -0
- package/src/component/divider/index.ts +1 -0
- package/src/component/index.ts +15 -0
- package/src/component/language/DefaultLanguage.vue +111 -0
- package/src/component/language/LanguageWidget.ts +72 -0
- package/src/component/language/index.ts +1 -0
- package/src/component/layout/BaseMaskLayoutWidget.ts +12 -0
- package/src/component/layout/MaskBlock.vue +31 -0
- package/src/component/layout/block/MaskBlockWidget.ts +17 -0
- package/src/component/layout/block/index.ts +1 -0
- package/src/component/layout/container/MaskContainerWidget.ts +13 -0
- package/src/component/layout/container/index.ts +1 -0
- package/src/component/layout/content/MaskContentWidget.ts +41 -0
- package/src/component/layout/content/index.ts +1 -0
- package/src/component/layout/grid/Grid.vue +10 -0
- package/src/component/layout/grid/GridWidget.ts +62 -0
- package/src/component/layout/grid/index.ts +1 -0
- package/src/component/layout/header/MaskHeaderWidget.ts +13 -0
- package/src/component/layout/header/index.ts +1 -0
- package/src/component/layout/index.ts +9 -0
- package/src/component/layout/mask/MaskRootWidget.ts +13 -0
- package/src/component/layout/mask/index.ts +1 -0
- package/src/component/layout/sidebar/MaskSidebarWidget.ts +31 -0
- package/src/component/layout/sidebar/index.ts +1 -0
- package/src/component/layout/widget/MaskCommonWidget.ts +95 -0
- package/src/component/layout/widget/index.ts +1 -0
- package/src/component/menu/DefaultMenu.vue +252 -0
- package/src/component/menu/DefaultSubMenu.vue +68 -0
- package/src/component/menu/MenuWidget.ts +349 -0
- package/src/component/menu/index.ts +3 -0
- package/src/component/menu/style/common.scss +411 -0
- package/src/component/menu/style/index.scss +2 -0
- package/src/component/menu/style/menu-theme/index.scss +5 -0
- package/src/component/menu/style/menu-theme/theme2.scss +37 -0
- package/src/component/menu/style/menu-theme/theme3.scss +59 -0
- package/src/component/menu/style/menu-theme/theme4.scss +56 -0
- package/src/component/menu/style/menu-theme/theme5.scss +45 -0
- package/src/component/menu/style/menu-theme/theme6.scss +45 -0
- package/src/component/menu/style/mixin.scss +23 -0
- package/src/component/multi-tabs/MultiTabs.vue +475 -0
- package/src/component/multi-tabs/MultiTabsWidget.ts +450 -0
- package/src/component/multi-tabs/index.ts +2 -0
- package/src/component/multi-tabs/style/index.scss +217 -0
- package/src/component/multi-tabs/style/mixin.scss +13 -0
- package/src/component/multi-tabs/style/parameters.scss +2 -0
- package/src/component/multi-tabs/style/theme1.scss +92 -0
- package/src/component/multi-tabs/style/theme2.scss +89 -0
- package/src/component/multi-tabs/style/theme3.scss +60 -0
- package/src/component/multi-tabs/style/theme4.scss +85 -0
- package/src/component/multi-tabs/typing.ts +7 -0
- package/src/component/notification/DefaultNotification.vue +455 -0
- package/src/component/notification/NotificationWidget.ts +332 -0
- package/src/component/notification/index.ts +2 -0
- package/src/component/order-statistic/OrderStatistic.vue +12 -0
- package/src/component/order-statistic/index.ts +146 -0
- package/src/component/partner-switcher/PartnerSwitcher.vue +75 -0
- package/src/component/partner-switcher/PartnerSwitcherWidget.ts +70 -0
- package/src/component/partner-switcher/index.ts +6 -0
- package/src/component/partner-switcher/service/PartnerSwitcherService.ts +20 -0
- package/src/component/partner-switcher/service/impl/PartnerSwitcherServiceImpl.ts +48 -0
- package/src/component/partner-switcher/service/index.ts +2 -0
- package/src/component/partner-switcher/session/PartnerInfoSession.ts +32 -0
- package/src/component/partner-switcher/session/impl/DefaultPartnerInfoSession.ts +46 -0
- package/src/component/partner-switcher/session/index.ts +2 -0
- package/src/component/partner-switcher/spi/PartnerSwitcherMaskEditor.ts +24 -0
- package/src/component/partner-switcher/spi/index.ts +1 -0
- package/src/component/partner-switcher/typing/index.ts +1 -0
- package/src/component/partner-switcher/typing/partner.ts +22 -0
- package/src/component/quick-search/QuickSearch.vue +34 -0
- package/src/component/quick-search/index.ts +237 -0
- package/src/component/style/index.scss +4 -0
- package/src/component/style/layout.scss +229 -0
- package/src/component/user/DefaultUser.vue +92 -0
- package/src/component/user/UserWidget.ts +129 -0
- package/src/component/user/index.ts +1 -0
- package/src/config/DebugConfig.ts +30 -0
- package/src/config/PartnerSwitcherConfig.ts +30 -0
- package/src/config/index.ts +2 -0
- package/src/index.ts +11 -0
- package/src/service/index.ts +5 -0
- package/src/service/menu-service.ts +105 -0
- package/src/service/message-service.ts +65 -0
- package/src/service/module-service.ts +69 -0
- package/src/service/top-bar-service.ts +144 -0
- package/src/service/user-service.ts +10 -0
- package/src/shim-translate.d.ts +7 -0
- package/src/shim-vue.d.ts +6 -0
- package/src/spi/index.ts +1 -0
- package/src/spi/mask-editor.ts +102 -0
- package/src/tags/Block.vue +16 -0
- package/src/tags/Breadcrumb.vue +16 -0
- package/src/tags/Container.vue +16 -0
- package/src/tags/Content.vue +16 -0
- package/src/tags/Header.vue +16 -0
- package/src/tags/Mask.vue +16 -0
- package/src/tags/MultiTabs.vue +16 -0
- package/src/tags/Sidebar.vue +16 -0
- package/src/tags/Widget.vue +16 -0
- package/src/tags/context/context.ts +24 -0
- package/src/tags/context/index.ts +1 -0
- package/src/tags/index.ts +48 -0
- package/src/tags/mixin/MaskWidgetTagMixin.ts +79 -0
- package/src/tags/mixin/index.ts +3 -0
- package/src/tags/mixin/typing.ts +8 -0
- package/src/tags/mixin/use-mask-widget-tag.ts +172 -0
- package/src/tags/register/index.ts +1 -0
- package/src/tags/register/manager.ts +43 -0
- package/src/tags/resolve/index.ts +2 -0
- package/src/tags/resolve/internal/index.ts +2 -0
- package/src/tags/resolve/internal/typing.ts +6 -0
- package/src/tags/resolve/internal/widget-resolve.ts +57 -0
- package/src/tags/resolve/typing.ts +39 -0
- package/src/tags/resolve/widget-resolve.ts +64 -0
- package/src/template/default-mask.ts +51 -0
- package/src/template/index.ts +26 -0
- package/src/theme/index.ts +1 -0
- package/src/typing/constant.ts +3 -0
- package/src/typing/index.ts +3 -0
- package/src/typing/menu.ts +15 -0
- package/src/typing/stream-symble.ts +14 -0
- package/src/util/HomepageUtils.ts +41 -0
- package/src/util/MenuUtil.ts +18 -0
- package/src/util/index.ts +3 -0
- package/src/util/unauthorized-action.ts +98 -0
- package/src/utils.ts +716 -0
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="k-layout-extra-btn">
|
|
3
|
+
<a-popover
|
|
4
|
+
v-model:visible="visible"
|
|
5
|
+
trigger="click"
|
|
6
|
+
overlayClassName="message-popover-wrapper"
|
|
7
|
+
@visibleChange="onShowPopover"
|
|
8
|
+
>
|
|
9
|
+
<template #content>
|
|
10
|
+
<div class="message-tabs">
|
|
11
|
+
<div
|
|
12
|
+
class="message-tab-item"
|
|
13
|
+
:class="[messageType === 'WORKFLOW' ? 'active' : '']"
|
|
14
|
+
@click="onChangeMessageType('WORKFLOW')"
|
|
15
|
+
>
|
|
16
|
+
{{ translateValueByKey('任务待办') }}
|
|
17
|
+
</div>
|
|
18
|
+
<div
|
|
19
|
+
class="message-tab-item"
|
|
20
|
+
:class="[messageType === 'COPY' ? 'active' : '']"
|
|
21
|
+
@click="onChangeMessageType('COPY')"
|
|
22
|
+
>
|
|
23
|
+
{{ translateValueByKey('抄送') }}
|
|
24
|
+
</div>
|
|
25
|
+
<div
|
|
26
|
+
class="message-tab-item"
|
|
27
|
+
:class="[messageType === 'NOTIFICATION' ? 'active' : '']"
|
|
28
|
+
@click="onChangeMessageType('NOTIFICATION')"
|
|
29
|
+
>
|
|
30
|
+
{{ translateValueByKey('站内信') }}
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="message-list k-layout-extra-btn-message">
|
|
34
|
+
<div
|
|
35
|
+
class="message-item mb-0"
|
|
36
|
+
:class="[messageList.length ? 'message-item-pb' : 'message-item-normal']"
|
|
37
|
+
@click="onWorkflowUserTask"
|
|
38
|
+
>
|
|
39
|
+
<div class="left-icon left-icon-primary">
|
|
40
|
+
<i class="iconfont oinone-xitongtongzhi"></i>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="center-content">
|
|
43
|
+
<div class="title" style="font-weight: 500">{{ translateValueByKey(messageInfo.title) }}</div>
|
|
44
|
+
<div class="des">
|
|
45
|
+
{{ translateValueByKey('您好') }},{{
|
|
46
|
+
getMessageCount() ? translateValueByKey('您有') : translateValueByKey('您暂无')
|
|
47
|
+
}}{{ translateValueByKey(messageInfo.desc) }}
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<!-- <div class="right" v-if="messageList.length">-->
|
|
51
|
+
<!-- <div class="number">{{ unreadNumber }}</div>-->
|
|
52
|
+
<!-- </div>-->
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<div class="message-item-content" v-if="messageList.length">
|
|
56
|
+
<div
|
|
57
|
+
class="message-item"
|
|
58
|
+
v-for="(message, index) in messageList"
|
|
59
|
+
v-show="message.messageType === messageType"
|
|
60
|
+
:key="index"
|
|
61
|
+
>
|
|
62
|
+
<div class="left-icon left-icon-primary" :style="{ backgroundColor: messageInfo.color }">
|
|
63
|
+
<i
|
|
64
|
+
class="iconfont"
|
|
65
|
+
:class="[message.message.workFlowTaskType === '审批' ? 'oinone-shenpi' : messageInfo.icon]"
|
|
66
|
+
></i>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="center-content">
|
|
69
|
+
<div class="title" style="font-weight: 500">
|
|
70
|
+
{{ message.message.name }}
|
|
71
|
+
</div>
|
|
72
|
+
<div class="des opacity-6">{{ formatDateTime(message.createDate) }}</div>
|
|
73
|
+
</div>
|
|
74
|
+
<div class="right">
|
|
75
|
+
<div class="urge-workflow" v-if="message.message.extendIcon">{{ translateValueByKey('催') }}</div>
|
|
76
|
+
<div
|
|
77
|
+
class="action"
|
|
78
|
+
@click="onDetail(message.message, message)"
|
|
79
|
+
v-if="message.messageType === 'WORKFLOW'"
|
|
80
|
+
>
|
|
81
|
+
{{
|
|
82
|
+
message.message.workFlowTaskType === '审批'
|
|
83
|
+
? translateValueByKey('去审批')
|
|
84
|
+
: translateValueByKey('去填写')
|
|
85
|
+
}}
|
|
86
|
+
</div>
|
|
87
|
+
<div
|
|
88
|
+
class="action"
|
|
89
|
+
@click="onDetail(message.message, message)"
|
|
90
|
+
v-else-if="message.messageType === 'COPY'"
|
|
91
|
+
>
|
|
92
|
+
{{ translateValueByKey('去查看') }}
|
|
93
|
+
</div>
|
|
94
|
+
<div class="action" @click="onDetail(message.message, message)" v-else>
|
|
95
|
+
{{ translateValueByKey(messageInfo.btn) }}
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</template>
|
|
102
|
+
|
|
103
|
+
<div class="btn">
|
|
104
|
+
<oio-icon icon="oinone-xiaoxi" size="16px" />
|
|
105
|
+
<span class="msg-text">{{ translateValueByKey('消息') }}</span>
|
|
106
|
+
<div class="message-number" v-if="unreadNumber !== 0">{{ unreadNumber }}</div>
|
|
107
|
+
</div>
|
|
108
|
+
</a-popover>
|
|
109
|
+
<a-modal
|
|
110
|
+
:title="$translate(confirmModalTitle)"
|
|
111
|
+
class="custom-modal"
|
|
112
|
+
:width="420"
|
|
113
|
+
:visible="isShowConfirmModal"
|
|
114
|
+
@cancel="onHideConfirmModal"
|
|
115
|
+
>
|
|
116
|
+
<template #closeIcon>
|
|
117
|
+
<div class="custom-close">
|
|
118
|
+
<i class="iconfont oinone-guanbi1"></i>
|
|
119
|
+
</div>
|
|
120
|
+
</template>
|
|
121
|
+
<template #footer>
|
|
122
|
+
<oio-button key="submit" type="primary" @click="onHideConfirmModal">
|
|
123
|
+
{{ translateValueByKey('确 定') }}</oio-button
|
|
124
|
+
>
|
|
125
|
+
</template>
|
|
126
|
+
<div>
|
|
127
|
+
<div v-html="currentMessage.body" class="message-richtext-wrapper"></div>
|
|
128
|
+
</div>
|
|
129
|
+
</a-modal>
|
|
130
|
+
</div>
|
|
131
|
+
</template>
|
|
132
|
+
<script lang="ts">
|
|
133
|
+
import { OioButton, OioIcon } from '@oinone/kunlun-vue-ui-antd';
|
|
134
|
+
import { computed, defineComponent, ref } from 'vue';
|
|
135
|
+
import { translateValueByKey } from '@oinone/kunlun-engine';
|
|
136
|
+
|
|
137
|
+
export default defineComponent({
|
|
138
|
+
name: 'DefaultNotification',
|
|
139
|
+
inheritAttrs: false,
|
|
140
|
+
components: {
|
|
141
|
+
OioIcon,
|
|
142
|
+
OioButton
|
|
143
|
+
},
|
|
144
|
+
props: [
|
|
145
|
+
'msgTotal',
|
|
146
|
+
'messageList',
|
|
147
|
+
'getMessageInfo',
|
|
148
|
+
'readMessage',
|
|
149
|
+
'translate',
|
|
150
|
+
'messageType',
|
|
151
|
+
'messageInfo',
|
|
152
|
+
'changeMessageType',
|
|
153
|
+
'onDetail',
|
|
154
|
+
'confirmModalTitle',
|
|
155
|
+
'currentMessage',
|
|
156
|
+
'currentMessageId',
|
|
157
|
+
'isShowConfirmModal',
|
|
158
|
+
'toggleDialog',
|
|
159
|
+
'onWorkflowUserTask',
|
|
160
|
+
'formatDateTime'
|
|
161
|
+
],
|
|
162
|
+
setup(props) {
|
|
163
|
+
const visible = ref(false);
|
|
164
|
+
|
|
165
|
+
const onHideConfirmModal = async () => {
|
|
166
|
+
await props.readMessage(props.currentMessageId);
|
|
167
|
+
await props.getMessageInfo();
|
|
168
|
+
props.toggleDialog();
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
const onShowPopover = (visible: boolean) => {
|
|
172
|
+
if (visible) {
|
|
173
|
+
props.getMessageInfo();
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
const unreadNumber = computed(() => {
|
|
178
|
+
if (props.msgTotal > 99) {
|
|
179
|
+
return '99+';
|
|
180
|
+
}
|
|
181
|
+
return Number(props.msgTotal);
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
const onChangeMessageType = (type: string) => {
|
|
185
|
+
props.changeMessageType(type);
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
const getMessageCount = () => {
|
|
189
|
+
const messageIsExist = props.messageList.find((msg) => msg.messageType === props.messageType);
|
|
190
|
+
return messageIsExist ? 1 : 0;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
return {
|
|
194
|
+
visible,
|
|
195
|
+
unreadNumber,
|
|
196
|
+
translateValueByKey,
|
|
197
|
+
|
|
198
|
+
onShowPopover,
|
|
199
|
+
onHideConfirmModal,
|
|
200
|
+
getMessageCount,
|
|
201
|
+
onChangeMessageType
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
</script>
|
|
206
|
+
<style lang="scss">
|
|
207
|
+
.k-layout-extra-btn {
|
|
208
|
+
position: relative;
|
|
209
|
+
|
|
210
|
+
.message-number {
|
|
211
|
+
position: absolute;
|
|
212
|
+
right: 0;
|
|
213
|
+
top: 4px;
|
|
214
|
+
background: #ff0000;
|
|
215
|
+
border-radius: 10px;
|
|
216
|
+
color: #fff;
|
|
217
|
+
font-size: 12px;
|
|
218
|
+
min-width: 6px;
|
|
219
|
+
padding: 0 5px;
|
|
220
|
+
height: 18px;
|
|
221
|
+
line-height: 18px;
|
|
222
|
+
text-align: center;
|
|
223
|
+
transform: translate(20%, -1px);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.custom-modal {
|
|
228
|
+
.ant-modal-header {
|
|
229
|
+
padding: 16px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.ant-modal-body {
|
|
233
|
+
padding: 16px;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.ant-modal-footer {
|
|
237
|
+
padding: 16px;
|
|
238
|
+
|
|
239
|
+
.ant-btn {
|
|
240
|
+
font-size: 14px;
|
|
241
|
+
height: 40px;
|
|
242
|
+
margin: auto;
|
|
243
|
+
margin-left: 16px;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.ant-modal-close-x {
|
|
248
|
+
line-height: inherit;
|
|
249
|
+
display: flex;
|
|
250
|
+
align-items: center;
|
|
251
|
+
justify-content: center;
|
|
252
|
+
height: 56px;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.custom-close {
|
|
256
|
+
width: 24px;
|
|
257
|
+
height: 24px;
|
|
258
|
+
border-radius: 50%;
|
|
259
|
+
background-color: #f1f1f1;
|
|
260
|
+
display: flex;
|
|
261
|
+
align-items: center;
|
|
262
|
+
justify-content: center;
|
|
263
|
+
|
|
264
|
+
.iconfont {
|
|
265
|
+
color: rgba(0, 0, 0, 0.25);
|
|
266
|
+
font-size: 12px;
|
|
267
|
+
align-self: center;
|
|
268
|
+
transform: scale(0.84);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.message-popover-wrapper {
|
|
274
|
+
.ant-popover-inner-content {
|
|
275
|
+
padding: 0;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.ant-popover-content {
|
|
279
|
+
.ant-popover-arrow-content,
|
|
280
|
+
.ant-popover-inner {
|
|
281
|
+
background: var(--oio-background);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.message-tabs .message-tab-item {
|
|
285
|
+
color: var(--oio-text-color);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.message-tabs .active {
|
|
289
|
+
color: var(--oio-primary-color);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.message-tabs {
|
|
295
|
+
padding: 12px 16px;
|
|
296
|
+
box-shadow: inset 0px -1px 0px 0px var(--oio-border-color);
|
|
297
|
+
display: flex;
|
|
298
|
+
align-items: center;
|
|
299
|
+
|
|
300
|
+
.message-tab-item {
|
|
301
|
+
font-size: 14px;
|
|
302
|
+
color: rgba(0, 0, 0, 0.65);
|
|
303
|
+
cursor: pointer;
|
|
304
|
+
margin-right: 16px;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.active {
|
|
308
|
+
color: var(--oio-primary-color);
|
|
309
|
+
letter-spacing: 0;
|
|
310
|
+
position: relative;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.active:before {
|
|
314
|
+
content: '';
|
|
315
|
+
position: absolute;
|
|
316
|
+
bottom: -11px;
|
|
317
|
+
background: var(--oio-primary-color);
|
|
318
|
+
height: 1px;
|
|
319
|
+
width: 100%;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.k-layout-extra-btn-message {
|
|
324
|
+
width: 378px;
|
|
325
|
+
padding-bottom: 0px;
|
|
326
|
+
|
|
327
|
+
.message-item-content {
|
|
328
|
+
max-height: 376px;
|
|
329
|
+
overflow-y: auto;
|
|
330
|
+
margin-bottom: 16px;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.mb-0 {
|
|
334
|
+
margin-bottom: 0;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.message-item {
|
|
338
|
+
display: flex;
|
|
339
|
+
justify-content: space-between;
|
|
340
|
+
align-items: center;
|
|
341
|
+
padding: 8px 16px;
|
|
342
|
+
cursor: pointer;
|
|
343
|
+
background: var(--oio-background);
|
|
344
|
+
box-shadow: inset 0px -1px 0px 0px var(--oio-border-color);
|
|
345
|
+
margin-bottom: 0;
|
|
346
|
+
|
|
347
|
+
&:last-child {
|
|
348
|
+
margin-bottom: 20px;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
&.message-item-normal {
|
|
352
|
+
padding-bottom: 0;
|
|
353
|
+
border-bottom: 0;
|
|
354
|
+
margin-bottom: 0;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
&.message-item-pb {
|
|
358
|
+
padding: 8px 16px;
|
|
359
|
+
cursor: pointer;
|
|
360
|
+
border-bottom: none;
|
|
361
|
+
background: var(--oio-background);
|
|
362
|
+
box-shadow: inset 0px -1px 0px 0px var(--oio-border-color);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
&:last-child {
|
|
366
|
+
margin-bottom: 0;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.left-icon {
|
|
370
|
+
margin-right: 12px;
|
|
371
|
+
width: 30px;
|
|
372
|
+
height: 30px;
|
|
373
|
+
border-radius: 30px;
|
|
374
|
+
text-align: center;
|
|
375
|
+
line-height: 30px;
|
|
376
|
+
|
|
377
|
+
&.left-icon-primary {
|
|
378
|
+
background-color: var(--oio-primary-color);
|
|
379
|
+
|
|
380
|
+
i {
|
|
381
|
+
font-size: 15px;
|
|
382
|
+
color: #fff;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.center-content {
|
|
388
|
+
flex: 1;
|
|
389
|
+
|
|
390
|
+
.title {
|
|
391
|
+
font-size: 14px;
|
|
392
|
+
color: var(--oio-text-color);
|
|
393
|
+
margin-bottom: 6px;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.des {
|
|
397
|
+
letter-spacing: 0;
|
|
398
|
+
font-size: 12px;
|
|
399
|
+
color: var(--oio-text-color-secondary);
|
|
400
|
+
|
|
401
|
+
&.opacity-6 {
|
|
402
|
+
color: var(--oio-text-color-secondary);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.right {
|
|
408
|
+
display: flex;
|
|
409
|
+
align-items: center;
|
|
410
|
+
|
|
411
|
+
.urge-workflow {
|
|
412
|
+
font-size: 12px;
|
|
413
|
+
color: #ff3232;
|
|
414
|
+
background: rgba(255, 50, 50, 0.1);
|
|
415
|
+
border-radius: 4px;
|
|
416
|
+
width: 16px;
|
|
417
|
+
height: 16px;
|
|
418
|
+
line-height: 16px;
|
|
419
|
+
text-align: center;
|
|
420
|
+
margin-right: 12px;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.number {
|
|
424
|
+
display: inline-block;
|
|
425
|
+
background: #ff0000;
|
|
426
|
+
border-radius: 10px;
|
|
427
|
+
color: #fff;
|
|
428
|
+
font-size: 12px;
|
|
429
|
+
padding: 1px 6px;
|
|
430
|
+
text-align: center;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.action {
|
|
434
|
+
color: var(--oio-primary-color);
|
|
435
|
+
cursor: pointer;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
// FIXME: 消息弹窗popover z-index 1030
|
|
442
|
+
.ant-modal-mask {
|
|
443
|
+
z-index: 1031;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.ant-modal-wrap {
|
|
447
|
+
z-index: 1032;
|
|
448
|
+
|
|
449
|
+
.message-richtext-wrapper {
|
|
450
|
+
img {
|
|
451
|
+
max-width: 100%;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
</style>
|