Skip to content

Commit

Permalink
feat(element-plus): add dropdown props #55
Browse files Browse the repository at this point in the history
  • Loading branch information
abichinger committed May 17, 2024
1 parent 95b63c2 commit 2f6aa84
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion element-plus/src/components/cron-element-plus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@update:model-value="period.select($event)"
:disabled="disabled"
:button-props="buttonProps"
:dropdown-props="dropdownProps"
/>

{{ period.suffix.value }}
Expand All @@ -27,7 +28,7 @@
clearable
:disabled="disabled"
:button-props="buttonProps"
:dropdown-props="{ hideOnClick: false }"
:dropdown-props="{ ...dropdownProps, hideOnClick: false }"
/>
</div>

Expand All @@ -54,6 +55,16 @@ export const cronElementPlusProps = () => ({
return {}
},
},
/**
* Properties of Element Plus Dropdown
*
* @remarks
* See {@link https://element-plus.org/en-US/component/dropdown.html#dropdown-attributes}
*/
dropdownProps: {
type: Object,
default: () => {},
},
...cronCoreProps(),
})
Expand Down

0 comments on commit 2f6aa84

Please sign in to comment.