54 lines
1.1 KiB
JavaScript
54 lines
1.1 KiB
JavaScript
import {
|
|
isObject,
|
|
onlyDefinedProps,
|
|
propsFactory
|
|
} from "./chunk-LZ5T2ERG.js";
|
|
import {
|
|
Transition,
|
|
TransitionGroup,
|
|
h,
|
|
mergeProps
|
|
} from "./chunk-2MKFL3BX.js";
|
|
|
|
// node_modules/vuetify/lib/composables/transition.js
|
|
var makeTransitionProps = propsFactory({
|
|
transition: {
|
|
type: null,
|
|
default: "fade-transition",
|
|
validator: (val) => val !== true
|
|
}
|
|
}, "transition");
|
|
var MaybeTransition = (props, _ref) => {
|
|
let {
|
|
slots
|
|
} = _ref;
|
|
const {
|
|
transition,
|
|
disabled,
|
|
group,
|
|
...rest
|
|
} = props;
|
|
const {
|
|
component = group ? TransitionGroup : Transition,
|
|
...customProps
|
|
} = isObject(transition) ? transition : {};
|
|
let transitionProps;
|
|
if (isObject(transition)) {
|
|
transitionProps = mergeProps(customProps, onlyDefinedProps({
|
|
disabled,
|
|
group
|
|
}), rest);
|
|
} else {
|
|
transitionProps = mergeProps({
|
|
name: disabled || !transition ? "" : transition
|
|
}, rest);
|
|
}
|
|
return h(component, transitionProps, slots);
|
|
};
|
|
|
|
export {
|
|
makeTransitionProps,
|
|
MaybeTransition
|
|
};
|
|
//# sourceMappingURL=chunk-CAGZXMOS.js.map
|