File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1313 <!-- Dropdown menu -->
1414 <div
1515 ref =" dropdownRef"
16- :class =" {'hidden': !showDropdown, 'block': showDropdown }"
17- class =" absolute z-30 right-0 mt-3 bg-lightThreeDotsMenuBodyBackground divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-darkThreeDotsMenuBodyBackground dark:divide-gray-600" >
16+ :class =" {
17+ 'block': showDropdown,
18+ 'hidden': !showDropdown,
19+ 'left-0 md:left-auto': props.openToRight,
20+ 'right-0': !props.openToRight}"
21+ class =" absolute z-30 mt-3 bg-lightThreeDotsMenuBodyBackground divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-darkThreeDotsMenuBodyBackground dark:divide-gray-600 right-0 md:right-0" >
1822 <ul class =" py-2 text-sm text-lightThreeDotsMenuBodyText dark:text-darkThreeDotsMenuBodyText" aria-labelledby =" dropdownMenuIconButton" >
1923 <li v-for =" (item, i) in threeDotsDropdownItems" :key =" `dropdown-item-${i}`" >
2024 <div
@@ -106,6 +110,11 @@ const props = defineProps({
106110 customActions: Array < AdminForthActionInput > ,
107111 bulkActions: Array < AdminForthBulkActionCommon > ,
108112 checkboxes: Array ,
113+ openToRight: {
114+ type: Boolean ,
115+ default: false
116+ },
117+
109118 updateList: {
110119 type: Function ,
111120 },
Original file line number Diff line number Diff line change 104104 :threeDotsDropdownItems =" (coreStore.resourceOptions?.pageInjections?.list?.threeDotsDropdownItems as [])"
105105 :bulkActions =" coreStore.resource?.options?.bulkActions"
106106 :checkboxes =" checkboxes"
107+ :openToRight =" checkboxes.length > 0"
107108 @startBulkAction =" startBulkAction"
108109 :updateList =" getList"
109110 :clearCheckboxes =" clearCheckboxes"
You can’t perform that action at this time.
0 commit comments