@oinone/kunlun-vue-admin-layout 6.4.9 → 7.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.
Files changed (266) hide show
  1. package/dist/oinone-kunlun-vue-admin-layout.css +1 -1
  2. package/dist/oinone-kunlun-vue-admin-layout.esm.js +12 -12101
  3. package/dist/oinone-kunlun-vue-admin-layout.scss +1 -1
  4. package/dist/types/index.d.ts +1 -1
  5. package/dist/types/src/basic/MaskWidget.d.ts +17 -17
  6. package/dist/types/src/basic/index.d.ts +2 -2
  7. package/dist/types/src/basic/register/index.d.ts +1 -1
  8. package/dist/types/src/basic/register/manager.d.ts +7 -7
  9. package/dist/types/src/basic/token/BaseMaskWidget.d.ts +55 -55
  10. package/dist/types/src/basic/token/index.d.ts +1 -1
  11. package/dist/types/src/component/app-switcher/AppSwitcher.vue.d.ts +87 -84
  12. package/dist/types/src/component/app-switcher/AppSwitcherMask.vue.d.ts +63 -61
  13. package/dist/types/src/component/app-switcher/AppSwitcherWidget.d.ts +33 -33
  14. package/dist/types/src/component/app-switcher/index.d.ts +3 -3
  15. package/dist/types/src/component/breadcrumb/BreadcrumbWidget.d.ts +33 -33
  16. package/dist/types/src/component/breadcrumb/DefaultBreadcrumb.vue.d.ts +1199 -58
  17. package/dist/types/src/component/breadcrumb/index.d.ts +2 -2
  18. package/dist/types/src/component/debug/Debug.vue.d.ts +13 -11
  19. package/dist/types/src/component/debug/DebugWidget.d.ts +8 -8
  20. package/dist/types/src/component/debug/constants.d.ts +2 -2
  21. package/dist/types/src/component/debug/index.d.ts +7 -7
  22. package/dist/types/src/component/debug/spi/DebugRouterInitializeService.d.ts +4 -4
  23. package/dist/types/src/component/debug/spi/index.d.ts +1 -1
  24. package/dist/types/src/component/debug/typing.d.ts +159 -159
  25. package/dist/types/src/component/debug/util.d.ts +16 -16
  26. package/dist/types/src/component/debug/view/DebugMainView.vue.d.ts +32 -28
  27. package/dist/types/src/component/debug/view/DebugMainViewWidget.d.ts +10 -10
  28. package/dist/types/src/component/debug/view/debug-api/DebugApiWidget.d.ts +32 -32
  29. package/dist/types/src/component/debug/view/debug-utils.d.ts +44 -44
  30. package/dist/types/src/component/debug/view/debug-view/DebugViewWidget.d.ts +26 -26
  31. package/dist/types/src/component/debug/view/index.d.ts +5 -5
  32. package/dist/types/src/component/debug/view/service/DebugRuntimeContextService.d.ts +18 -18
  33. package/dist/types/src/component/debug/view/service/DebugStackInfoService.d.ts +27 -27
  34. package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugDefaultRuntimeContextService.d.ts +6 -6
  35. package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeActionService.d.ts +7 -7
  36. package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeDslService.d.ts +6 -6
  37. package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeFieldService.d.ts +7 -7
  38. package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeLayoutService.d.ts +6 -6
  39. package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeMaskService.d.ts +6 -6
  40. package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeTemplateService.d.ts +6 -6
  41. package/dist/types/src/component/debug/view/service/impl/runtime-context/DebugRuntimeViewService.d.ts +6 -6
  42. package/dist/types/src/component/debug/view/service/impl/stack-info/DebugBizStackService.d.ts +6 -6
  43. package/dist/types/src/component/debug/view/service/impl/stack-info/DebugConfigureService.d.ts +4 -4
  44. package/dist/types/src/component/debug/view/service/impl/stack-info/DebugDefaultStackInfoService.d.ts +8 -8
  45. package/dist/types/src/component/debug/view/service/impl/stack-info/DebugExceptionStackService.d.ts +6 -6
  46. package/dist/types/src/component/debug/view/service/impl/stack-info/DebugFunctionService.d.ts +4 -4
  47. package/dist/types/src/component/debug/view/service/impl/stack-info/DebugHalfBizStackService.d.ts +6 -6
  48. package/dist/types/src/component/debug/view/service/impl/stack-info/DebugModelService.d.ts +4 -4
  49. package/dist/types/src/component/debug/view/service/impl/stack-info/DebugPureBizStackService.d.ts +6 -6
  50. package/dist/types/src/component/debug/view/service/impl/stack-info/DebugStacktraceGqlRequestContextService.d.ts +6 -6
  51. package/dist/types/src/component/debug/view/service/impl/stack-info/DebugStacktraceSceneAnalysisService.d.ts +7 -7
  52. package/dist/types/src/component/debug/view/service/impl/stack-info/DebugStacktraceSessionService.d.ts +6 -6
  53. package/dist/types/src/component/debug/view/service/index.d.ts +20 -20
  54. package/dist/types/src/component/debug/view/storage.d.ts +19 -19
  55. package/dist/types/src/component/debug/view/useDebugRequestInfo.d.ts +7 -7
  56. package/dist/types/src/component/divider/Divider.vue.d.ts +88 -2
  57. package/dist/types/src/component/divider/DividerWidget.d.ts +4 -4
  58. package/dist/types/src/component/divider/index.d.ts +1 -1
  59. package/dist/types/src/component/index.d.ts +14 -14
  60. package/dist/types/src/component/language/DefaultLanguage.vue.d.ts +1850 -34
  61. package/dist/types/src/component/language/LanguageWidget.d.ts +16 -16
  62. package/dist/types/src/component/language/index.d.ts +1 -1
  63. package/dist/types/src/component/layout/BaseMaskLayoutWidget.d.ts +4 -4
  64. package/dist/types/src/component/layout/MaskBlock.vue.d.ts +24 -24
  65. package/dist/types/src/component/layout/block/MaskBlockWidget.d.ts +4 -4
  66. package/dist/types/src/component/layout/block/index.d.ts +1 -1
  67. package/dist/types/src/component/layout/container/MaskContainerWidget.d.ts +4 -4
  68. package/dist/types/src/component/layout/container/index.d.ts +1 -1
  69. package/dist/types/src/component/layout/content/MaskContentWidget.d.ts +7 -7
  70. package/dist/types/src/component/layout/content/index.d.ts +1 -1
  71. package/dist/types/src/component/layout/grid/Grid.vue.d.ts +2 -2
  72. package/dist/types/src/component/layout/grid/GridWidget.d.ts +9 -9
  73. package/dist/types/src/component/layout/grid/index.d.ts +1 -1
  74. package/dist/types/src/component/layout/header/MaskHeaderWidget.d.ts +4 -4
  75. package/dist/types/src/component/layout/header/index.d.ts +1 -1
  76. package/dist/types/src/component/layout/index.d.ts +9 -9
  77. package/dist/types/src/component/layout/mask/MaskRootWidget.d.ts +4 -4
  78. package/dist/types/src/component/layout/mask/index.d.ts +1 -1
  79. package/dist/types/src/component/layout/sidebar/MaskSidebarWidget.d.ts +10 -10
  80. package/dist/types/src/component/layout/sidebar/index.d.ts +1 -1
  81. package/dist/types/src/component/layout/widget/MaskCommonWidget.d.ts +14 -14
  82. package/dist/types/src/component/layout/widget/index.d.ts +1 -1
  83. package/dist/types/src/component/menu/DefaultMenu.vue.d.ts +1130 -115
  84. package/dist/types/src/component/menu/DefaultSubMenu.vue.d.ts +122 -17
  85. package/dist/types/src/component/menu/MenuWidget.d.ts +71 -71
  86. package/dist/types/src/component/menu/index.d.ts +3 -3
  87. package/dist/types/src/component/multi-tabs/MultiTabs.vue.d.ts +553 -151
  88. package/dist/types/src/component/multi-tabs/MultiTabsWidget.d.ts +60 -60
  89. package/dist/types/src/component/multi-tabs/index.d.ts +2 -2
  90. package/dist/types/src/component/multi-tabs/typing.d.ts +6 -6
  91. package/dist/types/src/component/notification/DefaultNotification.vue.d.ts +1533 -61
  92. package/dist/types/src/component/notification/NotificationWidget.d.ts +139 -139
  93. package/dist/types/src/component/notification/index.d.ts +2 -2
  94. package/dist/types/src/component/order-statistic/OrderStatistic.vue.d.ts +6 -8
  95. package/dist/types/src/component/order-statistic/index.d.ts +14 -14
  96. package/dist/types/src/component/partner-switcher/PartnerSwitcher.vue.d.ts +428 -28
  97. package/dist/types/src/component/partner-switcher/PartnerSwitcherWidget.d.ts +15 -15
  98. package/dist/types/src/component/partner-switcher/index.d.ts +6 -6
  99. package/dist/types/src/component/partner-switcher/service/PartnerSwitcherService.d.ts +17 -17
  100. package/dist/types/src/component/partner-switcher/service/impl/PartnerSwitcherServiceImpl.d.ts +17 -17
  101. package/dist/types/src/component/partner-switcher/service/index.d.ts +2 -2
  102. package/dist/types/src/component/partner-switcher/session/PartnerInfoSession.d.ts +26 -26
  103. package/dist/types/src/component/partner-switcher/session/impl/DefaultPartnerInfoSession.d.ts +15 -15
  104. package/dist/types/src/component/partner-switcher/session/index.d.ts +2 -2
  105. package/dist/types/src/component/partner-switcher/spi/PartnerSwitcherMaskEditor.d.ts +6 -6
  106. package/dist/types/src/component/partner-switcher/spi/index.d.ts +1 -1
  107. package/dist/types/src/component/partner-switcher/typing/index.d.ts +1 -1
  108. package/dist/types/src/component/partner-switcher/typing/partner.d.ts +20 -20
  109. package/dist/types/src/component/quick-search/QuickSearch.vue.d.ts +2545 -29
  110. package/dist/types/src/component/quick-search/index.d.ts +24 -24
  111. package/dist/types/src/component/user/DefaultUser.vue.d.ts +35 -39
  112. package/dist/types/src/component/user/UserWidget.d.ts +18 -16
  113. package/dist/types/src/component/user/index.d.ts +2 -1
  114. package/dist/types/src/config/DebugConfig.d.ts +16 -16
  115. package/dist/types/src/config/PartnerSwitcherConfig.d.ts +16 -16
  116. package/dist/types/src/config/index.d.ts +2 -2
  117. package/dist/types/src/index.d.ts +10 -10
  118. package/dist/types/src/service/index.d.ts +5 -5
  119. package/dist/types/src/service/menu-service.d.ts +12 -12
  120. package/dist/types/src/service/message-service.d.ts +16 -16
  121. package/dist/types/src/service/module-service.d.ts +12 -12
  122. package/dist/types/src/service/top-bar-service.d.ts +11 -10
  123. package/dist/types/src/service/user-service.d.ts +4 -4
  124. package/dist/types/src/spi/index.d.ts +1 -1
  125. package/dist/types/src/spi/mask-editor.d.ts +59 -54
  126. package/dist/types/src/tags/Block.vue.d.ts +5 -5
  127. package/dist/types/src/tags/Breadcrumb.vue.d.ts +5 -5
  128. package/dist/types/src/tags/Container.vue.d.ts +5 -5
  129. package/dist/types/src/tags/Content.vue.d.ts +5 -5
  130. package/dist/types/src/tags/Header.vue.d.ts +5 -5
  131. package/dist/types/src/tags/Mask.vue.d.ts +5 -5
  132. package/dist/types/src/tags/MultiTabs.vue.d.ts +5 -5
  133. package/dist/types/src/tags/Sidebar.vue.d.ts +5 -5
  134. package/dist/types/src/tags/Widget.vue.d.ts +5 -5
  135. package/dist/types/src/tags/context/context.d.ts +8 -8
  136. package/dist/types/src/tags/context/index.d.ts +1 -1
  137. package/dist/types/src/tags/index.d.ts +6 -6
  138. package/dist/types/src/tags/mixin/MaskWidgetTagMixin.d.ts +2 -2
  139. package/dist/types/src/tags/mixin/index.d.ts +3 -3
  140. package/dist/types/src/tags/mixin/typing.d.ts +6 -6
  141. package/dist/types/src/tags/mixin/use-mask-widget-tag.d.ts +38 -38
  142. package/dist/types/src/tags/register/index.d.ts +1 -1
  143. package/dist/types/src/tags/register/manager.d.ts +9 -9
  144. package/dist/types/src/tags/resolve/index.d.ts +2 -2
  145. package/dist/types/src/tags/resolve/internal/index.d.ts +2 -2
  146. package/dist/types/src/tags/resolve/internal/typing.d.ts +5 -5
  147. package/dist/types/src/tags/resolve/internal/widget-resolve.d.ts +3 -3
  148. package/dist/types/src/tags/resolve/typing.d.ts +26 -26
  149. package/dist/types/src/tags/resolve/widget-resolve.d.ts +5 -5
  150. package/dist/types/src/template/default-mask.d.ts +2 -2
  151. package/dist/types/src/template/index.d.ts +6 -6
  152. package/dist/types/src/theme/index.d.ts +1 -1
  153. package/dist/types/src/typing/constant.d.ts +1 -1
  154. package/dist/types/src/typing/index.d.ts +3 -3
  155. package/dist/types/src/typing/menu.d.ts +12 -12
  156. package/dist/types/src/typing/stream-symble.d.ts +12 -12
  157. package/dist/types/src/util/HomepageUtils.d.ts +3 -3
  158. package/dist/types/src/util/MenuUtil.d.ts +5 -5
  159. package/dist/types/src/util/index.d.ts +3 -3
  160. package/dist/types/src/util/unauthorized-action.d.ts +14 -14
  161. package/dist/types/src/utils.d.ts +86 -86
  162. package/package.json +38 -27
  163. package/src/basic/MaskWidget.ts +3 -3
  164. package/src/basic/token/BaseMaskWidget.ts +8 -8
  165. package/src/component/app-switcher/AppSwitcher.vue +4 -4
  166. package/src/component/app-switcher/AppSwitcherMask.vue +8 -7
  167. package/src/component/app-switcher/AppSwitcherWidget.ts +4 -4
  168. package/src/component/breadcrumb/BreadcrumbWidget.ts +4 -4
  169. package/src/component/breadcrumb/DefaultBreadcrumb.vue +2 -2
  170. package/src/component/debug/Debug.vue +1 -1
  171. package/src/component/debug/spi/DebugMaskEditor.ts +8 -2
  172. package/src/component/debug/spi/DebugRouterInitializeService.ts +1 -1
  173. package/src/component/debug/typing.ts +1 -1
  174. package/src/component/debug/view/DebugMainView.vue +3 -3
  175. package/src/component/debug/view/DebugMainViewWidget.ts +1 -1
  176. package/src/component/debug/view/components/DebugDefaultInfo.vue +1 -1
  177. package/src/component/debug/view/components/DebugJsonView.vue +1 -1
  178. package/src/component/debug/view/components/DebugRequestInfoPanel.vue +12 -3
  179. package/src/component/debug/view/components/DebugResponsePanel.vue +2 -2
  180. package/src/component/debug/view/components/runtime-context/DebugRuntimeFieldComponent.vue +2 -2
  181. package/src/component/debug/view/debug-api/DebugApi.vue +3 -3
  182. package/src/component/debug/view/debug-api/DebugApiWidget.ts +1 -1
  183. package/src/component/debug/view/debug-utils.ts +2 -2
  184. package/src/component/debug/view/debug-view/DebugView.vue +4 -4
  185. package/src/component/debug/view/debug-view/DebugViewWidget.ts +6 -6
  186. package/src/component/debug/view/service/DebugRuntimeContextService.ts +2 -2
  187. package/src/component/debug/view/service/DebugStackInfoService.ts +1 -1
  188. package/src/component/debug/view/service/impl/runtime-context/DebugDefaultRuntimeContextService.ts +3 -3
  189. package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeActionService.ts +3 -3
  190. package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeDslService.ts +3 -3
  191. package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeFieldService.ts +3 -3
  192. package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeLayoutService.ts +3 -3
  193. package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeMaskService.ts +3 -3
  194. package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeTemplateService.ts +3 -3
  195. package/src/component/debug/view/service/impl/runtime-context/DebugRuntimeViewService.ts +3 -3
  196. package/src/component/debug/view/service/impl/stack-info/DebugBizStackService.ts +2 -2
  197. package/src/component/debug/view/service/impl/stack-info/DebugConfigureService.ts +1 -1
  198. package/src/component/debug/view/service/impl/stack-info/DebugDefaultStackInfoService.ts +2 -2
  199. package/src/component/debug/view/service/impl/stack-info/DebugExceptionStackService.ts +2 -2
  200. package/src/component/debug/view/service/impl/stack-info/DebugFunctionService.ts +1 -1
  201. package/src/component/debug/view/service/impl/stack-info/DebugHalfBizStackService.ts +2 -2
  202. package/src/component/debug/view/service/impl/stack-info/DebugModelService.ts +1 -1
  203. package/src/component/debug/view/service/impl/stack-info/DebugPureBizStackService.ts +2 -2
  204. package/src/component/debug/view/service/impl/stack-info/DebugStacktraceGqlRequestContextService.ts +2 -2
  205. package/src/component/debug/view/service/impl/stack-info/DebugStacktraceSceneAnalysisService.ts +2 -2
  206. package/src/component/debug/view/service/impl/stack-info/DebugStacktraceSessionService.ts +2 -2
  207. package/src/component/debug/view/storage.ts +2 -2
  208. package/src/component/debug/view/useDebugRequestInfo.ts +1 -1
  209. package/src/component/language/DefaultLanguage.vue +2 -2
  210. package/src/component/language/LanguageWidget.ts +3 -3
  211. package/src/component/layout/BaseMaskLayoutWidget.ts +1 -1
  212. package/src/component/layout/MaskBlock.vue +2 -2
  213. package/src/component/layout/grid/GridWidget.ts +9 -7
  214. package/src/component/layout/widget/MaskCommonWidget.ts +4 -4
  215. package/src/component/menu/DefaultMenu.vue +3 -3
  216. package/src/component/menu/DefaultSubMenu.vue +2 -2
  217. package/src/component/menu/MenuWidget.ts +11 -5
  218. package/src/component/menu/style/common.scss +45 -0
  219. package/src/component/multi-tabs/MultiTabs.vue +9 -4
  220. package/src/component/multi-tabs/MultiTabsWidget.ts +7 -8
  221. package/src/component/multi-tabs/typing.ts +1 -1
  222. package/src/component/notification/DefaultNotification.vue +26 -28
  223. package/src/component/notification/NotificationWidget.ts +24 -23
  224. package/src/component/order-statistic/OrderStatistic.vue +1 -1
  225. package/src/component/partner-switcher/PartnerSwitcher.vue +2 -2
  226. package/src/component/partner-switcher/PartnerSwitcherWidget.ts +3 -3
  227. package/src/component/partner-switcher/service/PartnerSwitcherService.ts +1 -1
  228. package/src/component/partner-switcher/service/impl/PartnerSwitcherServiceImpl.ts +2 -2
  229. package/src/component/partner-switcher/session/PartnerInfoSession.ts +1 -1
  230. package/src/component/partner-switcher/session/impl/DefaultPartnerInfoSession.ts +2 -2
  231. package/src/component/partner-switcher/spi/PartnerSwitcherMaskEditor.ts +8 -2
  232. package/src/component/quick-search/index.ts +1 -1
  233. package/src/component/user/DefaultUser.vue +16 -12
  234. package/src/component/user/UserWidget.ts +24 -21
  235. package/src/component/user/index.ts +1 -0
  236. package/src/config/DebugConfig.ts +2 -2
  237. package/src/config/PartnerSwitcherConfig.ts +2 -2
  238. package/src/service/menu-service.ts +3 -3
  239. package/src/service/module-service.ts +3 -3
  240. package/src/service/top-bar-service.ts +6 -2
  241. package/src/service/user-service.ts +1 -1
  242. package/src/shim-translate.d.ts +5 -2
  243. package/src/spi/mask-editor.ts +7 -1
  244. package/src/tags/context/context.ts +1 -1
  245. package/src/tags/index.ts +1 -1
  246. package/src/tags/mixin/MaskWidgetTagMixin.ts +5 -5
  247. package/src/tags/mixin/typing.ts +1 -1
  248. package/src/tags/mixin/use-mask-widget-tag.ts +5 -5
  249. package/src/tags/register/manager.ts +2 -2
  250. package/src/tags/resolve/internal/typing.ts +1 -1
  251. package/src/tags/resolve/internal/widget-resolve.ts +4 -4
  252. package/src/tags/resolve/typing.ts +2 -2
  253. package/src/tags/resolve/widget-resolve.ts +2 -2
  254. package/src/template/index.ts +5 -5
  255. package/src/typing/menu.ts +1 -1
  256. package/src/util/HomepageUtils.ts +8 -7
  257. package/src/util/unauthorized-action.ts +8 -4
  258. package/src/utils.ts +8 -8
  259. package/dist/types/src/component/debug/spi/DebugMaskEditor.d.ts +0 -6
  260. package/dist/types/src/component/debug/view/components/DebugDefaultInfo.vue.d.ts +0 -22
  261. package/dist/types/src/component/debug/view/components/DebugJsonView.vue.d.ts +0 -29
  262. package/dist/types/src/component/debug/view/components/DebugRequestInfoPanel.vue.d.ts +0 -22
  263. package/dist/types/src/component/debug/view/components/DebugResponsePanel.vue.d.ts +0 -12
  264. package/dist/types/src/component/debug/view/debug-api/DebugApi.vue.d.ts +0 -62
  265. package/dist/types/src/component/debug/view/debug-view/DebugView.vue.d.ts +0 -78
  266. package/rollup.config.js +0 -33
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <div class="k-layout-extra-btn">
3
3
  <a-popover
