Skip to content

Commit

Permalink
fix: is string and number to vueuse error
Browse files Browse the repository at this point in the history
  • Loading branch information
hairyf committed May 17, 2023
1 parent a9c5538 commit e4db401
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/@vue/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable vue/one-component-per-file */
import { isNumber, isString } from '@vueuse/core'
import type { Component, PropType, VNode } from 'vue-demi'
import { defineComponent, getCurrentInstance, h } from 'vue-demi'

Expand All @@ -23,7 +22,7 @@ export const Field = defineComponent({
},
setup(props) {
return () => {
if (isString(props.is) || isNumber(props.is))
if (typeof props.is === 'string' || typeof props.is === 'number')
return props.is
return props.is ? h(props.is) : null
}
Expand Down

1 comment on commit e4db401

@vercel
Copy link

@vercel vercel bot commented on e4db401 May 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

unoverlays – ./

unoverlays-git-master-tuimao.vercel.app
unoverlays-tuimao.vercel.app
unoverlays.vercel.app

Please sign in to comment.