Skip to content

Commit 2f6aa84

Browse files
committed
feat(element-plus): add dropdown props #55
1 parent 95b63c2 commit 2f6aa84

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

element-plus/src/components/cron-element-plus.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
@update:model-value="period.select($event)"
1010
:disabled="disabled"
1111
:button-props="buttonProps"
12+
:dropdown-props="dropdownProps"
1213
/>
1314

1415
{{ period.suffix.value }}
@@ -27,7 +28,7 @@
2728
clearable
2829
:disabled="disabled"
2930
:button-props="buttonProps"
30-
:dropdown-props="{ hideOnClick: false }"
31+
:dropdown-props="{ ...dropdownProps, hideOnClick: false }"
3132
/>
3233
</div>
3334

@@ -54,6 +55,16 @@ export const cronElementPlusProps = () => ({
5455
return {}
5556
},
5657
},
58+
/**
59+
* Properties of Element Plus Dropdown
60+
*
61+
* @remarks
62+
* See {@link https://element-plus.org/en-US/component/dropdown.html#dropdown-attributes}
63+
*/
64+
dropdownProps: {
65+
type: Object,
66+
default: () => {},
67+
},
5768
...cronCoreProps(),
5869
})
5970

0 commit comments

Comments
 (0)