在vue中引入easyui的方法:1.新建vue.js項目;2.使用npm導入easyui依賴包;3.使用import方法引入easyui;
具體步驟如下:
1.首先,在vue-cli中創建一個vue.js項目;
vue create project-name
2.vue.js項目創建好后,在項目中使用npm命令導入easyui依賴包;
npm install vx-easyui --save
3.最后,easyui依賴包導入好后,在項目中使用import方法即可引入easyui;
import 'vx-easyui/dist/themes/default/easyui.css'
import 'vx-easyui/dist/themes/icon.css'
import 'vx-easyui/dist/themes/vue.css'
import EasyUI from 'vx-easyui'
import locale from 'vx-easyui/dist/locale/easyui-lang-en'