@bagelink/vue 1.15.558 → 1.15.562

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.15.558",
4
+ "version": "1.15.562",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -34,7 +34,7 @@ const loading = defineModel('loading', { default: false })
34
34
  const itemHeight = defineModel('itemHeight', { default: 50 })
35
35
  /** Cell font size. Number = px; string = any CSS size (e.g. '0.875rem'). */
36
36
  const fontSize = defineModel<number | string | undefined>('fontSize', { default: undefined })
37
- const selectedItems = defineModel<string[]>('selectedItems', { default: [] as string[] })
37
+ const selectedItems = defineModel<string[]>('selectedItems', { default: () => [] })
38
38
 
39
39
  const {
40
40
  computedSchema,
@@ -20,7 +20,7 @@ const { shellClass, shellStyle } = useBagelInputShell(props)
20
20
  const uid = Math.random().toString(36).slice(7)
21
21
  const inputId = computed(() => props.id || uid)
22
22
 
23
- const checked = defineModel<T>('modelValue', { default: undefined })
23
+ const checked = defineModel<T>('modelValue')
24
24
 
25
25
  const hasValue = computed(() => {
26
26
  const v = checked.value
@@ -108,7 +108,7 @@ defineExpose({ open, close })
108
108
  <embed :src="normalizeURL(item?.src)" type="application/pdf" :title="item?.name">
109
109
  </div>
110
110
 
111
- <div v-else class="lightbox-file">
111
+ <div v-else class="lightbox-file flex-center">
112
112
  <div class="file-info txt-white flex m_block align-items-start gap-025">
113
113
  <Icon class="m-0 m_none" icon="draft" :size="10" weight="12" />
114
114
  <Icon class="m-0 none m_block m_-mb-1" icon="draft" :size="4" weight="2" />
@@ -130,11 +130,14 @@ defineExpose({ open, close })
130
130
  </template>
131
131
 
132
132
  <template #prev-button="{ prev }">
133
- <Btn icon="arrow_back" color="black" @click="prev" />
133
+ <Btn icon="arrow_back" color="black" :disabled="currentIndex === 0"
134
+ :class="{ 'color-black-70': currentIndex === 0 }" @click="prev"/>
134
135
  </template>
135
136
 
136
137
  <template #next-button="{ next }">
137
- <Btn icon="arrow_forward" color="black" @click="next" />
138
+ <Btn icon="arrow_forward" color="black" :disabled="currentIndex === group.length - 1"
139
+ :class="{ 'color-black-70': currentIndex === group.length - 1 }"
140
+ @click="next" />
138
141
  </template>
139
142
  </Swiper>
140
143
 
@@ -151,6 +154,11 @@ defineExpose({ open, close })
151
154
  </template>
152
155
 
153
156
  <style>
157
+ .bgl-lightbox-swiper .swi-prev,
158
+ .bgl-lightbox-swiper .swi-next {
159
+ background: transparent;
160
+ padding: 0;
161
+ }
154
162
 
155
163
  .bgl-lightbox:has(.bgl_vid) {
156
164
  width: 90vw;