|
|
|
@ -15,12 +15,6 @@ const { isUIAllowed } = useUIPermission()
|
|
|
|
|
provide(ColumnInj, column) |
|
|
|
|
|
|
|
|
|
const editColumnDropdown = ref(false) |
|
|
|
|
|
|
|
|
|
function onVisibleChange() { |
|
|
|
|
// only allow to close the EditOrAdd component |
|
|
|
|
// by clicking cancel button |
|
|
|
|
editColumnDropdown.value = true |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
@ -34,13 +28,7 @@ function onVisibleChange() {
|
|
|
|
|
<SmartsheetHeaderMenu v-if="!isForm && isUIAllowed('edit-column')" @edit="editColumnDropdown = true" /> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<a-dropdown |
|
|
|
|
v-model:visible="editColumnDropdown" |
|
|
|
|
class="h-full" |
|
|
|
|
:trigger="['click']" |
|
|
|
|
placement="bottomRight" |
|
|
|
|
@visible-change="onVisibleChange" |
|
|
|
|
> |
|
|
|
|
<a-dropdown v-model:visible="editColumnDropdown" class="h-full" :trigger="['click']" placement="bottomRight"> |
|
|
|
|
<div /> |
|
|
|
|
<template #overlay> |
|
|
|
|
<SmartsheetColumnEditOrAddProvider |
|
|
|
|