File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -171,24 +171,24 @@ const slots = defineSlots<{
171
171
/**
172
172
* The actions slot can be used to add custom actions (`NcAction*`) to the chips actions.
173
173
*/
174
- actions: Slot
174
+ actions? : Slot
175
175
176
176
/**
177
177
* The default slot can be used to set the text that is shown.
178
178
*/
179
- default: Slot
179
+ default? : Slot
180
180
181
181
/**
182
182
* The icon slot can be used to set the chip icon.
183
183
* Make sure that the icon is not exceeding a height of `--chip-size`.
184
184
* For round icons a exact size of `var(--chip-size)` is recommended.
185
185
*/
186
- icon: Slot
186
+ icon? : Slot
187
187
}>()
188
188
189
189
const canClose = computed(() => !props.noClose)
190
- const hasActions = () => Boolean( slots.actions?.())
191
- const hasIcon = () => Boolean(props.iconPath || props.iconSvg || !!slots.icon?.() )
190
+ const hasActions = () => !! slots.actions
191
+ const hasIcon = () => Boolean(props.iconPath || props.iconSvg || !!slots.icon)
192
192
</script>
193
193
194
194
<style scoped lang="scss">
You can’t perform that action at this time.
0 commit comments