0.0.6 • Published 3 years ago

va-ui-elementui v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

VaUiElementui

components

Layout Component Usage

const BasicLayout = {
    template: `
      <layout
        :menus="menus"
        :show-settings="true"
        :need-tags-view="false"
        :fixed-header="true"
        :sidebar="sidebar"
        device="desktop"
        :handleCollapse="handleCollapse"
        :toggleSideBar="toggleSideBar"
        mode="mixLayout"
      >
        <template slot="rightMenuRender">
            <div style="display: flex;align-items: center;height: 100%;">
                <a href="https://github.com/eeezgame" target="_blank" rel="noopener noreferrer" style="height:40px;">
                    <img src="https://octodex.github.com/images/pusheencat.png" width="40" height="40"></img>   
                </a>
            </div>
        </template>
        <app-main>
            <router-view></router-view>
        </app-main>
      </layout>
    `,
    data(){
      return {
        menus,
        sidebar:{
            opened:true,
            withoutAnimation: false
        }
      }
    },
    methods:{
        handleCollapse(){
            this.sidebar.opened = false
        },
        toggleSideBar(){
            this.sidebar.opened = !this.sidebar.opened
        }
    }
}

API

PropertyDescriptionTypeDefault Value
menusArray[]
sidebarObject{ opened: true, withoutAnimation: false, };
device'desktop'|'mobile''desktop'
mode'sideMenuLayout' |'topMenu '|'mixLayout'| 'leftLayout'''sideMenuLayout'
logoString"https://avatars.githubusercontent.com/u/63237008?v=4"
titleString"Layout"
showSettingsBooleanfalse
needTagsViewBooleanfalse
fixedHeaderBooleanfalse
handleCollapseFunction()=>{}
toggleSideBarFunction()=>{}
dashboardPathString''/dashboard'

Build project

npm run build:pro # Build library
or
yarn build:pro 
0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago