0.1.60 • Published 1 year ago

rose-layout v0.1.60

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

VUE3 版本的 Layout 布局 RoseLayout

开箱即用的 layout 布局,分 bg,header,left,content,right,contentTop,contentBox,contentBottom 部分。 headerCard,leftCard,rightCard,footerCard.拖拽卡片容器

安装使用

npm install rose-layout

在 main.ts 中使用 import RoseLayout,{ useConfigMenu } from 'rose-layout' import 'rose-layout/style.css'

每一部分都使用具名插槽定义,其他使用结构

<RoseLayout>
  <template #bg>
    <div class="w-full h-full">bg</div>
  </template>

  <template #header>
    <div class="w-full h-full">header</div>
  </template>
  <template #headerCard>
    <div class="w-full h-full">headerCard</div>
  </template>

  <template #left>
    <div class="w-full h-full">left</div>
  </template>
  <template #leftCard>
    <div class="w-full h-full">leftCard</div>
  </template>

  <template #contentTop>
    <div class="w-full h-full">contentTop</div>
  </template>

  <template #contentBox>
    <div class="w-full h-full">contentBox</div>
  </template>

  <template #contentBottom>
    <div class="w-full h-full">contentBottom</div>
  </template>

  <template #right>
    <div class="w-full h-full">right</div>
  </template>
  <template #rightCard>
    <div class="w-full h-full">rightCard</div>
  </template>

  <template #footer>
    <div class="w-full h-full">footer</div>
  </template>
  <template #footerCard>
    <div class="w-full h-full">footerCard</div>
  </template>
</RoseLayout>

animate 可以自定动画,使用 animate 的动画库,后手写 vue 的 transition 的动画

<RoseLayoutPage
  v-model:show="isShowPage"
  v-model:fullscreen="isFullscreen"
  :animate="2"
  :time="0.3"
  transition="0.3s cubic-bezier(0, 0, 0.2, 1)"
  class=" bg-white"
>
  插槽内容,animate可以自定动画,使用animate的动画库,后手写vue的transition的动画
</RoseLayoutPage>

快捷键,相应的快捷显示隐藏

shortcutsKey: 'ControlLeft+AltLeft+Backspace' // bg (背景)
shortcutsKey: 'ControlLeft+AltLeft+ArrowUp' // header (头部)
shortcutsKey: 'ControlLeft+AltLeft+ArrowDown' // footer (底部)
shortcutsKey: 'ControlLeft+AltLeft+ArrowLeft' // left (左)
shortcutsKey: 'ControlLeft+AltLeft+ArrowRight' // right (右)
shortcutsKey: 'ControlLeft+AltLeft+ControlRight' // content (中间)
shortcutsKey: 'ShiftLeft+ArrowUp' // contentTop (中间上)
shortcutsKey: 'ShiftLeft+ArrowRight' // contentBox (中间中)
shortcutsKey: 'ShiftLeft+ArrowDown' // contentBottom (中间下)
shortcutsKey: 'ControlLeft+AltLeft+Enter' // setting (设置)*
0.1.58

2 years ago

0.1.59

2 years ago

0.1.60

1 year ago

0.1.56

2 years ago

0.1.57

2 years ago

0.1.52

2 years ago

0.1.53

2 years ago

0.1.54

2 years ago

0.1.55

2 years ago

0.1.50

2 years ago

0.1.51

2 years ago

0.1.41

2 years ago

0.1.42

2 years ago

0.1.43

2 years ago

0.1.44

2 years ago

0.1.45

2 years ago

0.1.46

2 years ago

0.1.47

2 years ago

0.1.48

2 years ago

0.1.40

2 years ago

0.1.38

2 years ago

0.1.39

2 years ago

0.1.30

2 years ago

0.1.31

2 years ago

0.1.32

2 years ago

0.1.33

2 years ago

0.1.34

2 years ago

0.1.35

2 years ago

0.1.36

2 years ago

0.1.37

2 years ago

0.1.27

2 years ago

0.1.28

2 years ago

0.1.29

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.16

2 years ago

0.1.17

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago