We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
不能对vue进行alias设置。
uniapp插件内部有对 vue 做alias设置,以便指向uniapp内部定制化的vue 库。
Originally posted by @bfc846958672 in #5169 (comment)
在vue项目中如果要实现组件的运行时编译,需要对 vue 做alias设置指定vue/dist/vue.esm-bundler.js 如果uni-app不支持这样设置,有其他解决方案么?
The text was updated successfully, but these errors were encountered:
uniapp 里的 uni 是定制的,不能修改,你具体需要做什么?
Sorry, something went wrong.
需求比较简单,可以支持运行时编译组件,下面是个简单的例子:
<template> <view> <my-widget></my-widget> </view> </template> <script setup> import { shallowRef } from 'vue' const MyWidget = shallowRef({ name: 'MyWidget', props: {}, template: `<button @click='onClick'>这是一个按钮</button>`, methods: { onClick() { alert('点击了按钮') }, }, }) </script> <style></style>
No branches or pull requests
uniapp插件内部有对 vue 做alias设置,以便指向uniapp内部定制化的vue 库。
Originally posted by @bfc846958672 in #5169 (comment)
在vue项目中如果要实现组件的运行时编译,需要对 vue 做alias设置指定vue/dist/vue.esm-bundler.js
如果uni-app不支持这样设置,有其他解决方案么?
The text was updated successfully, but these errors were encountered: