routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
||||
// Components
|
||||
import { makeVSelectionControlProps, VSelectionControl } from "../VSelectionControl/VSelectionControl.js"; // Utilities
|
||||
import { genericComponent, propsFactory, useRender } from "../../util/index.js"; // Types
|
||||
export const makeVRadioProps = propsFactory({
|
||||
...makeVSelectionControlProps({
|
||||
falseIcon: '$radioOff',
|
||||
trueIcon: '$radioOn'
|
||||
})
|
||||
}, 'VRadio');
|
||||
export const VRadio = genericComponent()({
|
||||
name: 'VRadio',
|
||||
props: makeVRadioProps(),
|
||||
setup(props, {
|
||||
slots
|
||||
}) {
|
||||
useRender(() => {
|
||||
const controlProps = VSelectionControl.filterProps(props);
|
||||
return _createVNode(VSelectionControl, _mergeProps(controlProps, {
|
||||
"class": ['v-radio', props.class],
|
||||
"style": props.style,
|
||||
"type": "radio"
|
||||
}), slots);
|
||||
});
|
||||
return {};
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=VRadio.js.map
|
||||
Reference in New Issue
Block a user