From 69cfa11afa8655060f3aa75ed755e9b1d1a13750 Mon Sep 17 00:00:00 2001 From: mlmo Date: Sat, 7 Oct 2023 18:00:39 +0200 Subject: [PATCH] refactor: removed unused mixin --- .../oruga-next/src/utils/CheckRadioMixin.ts | 62 ------------------- 1 file changed, 62 deletions(-) delete mode 100644 packages/oruga-next/src/utils/CheckRadioMixin.ts diff --git a/packages/oruga-next/src/utils/CheckRadioMixin.ts b/packages/oruga-next/src/utils/CheckRadioMixin.ts deleted file mode 100644 index a16be11b7..000000000 --- a/packages/oruga-next/src/utils/CheckRadioMixin.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { defineComponent } from "vue"; - -export default defineComponent({ - emits: ["update:modelValue"], - props: { - /** @model */ - modelValue: [String, Number, Boolean, Array], - /** - * Same as native value - */ - nativeValue: [String, Number, Boolean, Array], - /** - * Color of the control, optional - * @values primary, info, success, warning, danger, and any other custom color - */ - variant: String, - /** - * Same as native disabled - */ - disabled: Boolean, - required: Boolean, - /** - * Same as native name - */ - name: String, - /** - * Size of the control, optional - * @values small, medium, large - */ - size: String, - }, - data() { - return { - newValue: this.modelValue, - }; - }, - computed: { - computedValue: { - get() { - return this.newValue; - }, - set(value) { - this.newValue = value; - this.$emit("update:modelValue", this.newValue); - }, - }, - }, - watch: { - /** - * When v-model change, set internal value. - */ - modelValue(value) { - this.newValue = value; - }, - }, - methods: { - focus() { - // MacOS FireFox and Safari do not focus when clicked - this.$refs.input.focus(); - }, - }, -});