Add contextual save options to detail page (#309)

* Add skeleton loader, add loading to v-form, add disabled to v-menu

* Make sure height matches with input

* Add transition to skeleton loader

* Force skeleton loader to adhere to input size on form

* Sneak in this little thing unnoticed
This commit is contained in:
Rijk van Zanten
2020-04-03 20:29:04 -04:00
committed by GitHub
parent 3a0f7a6163
commit ba94e83d4e
13 changed files with 242 additions and 115 deletions

View File

@@ -74,6 +74,7 @@ Strap in
| `offsetY` | Positions the menu along the Y-Axis so as not to cover any of the activator | `false` |
| `positionX` | "left" css value of menu. Only works with `absolute` or `fixed` | `undefined` |
| `positionY` | "top" css value of menu. Only works with `absolute` or `fixed` | `undefined` |
| `disabled` | Prevent the menu from being opened by clicking on the activator | `false` |
### Behavior

View File

@@ -61,6 +61,10 @@ export default defineComponent({
type: Boolean,
default: false,
},
disabled: {
type: Boolean,
default: false,
},
},
setup(props, { emit }) {
const activator = ref<HTMLElement>(null);
@@ -128,6 +132,7 @@ export default defineComponent({
}
function toggle() {
if (props.disabled === true) return;
isActive.value = !isActive.value;
}
}