文檔:https://vue-styleguidist.github.io/
1、使用腳手架cli 3
2、項目中執行腳本
vue add styleguidist
注意:可能出現
error eslint@6.8.0: The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "10.8.0"
這樣版本不兼容的問題
解決問題:
yarn config set ignore-engines true
執行之后成功下載;
3、 執行腳本 :yarn styleguide 查看頁面