我有一个vue3+vite包,我想将它发布到npm,但是当我将它导入到一个测试项目时,我必须分别从dist文件夹导入样式,但是我希望将我的样式作为我的包寄存器导入,如下所示
我现在是如何进口的:
import myComp from 'foo'
app.use(myComp)
import 'foo/dist/style.css'
我想要的:
import myComp from 'foo'
app.use(myComp)
// and styles work out of the box
Install.ts(条目):
// @ts-ignor
我正在使用包在laravel应用程序上设置CSP头。但无法应用inline style,并在出现以下错误时拒绝。
Refused to apply inline style because it violates the following Content Security Policy
directive: "style-src 'self' 'nonce-TjpZGox5zGathTvJDeVMfxzHaOtWMc7v' 'unsafe-inline'".
进一步的细节。
我用的是拉里7号。
/spatie/larav
我想做以下几件事:
<img v-bind:style="{ transform: translate3d(50 + 'px', 50 + 'px', 50 + 'px') }" src="#">
但是我得到了错误Property or method "translate3d" is not defined on the instance but referenced during render.
我理解为什么我会收到这个错误,因为Vue.js假定translate3d是一个JavaSc