1.1.6 • Published 2 years ago

xaf-bottom-sheet v1.1.6

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

Bottom Sheet

Модальное окно, подобное react-native:

Installation / Установка

  • yarn add xaf-bottom-sheet
import { createApp } from 'vue'
import App from './App.vue'
import 'xaf-bottom-sheet/css'

const app = createApp(App)
app.mount('#app')

Demo (Breakponts: 35%, 50%, 85%)

Demo

Illustration: https://www.inprnt.com/gallery/mcrockefeller/song-of-storms/

How to use? / Как использовать?

// Setup Script
const bottomIndex = ref(0)
return {
  bottomIndex,
}
<bottom-sheet
  :breakpoints="['0%', '30%', '85%']"
  :bounding="[0, '85%']"
  @update:index="(i) => (bottomIndex = i)"
  :index="bottomIndex"
  :layerIndex="9999">
  <!-- Content -->
</bottom-sheet>

Support

Boosty

Todo

  • Абсолютная поддержка стилизации
  • Scrollable View
  • Perf: скрывать bottom-sheet когда его не видно ( если breakpoint index 0 - 0% )
  • Refactor: code split
  • События закрытия/открытия помимо события изменения индекса
  • Xaf-utils
1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago

1.0.1

2 years ago