0.0.19 • Published 1 year ago

ofs-hor-layout v0.0.19

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

description

ofs-hor-layout is a layout with a horizontal alignment。

installing

$ npm install ofs-hor-layout

import in main.ts

// main.ts

import { createApp } from 'vue'
import App from './App.vue'
import OfsHorLayout from 'ofs-hor-layout'
import 'ofs-hor-layout/lib/style.css'

const app = createApp(App)
app.use(ElementPlus)
    .use(OfsHorLayout)
    .mount('#app')

using in page

<ofs-hor-layout
  :side-width="220"
  :side-collapse-width="64"
  :header-height="50"
  :tags-view-height="20"
  @collapse="collapse"
  @layout-changed="changed"
>
  <template #logo> RK </template>
  <template #menu> aside </template>
  <template #header> header </template>
  <template #tags> tags view </template>
  <template #main> main </template>
</ofs-hor-layout>
import OfsHorLayout from 'ofs-hor-layout'

const collapse = (val: boolean) => {
  console.log(val)
}

const changed = (val: OfsWindowSize) => {
  console.log(val)
}
0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago