Closed scil closed 2 years ago
I do not want to reg component globally. I only want both locally, but failed, because SmartWidget and SmartWidgeGrid are null.
Maybe you con include src in npm package
src
import Vue from 'vue' // import VueSmartWidget from 'vue-smart-widget' import {SmartWidget, SmartWidgetGrid} from 'vue-smart-widget' export default { name: "dashboard", components: { 'smart-widget':SmartWidget, 'smart-widget-grid':SmartWidgetGrid, }, data () { return { layout: [ { x: 0, y: 0, w: 4, h: 4, i: '0' }, { x: 4, y: 0, w: 4, h: 4, i: '1' }, { x: 8, y: 0, w: 4, h: 4, i: '2' } ] } } }
Do you use last version of vue? Could you also provide mistake from the console of browser
I used vue2.
I do not want to reg component globally. I only want both locally, but failed, because SmartWidget and SmartWidgeGrid are null.
Maybe you con include
src
in npm package