4
- v-model:visible="visible"
4
+ :open="visible"
5
5
  trigger="click"
6
- overlayClassName="message-popover-wrapper"
7
- @visibleChange="onShowPopover"
6
+ overlayClassName="oio-popover message-popover-wrapper"
7
+ @update:open="onShowPopover"
8
8
  >
9
9
  <template #content>
10
10
  <div class="message-tabs">
@@ -13,21 +13,21 @@
13
13
  :class="[messageType === 'WORKFLOW' ? 'active' : '']"
14
14
  @click="onChangeMessageType('WORKFLOW')"
15
15
  >
16
- {{ translateValueByKey('任务待办') }}
16
+ {{ $translate('任务待办') }}
17
17
  </div>
18
18
  <div
19
19
  class="message-tab-item"
20
20
  :class="[messageType === 'COPY' ? 'active' : '']"
21
21
  @click="onChangeMessageType('COPY')"
22
22
  >
23
- {{ translateValueByKey('抄送') }}
23
+ {{ $translate('抄送') }}
24
24
  </div>
25
25
  <div
26
26
  class="message-tab-item"
27
27
  :class="[messageType === 'NOTIFICATION' ? 'active' : '']"
28
28
  @click="onChangeMessageType('NOTIFICATION')"
29
29
  >
