-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
vue-macros/vue-macros
#126Labels
Description
update:
please see:
#7394
Version
3.2.1
Reproduction link
Steps to reproduce
clone: git clone
start: yarn && yarn dev
open: master/src/components/HelloWorld.vue
modify: import interface from './types'
What is expected?
no error
What is actually happening?
[@vue/compiler-sfc] type argument passed to defineProps() must be a literal type, or a reference to an interface or literal type.
in chinese:
我想把 props的interface抽出去,但是会报错,如果interface组件里定义的就正常渲染
in english:
I want to extract the interface of props, but an error will be reported. If the interface component is defined, it will render normally
chrisxvin, YunYouJun, RobWalker, modularcoder, MatthewTt and 151 morebeetaa, sxzz, sadeghbarati, Mini-ghost, brolnickij and 24 morepredragnikolic, beetaa, husayt, sxzz, pmzi and 51 more
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done