@tekkare/romulus 0.1.324 → 0.1.325
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/dist/module.json
CHANGED
|
@@ -51,6 +51,12 @@ export interface RmNavItem {
|
|
|
51
51
|
* « Sous-pages » dans l'en-tete.
|
|
52
52
|
*/
|
|
53
53
|
children?: RmNavItem[]
|
|
54
|
+
/**
|
|
55
|
+
* Filet au-dessus de l'entree, dans son groupe. Pour couper une courte
|
|
56
|
+
* liste en deux sans ouvrir un nouveau groupe, dont l'ecart de 16px est
|
|
57
|
+
* trop large pour trois ou quatre entrees.
|
|
58
|
+
*/
|
|
59
|
+
separator?: boolean
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
export interface RmNavSection {
|
|
@@ -320,6 +326,7 @@ watch(() => props.collapsed, hideTip)
|
|
|
320
326
|
|
|
321
327
|
<template v-if="isOpen(section)">
|
|
322
328
|
<template v-for="item in section.items" :key="item.to ?? item.href ?? item.label">
|
|
329
|
+
<div v-if="item.separator" class="rm-sb__rule" role="separator" />
|
|
323
330
|
<a
|
|
324
331
|
v-if="item.href"
|
|
325
332
|
:href="item.href"
|
package/layer/app/types/oip.ts
CHANGED
|
@@ -12,6 +12,8 @@ export type OipNavItem = {
|
|
|
12
12
|
active?: boolean;
|
|
13
13
|
/** Sous-pages, sur un seul niveau : RmSidebarLeft les deplie sous l'entree. */
|
|
14
14
|
children?: OipNavItem[];
|
|
15
|
+
/** Filet au-dessus de l'entree, dans son groupe, cf. RmNavItem. */
|
|
16
|
+
separator?: boolean;
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
export type OipNavSection = {
|