various-ui
Version:
This is a test version of the Vue 3 component library
38 lines (33 loc) • 1.12 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
var index = require('./index.js');
var index$1 = require('../../../constants/index.js');
const _hoisted_1 = { class: "ui-radio-group" };
const __default__ = vue.defineComponent({ name: "UiRadioGroup" });
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
...__default__,
props: index.UiRadioGroupPropsOption,
emits: index.UiRadioGroupEmits,
setup(__props, { emit: __emit }) {
const define = __props;
const emits = __emit;
const emitter = vue.inject(index$1.UiFormEmitterKey, void 0);
vue.provide(index.UiRadioGroupInjectionKey, {
define,
change: (value) => {
emits("update:modelValue", value);
emits("change");
emitter == null ? void 0 : emitter.emit(define.name || "", "change");
}
});
;
return (_ctx, _cache) => {
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
vue.renderSlot(_ctx.$slots, "default")
]);
};
}
});
exports.default = _sfc_main;
//# sourceMappingURL=index.vue2.js.map