@synergy-design-system/vue
Version:
Vue3 wrappers for the Synergy Design System
36 lines (35 loc) • 988 B
JavaScript
import { defineComponent, ref, computed, createElementBlock, openBlock, mergeProps, renderSlot } from "vue";
import "@synergy-design-system/components/components/validate/validate.js";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "SynVueValidate",
props: {
variant: {},
hideIcon: {},
on: {},
customValidationMessage: {},
eager: {}
},
setup(__props, { expose: __expose }) {
const nativeElement = ref();
__expose({
nativeElement
});
const props = __props;
const visibleProps = computed(
() => Object.fromEntries(
Object.entries(props).filter(([, value]) => typeof value !== "undefined")
)
);
return (_ctx, _cache) => {
return openBlock(), createElementBlock("syn-validate", mergeProps(visibleProps.value, {
ref_key: "nativeElement",
ref: nativeElement
}), [
renderSlot(_ctx.$slots, "default")
], 16);
};
}
});
export {
_sfc_main as default
};