30
- {{ translateValueByKey('站内信') }}
30
+ {{ $translate('站内信') }}
31
31
  </div>
32
32
  </div>
33
33
  <div class="message-list k-layout-extra-btn-message">
@@ -40,11 +40,10 @@
40
40
  <i class="iconfont oinone-xitongtongzhi"></i>
41
41
  </div>
42
42
  <div class="center-content">
43
- <div class="title" style="font-weight: 500">{{ translateValueByKey(messageInfo.title) }}</div>
43
+ <div class="title" style="font-weight: 500">{{ $translate(messageInfo.title) }}</div>
44
44
  <div class="des">
45
- {{ translateValueByKey('您好') }},{{
46
- getMessageCount() ? translateValueByKey('您有') : translateValueByKey('您暂无')
47
- }}{{ translateValueByKey(messageInfo.desc) }}
45
+ {{ $translate('您好') }},{{ getMessageCount() ? $translate('您有') : $translate('您暂无')
46
+ }}{{ $translate(messageInfo.desc) }}
48
47
  </div>
49
48
  </div>
50
49
  <!-- <div class="right" v-if="messageList.length">-->
@@ -72,27 +71,23 @@
72
71
  <div class="des opacity-6">{{ formatDateTime(message.createDate) }}</div>
73
72
  </div>
