@bagelink/vue 1.6.53 → 1.6.61
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/components/Menu.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +17 -6
- package/dist/style.css +1 -1
- package/dist/types/NavLink.d.ts +1 -0
- package/dist/types/NavLink.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Menu.vue +3 -3
- package/src/types/NavLink.ts +1 -0
package/dist/types/NavLink.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavLink.d.ts","sourceRoot":"","sources":["../../src/types/NavLink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,WAAW,OAAO;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,QAAQ,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"NavLink.d.ts","sourceRoot":"","sources":["../../src/types/NavLink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAEvC,MAAM,WAAW,OAAO;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,QAAQ,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd"}
|
package/package.json
CHANGED
package/src/components/Menu.vue
CHANGED
|
@@ -11,7 +11,7 @@ defineProps<{ items: NavLink[] }>()
|
|
|
11
11
|
<template v-for="item in items" :key="item.label">
|
|
12
12
|
<Dropdown v-if="item.children" :value="item.label" iconEnd="keyboard_arrow_down">
|
|
13
13
|
<template #trigger="{ show }">
|
|
14
|
-
<Btn thin flat @click="show()">
|
|
14
|
+
<Btn thin flat :class="item.class" @click="show()">
|
|
15
15
|
<Icon :name="item.icon" size="0.8" style="margin-bottom: -0.1rem" />
|
|
16
16
|
<p class="-ms-025">
|
|
17
17
|
{{ item.label }}
|
|
@@ -21,7 +21,7 @@ defineProps<{ items: NavLink[] }>()
|
|
|
21
21
|
</template>
|
|
22
22
|
<Btn
|
|
23
23
|
v-for="subItem in item.children" :key="subItem.label" thin flat :to="subItem.to"
|
|
24
|
-
class="block m_px-025"
|
|
24
|
+
:class="subItem.class" class="block m_px-025" @click="subItem.action?.()"
|
|
25
25
|
>
|
|
26
26
|
<Icon :name="subItem.icon" size="0.8" style="margin-bottom: -0.1rem" />
|
|
27
27
|
<p class="-ms-025">
|
|
@@ -29,7 +29,7 @@ defineProps<{ items: NavLink[] }>()
|
|
|
29
29
|
</p>
|
|
30
30
|
</Btn>
|
|
31
31
|
</Dropdown>
|
|
32
|
-
<Btn v-else thin flat :to="item.to" class="m_px-025">
|
|
32
|
+
<Btn v-else thin flat :to="item.to" :class="item.class" class="m_px-025" @click="item.action?.()">
|
|
33
33
|
<Icon :name="item.icon" size="0.9" style="margin-bottom: -0.1rem" />
|
|
34
34
|
<p class="-ms-025">
|
|
35
35
|
{{ item.label }}
|