3shape-global-nav 中文文档教程
3shape-global-nav
How to use
安装包
npm i 3shape-global-nav @webcomponents/webcomponentsjs
添加 polyfill 导入
import '@webcomponents/webcomponentsjs/webcomponents-bundle.js';
// or dynamical
import '@webcomponents/webcomponentsjs/webcomponents-loader.js';
添加组件导入
import '3shape-global-nav';
使用 tag
<g-navigation
env="{env}"
username="{userName}"
token="{token}"
logouturl="{logoutUrl}"
></g-navigation>
Props
Prop | Type | Default | Description |
---|---|---|---|
{env} | String | null | current environment. available options: 'test', 'staging', 'production' |
{userName} | String | null | shows user name in account menu |
{token} | String | null | the same as {userName}. component decodes token for you and gets userName from it. if you specify {userName} - {token} will not work |
{logoutUrl} | String | null | link to logout page |
How to develop
npm i
npm run watch
npm run serve
访问 http://localhost:8000
3shape-global-nav
How to use
Install packages
npm i 3shape-global-nav @webcomponents/webcomponentsjs
Add polyfill import
import '@webcomponents/webcomponentsjs/webcomponents-bundle.js';
// or dynamical
import '@webcomponents/webcomponentsjs/webcomponents-loader.js';
Add component import
import '3shape-global-nav';
Use tag
<g-navigation
env="{env}"
username="{userName}"
token="{token}"
logouturl="{logoutUrl}"
></g-navigation>
Props
Prop | Type | Default | Description |
---|---|---|---|
{env} | String | null | current environment. available options: 'test', 'staging', 'production' |
{userName} | String | null | shows user name in account menu |
{token} | String | null | the same as {userName}. component decodes token for you and gets userName from it. if you specify {userName} - {token} will not work |
{logoutUrl} | String | null | link to logout page |
How to develop
npm i
npm run watch
npm run serve
Go to http://localhost:8000
更多
你可能也喜欢
- @0biwankenobi/vuepress-plugin-redirect 中文文档教程
- @1ncounter/demo2 中文文档教程
- @1productaweek/react-virtualized-grid 中文文档教程
- @2s/typed 中文文档教程
- @3rdvision/epir-papyrus-api 中文文档教程
- @3rdvision/yonius 中文文档教程
- @99thoughts/ui-components 中文文档教程
- @abetomo/spreadsearch 中文文档教程
- @abtasty/search-and-replace 中文文档教程
- @accounts/mongo-sessions 中文文档教程