74
73
  <div class="right">
75
- <div class="urge-workflow" v-if="message.message.extendIcon">{{ translateValueByKey('催') }}</div>
74
+ <div class="urge-workflow" v-if="message.message.extendIcon">{{ $translate('催') }}</div>
76
75
  <div
77
76
  class="action"
78
77
  @click="onDetail(message.message, message)"
79
78
  v-if="message.messageType === 'WORKFLOW'"
80
79
  >
81
- {{
82
- message.message.workFlowTaskType === '审批'
83
- ? translateValueByKey('去审批')
84
- : translateValueByKey('去填写')
85
- }}
80
+ {{ message.message.workFlowTaskType === '审批' ? $translate('去审批') : $translate('去填写') }}
86
81
  </div>
87
82
  <div
88
83
  class="action"
89
84
  @click="onDetail(message.message, message)"
90
85
  v-else-if="message.messageType === 'COPY'"
91
86
  >
92
- {{ translateValueByKey('去查看') }}
87
+ {{ $translate('去查看') }}
93
88
  </div>
94
89
  <div class="action" @click="onDetail(message.message, message)" v-else>
95
- {{ translateValueByKey(messageInfo.btn) }}
90
+ {{ $translate(messageInfo.btn) }}
96
91
  </div>
97
92
  </div>
98
93
  </div>
@@ -102,7 +97,7 @@
102
97
 
103
98
  <div class="btn">
104
99
  <oio-icon icon="oinone-xiaoxi" size="16px" />
105
- <span class="msg-text">{{ translateValueByKey('消息') }}</span>
100
+ <span class="msg-text">{{ $translate('消息') }}</span>
106
101
  <div class="message-number" v-if="unreadNumber !== 0">{{ unreadNumber }}</div>
107
102
  </div>
108
103
  </a-popover>
