@finema/finework-layer 0.1.3 → 0.1.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.4](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.1.3...0.1.4) (2025-10-15)
4
+
3
5
  ## [0.1.3](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.1.2...0.1.3) (2025-10-15)
4
6
 
5
7
  ## [0.1.2](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/0.1.1...0.1.2) (2025-10-14)
@@ -186,15 +186,22 @@ const userMenuItems: DropdownMenuItem[] = [
186
186
  },
187
187
  ]
188
188
 
189
- const breadcrumbsItems = computed(() => [
190
- // {
191
- // label: '',
192
- // icon: 'ph:house',
193
- // to: '/',
194
- // },
195
- ...(app.pageMeta.breadcrumbs || []).map((item: any) => ({
189
+ const breadcrumbsItems = computed(() => {
190
+ const list = app.pageMeta.breadcrumbs || []
191
+ if (!list.length) return []
192
+
193
+ const [first, ...rest] = list
194
+ const home = {
195
+ label: '',
196
+ icon: 'ph:house',
197
+ to: first?.to,
198
+ }
199
+
200
+ const extra = rest.map((item: any) => ({
196
201
  ...item,
197
202
  icon: '',
198
- })),
199
- ])
203
+ }))
204
+
205
+ return [home, ...extra]
206
+ })
200
207
  </script>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "0.1.3",
4
+ "version": "0.1.4",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",