intend
vue_error_Runtime directive used on component with non-element root node. The directives will not function as intended
翻译: '运行时指令,用于非元素根节点的组件。这些指令将无法发挥预期的作用'; 这个错误发生在我将v-show放在自定义组件上时, 我想是因为自定义组件在渲染时会被自定义组件的内部元素替换, 因此设置是无效的 解决: 在自定义组件外加一个div, 把v-show写在div上 ......
[Vue warn]: Runtime directive used on component with non-element root node. The directives will not function as intended.
![](https://img2023.cnblogs.com/blog/1987782/202308/1987782-20230815231125882-1972945533.png) ### 原因 意思是自定义指令不能放到组件上,而是要放到自有的元素上,也就是这里用到的`v-dialogDrag ......
动态路由 出现 for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to suppress this warning.
for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to sup ......
对于intend to do 和intend doing两种用法的解释
![[Pasted image 20230409205800.png]] ![[Pasted image 20230409205816.png]] intend to do “Intend to do” 意为“打算做某事”。通常,该短语的结构为 “intend to” + 动词原形。例如: I in ......