1
我想使用gulp和browserify編譯vue組件。我使用vueify來滿足我的需求。Gulp Vue JS沒有編譯樣式標籤上的衝突
這是我的代碼看起來像。
Vue.config.delimiters = ['${', '}'];
<style>
.layout-wrapper { width: ${ canvas.test }; }
</style>
module.exports = {
props: ['theme_id'],
data: function() {
return {
canvas: {
test: '12345px',
content: {},
問題是,它不是編譯。但是當我試過
.layout-wrapper { width: ${ '12345px' }; }
它確實有效。調用數據對象有問題嗎?
我不認爲你可以把樣式標籤放在範圍之下 – gurghet