@bagelink/vue 1.6.53 → 1.6.57

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.
@@ -7,5 +7,6 @@ export interface NavLink {
7
7
  localized?: string;
8
8
  children?: NavLink[];
9
9
  action?: () => void;
10
+ class?: string;
10
11
  }
11
12
  //# sourceMappingURL=NavLink.d.ts.map
@@ -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;CACnB"}
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.6.53",
4
+ "version": "1.6.57",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -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 }}
@@ -8,4 +8,5 @@ export interface NavLink {
8
8
  localized?: string
9
9
  children?: NavLink[]
10
10
  action?: () => void
11
+ class?: string
11
12
  }