@@ -110,7 +105,7 @@
110
105
  :title="$translate(confirmModalTitle)"
111
106
  class="custom-modal"
112
107
  :width="420"
113
- :visible="isShowConfirmModal"
108
+ :open="isShowConfirmModal"
114
109
  @cancel="onHideConfirmModal"
115
110
  >
116
111
  <template #closeIcon>
@@ -119,9 +114,7 @@
119
114
  </div>
120
115
  </template>
121
116
  <template #footer>
122
- <oio-button key="submit" type="primary" @click="onHideConfirmModal">
123
- {{ translateValueByKey('确 定') }}</oio-button
124
- >
117
+ <oio-button key="submit" type="primary" @click="onHideConfirmModal"> {{ $translate('确 定') }}</oio-button>
125
118
  </template>
126
119
  <div>
127
120
  <div v-html="currentMessage.body" class="message-richtext-wrapper"></div>
@@ -131,15 +124,17 @@
131
124
  </template>
132
125
  <script lang="ts">
133
126
  import { OioButton, OioIcon } from '@oinone/kunlun-vue-ui-antd';
127
+ import { Modal as AModal, Popover as APopover } from 'ant-design-vue';
134
128
  import { computed, defineComponent, ref } from 'vue';
135
- import { translateValueByKey } from '@oinone/kunlun-engine';
136
129
 
