@byyuurin/ui 0.2.0 → 0.3.0
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/LICENSE +20 -20
- package/README.md +5 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Accordion.vue +41 -41
- package/dist/runtime/components/Accordion.vue.d.ts +11 -7
- package/dist/runtime/components/Alert.vue +63 -63
- package/dist/runtime/components/Alert.vue.d.ts +4 -4
- package/dist/runtime/components/App.vue +11 -10
- package/dist/runtime/components/App.vue.d.ts +11 -7
- package/dist/runtime/components/Avatar.vue +29 -29
- package/dist/runtime/components/Avatar.vue.d.ts +4 -3
- package/dist/runtime/components/AvatarGroup.vue +4 -4
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.vue +32 -32
- package/dist/runtime/components/Badge.vue.d.ts +2 -2
- package/dist/runtime/components/Breadcrumb.vue +49 -49
- package/dist/runtime/components/Breadcrumb.vue.d.ts +10 -6
- package/dist/runtime/components/Button.vue +52 -51
- package/dist/runtime/components/Button.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue +74 -74
- package/dist/runtime/components/Calendar.vue.d.ts +16 -12
- package/dist/runtime/components/Card.vue +41 -41
- package/dist/runtime/components/Card.vue.d.ts +1 -1
- package/dist/runtime/components/Carousel.vue +66 -66
- package/dist/runtime/components/Carousel.vue.d.ts +14 -10
- package/dist/runtime/components/Checkbox.vue +46 -46
- package/dist/runtime/components/Checkbox.vue.d.ts +4 -3
- package/dist/runtime/components/CheckboxGroup.vue +29 -29
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +11 -7
- package/dist/runtime/components/Chip.vue +15 -15
- package/dist/runtime/components/Chip.vue.d.ts +2 -2
- package/dist/runtime/components/Collapsible.vue +14 -14
- package/dist/runtime/components/Collapsible.vue.d.ts +2 -2
- package/dist/runtime/components/Drawer.vue +76 -76
- package/dist/runtime/components/Drawer.vue.d.ts +6 -6
- package/dist/runtime/components/DropdownMenu.vue +28 -28
- package/dist/runtime/components/DropdownMenu.vue.d.ts +17 -9
- package/dist/runtime/components/DropdownMenuContent.vue +152 -153
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +11 -7
- package/dist/runtime/components/FieldGroup.vue +3 -3
- package/dist/runtime/components/FieldGroup.vue.d.ts +2 -2
- package/dist/runtime/components/Form.vue +9 -9
- package/dist/runtime/components/Form.vue.d.ts +13 -8
- package/dist/runtime/components/FormField.vue +39 -38
- package/dist/runtime/components/FormField.vue.d.ts +7 -2
- package/dist/runtime/components/Icon.vue +2 -2
- package/dist/runtime/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/Input.vue +48 -48
- package/dist/runtime/components/Input.vue.d.ts +16 -12
- package/dist/runtime/components/InputNumber.vue +47 -47
- package/dist/runtime/components/InputNumber.vue.d.ts +128 -124
- package/dist/runtime/components/InputTags.vue +54 -53
- package/dist/runtime/components/InputTags.vue.d.ts +16 -11
- package/dist/runtime/components/Kbd.vue +3 -3
- package/dist/runtime/components/Kbd.vue.d.ts +2 -2
- package/dist/runtime/components/Link.vue +26 -25
- package/dist/runtime/components/Link.vue.d.ts +16 -6
- package/dist/runtime/components/LinkBase.vue +3 -3
- package/dist/runtime/components/LinkBase.vue.d.ts +2 -2
- package/dist/runtime/components/Marquee.vue +5 -5
- package/dist/runtime/components/Marquee.vue.d.ts +3 -3
- package/dist/runtime/components/Modal.vue +74 -74
- package/dist/runtime/components/Modal.vue.d.ts +6 -6
- package/dist/runtime/components/NavigationMenu.vue +228 -228
- package/dist/runtime/components/NavigationMenu.vue.d.ts +11 -7
- package/dist/runtime/components/OverlayProvider.vue +9 -9
- package/dist/runtime/components/Pagination.vue +47 -47
- package/dist/runtime/components/Pagination.vue.d.ts +4 -4
- package/dist/runtime/components/PinInput.vue +23 -23
- package/dist/runtime/components/PinInput.vue.d.ts +14 -10
- package/dist/runtime/components/Popover.vue +22 -22
- package/dist/runtime/components/Popover.vue.d.ts +11 -7
- package/dist/runtime/components/Progress.vue +25 -25
- package/dist/runtime/components/Progress.vue.d.ts +2 -2
- package/dist/runtime/components/RadioGroup.vue +50 -50
- package/dist/runtime/components/RadioGroup.vue.d.ts +11 -7
- package/dist/runtime/components/ScrollArea.vue +32 -32
- package/dist/runtime/components/ScrollArea.vue.d.ts +2 -2
- package/dist/runtime/components/Select.vue +299 -148
- package/dist/runtime/components/Select.vue.d.ts +103 -123
- package/dist/runtime/components/Separator.vue +30 -30
- package/dist/runtime/components/Separator.vue.d.ts +2 -2
- package/dist/runtime/components/Skeleton.vue +11 -11
- package/dist/runtime/components/Skeleton.vue.d.ts +2 -2
- package/dist/runtime/components/Slider.vue +25 -25
- package/dist/runtime/components/Slider.vue.d.ts +11 -7
- package/dist/runtime/components/Stepper.vue +116 -0
- package/dist/runtime/components/Stepper.vue.d.ts +83 -0
- package/dist/runtime/components/Switch.vue +30 -30
- package/dist/runtime/components/Switch.vue.d.ts +4 -3
- package/dist/runtime/components/Table.vue +137 -137
- package/dist/runtime/components/Table.vue.d.ts +13 -8
- package/dist/runtime/components/Tabs.vue +74 -74
- package/dist/runtime/components/Tabs.vue.d.ts +12 -8
- package/dist/runtime/components/Textarea.vue +47 -47
- package/dist/runtime/components/Textarea.vue.d.ts +16 -11
- package/dist/runtime/components/Timeline.vue +47 -47
- package/dist/runtime/components/Timeline.vue.d.ts +11 -7
- package/dist/runtime/components/Toast.vue +93 -93
- package/dist/runtime/components/Toast.vue.d.ts +5 -5
- package/dist/runtime/components/ToastProvider.vue +29 -29
- package/dist/runtime/components/ToastProvider.vue.d.ts +3 -3
- package/dist/runtime/components/Tooltip.vue +24 -25
- package/dist/runtime/components/Tooltip.vue.d.ts +2 -2
- package/dist/runtime/components/Tree.vue +241 -0
- package/dist/runtime/components/Tree.vue.d.ts +121 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -0
- package/dist/runtime/composables/defineShortcuts.js +44 -8
- package/dist/runtime/composables/useLocale.d.ts +12 -0
- package/dist/runtime/locale/en.d.ts +6 -0
- package/dist/runtime/locale/en.js +6 -0
- package/dist/runtime/locale/zh_tw.d.ts +6 -0
- package/dist/runtime/locale/zh_tw.js +6 -0
- package/dist/runtime/types/html.d.ts +8 -0
- package/dist/runtime/types/html.js +0 -0
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/input.d.ts +5 -5
- package/dist/runtime/types/locale.d.ts +6 -0
- package/dist/runtime/types/unocss.d.ts +4 -4
- package/dist/runtime/types/utils.d.ts +3 -3
- package/dist/runtime/utils/index.d.ts +3 -3
- package/dist/runtime/utils/link.d.ts +2 -1
- package/dist/runtime/utils/link.js +40 -29
- package/dist/runtime/vue/components/Icon.vue +2 -2
- package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/vue/components/Link.vue +7 -12
- package/dist/runtime/vue/components/Link.vue.d.ts +11 -40
- package/dist/setup.d.mts +1 -1
- package/dist/shared/{ui.CzIlLITK.mjs → ui.9kQouwss.mjs} +5 -3
- package/dist/shared/{ui.DpbffTXs.d.mts → ui.D8Bg1HWt.d.mts} +2 -0
- package/dist/shared/{ui.DLOxhmP0.mjs → ui.DpkP12cX.mjs} +262 -17
- package/dist/unocss.mjs +1 -1
- package/dist/unplugin.d.mts +1 -1
- package/dist/unplugin.mjs +2 -2
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +2 -2
- package/package.json +29 -29
- package/vue-plugin.d.ts +5 -5
|
@@ -96,210 +96,210 @@ function getAccordionDefaultValue(list, level = 0) {
|
|
|
96
96
|
</script>
|
|
97
97
|
|
|
98
98
|
<template>
|
|
99
|
-
<DefineLinkTemplate v-slot="{ item, active, index }">
|
|
100
|
-
<slot :name="item.slot || 'item'" :item="item" :index="index" :active="active" :ui="ui">
|
|
101
|
-
<slot :name="`${item.slot || 'item'}-leading`" :item="item" :active="active" :index="index" :ui="ui">
|
|
102
|
-
<Avatar
|
|
103
|
-
v-if="item.avatar"
|
|
104
|
-
:size="item.ui?.linkLeadingAvatarSize || props.ui?.linkLeadingAvatarSize || ui.linkLeadingAvatarSize()"
|
|
105
|
-
v-bind="item.avatar"
|
|
106
|
-
:class="ui.linkLeadingAvatar({ class: [props.ui?.linkLeadingAvatar, item.ui?.linkLeadingAvatar], active, disabled: item.disabled })"
|
|
107
|
-
data-part="linkLeadingAvatar"
|
|
108
|
-
/>
|
|
109
|
-
<Icon
|
|
110
|
-
v-else-if="item.icon"
|
|
111
|
-
:name="item.icon"
|
|
112
|
-
:class="ui.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon], active, disabled: !!item.disabled })"
|
|
113
|
-
data-part="linkLeadingIcon"
|
|
114
|
-
/>
|
|
115
|
-
</slot>
|
|
116
|
-
|
|
117
|
-
<span
|
|
118
|
-
v-if="get(item, props.labelKey) || slots[`${item.slot || 'item'}-label`]"
|
|
119
|
-
:class="ui.linkLabel({ class: [props.ui?.linkLabel, item.ui?.linkLabel] })"
|
|
120
|
-
data-part="linkLabel"
|
|
121
|
-
>
|
|
122
|
-
<slot :name="`${item.slot || 'item'}-label`" :item="item" :active="active" :index="index">
|
|
123
|
-
{{ get(item, props.labelKey) }}
|
|
124
|
-
</slot>
|
|
125
|
-
|
|
126
|
-
<Icon
|
|
127
|
-
v-if="item.target === '_blank' && props.externalIcon !== false"
|
|
128
|
-
:name="typeof props.externalIcon === 'string' ? props.externalIcon : appConfig.ui.icons.external"
|
|
129
|
-
:class="ui.linkLabelExternalIcon({ class: [props.ui?.linkLabelExternalIcon, item.ui?.linkLabelExternalIcon], active })"
|
|
130
|
-
data-part="linkLabelExternalIcon"
|
|
131
|
-
/>
|
|
132
|
-
</span>
|
|
133
|
-
|
|
134
|
-
<component
|
|
135
|
-
:is="props.orientation === 'vertical' && item.children?.length && !props.collapsed ? AccordionTrigger : 'span'"
|
|
136
|
-
v-if="item.badge !== void 0 || orientation === 'horizontal' && (item.children?.length || !!slots[`${item.slot || 'item'}-content`]) || orientation === 'vertical' && item.children?.length || item.trailingIcon || !!slots[`${item.slot || 'item'}-trailing`]"
|
|
137
|
-
as="span"
|
|
138
|
-
:class="ui.linkTrailing({ class: [props.ui?.linkTrailing, item.ui?.linkTrailing] })"
|
|
139
|
-
data-part="linkTrailing"
|
|
140
|
-
@click.stop.prevent
|
|
141
|
-
>
|
|
142
|
-
<slot :name="`${item.slot || 'item'}-trailing`" :item="item" :active="active" :index="index" :ui="ui">
|
|
143
|
-
<Badge
|
|
144
|
-
v-if="item.badge !== void 0"
|
|
145
|
-
color="neutral"
|
|
146
|
-
variant="outline"
|
|
147
|
-
:size="item.ui?.linkTrailingBadgeSize || props.ui?.linkTrailingBadgeSize || ui.linkTrailingBadgeSize()"
|
|
148
|
-
v-bind="typeof item.badge === 'string' || typeof item.badge === 'number' ? { label: item.badge } : item.badge"
|
|
149
|
-
:class="ui.linkTrailingBadge({ class: [props.ui?.linkTrailingBadge, item.ui?.linkTrailingBadge] })"
|
|
150
|
-
data-part="linkTrailingBadge"
|
|
151
|
-
/>
|
|
152
|
-
|
|
153
|
-
<Icon
|
|
154
|
-
v-if="orientation === 'horizontal' && (item.children?.length || !!slots[`${item.slot || 'item'}-content`]) || orientation === 'vertical' && item.children?.length"
|
|
155
|
-
:name="item.trailingIcon || props.trailingIcon || appConfig.ui.icons.chevronDown"
|
|
156
|
-
:class="ui.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon], active })"
|
|
157
|
-
data-part="linkTrailingIcon"
|
|
158
|
-
/>
|
|
159
|
-
<Icon
|
|
160
|
-
v-else-if="item.trailingIcon"
|
|
161
|
-
:name="item.trailingIcon"
|
|
162
|
-
:class="ui.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon], active })"
|
|
163
|
-
data-part="linkTrailingIcon"
|
|
164
|
-
/>
|
|
165
|
-
</slot>
|
|
166
|
-
</component>
|
|
167
|
-
</slot>
|
|
168
|
-
</DefineLinkTemplate>
|
|
169
|
-
|
|
170
|
-
<DefineItemTemplate v-slot="{ item, index, level = 0 }">
|
|
171
|
-
<component
|
|
172
|
-
:is="props.orientation === 'vertical' && !props.collapsed ? AccordionItem : NavigationMenuItem"
|
|
173
|
-
as="li"
|
|
174
|
-
:value="item.value || (level > 0 ? `item-${level}-${index}` : `item-${index}`)"
|
|
175
|
-
>
|
|
176
|
-
<div v-if="props.orientation === 'vertical' && item.type === 'label' && !props.collapsed" :class="ui.label({ class: [props.ui?.label, item.ui?.label, item.class] })" data-part="label">
|
|
177
|
-
<ReuseLinkTemplate :item="item" :index="index" />
|
|
178
|
-
</div>
|
|
179
|
-
<Link
|
|
180
|
-
v-else-if="item.type !== 'label'"
|
|
181
|
-
v-slot="{ active, ...slotProps }"
|
|
182
|
-
v-bind="props.orientation === 'vertical' && item.children?.length && !props.collapsed && item.type === 'trigger' ? {} : pickLinkProps(item)"
|
|
183
|
-
custom
|
|
184
|
-
>
|
|
185
|
-
<component
|
|
99
|
+
<DefineLinkTemplate v-slot="{ item, active, index }">
|
|
100
|
+
<slot :name="item.slot || 'item'" :item="item" :index="index" :active="active" :ui="ui">
|
|
101
|
+
<slot :name="`${item.slot || 'item'}-leading`" :item="item" :active="active" :index="index" :ui="ui">
|
|
102
|
+
<Avatar
|
|
103
|
+
v-if="item.avatar"
|
|
104
|
+
:size="item.ui?.linkLeadingAvatarSize || props.ui?.linkLeadingAvatarSize || ui.linkLeadingAvatarSize()"
|
|
105
|
+
v-bind="item.avatar"
|
|
106
|
+
:class="ui.linkLeadingAvatar({ class: [props.ui?.linkLeadingAvatar, item.ui?.linkLeadingAvatar], active, disabled: item.disabled })"
|
|
107
|
+
data-part="linkLeadingAvatar"
|
|
108
|
+
/>
|
|
109
|
+
<Icon
|
|
110
|
+
v-else-if="item.icon"
|
|
111
|
+
:name="item.icon"
|
|
112
|
+
:class="ui.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, item.ui?.linkLeadingIcon], active, disabled: !!item.disabled })"
|
|
113
|
+
data-part="linkLeadingIcon"
|
|
114
|
+
/>
|
|
115
|
+
</slot>
|
|
116
|
+
|
|
117
|
+
<span
|
|
118
|
+
v-if="get(item, props.labelKey) || slots[`${item.slot || 'item'}-label`]"
|
|
119
|
+
:class="ui.linkLabel({ class: [props.ui?.linkLabel, item.ui?.linkLabel] })"
|
|
120
|
+
data-part="linkLabel"
|
|
121
|
+
>
|
|
122
|
+
<slot :name="`${item.slot || 'item'}-label`" :item="item" :active="active" :index="index">
|
|
123
|
+
{{ get(item, props.labelKey) }}
|
|
124
|
+
</slot>
|
|
125
|
+
|
|
126
|
+
<Icon
|
|
127
|
+
v-if="item.target === '_blank' && props.externalIcon !== false"
|
|
128
|
+
:name="typeof props.externalIcon === 'string' ? props.externalIcon : appConfig.ui.icons.external"
|
|
129
|
+
:class="ui.linkLabelExternalIcon({ class: [props.ui?.linkLabelExternalIcon, item.ui?.linkLabelExternalIcon], active })"
|
|
130
|
+
data-part="linkLabelExternalIcon"
|
|
131
|
+
/>
|
|
132
|
+
</span>
|
|
133
|
+
|
|
134
|
+
<component
|
|
135
|
+
:is="props.orientation === 'vertical' && item.children?.length && !props.collapsed ? AccordionTrigger : 'span'"
|
|
136
|
+
v-if="item.badge !== void 0 || orientation === 'horizontal' && (item.children?.length || !!slots[`${item.slot || 'item'}-content`]) || orientation === 'vertical' && item.children?.length || item.trailingIcon || !!slots[`${item.slot || 'item'}-trailing`]"
|
|
137
|
+
as="span"
|
|
138
|
+
:class="ui.linkTrailing({ class: [props.ui?.linkTrailing, item.ui?.linkTrailing] })"
|
|
139
|
+
data-part="linkTrailing"
|
|
140
|
+
@click.stop.prevent
|
|
141
|
+
>
|
|
142
|
+
<slot :name="`${item.slot || 'item'}-trailing`" :item="item" :active="active" :index="index" :ui="ui">
|
|
143
|
+
<Badge
|
|
144
|
+
v-if="item.badge !== void 0"
|
|
145
|
+
color="neutral"
|
|
146
|
+
variant="outline"
|
|
147
|
+
:size="item.ui?.linkTrailingBadgeSize || props.ui?.linkTrailingBadgeSize || ui.linkTrailingBadgeSize()"
|
|
148
|
+
v-bind="typeof item.badge === 'string' || typeof item.badge === 'number' ? { label: item.badge } : item.badge"
|
|
149
|
+
:class="ui.linkTrailingBadge({ class: [props.ui?.linkTrailingBadge, item.ui?.linkTrailingBadge] })"
|
|
150
|
+
data-part="linkTrailingBadge"
|
|
151
|
+
/>
|
|
152
|
+
|
|
153
|
+
<Icon
|
|
154
|
+
v-if="orientation === 'horizontal' && (item.children?.length || !!slots[`${item.slot || 'item'}-content`]) || orientation === 'vertical' && item.children?.length"
|
|
155
|
+
:name="item.trailingIcon || props.trailingIcon || appConfig.ui.icons.chevronDown"
|
|
156
|
+
:class="ui.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon], active })"
|
|
157
|
+
data-part="linkTrailingIcon"
|
|
158
|
+
/>
|
|
159
|
+
<Icon
|
|
160
|
+
v-else-if="item.trailingIcon"
|
|
161
|
+
:name="item.trailingIcon"
|
|
162
|
+
:class="ui.linkTrailingIcon({ class: [props.ui?.linkTrailingIcon, item.ui?.linkTrailingIcon], active })"
|
|
163
|
+
data-part="linkTrailingIcon"
|
|
164
|
+
/>
|
|
165
|
+
</slot>
|
|
166
|
+
</component>
|
|
167
|
+
</slot>
|
|
168
|
+
</DefineLinkTemplate>
|
|
169
|
+
|
|
170
|
+
<DefineItemTemplate v-slot="{ item, index, level = 0 }">
|
|
171
|
+
<component
|
|
172
|
+
:is="props.orientation === 'vertical' && !props.collapsed ? AccordionItem : NavigationMenuItem"
|
|
173
|
+
as="li"
|
|
174
|
+
:value="item.value || (level > 0 ? `item-${level}-${index}` : `item-${index}`)"
|
|
175
|
+
>
|
|
176
|
+
<div v-if="props.orientation === 'vertical' && item.type === 'label' && !props.collapsed" :class="ui.label({ class: [props.ui?.label, item.ui?.label, item.class] })" data-part="label">
|
|
177
|
+
<ReuseLinkTemplate :item="item" :index="index" />
|
|
178
|
+
</div>
|
|
179
|
+
<Link
|
|
180
|
+
v-else-if="item.type !== 'label'"
|
|
181
|
+
v-slot="{ active, ...slotProps }"
|
|
182
|
+
v-bind="props.orientation === 'vertical' && item.children?.length && !props.collapsed && item.type === 'trigger' ? {} : pickLinkProps(item)"
|
|
183
|
+
custom
|
|
184
|
+
>
|
|
185
|
+
<component
|
|
186
186
|
:is="
|
|
187
187
|
props.orientation === 'horizontal' && (item.children?.length || slots[`${item.slot || 'item'}-content`]) ? NavigationMenuTrigger : orientation === 'vertical' && item.children?.length && !props.collapsed && !slotProps.href ? AccordionTrigger : NavigationMenuLink
|
|
188
|
-
"
|
|
189
|
-
:active="active || item.active"
|
|
190
|
-
:disabled="item.disabled"
|
|
191
|
-
as-child
|
|
192
|
-
@select="item.onSelect"
|
|
193
|
-
>
|
|
194
|
-
<Popover
|
|
195
|
-
v-if="props.orientation === 'vertical' && props.collapsed && item.children?.length && (!!props.popover || !!item.popover)"
|
|
196
|
-
v-bind="{ ...popoverProps, ...typeof item.popover === 'boolean' ? {} : item.popover || {} }"
|
|
197
|
-
:ui="{ content: ui.content({ class: [props.ui?.content, item.ui?.content] }) }"
|
|
198
|
-
data-part="content"
|
|
199
|
-
>
|
|
200
|
-
<LinkBase
|
|
201
|
-
v-bind="slotProps"
|
|
188
|
+
"
|
|
189
|
+
:active="active || item.active"
|
|
190
|
+
:disabled="item.disabled"
|
|
191
|
+
as-child
|
|
192
|
+
@select="item.onSelect"
|
|
193
|
+
>
|
|
194
|
+
<Popover
|
|
195
|
+
v-if="props.orientation === 'vertical' && props.collapsed && item.children?.length && (!!props.popover || !!item.popover)"
|
|
196
|
+
v-bind="{ ...popoverProps, ...typeof item.popover === 'boolean' ? {} : item.popover || {} }"
|
|
197
|
+
:ui="{ content: ui.content({ class: [props.ui?.content, item.ui?.content] }) }"
|
|
198
|
+
data-part="content"
|
|
199
|
+
>
|
|
200
|
+
<LinkBase
|
|
201
|
+
v-bind="slotProps"
|
|
202
202
|
:class="ui.link({
|
|
203
203
|
class: [props.ui?.link, item.ui?.link, item.class],
|
|
204
204
|
active: active || item.active,
|
|
205
205
|
disabled: item.disabled,
|
|
206
206
|
level: level > 0
|
|
207
|
-
})"
|
|
208
|
-
data-part="link"
|
|
209
|
-
>
|
|
210
|
-
<ReuseLinkTemplate :item="item" :active="active || item.active" :index="index" />
|
|
211
|
-
</LinkBase>
|
|
212
|
-
|
|
213
|
-
<template #content="{ close }">
|
|
214
|
-
<slot :name="`${item.slot || 'item'}-content`" :item="item" :active="active || item.active" :index="index" :ui="ui" :close="close">
|
|
215
|
-
<ul :class="ui.childList({ class: [props.ui?.childList, item.ui?.childList] })" data-part="childList">
|
|
216
|
-
<li :class="ui.childLabel({ class: [props.ui?.childLabel, item.ui?.childLabel] })" data-part="childLabel">
|
|
217
|
-
{{ get(item, props.labelKey) }}
|
|
218
|
-
</li>
|
|
219
|
-
<li v-for="(childItem, childIndex) in item.children" :key="childIndex" :class="ui.childItem({ class: [props.ui?.childItem, item.ui?.childItem] })" data-part="childItem">
|
|
220
|
-
<Link v-slot="{ active: childActive, ...childSlotProps }" v-bind="pickLinkProps(childItem)" custom>
|
|
221
|
-
<NavigationMenuLink :active="childActive" as-child @select="childItem.onSelect">
|
|
222
|
-
<LinkBase v-bind="childSlotProps" :class="ui.childLink({ class: [props.ui?.childLink, item.ui?.childLink, childItem.class], active: childActive })" data-part="childLink">
|
|
223
|
-
<Icon v-if="childItem.icon" :name="childItem.icon" :class="ui.childLinkIcon({ class: [props.ui?.childLinkIcon, item.ui?.childLinkIcon], active: childActive })" data-part="childLinkIcon" />
|
|
224
|
-
|
|
225
|
-
<span :class="ui.childLinkLabel({ class: [props.ui?.childLinkLabel, item.ui?.childLinkLabel], active: childActive })" data-part="childLinkLabel">
|
|
226
|
-
{{ get(childItem, props.labelKey) }}
|
|
227
|
-
|
|
228
|
-
<Icon v-if="childItem.target === '_blank' && props.externalIcon !== false" :name="typeof props.externalIcon === 'string' ? props.externalIcon : appConfig.ui.icons.external" :class="ui.childLinkLabelExternalIcon({ class: [props.ui?.childLinkLabelExternalIcon, item.ui?.childLinkLabelExternalIcon], active: childActive })" data-part="childLinkLabelExternalIcon" />
|
|
229
|
-
</span>
|
|
230
|
-
</LinkBase>
|
|
231
|
-
</NavigationMenuLink>
|
|
232
|
-
</Link>
|
|
233
|
-
</li>
|
|
234
|
-
</ul>
|
|
235
|
-
</slot>
|
|
236
|
-
</template>
|
|
237
|
-
</Popover>
|
|
238
|
-
<Tooltip v-else-if="props.orientation === 'vertical' && props.collapsed && (!!props.tooltip || !!item.tooltip)" :text="get(item, props.labelKey)" v-bind="{ ...tooltipProps, ...typeof item.tooltip === 'boolean' ? {} : item.tooltip || {} }">
|
|
239
|
-
<LinkBase v-bind="slotProps" :class="ui.link({ class: [props.ui?.link, item.ui?.link, item.class], active: active || item.active, disabled: item.disabled, level: level > 0 })" data-part="link">
|
|
240
|
-
<ReuseLinkTemplate :item="item" :active="active || item.active" :index="index" />
|
|
241
|
-
</LinkBase>
|
|
242
|
-
</Tooltip>
|
|
243
|
-
<LinkBase v-else v-bind="slotProps" :class="ui.link({ class: [props.ui?.link, item.ui?.link, item.class], active: active || item.active, disabled: item.disabled, level: props.orientation === 'horizontal' || level > 0 })" data-part="link">
|
|
244
|
-
<ReuseLinkTemplate :item="item" :active="active || item.active" :index="index" />
|
|
245
|
-
</LinkBase>
|
|
246
|
-
</component>
|
|
247
|
-
|
|
248
|
-
<NavigationMenuContent
|
|
249
|
-
v-if="props.orientation === 'horizontal' && (item.children?.length || slots[`${item.slot || 'item'}-content`])"
|
|
250
|
-
v-bind="contentProps"
|
|
251
|
-
:class="ui.content({ class: [props.ui?.content, item.ui?.content] })"
|
|
252
|
-
data-part="content"
|
|
253
|
-
>
|
|
254
|
-
<slot :name="`${item.slot || 'item'}-content`" :item="item" :active="active" :index="index" :ui="ui">
|
|
255
|
-
<ul :class="ui.childList({ class: [props.ui?.childList, item.ui?.childList] })" data-part="childList">
|
|
256
|
-
<li v-for="(childItem, childIndex) in item.children" :key="childIndex" :class="ui.childItem({ class: [props.ui?.childItem, item.ui?.childItem] })" data-part="childItem">
|
|
257
|
-
<Link v-slot="{ active: childActive, ...childSlotProps }" v-bind="pickLinkProps(childItem)" custom>
|
|
258
|
-
<NavigationMenuLink :active="childActive" as-child @select="childItem.onSelect">
|
|
259
|
-
<LinkBase v-bind="childSlotProps" :class="ui.childLink({ class: [props.ui?.childLink, item.ui?.childLink, childItem.class], active: childActive })" data-part="childLink">
|
|
260
|
-
<Icon v-if="childItem.icon" :name="childItem.icon" :class="ui.childLinkIcon({ class: [props.ui?.childLinkIcon, item.ui?.childLinkIcon], active: childActive })" data-part="childLinkIcon" />
|
|
261
|
-
|
|
262
|
-
<div :class="ui.childLinkWrapper({ class: [props.ui?.childLinkWrapper, item.ui?.childLinkWrapper] })" data-part="childLinkWrapper">
|
|
263
|
-
<p :class="ui.childLinkLabel({ class: [props.ui?.childLinkLabel, item.ui?.childLinkLabel], active: childActive })" data-part="childLinkLabel">
|
|
264
|
-
{{ get(childItem, props.labelKey) }}
|
|
265
|
-
|
|
266
|
-
<Icon v-if="childItem.target === '_blank' && props.externalIcon !== false" :name="typeof props.externalIcon === 'string' ? props.externalIcon : appConfig.ui.icons.external" :class="ui.childLinkLabelExternalIcon({ class: [props.ui?.childLinkLabelExternalIcon, item.ui?.childLinkLabelExternalIcon], active: childActive })" data-part="childLinkLabelExternalIcon" />
|
|
267
|
-
</p>
|
|
268
|
-
<p v-if="childItem.description" :class="ui.childLinkDescription({ class: [props.ui?.childLinkDescription, item.ui?.childLinkDescription], active: childActive })" data-part="childLinkDescription">
|
|
269
|
-
{{ childItem.description }}
|
|
270
|
-
</p>
|
|
271
|
-
</div>
|
|
272
|
-
</LinkBase>
|
|
273
|
-
</NavigationMenuLink>
|
|
274
|
-
</Link>
|
|
275
|
-
</li>
|
|
276
|
-
</ul>
|
|
277
|
-
</slot>
|
|
278
|
-
</NavigationMenuContent>
|
|
279
|
-
</Link>
|
|
280
|
-
|
|
281
|
-
<AccordionContent v-if="props.orientation === 'vertical' && item.children?.length && !props.collapsed" :class="ui.content({ class: [props.ui?.content, item.ui?.content] })" data-part="content">
|
|
282
|
-
<AccordionRoot
|
|
283
|
-
v-bind="{ ...accordionProps, defaultValue: getAccordionDefaultValue(item.children, level + 1) }"
|
|
284
|
-
as="ul"
|
|
285
|
-
:class="ui.childList({ class: [props.ui?.childList, item.ui?.childList] })"
|
|
286
|
-
data-part="childList"
|
|
287
|
-
>
|
|
288
|
-
<ReuseItemTemplate
|
|
289
|
-
v-for="(childItem, childIndex) in item.children"
|
|
290
|
-
:key="childIndex"
|
|
291
|
-
:item="childItem"
|
|
292
|
-
:index="childIndex"
|
|
293
|
-
:level="level + 1"
|
|
294
|
-
:class="ui.childItem({ class: [props.ui?.childItem, item.ui?.childItem] })"
|
|
295
|
-
data-part="childItem"
|
|
296
|
-
/>
|
|
297
|
-
</AccordionRoot>
|
|
298
|
-
</AccordionContent>
|
|
299
|
-
</component>
|
|
300
|
-
</DefineItemTemplate>
|
|
301
|
-
|
|
302
|
-
<NavigationMenuRoot
|
|
207
|
+
})"
|
|
208
|
+
data-part="link"
|
|
209
|
+
>
|
|
210
|
+
<ReuseLinkTemplate :item="item" :active="active || item.active" :index="index" />
|
|
211
|
+
</LinkBase>
|
|
212
|
+
|
|
213
|
+
<template #content="{ close }">
|
|
214
|
+
<slot :name="`${item.slot || 'item'}-content`" :item="item" :active="active || item.active" :index="index" :ui="ui" :close="close">
|
|
215
|
+
<ul :class="ui.childList({ class: [props.ui?.childList, item.ui?.childList] })" data-part="childList">
|
|
216
|
+
<li :class="ui.childLabel({ class: [props.ui?.childLabel, item.ui?.childLabel] })" data-part="childLabel">
|
|
217
|
+
{{ get(item, props.labelKey) }}
|
|
218
|
+
</li>
|
|
219
|
+
<li v-for="(childItem, childIndex) in item.children" :key="childIndex" :class="ui.childItem({ class: [props.ui?.childItem, item.ui?.childItem] })" data-part="childItem">
|
|
220
|
+
<Link v-slot="{ active: childActive, ...childSlotProps }" v-bind="pickLinkProps(childItem)" custom>
|
|
221
|
+
<NavigationMenuLink :active="childActive" as-child @select="childItem.onSelect">
|
|
222
|
+
<LinkBase v-bind="childSlotProps" :class="ui.childLink({ class: [props.ui?.childLink, item.ui?.childLink, childItem.class], active: childActive })" data-part="childLink">
|
|
223
|
+
<Icon v-if="childItem.icon" :name="childItem.icon" :class="ui.childLinkIcon({ class: [props.ui?.childLinkIcon, item.ui?.childLinkIcon], active: childActive })" data-part="childLinkIcon" />
|
|
224
|
+
|
|
225
|
+
<span :class="ui.childLinkLabel({ class: [props.ui?.childLinkLabel, item.ui?.childLinkLabel], active: childActive })" data-part="childLinkLabel">
|
|
226
|
+
{{ get(childItem, props.labelKey) }}
|
|
227
|
+
|
|
228
|
+
<Icon v-if="childItem.target === '_blank' && props.externalIcon !== false" :name="typeof props.externalIcon === 'string' ? props.externalIcon : appConfig.ui.icons.external" :class="ui.childLinkLabelExternalIcon({ class: [props.ui?.childLinkLabelExternalIcon, item.ui?.childLinkLabelExternalIcon], active: childActive })" data-part="childLinkLabelExternalIcon" />
|
|
229
|
+
</span>
|
|
230
|
+
</LinkBase>
|
|
231
|
+
</NavigationMenuLink>
|
|
232
|
+
</Link>
|
|
233
|
+
</li>
|
|
234
|
+
</ul>
|
|
235
|
+
</slot>
|
|
236
|
+
</template>
|
|
237
|
+
</Popover>
|
|
238
|
+
<Tooltip v-else-if="props.orientation === 'vertical' && props.collapsed && (!!props.tooltip || !!item.tooltip)" :text="get(item, props.labelKey)" v-bind="{ ...tooltipProps, ...typeof item.tooltip === 'boolean' ? {} : item.tooltip || {} }">
|
|
239
|
+
<LinkBase v-bind="slotProps" :class="ui.link({ class: [props.ui?.link, item.ui?.link, item.class], active: active || item.active, disabled: item.disabled, level: level > 0 })" data-part="link">
|
|
240
|
+
<ReuseLinkTemplate :item="item" :active="active || item.active" :index="index" />
|
|
241
|
+
</LinkBase>
|
|
242
|
+
</Tooltip>
|
|
243
|
+
<LinkBase v-else v-bind="slotProps" :class="ui.link({ class: [props.ui?.link, item.ui?.link, item.class], active: active || item.active, disabled: item.disabled, level: props.orientation === 'horizontal' || level > 0 })" data-part="link">
|
|
244
|
+
<ReuseLinkTemplate :item="item" :active="active || item.active" :index="index" />
|
|
245
|
+
</LinkBase>
|
|
246
|
+
</component>
|
|
247
|
+
|
|
248
|
+
<NavigationMenuContent
|
|
249
|
+
v-if="props.orientation === 'horizontal' && (item.children?.length || slots[`${item.slot || 'item'}-content`])"
|
|
250
|
+
v-bind="contentProps"
|
|
251
|
+
:class="ui.content({ class: [props.ui?.content, item.ui?.content] })"
|
|
252
|
+
data-part="content"
|
|
253
|
+
>
|
|
254
|
+
<slot :name="`${item.slot || 'item'}-content`" :item="item" :active="active" :index="index" :ui="ui">
|
|
255
|
+
<ul :class="ui.childList({ class: [props.ui?.childList, item.ui?.childList] })" data-part="childList">
|
|
256
|
+
<li v-for="(childItem, childIndex) in item.children" :key="childIndex" :class="ui.childItem({ class: [props.ui?.childItem, item.ui?.childItem] })" data-part="childItem">
|
|
257
|
+
<Link v-slot="{ active: childActive, ...childSlotProps }" v-bind="pickLinkProps(childItem)" custom>
|
|
258
|
+
<NavigationMenuLink :active="childActive" as-child @select="childItem.onSelect">
|
|
259
|
+
<LinkBase v-bind="childSlotProps" :class="ui.childLink({ class: [props.ui?.childLink, item.ui?.childLink, childItem.class], active: childActive })" data-part="childLink">
|
|
260
|
+
<Icon v-if="childItem.icon" :name="childItem.icon" :class="ui.childLinkIcon({ class: [props.ui?.childLinkIcon, item.ui?.childLinkIcon], active: childActive })" data-part="childLinkIcon" />
|
|
261
|
+
|
|
262
|
+
<div :class="ui.childLinkWrapper({ class: [props.ui?.childLinkWrapper, item.ui?.childLinkWrapper] })" data-part="childLinkWrapper">
|
|
263
|
+
<p :class="ui.childLinkLabel({ class: [props.ui?.childLinkLabel, item.ui?.childLinkLabel], active: childActive })" data-part="childLinkLabel">
|
|
264
|
+
{{ get(childItem, props.labelKey) }}
|
|
265
|
+
|
|
266
|
+
<Icon v-if="childItem.target === '_blank' && props.externalIcon !== false" :name="typeof props.externalIcon === 'string' ? props.externalIcon : appConfig.ui.icons.external" :class="ui.childLinkLabelExternalIcon({ class: [props.ui?.childLinkLabelExternalIcon, item.ui?.childLinkLabelExternalIcon], active: childActive })" data-part="childLinkLabelExternalIcon" />
|
|
267
|
+
</p>
|
|
268
|
+
<p v-if="childItem.description" :class="ui.childLinkDescription({ class: [props.ui?.childLinkDescription, item.ui?.childLinkDescription], active: childActive })" data-part="childLinkDescription">
|
|
269
|
+
{{ childItem.description }}
|
|
270
|
+
</p>
|
|
271
|
+
</div>
|
|
272
|
+
</LinkBase>
|
|
273
|
+
</NavigationMenuLink>
|
|
274
|
+
</Link>
|
|
275
|
+
</li>
|
|
276
|
+
</ul>
|
|
277
|
+
</slot>
|
|
278
|
+
</NavigationMenuContent>
|
|
279
|
+
</Link>
|
|
280
|
+
|
|
281
|
+
<AccordionContent v-if="props.orientation === 'vertical' && item.children?.length && !props.collapsed" :class="ui.content({ class: [props.ui?.content, item.ui?.content] })" data-part="content">
|
|
282
|
+
<AccordionRoot
|
|
283
|
+
v-bind="{ ...accordionProps, defaultValue: getAccordionDefaultValue(item.children, level + 1) }"
|
|
284
|
+
as="ul"
|
|
285
|
+
:class="ui.childList({ class: [props.ui?.childList, item.ui?.childList] })"
|
|
286
|
+
data-part="childList"
|
|
287
|
+
>
|
|
288
|
+
<ReuseItemTemplate
|
|
289
|
+
v-for="(childItem, childIndex) in item.children"
|
|
290
|
+
:key="childIndex"
|
|
291
|
+
:item="childItem"
|
|
292
|
+
:index="childIndex"
|
|
293
|
+
:level="level + 1"
|
|
294
|
+
:class="ui.childItem({ class: [props.ui?.childItem, item.ui?.childItem] })"
|
|
295
|
+
data-part="childItem"
|
|
296
|
+
/>
|
|
297
|
+
</AccordionRoot>
|
|
298
|
+
</AccordionContent>
|
|
299
|
+
</component>
|
|
300
|
+
</DefineItemTemplate>
|
|
301
|
+
|
|
302
|
+
<NavigationMenuRoot
|
|
303
303
|
v-bind="{
|
|
304
304
|
...rootProps,
|
|
305
305
|
...props.orientation === 'horizontal' ? {
|
|
@@ -307,39 +307,39 @@ function getAccordionDefaultValue(list, level = 0) {
|
|
|
307
307
|
defaultValue: props.defaultValue
|
|
308
308
|
} : {},
|
|
309
309
|
...$attrs
|
|
310
|
-
}"
|
|
311
|
-
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
312
|
-
:data-collapsed="props.collapsed"
|
|
313
|
-
data-part="root"
|
|
314
|
-
>
|
|
315
|
-
<slot name="list-leading"></slot>
|
|
316
|
-
|
|
317
|
-
<template v-for="(list, listIndex) in lists" :key="`list-${listIndex}`">
|
|
318
|
-
<component
|
|
310
|
+
}"
|
|
311
|
+
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
312
|
+
:data-collapsed="props.collapsed"
|
|
313
|
+
data-part="root"
|
|
314
|
+
>
|
|
315
|
+
<slot name="list-leading"></slot>
|
|
316
|
+
|
|
317
|
+
<template v-for="(list, listIndex) in lists" :key="`list-${listIndex}`">
|
|
318
|
+
<component
|
|
319
319
|
v-bind="props.orientation === 'vertical' && !props.collapsed ? {
|
|
320
320
|
...accordionProps,
|
|
321
321
|
modelValue: props.modelValue,
|
|
322
322
|
defaultValue: props.defaultValue ?? getAccordionDefaultValue(list)
|
|
323
|
-
} : {}"
|
|
324
|
-
:is="props.orientation === 'vertical' ? AccordionRoot : NavigationMenuList"
|
|
325
|
-
as="ul"
|
|
326
|
-
:class="ui.list({ class: props.ui?.list })"
|
|
327
|
-
data-part="list"
|
|
328
|
-
>
|
|
329
|
-
<ReuseItemTemplate v-for="(item, index) in list" :key="`list-${listIndex}-${index}`" :item="item" :index="index" :class="ui.item({ class: [props.ui?.item, item.ui?.item] })" data-part="item" />
|
|
330
|
-
</component>
|
|
331
|
-
|
|
332
|
-
<div v-if="props.orientation === 'vertical' && listIndex < lists.length - 1" :class="ui.separator({ class: props.ui?.separator })" data-part="separator"></div>
|
|
333
|
-
</template>
|
|
334
|
-
|
|
335
|
-
<slot name="list-trailing"></slot>
|
|
336
|
-
|
|
337
|
-
<div v-if="props.orientation === 'horizontal'" :class="ui.viewportWrapper({ class: props.ui?.viewportWrapper })" data-part="viewportWrapper">
|
|
338
|
-
<NavigationMenuIndicator v-if="props.arrow" :class="ui.indicator({ class: props.ui?.indicator })" data-part="indicator">
|
|
339
|
-
<div :class="ui.arrow({ class: props.ui?.arrow })" data-part="arrow"></div>
|
|
340
|
-
</NavigationMenuIndicator>
|
|
341
|
-
|
|
342
|
-
<NavigationMenuViewport :class="ui.viewport({ class: props.ui?.viewport })" data-part="viewport" />
|
|
343
|
-
</div>
|
|
344
|
-
</NavigationMenuRoot>
|
|
323
|
+
} : {}"
|
|
324
|
+
:is="props.orientation === 'vertical' ? AccordionRoot : NavigationMenuList"
|
|
325
|
+
as="ul"
|
|
326
|
+
:class="ui.list({ class: props.ui?.list })"
|
|
327
|
+
data-part="list"
|
|
328
|
+
>
|
|
329
|
+
<ReuseItemTemplate v-for="(item, index) in list" :key="`list-${listIndex}-${index}`" :item="item" :index="index" :class="ui.item({ class: [props.ui?.item, item.ui?.item] })" data-part="item" />
|
|
330
|
+
</component>
|
|
331
|
+
|
|
332
|
+
<div v-if="props.orientation === 'vertical' && listIndex < lists.length - 1" :class="ui.separator({ class: props.ui?.separator })" data-part="separator"></div>
|
|
333
|
+
</template>
|
|
334
|
+
|
|
335
|
+
<slot name="list-trailing"></slot>
|
|
336
|
+
|
|
337
|
+
<div v-if="props.orientation === 'horizontal'" :class="ui.viewportWrapper({ class: props.ui?.viewportWrapper })" data-part="viewportWrapper">
|
|
338
|
+
<NavigationMenuIndicator v-if="props.arrow" :class="ui.indicator({ class: props.ui?.indicator })" data-part="indicator">
|
|
339
|
+
<div :class="ui.arrow({ class: props.ui?.arrow })" data-part="arrow"></div>
|
|
340
|
+
</NavigationMenuIndicator>
|
|
341
|
+
|
|
342
|
+
<NavigationMenuViewport :class="ui.viewport({ class: props.ui?.viewport })" data-part="viewport" />
|
|
343
|
+
</div>
|
|
344
|
+
</NavigationMenuRoot>
|
|
345
345
|
</template>
|
|
@@ -198,10 +198,14 @@ export type NavigationMenuSlots<A extends ArrayOrNested<NavigationMenuItem> = Ar
|
|
|
198
198
|
active: boolean;
|
|
199
199
|
ui: ComponentStyler<typeof theme>;
|
|
200
200
|
}>;
|
|
201
|
-
declare const
|
|
202
|
-
|
|
201
|
+
declare const _default: typeof __VLS_export;
|
|
202
|
+
export default _default;
|
|
203
|
+
declare const __VLS_export: <T extends ArrayOrNested<NavigationMenuItem>, K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
204
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<NavigationMenuProps<T, K, O> & {
|
|
203
205
|
"onUpdate:modelValue"?: ((value: NavigationMenuModelValue<K, O> | undefined) => any) | undefined;
|
|
204
|
-
}> &
|
|
206
|
+
}> & (typeof globalThis extends {
|
|
207
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
208
|
+
} ? P : {});
|
|
205
209
|
expose: (exposed: {}) => void;
|
|
206
210
|
attrs: any;
|
|
207
211
|
slots: NavigationMenuSlots<T, NestedItem<T>>;
|
|
@@ -209,8 +213,8 @@ declare const __VLS_export: <T extends ArrayOrNested<NavigationMenuItem>, K exte
|
|
|
209
213
|
}>) => import("vue").VNode & {
|
|
210
214
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
211
215
|
};
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
216
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
217
|
+
[K in keyof T]: T[K];
|
|
218
|
+
} : {
|
|
215
219
|
[K in keyof T as K]: T[K];
|
|
216
|
-
} & {};
|
|
220
|
+
}) & {};
|
|
@@ -13,13 +13,13 @@ function onClose(id, value) {
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<template>
|
|
16
|
-
<component
|
|
17
|
-
:is="overlay.component"
|
|
18
|
-
v-for="overlay in mountedOverlays"
|
|
19
|
-
:key="overlay.id"
|
|
20
|
-
v-bind="overlay.props"
|
|
21
|
-
v-model:open="overlay.isOpen"
|
|
22
|
-
@close="onClose(overlay.id, $event)"
|
|
23
|
-
@after-leave="onAfterLeave(overlay.id)"
|
|
24
|
-
/>
|
|
16
|
+
<component
|
|
17
|
+
:is="overlay.component"
|
|
18
|
+
v-for="overlay in mountedOverlays"
|
|
19
|
+
:key="overlay.id"
|
|
20
|
+
v-bind="overlay.props"
|
|
21
|
+
v-model:open="overlay.isOpen"
|
|
22
|
+
@close="onClose(overlay.id, $event)"
|
|
23
|
+
@after-leave="onAfterLeave(overlay.id)"
|
|
24
|
+
/>
|
|
25
25
|
</template>
|