@done-coding/forge-core 0.0.0-placeholder.0 → 0.100.0-alpha.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 (283) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +49 -0
  3. package/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
  4. package/es/bridge/badge.mjs +37 -0
  5. package/es/bridge/config-hook.mjs +58 -0
  6. package/es/bridge/contracts/event.mjs +102 -0
  7. package/es/bridge/contracts/index.mjs +5 -0
  8. package/es/bridge/event.mjs +87 -0
  9. package/es/bridge/index.mjs +331 -0
  10. package/es/bridge/layout.mjs +100 -0
  11. package/es/bridge/permission.mjs +91 -0
  12. package/es/bridge/plugin.mjs +39 -0
  13. package/es/bridge/route.mjs +78 -0
  14. package/es/bridge/state.mjs +61 -0
  15. package/es/bridge/storage.mjs +26 -0
  16. package/es/bridge/theme/index.mjs +233 -0
  17. package/es/bridge/theme/persist.mjs +18 -0
  18. package/es/bridge/theme/system-dark.mjs +18 -0
  19. package/es/components/basic/AppCollapseToggle.vue.mjs +7 -0
  20. package/es/components/basic/AppCollapseToggle.vue2.mjs +63 -0
  21. package/es/components/basic/action-btn/ActionBtn.vue.mjs +200 -0
  22. package/es/components/basic/action-btn/ActionBtn.vue2.mjs +4 -0
  23. package/es/components/basic/action-btn/index.mjs +4 -0
  24. package/es/components/basic/action-btn/use-action-btn-report.mjs +54 -0
  25. package/es/components/basic/action-btn-group/ActionBtnGroup.vue.mjs +69 -0
  26. package/es/components/basic/action-btn-group/ActionBtnGroup.vue2.mjs +4 -0
  27. package/es/components/basic/action-btn-group/index.mjs +4 -0
  28. package/es/components/basic/action-btn-group/use-action-btn-group-report.mjs +30 -0
  29. package/es/components/basic/display-contracts/index.mjs +1 -0
  30. package/es/components/basic/drag-float/DragFloat.vue.mjs +7 -0
  31. package/es/components/basic/drag-float/DragFloat.vue2.mjs +109 -0
  32. package/es/components/basic/drag-float/index.mjs +4 -0
  33. package/es/components/basic/height-provider/HeightProvider.vue.mjs +62 -0
  34. package/es/components/basic/height-provider/HeightProvider.vue2.mjs +4 -0
  35. package/es/components/basic/height-provider/index.mjs +4 -0
  36. package/es/components/basic/index.mjs +4 -0
  37. package/es/components/basic/shadow-clone/ShadowClone.vue.mjs +32 -0
  38. package/es/components/basic/shadow-clone/ShadowClone.vue2.mjs +4 -0
  39. package/es/components/basic/shadow-clone/index.mjs +4 -0
  40. package/es/components/basic/shadow-clone/use-shadow-target.mjs +76 -0
  41. package/es/components/basic/slot-layout-flow-aside/SlotLayoutFlowAside.vue.mjs +7 -0
  42. package/es/components/basic/slot-layout-flow-aside/SlotLayoutFlowAside.vue2.mjs +68 -0
  43. package/es/components/basic/slot-layout-flow-aside/index.mjs +4 -0
  44. package/es/components/basic/slot-layout-template/SlotLayoutTemplate.vue.mjs +30 -0
  45. package/es/components/basic/slot-layout-template/SlotLayoutTemplate.vue2.mjs +4 -0
  46. package/es/components/basic/slot-layout-template/index.mjs +4 -0
  47. package/es/components/basic/watch-size/WatchSize.vue.mjs +73 -0
  48. package/es/components/basic/watch-size/WatchSize.vue2.mjs +4 -0
  49. package/es/components/basic/watch-size/index.mjs +4 -0
  50. package/es/components/config/app-theme/AppTheme.vue.mjs +7 -0
  51. package/es/components/config/app-theme/AppTheme.vue2.mjs +82 -0
  52. package/es/components/config/app-theme/index.mjs +4 -0
  53. package/es/components/data/badge-mark/BadgeMark.vue.mjs +7 -0
  54. package/es/components/data/badge-mark/BadgeMark.vue2.mjs +80 -0
  55. package/es/components/data/badge-mark/index.mjs +4 -0
  56. package/es/components/data/badge-mark/use-badge-mask.mjs +82 -0
  57. package/es/components/data/badge-mark/use-badge.mjs +106 -0
  58. package/es/components/data/boolean-tag/BooleanTag.vue.mjs +36 -0
  59. package/es/components/data/boolean-tag/BooleanTag.vue2.mjs +4 -0
  60. package/es/components/data/boolean-tag/index.mjs +4 -0
  61. package/es/components/data/image-preview-trigger/ImagePreviewTrigger.vue.mjs +38 -0
  62. package/es/components/data/image-preview-trigger/ImagePreviewTrigger.vue2.mjs +4 -0
  63. package/es/components/data/image-preview-trigger/index.mjs +4 -0
  64. package/es/components/data/modal-image-preview/ModalImagePreview.vue.mjs +52 -0
  65. package/es/components/data/modal-image-preview/ModalImagePreview.vue2.mjs +4 -0
  66. package/es/components/data/modal-image-preview/index.mjs +4 -0
  67. package/es/components/feedback/action-confirm/ActionConfirm.vue.mjs +7 -0
  68. package/es/components/feedback/action-confirm/ActionConfirm.vue2.mjs +143 -0
  69. package/es/components/feedback/action-confirm/index.mjs +4 -0
  70. package/es/components/feedback/modal-confirm/ModalConfirm.vue.mjs +8 -0
  71. package/es/components/feedback/modal-confirm/ModalConfirm.vue2.mjs +243 -0
  72. package/es/components/feedback/modal-confirm/index.mjs +4 -0
  73. package/es/components/feedback/modal-video-preview/ModalVideoPreview.vue.mjs +8 -0
  74. package/es/components/feedback/modal-video-preview/ModalVideoPreview.vue2.mjs +93 -0
  75. package/es/components/feedback/modal-video-preview/index.mjs +4 -0
  76. package/es/components/feedback/preview-keys/index.mjs +7 -0
  77. package/es/components/feedback/preview-keys/keys.mjs +7 -0
  78. package/es/components/feedback/shelf-contracts/index.mjs +1 -0
  79. package/es/components/feedback/video-preview-trigger/VideoPreviewTrigger.vue.mjs +7 -0
  80. package/es/components/feedback/video-preview-trigger/VideoPreviewTrigger.vue2.mjs +133 -0
  81. package/es/components/feedback/video-preview-trigger/index.mjs +4 -0
  82. package/es/components/other/TriggerAutoImport.vue.mjs +12 -0
  83. package/es/components/other/TriggerAutoImport.vue2.mjs +4 -0
  84. package/es/components/other/auto-refresh/AutoRefresh.vue.mjs +7 -0
  85. package/es/components/other/auto-refresh/AutoRefresh.vue2.mjs +96 -0
  86. package/es/components/other/auto-refresh/index.mjs +4 -0
  87. package/es/components/other/auto-refresh/use-auto-refresh-report.mjs +31 -0
  88. package/es/components/other/auto-refresh-contracts/index.mjs +1 -0
  89. package/es/components/other/auto-refresh-group/AutoRefreshGroup.vue.mjs +7 -0
  90. package/es/components/other/auto-refresh-group/AutoRefreshGroup.vue2.mjs +69 -0
  91. package/es/components/other/auto-refresh-group/index.mjs +4 -0
  92. package/es/components/other/auto-refresh-group/use-auto-refresh-group-report.mjs +12 -0
  93. package/es/components/other/index.mjs +4 -0
  94. package/es/config/badge-attr.mjs +6 -0
  95. package/es/config/index.mjs +19 -0
  96. package/es/config/list-model.mjs +13 -0
  97. package/es/config/modal-keys.mjs +6 -0
  98. package/es/config/route.mjs +6 -0
  99. package/es/config/slot-region.mjs +45 -0
  100. package/es/helpers/form.mjs +25 -0
  101. package/es/helpers/index.mjs +10 -0
  102. package/es/helpers/list-helper.mjs +77 -0
  103. package/es/hooks/activated.mjs +64 -0
  104. package/es/hooks/feel-size.mjs +46 -0
  105. package/es/hooks/index.mjs +31 -0
  106. package/es/hooks/menus-dispatch.mjs +85 -0
  107. package/es/hooks/timeout.mjs +36 -0
  108. package/es/hooks/use-active-record.mjs +104 -0
  109. package/es/hooks/use-breakpoint.mjs +48 -0
  110. package/es/hooks/use-bridge-report.mjs +12 -0
  111. package/es/hooks/use-channel-viewport-height.mjs +43 -0
  112. package/es/hooks/use-context-defaults.mjs +44 -0
  113. package/es/hooks/use-custom-breakpoint.mjs +69 -0
  114. package/es/hooks/use-is-dev.mjs +16 -0
  115. package/es/hooks/use-observe-size.mjs +43 -0
  116. package/es/hooks/use-permission.mjs +12 -0
  117. package/es/hooks/use-surface.mjs +35 -0
  118. package/es/hooks/use-theme-apply.mjs +496 -0
  119. package/es/hooks/use-viewport-apply.mjs +52 -0
  120. package/es/index.mjs +179 -0
  121. package/es/inject/index.mjs +19 -0
  122. package/es/inject/key.mjs +70 -0
  123. package/es/injection-namespace.mjs +4 -0
  124. package/es/internals/index.mjs +16 -0
  125. package/es/router/group-redirect.mjs +26 -0
  126. package/es/router/guard/index.mjs +36 -0
  127. package/es/router/guard/login.mjs +6 -0
  128. package/es/router/guard/permission.mjs +6 -0
  129. package/es/router/index.mjs +10 -0
  130. package/es/store/app.mjs +306 -0
  131. package/es/store/index.mjs +8 -0
  132. package/es/store/router-permission.mjs +94 -0
  133. package/es/store/user.mjs +128 -0
  134. package/es/style.css +339 -0
  135. package/es/types/index.mjs +1 -0
  136. package/es/utils/dom.mjs +42 -0
  137. package/es/utils/export.mjs +39 -0
  138. package/es/utils/gap-scale.mjs +25 -0
  139. package/es/utils/id.mjs +7 -0
  140. package/es/utils/index.mjs +37 -0
  141. package/es/utils/permission.mjs +31 -0
  142. package/es/utils/router.mjs +42 -0
  143. package/es/utils/theme-scale.mjs +86 -0
  144. package/es/utils/time.mjs +24 -0
  145. package/package.json +232 -1
  146. package/types/bridge/badge.d.ts +215 -0
  147. package/types/bridge/config-hook.d.ts +12 -0
  148. package/types/bridge/contracts/bridge.d.ts +339 -0
  149. package/types/bridge/contracts/config.d.ts +519 -0
  150. package/types/bridge/contracts/event.d.ts +546 -0
  151. package/types/bridge/contracts/index.d.ts +3 -0
  152. package/types/bridge/event.d.ts +3 -0
  153. package/types/bridge/index.d.ts +28 -0
  154. package/types/bridge/layout.d.ts +102 -0
  155. package/types/bridge/permission.d.ts +31 -0
  156. package/types/bridge/plugin.d.ts +11 -0
  157. package/types/bridge/route.d.ts +36 -0
  158. package/types/bridge/state.d.ts +26 -0
  159. package/types/bridge/storage.d.ts +10 -0
  160. package/types/bridge/theme/index.d.ts +10 -0
  161. package/types/bridge/theme/persist.d.ts +23 -0
  162. package/types/bridge/theme/system-dark.d.ts +14 -0
  163. package/types/bridge/theme/types.d.ts +346 -0
  164. package/types/components/basic/AppCollapseToggle.vue.d.ts +14 -0
  165. package/types/components/basic/action-btn/ActionBtn.vue.d.ts +19 -0
  166. package/types/components/basic/action-btn/index.d.ts +1 -0
  167. package/types/components/basic/action-btn/use-action-btn-report.d.ts +12 -0
  168. package/types/components/basic/action-btn-group/ActionBtnGroup.vue.d.ts +18 -0
  169. package/types/components/basic/action-btn-group/index.d.ts +1 -0
  170. package/types/components/basic/action-btn-group/use-action-btn-group-report.d.ts +6 -0
  171. package/types/components/basic/display-contracts/index.d.ts +1 -0
  172. package/types/components/basic/display-contracts/types.d.ts +280 -0
  173. package/types/components/basic/drag-float/DragFloat.vue.d.ts +35 -0
  174. package/types/components/basic/drag-float/index.d.ts +1 -0
  175. package/types/components/basic/height-provider/HeightProvider.vue.d.ts +28 -0
  176. package/types/components/basic/height-provider/index.d.ts +1 -0
  177. package/types/components/basic/index.d.ts +1 -0
  178. package/types/components/basic/shadow-clone/ShadowClone.vue.d.ts +20 -0
  179. package/types/components/basic/shadow-clone/index.d.ts +1 -0
  180. package/types/components/basic/shadow-clone/use-shadow-target.d.ts +9 -0
  181. package/types/components/basic/slot-layout-flow-aside/SlotLayoutFlowAside.vue.d.ts +32 -0
  182. package/types/components/basic/slot-layout-flow-aside/index.d.ts +2 -0
  183. package/types/components/basic/slot-layout-flow-aside/types.d.ts +10 -0
  184. package/types/components/basic/slot-layout-template/SlotLayoutTemplate.vue.d.ts +48 -0
  185. package/types/components/basic/slot-layout-template/index.d.ts +1 -0
  186. package/types/components/basic/watch-size/WatchSize.vue.d.ts +45 -0
  187. package/types/components/basic/watch-size/index.d.ts +1 -0
  188. package/types/components/config/app-theme/AppTheme.vue.d.ts +2 -0
  189. package/types/components/config/app-theme/index.d.ts +1 -0
  190. package/types/components/data/badge-mark/BadgeMark.vue.d.ts +212 -0
  191. package/types/components/data/badge-mark/index.d.ts +1 -0
  192. package/types/components/data/badge-mark/use-badge-mask.d.ts +8 -0
  193. package/types/components/data/badge-mark/use-badge.d.ts +78 -0
  194. package/types/components/data/boolean-tag/BooleanTag.vue.d.ts +8 -0
  195. package/types/components/data/boolean-tag/index.d.ts +1 -0
  196. package/types/components/data/image-preview-trigger/ImagePreviewTrigger.vue.d.ts +41 -0
  197. package/types/components/data/image-preview-trigger/index.d.ts +1 -0
  198. package/types/components/data/modal-image-preview/ModalImagePreview.vue.d.ts +31 -0
  199. package/types/components/data/modal-image-preview/index.d.ts +1 -0
  200. package/types/components/feedback/action-confirm/ActionConfirm.vue.d.ts +33 -0
  201. package/types/components/feedback/action-confirm/index.d.ts +1 -0
  202. package/types/components/feedback/modal-confirm/ModalConfirm.vue.d.ts +120 -0
  203. package/types/components/feedback/modal-confirm/index.d.ts +2 -0
  204. package/types/components/feedback/modal-confirm/types.d.ts +4 -0
  205. package/types/components/feedback/modal-video-preview/ModalVideoPreview.vue.d.ts +40 -0
  206. package/types/components/feedback/modal-video-preview/index.d.ts +1 -0
  207. package/types/components/feedback/preview-keys/index.d.ts +2 -0
  208. package/types/components/feedback/preview-keys/keys.d.ts +14 -0
  209. package/types/components/feedback/shelf-contracts/index.d.ts +1 -0
  210. package/types/components/feedback/shelf-contracts/types.d.ts +1 -0
  211. package/types/components/feedback/video-preview-trigger/VideoPreviewTrigger.vue.d.ts +46 -0
  212. package/types/components/feedback/video-preview-trigger/index.d.ts +1 -0
  213. package/types/components/other/TriggerAutoImport.vue.d.ts +17 -0
  214. package/types/components/other/auto-refresh/AutoRefresh.vue.d.ts +14 -0
  215. package/types/components/other/auto-refresh/index.d.ts +1 -0
  216. package/types/components/other/auto-refresh/use-auto-refresh-report.d.ts +1 -0
  217. package/types/components/other/auto-refresh-contracts/index.d.ts +1 -0
  218. package/types/components/other/auto-refresh-contracts/types.d.ts +17 -0
  219. package/types/components/other/auto-refresh-group/AutoRefreshGroup.vue.d.ts +18 -0
  220. package/types/components/other/auto-refresh-group/index.d.ts +1 -0
  221. package/types/components/other/auto-refresh-group/use-auto-refresh-group-report.d.ts +3 -0
  222. package/types/components/other/index.d.ts +1 -0
  223. package/types/config/badge-attr.d.ts +26 -0
  224. package/types/config/index.d.ts +5 -0
  225. package/types/config/list-model.d.ts +49 -0
  226. package/types/config/modal-keys.d.ts +12 -0
  227. package/types/config/route.d.ts +4 -0
  228. package/types/config/slot-region.d.ts +72 -0
  229. package/types/helpers/form.d.ts +8 -0
  230. package/types/helpers/index.d.ts +3 -0
  231. package/types/helpers/list-helper.d.ts +35 -0
  232. package/types/helpers/types.d.ts +15 -0
  233. package/types/hooks/activated.d.ts +36 -0
  234. package/types/hooks/feel-size.d.ts +10 -0
  235. package/types/hooks/index.d.ts +12 -0
  236. package/types/hooks/menus-dispatch.d.ts +35 -0
  237. package/types/hooks/timeout.d.ts +7 -0
  238. package/types/hooks/use-active-record.d.ts +64 -0
  239. package/types/hooks/use-breakpoint.d.ts +4 -0
  240. package/types/hooks/use-bridge-report.d.ts +3 -0
  241. package/types/hooks/use-channel-viewport-height.d.ts +22 -0
  242. package/types/hooks/use-context-defaults.d.ts +39 -0
  243. package/types/hooks/use-custom-breakpoint.d.ts +17 -0
  244. package/types/hooks/use-is-dev.d.ts +24 -0
  245. package/types/hooks/use-observe-size.d.ts +36 -0
  246. package/types/hooks/use-permission.d.ts +14 -0
  247. package/types/hooks/use-surface.d.ts +45 -0
  248. package/types/hooks/use-theme-apply.d.ts +34 -0
  249. package/types/hooks/use-viewport-apply.d.ts +20 -0
  250. package/types/index.d.ts +33 -0
  251. package/types/inject/index.d.ts +1 -0
  252. package/types/inject/key.d.ts +247 -0
  253. package/types/injection-namespace.d.ts +4 -0
  254. package/types/internals/index.d.ts +6 -0
  255. package/types/router/group-redirect.d.ts +14 -0
  256. package/types/router/guard/index.d.ts +20 -0
  257. package/types/router/guard/login.d.ts +4 -0
  258. package/types/router/guard/permission.d.ts +4 -0
  259. package/types/router/guard/types.d.ts +14 -0
  260. package/types/router/index.d.ts +2 -0
  261. package/types/store/app.d.ts +219 -0
  262. package/types/store/index.d.ts +3 -0
  263. package/types/store/router-permission.d.ts +79 -0
  264. package/types/store/user.d.ts +64 -0
  265. package/types/types/app-layout.d.ts +42 -0
  266. package/types/types/dc-path.d.ts +2 -0
  267. package/types/types/dot-path.d.ts +13 -0
  268. package/types/types/index.d.ts +9 -0
  269. package/types/types/list-api.d.ts +17 -0
  270. package/types/types/modal-shelf.d.ts +123 -0
  271. package/types/types/nest-form.d.ts +8 -0
  272. package/types/types/permission.d.ts +31 -0
  273. package/types/types/route.d.ts +141 -0
  274. package/types/types/utility-types.d.ts +25 -0
  275. package/types/utils/dom.d.ts +61 -0
  276. package/types/utils/export.d.ts +35 -0
  277. package/types/utils/gap-scale.d.ts +46 -0
  278. package/types/utils/id.d.ts +2 -0
  279. package/types/utils/index.d.ts +8 -0
  280. package/types/utils/permission.d.ts +16 -0
  281. package/types/utils/router.d.ts +18 -0
  282. package/types/utils/theme-scale.d.ts +78 -0
  283. package/types/utils/time.d.ts +2 -0
