@wanlianyida/portal-kit 0.1.6 → 0.1.8
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 +4 -4
- package/dist/index.js +1212 -1205
- package/dist/navigation/index.js +3 -2
- package/dist/navigation/style.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -198,7 +198,7 @@ npm pack --dry-run
|
|
|
198
198
|
|
|
199
199
|
发布前使用 `pnpm pack` 生成 tarball,在宿主项目安装该产物并检查类型、样式及运行效果;正式发布沿用 `prepublishOnly` 的测试与构建检查。
|
|
200
200
|
|
|
201
|
-
##
|
|
201
|
+
## 回调事件卡片(0.1.8)
|
|
202
202
|
|
|
203
203
|
```vue
|
|
204
204
|
<script setup lang="ts">
|
|
@@ -208,13 +208,13 @@ defineProps<{ items: CallbackEvent[] }>();
|
|
|
208
208
|
<template><CallbackCards :items="items" /></template>
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
-
`items` 接收事件数组:`eventName / msgType / description / outFields / samplePayload / status / retryMaxReconsume / delayPolicy
|
|
211
|
+
`items` 接收事件数组:`eventName / msgType / description / outFields / samplePayload / status / retryMaxReconsume / delayPolicy`。每个事件一张卡片,标题展示事件名称与编码;同一事件的 `outFields` 在一张表格中依次列出回调状态(`sourcePath`)、字段必填和说明(`desc`),说明位于最右侧。路径仅在展示时去掉 `$` 与紧随根标记的点,例如 `$.callback.success` 展示为 `callback.success`,不修改原始配置。名称、触发说明、启用状态和重试规则按事件展示一次;无字段的历史快照隐藏字段表格。
|
|
212
212
|
|
|
213
|
-
首张默认展开,其余可独立展开;替换 `items` 重置展开状态。没有 `samplePayload`
|
|
213
|
+
首张默认展开,其余可独立展开;替换 `items` 重置展开状态。没有 `samplePayload` 时不渲染示例区及占位提示;每个事件只展示一份「回调示例」,保留事件原报文。合法 JSON 格式化后可复制,历史非 JSON 原文安全展示。
|
|
214
214
|
|
|
215
215
|
组件不发请求、不修改配置。所有新增 CSS 均使用 `portal-callback-*` 命名并限制在 Vue scoped 范围,沿用 CodePreview,未修改已有组件样式及全局变量。
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
回调卡片使用白色标题区及紧凑细边框表格,字段路径和事件编码使用蓝色标签(文字 #526bff、底色 #eef2ff、边框 #d5ddff);最大重试次数、重试延迟策略面板保留浅蓝底色与蓝色重试次数,字段表格保留暖色必填标签。
|
|
218
218
|
|
|
219
219
|
## 公共导航与共享会话(0.1.6-beta.0)
|
|
220
220
|
|