137
130
  export default defineComponent({
138
131
  name: 'DefaultNotification',
139
132
  inheritAttrs: false,
140
133
  components: {
141
134
  OioIcon,
142
- OioButton
135
+ OioButton,
136
+ APopover,
137
+ AModal
143
138
  },
144
139
  props: [
145
140
  'msgTotal',
@@ -168,8 +163,9 @@ export default defineComponent({
168
163
  props.toggleDialog();
169
164
  };
170
165
 
171
- const onShowPopover = (visible: boolean) => {
172
- if (visible) {
166
+ const onShowPopover = (val: boolean) => {
167
+ visible.value = val;
168
+ if (val) {
173
169
  props.getMessageInfo();
174
170
  }
175
171
  };
@@ -193,7 +189,6 @@ export default defineComponent({
193
189
  return {
194
190
  visible,
195
191
  unreadNumber,
196
- translateValueByKey,
197
192
 
198
193
  onShowPopover,
199
194
  onHideConfirmModal,
@@ -386,11 +381,14 @@ export default defineComponent({
386
381
 
387
382
  .center-content {
388
383
  flex: 1;
384
+ overflow: hidden;
389
385
 
390
386
  .title {
391
387
  font-size: 14px;
392
388
  color: var(--oio-text-color);
393
389
  margin-bottom: 6px;
390
+ word-wrap: break-word;
391
+ word-break: break-all;
394
392
  }
395
393
 
396
394
  .des {
@@ -1,11 +1,11 @@
1
- import { SPI } from '@oinone/kunlun-spi';
2
- import { Widget } from '@oinone/kunlun-vue-widget';
3
1
  import {
4
- IResourceDateTimeFormat,
5
- RedirectTargetEnum,
6
2
  executeViewAction,
7
- queryResourceDateTimeFormat
3
+ type IResourceDateTimeFormat,
4
+ queryResourceDateTimeFormat,
5
+ RedirectTargetEnum,
6
+ translateValueByKey
8
7
  } from '@oinone/kunlun-engine';
8
+ import { isDev } from '@oinone/kunlun-router';
9
9
  import { getModel } from '@oinone/kunlun-service';
10
10
  import {
11
11
  CastHelper,
@@ -15,9 +15,10 @@ import {
15
15
  defaultTimeFormatKey,
16
16
  ObjectUtils
17
17
  } from '@oinone/kunlun-shared';
18
- import { isDev } from '@oinone/kunlun-router';
18
+ import { SPI } from '@oinone/kunlun-spi';
19
+ import { Widget } from '@oinone/kunlun-vue-widget';
19
20
  import { MaskWidget } from '../../basic';
20
- import { MessageService, PamirsMessage } from '../../service';
21
+ import { MessageService, type PamirsMessage } from '../../service';
21
22
  import DefaultNotification from './DefaultNotification.vue';
22
23
 
23
24
  type ReturnBeforeClick = (message, messageInfo) => Promise<Boolean | null | undefined>;
@@ -48,8 +49,8 @@ export class NotificationWidget extends MaskWidget {
48
49
  public async getCopyAction() {
49
50
  return {
50
51
  name: 'workflow_detail',
51
- title: '查看工作流用户任务待办',
52
- displayName: '查看',
52
+ title: translateValueByKey('查看工作流用户任务待办'),
53
+ displayName: translateValueByKey('查看'),
53
54
  actionType: 'VIEW',
54
55
  target: 'ROUTER',
55
56
  viewType: 'DETAIL',
@@ -68,8 +69,8 @@ export class NotificationWidget extends MaskWidget {
68
69
  public async getWaitAction() {
69
70
  return {
70
71
  name: 'workflow_wait',
71
- title: '审批工作流用户任务待办',
72
- displayName: '审批',
72
+ title: translateValueByKey('审批工作流用户任务待办'),
73
+ displayName: translateValueByKey('审批'),
73
74
  actionType: 'VIEW',
74
75
  target: 'ROUTER',
75
76
  viewType: 'FORM',
@@ -89,8 +90,8 @@ export class NotificationWidget extends MaskWidget {
89
90
  public async getWriteAction() {
90
91
  return {
91
92
  name: 'workflow_write',
92
- title: '填写工作流用户任务待办',
93
- displayName: '填写',
93
+ title: translateValueByKey('填写工作流用户任务待办'),
94
+ displayName: translateValueByKey('填写'),
94
95
  actionType: 'VIEW',
95
96
  target: 'ROUTER',
96
97
  viewType: 'FORM',
@@ -143,22 +144,22 @@ export class NotificationWidget extends MaskWidget {
143
144
  @Widget.Reactive()
144
145
  public messageTextMap = {
145
146
  WORKFLOW: {
146
- title: '工作流',
147
- desc: '待处理的审批/填写任务',
148
- btn: '去处理',
147
+ title: translateValueByKey('工作流'),
148
+ desc: translateValueByKey('待处理的审批/填写任务'),
149
+ btn: translateValueByKey('去处理'),
149
150
  icon: 'oinone-tianxie',
150
151
  color: 'rgb(122, 32, 233)'
151
152
  },
152
153
  NOTIFICATION: {
153
- title: '站内信',
154
- desc: '未读的站内信',
155
- btn: '去查看',
154
+ title: translateValueByKey('站内信'),
155
+ desc: translateValueByKey('未读的站内信'),
156
+ btn: translateValueByKey('去查看'),
156
157
  icon: 'oinone-xitongtongzhi'
157
158
  },
158
159
  COPY: {
159
- title: '抄送',
160
- desc: '未查看的抄送',
161
- btn: '去查看',
160
+ title: translateValueByKey('抄送'),
161
+ desc: translateValueByKey('抄送'),
162
+ btn: translateValueByKey('去查看'),
162
163
  icon: 'oinone-tianxie'
163
164
  }
164
165
  };
@@ -172,7 +173,7 @@ export class NotificationWidget extends MaskWidget {
172
173
  }
173
174
 
174
175
  @Widget.Reactive()
175
- public confirmModalTitle = '查看消息';
176
+ public confirmModalTitle = translateValueByKey('查看消息');
176
177
 
177
178
  @Widget.Reactive()
178
179
  public currentMessage = {} as any;
@@ -7,6 +7,6 @@
7
7
  import { defineComponent } from 'vue';
8
8
 
9
9
  export default defineComponent({
10
- props: ['showData'],
10
+ props: ['showData']
11
11
  });
12
12
  </script>
@@ -15,8 +15,8 @@
15
15
  import { CaretDownOutlined } from '@ant-design/icons-vue';
16
16
  import { OioDropdown } from '@oinone/kunlun-vue-ui-antd';
17
17
  import { Menu as AMenu, MenuItem as AMenuItem } from 'ant-design-vue';
18
- import { defineComponent, PropType } from 'vue';
19
- import { PartnerItem } from './typing';
18
+ import { defineComponent, type PropType } from 'vue';
19
+ import type { PartnerItem } from './typing';
20
20
 
21
21
  export default defineComponent({
22
22
  name: 'PartnerSwitcher',
@@ -2,9 +2,9 @@ import { SPI } from '@oinone/kunlun-spi';
2
2
  import { Widget } from '@oinone/kunlun-vue-widget';
3
3
  import { MaskWidget } from '../../basic';
4
4
  import PartnerSwitcher from './PartnerSwitcher.vue';
5
- import { PartnerSwitcherService, PartnerSwitcherServiceToken } from './service';
6
- import { PartnerInfoSession, PartnerInfoSessionToken, PartnerSessionStore } from './session';
7
- import { PartnerInfo, PartnerItem } from './typing';
5
+ import { type PartnerSwitcherService, PartnerSwitcherServiceToken } from './service';
6
+ import { type PartnerInfoSession, PartnerInfoSessionToken, type PartnerSessionStore } from './session';
7
+ import type { PartnerInfo, PartnerItem } from './typing';
8
8
 
9
9
  @SPI.ClassFactory(MaskWidget.Token({ widget: 'partner-switcher' }))
10
10
  export class PartnerSwitcherWidget extends MaskWidget {
@@ -1,5 +1,5 @@
1
1
  import { ServiceIdentifier } from '@oinone/kunlun-spi';
2
- import { PartnerInfo, PartnerItem } from '../typing';
2
+ import type { PartnerInfo, PartnerItem } from '../typing';
3
3
 
4
4
  /**
5
5
  * 合作伙伴选择服务
@@ -1,8 +1,8 @@
1
1
  import { SYSTEM_MODULE_NAME } from '@oinone/kunlun-meta';
2
2
  import { GQL } from '@oinone/kunlun-request';
3
3
  import { SPI } from '@oinone/kunlun-spi';
4
- import { PartnerInfo, PartnerItem } from '../../typing';
5
- import { PartnerSwitcherService, PartnerSwitcherServiceToken } from '../PartnerSwitcherService';
4
+ import type { PartnerInfo, PartnerItem } from '../../typing';
5
+ import { type PartnerSwitcherService, PartnerSwitcherServiceToken } from '../PartnerSwitcherService';
6
6
 
7
7
  const SHOW_PARTNERS_MODEL_NAME = 'showPartners';
8
8
 
@@ -1,5 +1,5 @@
1
1
  import { ServiceIdentifier } from '@oinone/kunlun-spi';
2
- import { PartnerInfo, PartnerItem } from '../typing';
2
+ import type { PartnerInfo, PartnerItem } from '../typing';
3
3
 
4
4
  export interface PartnerInfoSession<T = unknown> {
5
5
  /**
@@ -1,6 +1,6 @@
1
1
  import { SPI } from '@oinone/kunlun-spi';
2
- import { PartnerInfo, PartnerItem } from '../../typing';
3
- import { PartnerInfoSession, PartnerInfoSessionToken } from '../PartnerInfoSession';
2
+ import type { PartnerInfo, PartnerItem } from '../../typing';
3
+ import { type PartnerInfoSession, PartnerInfoSessionToken } from '../PartnerInfoSession';
4
4
 
5
5
  export interface PartnerSessionStore {
6
6
  sid: string | null | undefined;
@@ -1,7 +1,13 @@
1
- import { DslDefinition } from '@oinone/kunlun-dsl';
1
+ import type { DslDefinition } from '@oinone/kunlun-dsl';
2
2
  import { SPI } from '@oinone/kunlun-spi';
3
3
  import { PartnerSwitcherConfigManager } from '../../../config';
4
- import { MaskEditor, MaskEditorContext, MaskEditorToken, MaskEditService, MaskEditServiceToken } from '../../../spi';
4
+ import {
5
+ type MaskEditor,
6
+ type MaskEditorContext,
7
+ MaskEditorToken,
8
+ type MaskEditService,
9
+ MaskEditServiceToken
10
+ } from '../../../spi';
5
11
 
6
12
  @SPI.Service(MaskEditorToken, { priority: 10 })
7
13
  export class PartnerSwitcherMaskEditor implements MaskEditor {
@@ -1,4 +1,4 @@
1
- import { IModel } from '@oinone/kunlun-meta';
1
+ import type { IModel } from '@oinone/kunlun-meta';
2
2
  import { queryPage } from '@oinone/kunlun-service';
3
3
  import { SPI } from '@oinone/kunlun-spi';
4
4
  import { Widget } from '@oinone/kunlun-vue-widget';
@@ -1,16 +1,18 @@
1
1
  <template>
2
2
  <a-dropdown :trigger="['click']" placement="bottomLeft" overlayClassName="top-bar-common-dropdown">
3
3
  <div class="k-user">
4
- <img :src="pamirsUser.avatarUrl || genStaticPath('man_1651543408256.png')" />
5
- <span v-if="hasCurrentUser">{{ pamirsUser.nickname || pamirsUser.name || pamirsUser.realname }}</span>
4
+ <img :src="pamirsUser.avatarUrl || defaultUserAvatar" />
5
+ <span v-if="hasCurrentUser">{{ $translate(pamirsUser.nickname || pamirsUser.name || pamirsUser.realname) }}</span>
6
6
  <caret-down-outlined :style="{ fontSize: '12px', color: 'var(--oio-icon-color)' }" />
7
7
  </div>
8
8
  <template #overlay>
9
9
  <a-menu class="k-user-dropdown">
10
10
  <a-menu-item @click="onUserCenter">
11
11
  <div class="menu-user">
12
- <img :src="pamirsUser.avatarUrl || genStaticPath('man_1651543408256.png')" />
13
- <span v-if="hasCurrentUser">{{ pamirsUser.nickname || pamirsUser.name || pamirsUser.realname }}</span>
12
+ <img :src="pamirsUser.avatarUrl || defaultUserAvatar" />
13
+ <span v-if="hasCurrentUser">{{
14
+ $translate(pamirsUser.nickname || pamirsUser.name || pamirsUser.realname)
15
+ }}</span>
14
16
  </div>
15
17
  </a-menu-item>
16
18
 
@@ -36,10 +38,10 @@
36
38
  </template>
37
39
  <script lang="ts">
38
40
  import { CaretDownOutlined } from '@ant-design/icons-vue';
39
- import { UserInfo } from '@oinone/kunlun-engine';
40
-
41
+ import type { UserInfo } from '@oinone/kunlun-engine';
41
42
  import { OioIcon } from '@oinone/kunlun-vue-ui-antd';
42
- import { computed, defineComponent, PropType } from 'vue';
43
+ import { computed, defineComponent, type PropType } from 'vue';
44
+ import { TopBarService } from '../../service';
43
45
 
44
46
  export default defineComponent({
45
47
  name: 'DefaultUser',
@@ -56,10 +58,6 @@ export default defineComponent({
56
58
  executeAction: {
57
59
  type: Function,
58
60
  required: true
59
- },
60
- genStaticPath: {
61
- type: Function,
62
- required: true
63
61
  }
64
62
  },
65
63
  setup(props) {
@@ -86,7 +84,13 @@ export default defineComponent({
86
84
  }
87
85
  };
88
86
 
89
- return { actionGroups, pamirsUser, onUserCenter, hasCurrentUser };
87
+ return {
88
+ actionGroups,
89
+ pamirsUser,
90
+ defaultUserAvatar: TopBarService.getDefaultUserAvatar(),
91
+ onUserCenter,
92
+ hasCurrentUser
93
+ };
90
94
  }
91
95
  });
92
96
  </script>
@@ -11,20 +11,20 @@ import {
11
11
  isRuntimeViewAction,
12
12
  MultiTabsRuntimeManifestMergedConfigManager,
13
13
  OioProvider,
14
- PamirsUser,
15
- ReloadMaskCallChainingParameters,
16
- RuntimeAction,
14
+ type PamirsUser,
15
+ type ReloadMaskCallChainingParameters,
16
+ type RuntimeAction,
17
17
  ServerActionCache,
18
18
  UrlActionCache,
19
- UserInfo,
19
+ type UserInfo,
20
20
  ViewActionCache
21
21
  } from '@oinone/kunlun-engine';
22
- import { GlobalConfig, IURLAction, ViewActionTarget } from '@oinone/kunlun-meta';
22
+ import { GlobalConfig, type IURLAction, ViewActionTarget } from '@oinone/kunlun-meta';
23
23
  import { setSessionPath, useSessionPath } from '@oinone/kunlun-request';
24
- import { Matched, Router, useMatched } from '@oinone/kunlun-router';
24
+ import { type Matched, Router, useMatched } from '@oinone/kunlun-router';
25
25
  import { SPI, SPIOperator } from '@oinone/kunlun-spi';
26
26
  import { useRouter } from '@oinone/kunlun-vue-router';
27
- import { Widget, WidgetSubjection } from '@oinone/kunlun-vue-widget';
27
+ import { Widget, type WidgetSubjection } from '@oinone/kunlun-vue-widget';
28
28
  import { MaskWidget } from '../../basic';
29
29
  import { TopBarService } from '../../service';
30
30
  import { pamirsUserSymbol } from '../../typing';
@@ -62,11 +62,12 @@ export class UserWidget extends MaskWidget {
62
62
  }
63
63
  } else if (isRuntimeServerAction(action)) {
64
64
  const serverAction = await useSessionPath(action.sessionPath, () => ServerActionCache.get(model, name));
65
+ let res: Record<string, unknown> | undefined;
65
66
  if (serverAction) {
66
- await executeServerAction(serverAction, {});
67
+ res = (await executeServerAction(serverAction, {})) as Record<string, unknown>;
67
68
  }
68
69
  if (name === 'logout') {
69
- this.logout();
70
+ this.logout(res as { redirectUrl?: string });
70
71
  }
71
72
  } else if (isRuntimeUrlAction(action)) {
72
73
  const urlAction = await useSessionPath(action.sessionPath, () => UrlActionCache.get(model, name));
@@ -78,8 +79,6 @@ export class UserWidget extends MaskWidget {
78
79
  name: action.fun,
79
80
  widget: action.widget
80
81
  };
81
-
82
- // eslint-disable-next-line @typescript-eslint/no-shadow
83
82
  const Widget = SPIOperator.selector(baseActionTokenSymbol, actionOptions) as any;
84
83
  const actionWidget = new Widget();
85
84
  actionWidget.initialize({ action });
@@ -87,17 +86,21 @@ export class UserWidget extends MaskWidget {
87
86
  }
88
87
  }
89
88
 
90
- public logout() {
91
- const loginPath = GlobalConfig.getConfigByName('login') as string;
92
- let url = loginPath;
93
- if (loginPath.startsWith('/')) {
94
- url = loginPath.slice(1);
89
+ public logout(res?: { redirectUrl?: string }) {
90
+ let redirectUrl = res?.redirectUrl;
91
+ if (!redirectUrl) {
92
+ const loginPath = GlobalConfig.getConfigByName('login') as string;
93
+ let url = loginPath;
94
+ if (loginPath.startsWith('/')) {
95
+ url = loginPath.slice(1);
96
+ }
97
+ OioProvider.setBrowserConfig(getDefaultBrowser());
98
+ setSessionPath(undefined);
99
+ ClearCache.clear();
100
+ OioProvider.refreshSystemMajorConfig();
101
+ redirectUrl = `${window.location.origin}/${url}`;
95
102
  }
96
- OioProvider.setBrowserConfig(getDefaultBrowser());
97
- setSessionPath(undefined);
98
- ClearCache.clear();
99
- window.location.assign(`${window.location.origin}/${url}`);
100
- OioProvider.refreshSystemMajorConfig();
103
+ window.location.assign(redirectUrl);
101
104
  }
102
105
 
103
106
  protected fetchUserInfo(): Promise<UserInfo> {
@@ -1 +1,2 @@
1
+ export { default as DefaultUser } from './DefaultUser.vue';
1
2
  export * from './UserWidget';
@@ -1,5 +1,5 @@
1
- import { ConfigHelper, EnabledConfig } from '@oinone/kunlun-engine';
2
- import { RuntimeConfig, RuntimeConfigOptions } from '@oinone/kunlun-meta';
1
+ import { ConfigHelper, type EnabledConfig } from '@oinone/kunlun-engine';
2
+ import { RuntimeConfig, type RuntimeConfigOptions } from '@oinone/kunlun-meta';
3
3
 
4
4
  /**
5
5
  * 调试配置
@@ -1,5 +1,5 @@
1
- import { ConfigHelper, EnabledConfig } from '@oinone/kunlun-engine';
2
- import { RuntimeConfig, RuntimeConfigOptions } from '@oinone/kunlun-meta';
1
+ import { ConfigHelper, type EnabledConfig } from '@oinone/kunlun-engine';
2
+ import { RuntimeConfig, type RuntimeConfigOptions } from '@oinone/kunlun-meta';
3
3
 
4
4
  /**
5
5
  * 合作伙伴切换配置
@@ -1,7 +1,7 @@
1
1
  import { ModuleCache } from '@oinone/kunlun-engine';
2
- import { IMenu } from '@oinone/kunlun-meta';
3
- import { Comparator, TreeHelper, TreeNode } from '@oinone/kunlun-shared';
4
- import { MenuUrlParameters, RuntimeMenu } from '../typing';
2
+ import type { IMenu } from '@oinone/kunlun-meta';
3
+ import { type Comparator, TreeHelper, TreeNode } from '@oinone/kunlun-shared';
4
+ import type { MenuUrlParameters, RuntimeMenu } from '../typing';
5
5
 
6
6
  const defaultCompareFunction: Comparator<TreeNode<RuntimeMenu>> = (a, b) => {
7
7
  const ap = a.value?.priority;
@@ -1,5 +1,5 @@
1
- import { ClearCache, ModelCache, QueryPageResult, RuntimeViewAction } from '@oinone/kunlun-engine';
2
- import { IModule, SYSTEM_MODULE_NAME } from '@oinone/kunlun-meta';
1
+ import { ClearCache, QueryPageResult, type RuntimeViewAction, translateValueByKey } from '@oinone/kunlun-engine';
2
+ import { type IModule, SYSTEM_MODULE_NAME } from '@oinone/kunlun-meta';
3
3
  import { gql } from '@oinone/kunlun-request';
4
4
  import { http } from '@oinone/kunlun-service';
5
5
 
@@ -65,6 +65,6 @@ export class ModuleService {
65
65
 
66
66
  public static generatorViewTitle(action: RuntimeViewAction): string {
67
67
  const { resView } = action;
68
- return action.title || resView?.title || resView?.name || '未命名';
68
+ return action.title || resView?.title || resView?.name || translateValueByKey('未命名');
69
69
  }
70
70
  }
@@ -1,8 +1,8 @@
1
- import { ClearCache, CurrentLanguage, UserInfo, UserLang } from '@oinone/kunlun-engine';
1
+ import { ClearCache, CurrentLanguage, genStaticPath, type UserInfo, type UserLang } from '@oinone/kunlun-engine';
2
2
  import { MetadataFragment, SYSTEM_MODULE_NAME } from '@oinone/kunlun-meta';
3
3
  import { gql } from '@oinone/kunlun-request';
4
4
  import { http } from '@oinone/kunlun-service';
5
- import { RuntimeLanguage } from '@oinone/kunlun-vue-ui-common';
5
+ import type { RuntimeLanguage } from '@oinone/kunlun-vue-ui-common';
6
6
 
7
7
  export class TopBarService {
8
8
  private static userInfoCache: Promise<UserInfo> | null | undefined;
@@ -21,6 +21,10 @@ export class TopBarService {
21
21
  return TopBarService.userInfoCache;
22
22
  }
23
23
 
24
+ public static getDefaultUserAvatar(): string {
25
+ return genStaticPath('man_1651543408256.png');
26
+ }
27
+
24
28
  public static async getCurrentLang(): Promise<UserLang | undefined> {
25
29
  try {
26
30
  return await CurrentLanguage.get();
@@ -1,4 +1,4 @@
1
- import { UserInfo, UserService, UserServiceToken } from '@oinone/kunlun-engine';
1
+ import { type UserInfo, type UserService, UserServiceToken } from '@oinone/kunlun-engine';
2
2
  import { SPI } from '@oinone/kunlun-spi';
3
3
  import { TopBarService } from './top-bar-service';
4
4
 
@@ -1,7 +1,10 @@
1
1
  export {};
2
2
 
3
- declare module '@vue/runtime-core' {
3
+ declare module 'vue' {
4
4
  interface ComponentCustomProperties {
5
- $translate<T extends string | null | undefined = string | null | undefined>(text: T): T;
5
+ $translate<T extends string | null | undefined = string | null | undefined>(
6
+ text: T,
7
+ context?: Record<string, unknown>
8
+ ): T;
6
9
  }
7
10
  }
@@ -1,4 +1,4 @@
1
- import { DslDefinition } from '@oinone/kunlun-dsl';
1
+ import type { DslDefinition } from '@oinone/kunlun-dsl';
2
2
  import { ServiceIdentifier, SPI } from '@oinone/kunlun-spi';
3
3
  import { InternalMaskWidget } from '../tags';
4
4
 
@@ -42,6 +42,12 @@ export interface MaskEditService {
42
42
  */
43
43
  generatorWidget(widget: string): DslDefinition;
44
44
 
45
+ /**
46
+ * 生成母版组件DSL
47
+ * @param dslNodeType
48
+ */
49
+ generatorWidgetByDslNodeType(dslNodeType: string): DslDefinition;
50
+
45
51
  /**
46
52
  * 生成分割线DSL
47
53
  */
@@ -1,4 +1,4 @@
1
- import { computed, ComputedRef, inject, InjectionKey, provide } from 'vue';
1
+ import { computed, type ComputedRef, inject, type InjectionKey, provide } from 'vue';
2
2
 
3
3
  export interface MaskContext {
4
4
  parentHandle: ComputedRef<string>;
package/src/tags/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { StringHelper } from '@oinone/kunlun-shared';
2
2
  import { componentInstall, DEFAULT_TAG_PREFIX } from '@oinone/kunlun-vue-widget';
3
- import { Component } from 'vue';
3
+ import type { Component } from 'vue';
4
4
  import { getMaskTagManagerInstance } from '../basic/register';
5
5
  import Block from './Block.vue';
6
6
  import Breadcrumb from './Breadcrumb.vue';