@@ -0,0 +1,280 @@
1
+ import { BridgeEventGroupMeta } from '../../../bridge/contracts';
2
+ import { Component, VNode } from 'vue';
3
+ import { ButtonProps, TagProps } from 'element-plus';
4
+ /** ActionConfirm 确认交互形态:弹层气泡 / 居中模态框 */
5
+ export type ActionConfirmMode = "popconfirm" | "messageConfirm";
6
+ /**
7
+ * ActionConfirm 文案解析器。
8
+ * - string:直接渲染
9
+ * - 无参函数:返回字符串或 VNode 数组(富文本);动态数据由调用方闭包捕获
10
+ */
11
+ export type ActionConfirmTextResolver = string | (() => string | VNode[]);
12
+ /**
13
+ * ActionBtn 的确认配置(嵌套对象;无此配置则为普通按钮,不触发确认)。
14
+ *
15
+ * ⚠️ 瞬时用户激活限制:`confirmConfig` 与 `beforeOpen` 均会异步打断点击的瞬时
16
+ * 用户激活窗口(transient user activation)——confirm 后 / beforeOpen 之后的
17
+ * handler 与原始点击之间隔了一次异步等待,原始激活此时已过期(注意:事件对象
18
+ * `isTrusted` 仍为 true,失效的是激活窗口而非事件本身)。故 confirm 后 /
19
+ * beforeOpen 之后的 handler [MUST NOT] 调用依赖瞬时用户激活的 API——
20
+ * `window.open`、`navigator.clipboard.*`、`requestFullscreen` 等会被浏览器
21
+ * 拦截。需要这类操作时改用无 `confirmConfig` 且无 `beforeOpen` 的 ActionBtn /
22
+ * 普通按钮。此为 confirm-gate / async-prefetch 模式固有代价,组件层无法绕过。
23
+ */
24
+ export interface ActionBtnConfirmConfig {
25
+ /** 确认标题 */
26
+ title?: ActionConfirmTextResolver;
27
+ /** 确认正文内容 */
28
+ content?: ActionConfirmTextResolver;
29
+ /** 确认按钮文案,默认"确定" */
30
+ confirmText?: string;
31
+ /** 取消按钮文案,默认"取消" */
32
+ cancelText?: string;
33
+ /** 确认按钮 type */
34
+ type?: ButtonProps["type"];
35
+ }
36
+ /**
37
+ * ActionBtn 组件 props。
38
+ * 完全兼容 ElButton(继承 ButtonProps),仅接管 loading,另提供确认、预检、徽标与定位增量:
39
+ * - `loading` 被 Omit:有意的 ElButton 不兼容,唯一接管项——loading 由组件内部
40
+ * 独占,对接异步 confirm / beforeOpen 的进行态(innerLoading),对外不可设置。
41
+ * - `disabled` 原生透传,不改写不扩展。
42
+ * - 增量:`confirmMode` / `confirmConfig` / `beforeOpen` / `badgeKey` / `groupMeta`。
43
+ * - 泛型 `T`:由 `beforeOpen` 返回值反推,并透传给 `confirmConfig` 函数形态的
44
+ * 入参;未传 `beforeOpen` 时默认 `T = void`,函数形态的 `data = undefined`。
45
+ */
46
+ export type ActionBtnProps<T = void> = Omit<ButtonProps, "loading"> & {
47
+ /** 配置按钮定位;提供时才发 action-click。 */
48
+ groupMeta?: BridgeEventGroupMeta;
49
+ /** 确认交互形态,仅在 confirmConfig 存在时生效,默认 "popconfirm" */
50
+ confirmMode?: ActionConfirmMode;
51
+ /**
52
+ * 确认配置;存在时点击需经确认闸门,确认后才触发 click。
53
+ * - 对象形态:静态确认配置(向后兼容)。
54
+ * - 函数形态:`(data: T) => ActionBtnConfirmConfig`,`data` 来自 `beforeOpen`
55
+ * 返回值;无 `beforeOpen` 时 `data = undefined`(T 默认 `void`)。
56
+ */
57
+ confirmConfig?: ActionBtnConfirmConfig | ((data: T) => ActionBtnConfirmConfig);
58
+ /**
59
+ * 点击后、弹层前的异步预取钩子。
60
+ * - 返回值类型 `T` 反推给 `confirmConfig` 函数形态的入参。
61
+ * - 失败时静默退出(不弹层、不触发 `@click` handler);调用方 [MUST] 在内部
62
+ * 自行 catch 并显示反馈(如 `ElMessage.error`),忘记 catch 会"点了没反应"。
63
+ * - 期间按钮显 loading 态(`innerLoading`);同 `confirmConfig` 一样消耗
64
+ * 瞬时用户激活(详见 {@link ActionBtnConfirmConfig} 顶部注释)。
65
+ */
66
+ beforeOpen?: () => Promise<T>;
67
+ /**
68
+ * 徽标键——命中 `bridge.badge` 注册表且未过期时,在按钮内容右侧挂**绝对定位角标**
69
+ * (包 ElBadge;不压字,且 [MUST] 不改变按钮尺寸;未命中时 DOM 与不传时逐字节一致)。
70
+ *
71
+ * 按钮没有路由 path,[MUST] 显式给键(菜单侧则默认取 path,无需另配)。
72
+ * 配置驱动(`ActionBtnGroup`)经 `actionBtnProps` 工厂返回 `{ badgeKey }` 即可。
73
+ * 契约详见 bridge 文档「徽标注册表」章节。
74
+ */
75
+ badgeKey?: string;
76
+ };
77
+ /**
78
+ * ActionConfirm 组件 props(扁平,confirm 原语;可独立于 ActionBtn 消费)。
79
+ * 触发元素由默认 slot 提供;弹层可见性由 `v-model:show` 声明式驱动。
80
+ */
81
+ export interface ActionConfirmProps {
82
+ /** 确认交互形态 */
83
+ mode: ActionConfirmMode;
84
+ /** 确认标题 */
85
+ title?: ActionConfirmTextResolver;
86
+ /** 确认正文内容 */
87
+ content?: ActionConfirmTextResolver;
88
+ /** 确认按钮文案,默认"确定" */
89
+ confirmText?: string;
90
+ /** 取消按钮文案,默认"取消" */
91
+ cancelText?: string;
92
+ /** 确认按钮 type */
93
+ type?: ButtonProps["type"];
94
+ /**
95
+ * 点击确认后调用。返回 Promise 时确认按钮 loading + 弹层保持不关,
96
+ * **仅成功(fulfill)才关闭弹层**;失败(reject 或同步 throw)时清 loading、
97
+ * 弹层保持打开,错误由 `submitFn` 内部自行 catch 反馈。
98
+ */
99
+ submitFn: () => void | Promise<void>;
100
+ }
101
+ /** ActionBtnGroup 按钮 size 枚举(对齐 element-plus ElButton size) */
102
+ export type ActionBtnSize = "large" | "default" | "small";
103
+ /**
104
+ * ActionBtnGroup 单项配置
105
+ * ---
106
+ * 泛型 Ctx 由消费方决定形状(toolbar 传 ToolbarButtonContext / 表格 OPERATE 列传 row 上下文 / 等)。
107
+ * 与 FormItem.render 三态对标:string(全局组件名)/ Component(对象/异步)/ functional((props) => VNode)。
108
+ */
109
+ export interface ActionBtnConfigItem<Ctx = void> {
110
+ /** 唯一标识 */
111
+ key: string;
112
+ /** ActionBtn props 工厂(含 confirmConfig / beforeOpen / ElButton 全透传),与 props 二选一优先 */
113
+ actionBtnProps?: (ctx: Ctx) => Record<string, any>;
114
+ /** ElButton props 工厂,与 actionBtnProps 二选一 */
115
+ props?: (ctx: Ctx) => Record<string, any>;
116
+ /** 按钮文字;render 缺省时回退 */
117
+ label?: string;
118
+ /**
119
+ * 按钮内容 render(对标 FormItem.render 三态);优先级高于 label。
120
+ * - string:全局注册组件名
121
+ * - Component:对象/异步组件
122
+ * - functional:`(props: { ctx }) => VNode`——通过 `:ctx` prop 拿到上下文
123
+ */
124
+ render?: string | Component | ((props: {
125
+ ctx: Ctx;
126
+ }) => VNode);
127
+ /** 显示条件,返回 false 跳过该项;缺省视为 true */
128
+ show?: (ctx: Ctx) => boolean;
129
+ }
130
+ /** ActionBtnGroup props */
131
+ export interface ActionBtnGroupProps<Ctx = void> {
132
+ /** 按钮配置列表 */
133
+ configs?: ActionBtnConfigItem<Ctx>[];
134
+ /** 渲染上下文(透传给每项 actionBtnProps / props / render / show) */
135
+ ctx: Ctx;
136
+ /**
137
+ * 默认按钮 size——未传时不强加 size(沿用 ElButton 自身默认);
138
+ * 传入时作为基础 size 注入每项,业务侧 actionBtnProps / props 返回对象内显式 size 优先。
139
+ */
140
+ defaultSize?: ActionBtnSize;
141
+ }
142
+ /** HeightProvider props——见组件 JSDoc */
143
+ export interface HeightProviderProps {
144
+ /** px,视口可用高度(必填) */
145
+ viewportHeight: number;
146
+ /** px,默认槽可用高度兜底下限;超 viewportHeight 时会撑破父容器(有意设计) */
147
+ minHeight?: number;
148
+ }
149
+ /** TabsMain 单个 tab 项配置 */
150
+ export interface TabsMainItem {
151
+ /** 唯一标识,v-model 值与槽名(#{key} / #header-{key})以此为准 */
152
+ key: string;
153
+ /** 标题文本,#header-{key} 槽缺省时回退 */
154
+ title: string;
155
+ /** 内容组件,#{key} 槽缺省时回退渲染 */
156
+ component?: Component;
157
+ /**
158
+ * 徽标键——命中 `bridge.badge` 注册表且未过期时,在 tab 标题右侧挂绝对定位角标
159
+ * (tab-bar / 平铺卡片标题 / 平铺角落 nav 三处同步);[MUST] 不改变 tab 尺寸。
160
+ *
161
+ * [MUST NOT] 复用本项的 `key`:那是**局部唯一**(v-model 值 + 槽名),两个页面
162
+ * 都可能有 `key: "detail"`,当徽标键会跨页串标。徽标键需全局唯一,故显式另给
163
+ * (同 `ActionBtn.badgeKey` 范式)。契约见 bridge 文档「徽标注册表」章节。
164
+ */
165
+ badgeKey?: string;
166
+ }
167
+ /** [top, right, bottom, left] px——TabsMain 默认插槽容器内置 padding(top+bottom 同步从 channel viewportHeight 扣减) */
168
+ export type TabsMainPadding = [number, number, number, number];
169
+ /**
170
+ * TabsHeader 视觉风格变体(与 level 字号解耦)。
171
+ * - card:浏览器 tabs 风格(active 三面 border + 两侧 100vw separator,真打通)
172
+ * - indicator:标准 2px 下划线
173
+ * - indicator-compact:紧凑 1px 下划线
174
+ * - plain:无装饰(active 加粗 + primary 字色)
175
+ */
176
+ export type TabsHeaderVariant = "card" | "indicator" | "indicator-compact" | "plain";
177
+ /**
178
+ * 平铺(tile)模式角落 nav 的落角。
179
+ * 四角由 `bottom/top` × `left/right` 组合,配合 `navOffset` 距角像素。
180
+ */
181
+ export type TabsMainTileNavPosition = "bottom-right" | "bottom-left" | "top-right" | "top-left";
182
+ /**
183
+ * 平铺(tile)模式角落 nav 的定位模式。
184
+ * - `absolute`:相对 TabsTile 根定位——内层滚、nav 不动留在根的角(有界滚动容器最干净)。
185
+ * - `sticky`:`position:sticky` 贴滚动视口角——页面滚时粘在 TabsMain 列内的角(不先入为主接管整个视口)。
186
+ * - `fixed`:相对**视口**角(消费方显式要才用的逃生口)。
187
+ * - `auto`(默认):`refine=true`→`absolute`;`refine=false`→`sticky`。
188
+ */
189
+ export type TabsMainTileNavMode = "auto" | "absolute" | "sticky" | "fixed";
190
+ /**
191
+ * TabsMain props。
192
+ *
193
+ * 高度优先级:viewportHeight > inject `SCOPE_VIEWPORT_MAX_HEIGHT` scope 链(parentChannel 定向 / 就近)> 0。
194
+ * channel / parentChannel [MUST NOT] 响应式变更(setup 期快照,变更 console.error 忽略)。
195
+ */
196
+ export interface TabsMainProps {
197
+ /** tab 配置列表 */
198
+ tabs: TabsMainItem[];
199
+ /** px,视口可用高度(显式指定,优先级最高);未传时降级 SCOPE_VIEWPORT_MAX_HEIGHT scope 链 */
200
+ viewportHeight?: number;
201
+ /** px,默认内容区高度兜底下限 */
202
+ minHeight?: number;
203
+ /** 作为父时的 scope 标识(进 SCOPE_VIEWPORT_MAX_HEIGHT 对象链的 scope 字段) */
204
+ channel?: string;
205
+ /** 作为子时要定向消费的祖先 scope 标识(沿对象链 parent 找 scope === parentChannel) */
206
+ parentChannel?: string;
207
+ /** 默认插槽容器内置 padding [top,right,bottom,left],默认 [10,0,0,0];top+bottom 同步从 slot scope/channel viewportHeight 扣减 */
208
+ padding?: TabsMainPadding;
209
+ /** 精细化布局:false(默认) 不包 HeightProvider,默认槽 viewportHeight 直接给 viewportHeightFinal(不扣减),业务自然流;true 走 HeightProvider 精确扣 header reserve + padding 给 available */
210
+ refine?: boolean;
211
+ /** 精细化预留高度(px),从 viewportHeightFinal 中预扣,refine=false 时同样生效 */
212
+ refineReduceHeight?: number;
213
+ /** 显式指定 TabsHeader 视觉风格,不传则按 visualLevel 推导默认(L1=card / L2=indicator / L3=indicator-compact / L4=plain)。字号始终跟随 level,不受 variant 影响。 */
214
+ variant?: TabsHeaderVariant;
215
+ /**
216
+ * `card` 变体下**选中块**的底色(默认底档 `--el-bg-color-page`)。
217
+ * 换主色浅调(`var(--el-color-primary-light-9)`)即高亮态。
218
+ * [MUST] 传 CSS 变量 / 主题色,[MUST NOT] 写死色值(规则 14)。
219
+ */
220
+ activeBg?: string;
221
+ /**
222
+ * 把当前激活 tab(v-model)同步到路由 URL query 的 key 名。
223
+ * - 传了即启用**双向同步**:切 tab → `router.replace` 写 `?{queryKey}={tab.key}`(不压历史栈、只增删自己这个 key、不动其它 query);
224
+ * 进入/刷新/前进后退 → query 反向恢复激活 tab。
225
+ * - 不传(默认)→ 不同步。
226
+ * - 无 vue-router 环境(useRouter 返回 undefined)→ 静默失效,不接线。
227
+ * - query 值非法/无对应 tab → 交由 v-model 既有归一(回退 tabs[0]),不强写。
228
+ */
229
+ queryKey?: string;
230
+ /**
231
+ * 平铺模式:把所有 tab item 同时铺开成一列卡片(各裹 ElCard、标题进卡头),隐藏 tab-bar,
232
+ * 改由角落 nav 导航;聚焦(v-model / 点 nav)= 滚动该卡到视口,手动滚 = scrollspy 反写激活 tab。
233
+ * - 默认 `false`:tabs 路径逐字不动(平铺是 `v-if` 平行分支,不影响既有行为)。
234
+ * - `refine=true` 时卡片在有界容器内滚(容器高 = refine 可用高度);`refine=false` 页面滚。
235
+ */
236
+ tile?: boolean;
237
+ /**
238
+ * 平铺模式角落 nav 落角,默认 `"bottom-right"`。仅 `tile=true` 生效。
239
+ */
240
+ navPosition?: TabsMainTileNavPosition;
241
+ /**
242
+ * 平铺模式角落 nav 定位模式,默认 `"auto"`(refine→absolute / 自然流→sticky)。仅 `tile=true` 生效。
243
+ * 见 {@link TabsMainTileNavMode}。
244
+ */
245
+ navMode?: TabsMainTileNavMode;
246
+ /**
247
+ * 平铺模式角落 nav 距角像素,默认 `12`。仅 `tile=true` 生效。
248
+ */
249
+ navOffset?: number;
250
+ /**
251
+ * 平铺模式角落 nav 显隐默认,默认 `undefined`(= **动态默认**:`refine=true` 显示 / 自然流隐藏,避免
252
+ * 自然流 sticky 占文档流)。显式传 `true`/`false` 覆盖动态默认。仅 `tile=true` 生效。
253
+ */
254
+ showNav?: boolean;
255
+ }
256
+ /** BooleanTag 标签色彩类型(派生 ElTag type,不重定义) */
257
+ export type BooleanTagType = NonNullable<TagProps["type"]>;
258
+ /**
259
+ * BooleanTag props——boolean 只读展示为彩色标签(纯展示,无交互 / 无 v-model)。
260
+ * enum / number 状态在调用点一行映射为 boolean 传入(组件保持 boolean 纯粹)。
261
+ */
262
+ export interface BooleanTagProps {
263
+ /** 待展示布尔值 */
264
+ value: boolean;
265
+ /** true 时标签文本,默认「是」 */
266
+ activeText?: string;
267
+ /** false 时标签文本,默认「否」 */
268
+ inactiveText?: string;
269
+ /** true 时标签色彩(派生 ElTag type),默认 success */
270
+ activeTagType?: BooleanTagType;
271
+ /** false 时标签色彩,默认 info */
272
+ inactiveTagType?: BooleanTagType;
273
+ }
274
+ /** ShadowClone 影分身 props——零 DOM 输出双渲染位原语(本体就地 + 分身 teleport) */
275
+ export interface ShadowCloneProps {
276
+ /** 分身 teleport 目标(Vue Teleport to:CSS 选择器 / DOM 元素) */
277
+ to: string | Element;
278
+ /** 关闭分身(仅就地渲染单处);目标容器晚渲染时先关、就绪后开 */
279
+ disabled?: boolean;
280
+ }
@@ -0,0 +1,35 @@
1
+ /** 初始停靠角 */
2
+ type DragFloatPlacement = "top-right" | "top-left" | "bottom-right" | "bottom-left";
3
+ type __VLS_Props = {
4
+ /** 初始停靠角(拖动后失效,以拖后位置为准) */
5
+ placement?: DragFloatPlacement;
6
+ /** 初始角内缩偏移 px(负值 = 微溢出宿主角) */
7
+ offset?: number;
8
+ /** 呼吸光影(主色缓慢明暗;reduced-motion 静止、拖拽中暂停) */
9
+ breathing?: boolean;
10
+ };
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: {
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {
17
+ rootRef: HTMLDivElement;
18
+ };
19
+ rootEl: HTMLDivElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ offset: number;
24
+ placement: DragFloatPlacement;
25
+ breathing: boolean;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
27
+ rootRef: HTMLDivElement;
28
+ }, HTMLDivElement>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
+ export default _default;
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1 @@
1
+ export { default as DragFloat } from './DragFloat.vue';
@@ -0,0 +1,28 @@
1
+ import { HeightProviderProps } from '../display-contracts';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ header?(_: {}): any;
6
+ default?(_: {
7
+ viewportHeight: number;
8
+ }): any;
9
+ footer?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<HeightProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ childViewportHeightChange: (value: number) => any;
17
+ }, string, import('vue').PublicProps, Readonly<HeightProviderProps> & Readonly<{
18
+ onChildViewportHeightChange?: ((value: number) => any) | undefined;
19
+ }>, {
20
+ minHeight: number;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1 @@
1
+ export { default as HeightProvider } from './HeightProvider.vue';
@@ -0,0 +1 @@
1
+ export { default as AppCollapseToggle } from './AppCollapseToggle.vue';
@@ -0,0 +1,20 @@
1
+ import { ShadowCloneProps } from '../display-contracts';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ default?(_: {}): any;
7
+ clone?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<ShadowCloneProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ShadowCloneProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1 @@
1
+ export { default as ShadowClone } from './ShadowClone.vue';
@@ -0,0 +1,9 @@
1
+ export interface UseShadowTargetOptions {
2
+ /** 分身目标 getter(string selector / Element;空 = 无分身) */
3
+ to: () => string | Element | undefined;
4
+ /** 分身开关 getter(disabled 时不观察不激活) */
5
+ disabled: () => boolean;
6
+ }
7
+ export declare function useShadowTarget(options: UseShadowTargetOptions): {
8
+ targetValid: import('vue').Ref<boolean, boolean>;
9
+ };
@@ -0,0 +1,32 @@
1
+ import { SlotLayoutFlowAsideProps } from './types';
2
+ type __VLS_Props = SlotLayoutFlowAsideProps;
3
+ type __VLS_PublicProps = {
4
+ "separate"?: boolean;
5
+ } & __VLS_Props;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ aside?(_: {}): any;
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLDivElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:separate": (value: boolean) => any;
18
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
+ "onUpdate:separate"?: ((value: boolean) => any) | undefined;
20
+ }>, {
21
+ type: "left" | "right";
22
+ gap: string;
23
+ asideWidth: string;
24
+ asideMaxHeight: string;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,2 @@
1
+ export { default as SlotLayoutFlowAside } from './SlotLayoutFlowAside.vue';
2
+ export * from './types';
@@ -0,0 +1,10 @@
1
+ export interface SlotLayoutFlowAsideProps {
2
+ /** 侧栏所在侧 */
3
+ type?: "left" | "right";
4
+ /** 主区与侧栏间距 */
5
+ gap?: string;
6
+ /** 侧栏宽度 */
7
+ asideWidth?: string;
8
+ /** 侧栏最大高度(超出滚动) */
9
+ asideMaxHeight?: string;
10
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * 布局槽位模板:disabled 时透传(宿主消失、只渲染默认槽内容);
3
+ * 否则以 tag 包裹并「透明转发全部插槽」(默认+具名+作用域)到宿主 tag。
4
+ *
5
+ * 用渲染函数而非模板:透明转发组件的自身 slots 类型天然递归
6
+ * (self.slots = 被转发的 self.slots),模板内 v-for $slots + <slot :name>
7
+ * 会触发 vue-tsc TS7022 自指推断;render 直接把 slots 对象整体喂给 h(),
8
+ * 绕开模板 slot 类型推断、转发也更彻底(含具名/作用域槽)。
9
+ */
10
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
+ /**
12
+ * 包裹宿主:原生标签名("div")/ 组件对象 / 函数式组件。
13
+ * 懒加载组件 [MUST] 先经 `defineAsyncComponent` 包裹再传——裸异步工厂
14
+ * `() => import('./X.vue')` 会被当函数式组件调用、不 resolve Promise(同
15
+ * `<component :is>` 原生语义,参 ModalShelf 同款约定)。
16
+ */
17
+ tag: {
18
+ type: () => any;
19
+ default: string;
20
+ };
21
+ disabled: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
26
+ [key: string]: any;
27
+ }> | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
28
+ [key: string]: any;
29
+ }>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
30
+ /**
31
+ * 包裹宿主:原生标签名("div")/ 组件对象 / 函数式组件。
32
+ * 懒加载组件 [MUST] 先经 `defineAsyncComponent` 包裹再传——裸异步工厂
33
+ * `() => import('./X.vue')` 会被当函数式组件调用、不 resolve Promise(同
34
+ * `<component :is>` 原生语义,参 ModalShelf 同款约定)。
35
+ */
36
+ tag: {
37
+ type: () => any;
38
+ default: string;
39
+ };
40
+ disabled: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ }>> & Readonly<{}>, {
45
+ disabled: boolean;
46
+ tag: any;
47
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
48
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as SlotLayoutTemplate } from './SlotLayoutTemplate.vue';
@@ -0,0 +1,45 @@
1
+ type __VLS_Props = {
2
+ mode?: "height" | "width" | "both";
3
+ /**
4
+ * 是否用 ResizeObserver 观测自身盒尺寸(默认 false)。
5
+ * 默认时机 = 激活首测 + window resize + onUpdated(激活态重渲染补测)——已覆盖
6
+ * 「伴随本组件重渲染的尺寸变化」(v-if / 响应式样式 / 槽内容随父状态变化等常规场景)。
7
+ * 测不到「不触发本组件重渲染的尺寸变化」:内容 CSS 过渡(如侧栏折叠动画,onUpdated
8
+ * 读到过渡起点漏终值)、异步内容撑开、槽内后代组件自更新——此类场景显式开启 RO
9
+ * (AppPage 四向槽已内置开启,右槽 CSS 过渡折叠不重算即此坑)。
10
+ */
11
+ observeResize?: boolean;
12
+ /** 防抖时间(默认 16ms)。只接受初始值,后面变化不更新。 */
13
+ debounceTime?: number;
14
+ };
15
+ declare function __VLS_template(): {
16
+ attrs: Partial<{}>;
17
+ slots: {
18
+ default?(_: {}): any;
19
+ };
20
+ refs: {
21
+ box: HTMLDivElement;
22
+ };
23
+ rootEl: HTMLDivElement;
24
+ };
25
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
27
+ heightChange: (value: number) => any;
28
+ widthChange: (value: number) => any;
29
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
30
+ onHeightChange?: ((value: number) => any) | undefined;
31
+ onWidthChange?: ((value: number) => any) | undefined;
32
+ }>, {
33
+ mode: "height" | "width" | "both";
34
+ observeResize: boolean;
35
+ debounceTime: number;
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
37
+ box: HTMLDivElement;
38
+ }, HTMLDivElement>;
39
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
40
+ export default _default;
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1 @@
1
+ export { default as WatchSize } from './WatchSize.vue';
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as AppTheme } from './AppTheme.vue';