Skip to content

Commit

Permalink
Remove Vue.extend
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed Jan 2, 2024
1 parent 81a30ce commit 0219fbb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</template>

<script lang="ts">
import Vue from 'vue';
import {defineComponent} from 'vue';
import {ShippingSetupOption} from '@/enums/product-feed/shipping';
import ProductFeedSettingsPages from '@/enums/product-feed/product-feed-settings-pages';
import ShippingSettingsHeaderType from '@/enums/product-feed/shipping-settings-header-type';
Expand All @@ -58,7 +58,7 @@ import CustomRate from '@/components/product-feed/settings/delivery-time-and-rat
import CountriesFormList from './estimate-method/countries-form-list.vue';
import {getDataFromLocalStorage} from '@/utils/LocalStorage';
export default Vue.extend({
export default defineComponent({
components: {
ActionsButtons,
TargetCountries,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@
</div>
</template>
<script lang="ts">
import Vue, {PropType} from 'vue';
import {defineComponent, PropType} from 'vue';
import CustomCarrierForm from './custom-carrier-form.vue';
import {RateType} from '@/enums/product-feed/rate';
import {CustomCarrier, validateCarrier} from '@/providers/shipping-rate-provider';
export default Vue.extend({
export default defineComponent({
name: 'CountriesFormList',
components: {
CustomCarrierForm,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
</div>
</template>
<script lang="ts">
import Vue, {PropType} from 'vue';
import {defineComponent, PropType} from 'vue';
import {OfferType} from '@/enums/product-feed/offer';
import {
validateDeliveryTime,
Expand All @@ -271,7 +271,7 @@ import {
} from '@/providers/shipping-rate-provider';
import CurrencyDropdown from './currency-dropdown.vue';
export default Vue.extend({
export default defineComponent({
name: 'CustomCarrierForm',
components: {
CurrencyDropdown,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
</div>
</template>
<script lang="ts">
import Vue, {PropType} from 'vue';
import {defineComponent, PropType} from 'vue';
import {RateType} from '@/enums/product-feed/rate';
export default Vue.extend({
export default defineComponent({
data() {
return {
RateType,
Expand Down

0 comments on commit 0219fbb

Please sign in to comment.