All Projects → codekraft-studio → vue-justified-layout

codekraft-studio / vue-justified-layout

Licence: MIT license
A component to use Flickr justified layout with Vue.

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to vue-justified-layout

vue-drag-zone
Drag Zone component for @vuejs
Stars: ✭ 127 (+388.46%)
Mutual labels:  vue-component
vue-github-activity
A Vue based github feed activity component.
Stars: ✭ 28 (+7.69%)
Mutual labels:  vue-component
vue-g2
基于 Vue 和 AntV/G2 的可视化组件库 📈
Stars: ✭ 73 (+180.77%)
Mutual labels:  vue-component
vue-odometer
Vue.js(v2.x+) component wrap for Odometer.js
Stars: ✭ 63 (+142.31%)
Mutual labels:  vue-component
vue-telegram-login
Vue component for Telegram login
Stars: ✭ 73 (+180.77%)
Mutual labels:  vue-component
vue-dictaphone
🎙️ Vue.js dictaphone component to record audio from the user
Stars: ✭ 22 (-15.38%)
Mutual labels:  vue-component
vue-input-contenteditable
The same features you expect from `<input type="text">` but in a `contenteditable` Vue component
Stars: ✭ 19 (-26.92%)
Mutual labels:  vue-component
vue-digital-transform
A vue component for better digital transform animation
Stars: ✭ 52 (+100%)
Mutual labels:  vue-component
layui-vue
layui - vue(谐音:类 UI) 是 一 套 Vue 3.0 的 桌 面 端 组 件 库
Stars: ✭ 112 (+330.77%)
Mutual labels:  vue-component
vue-music
基于Laravel5.3+Vue2.0的网易云音乐的SPA应用
Stars: ✭ 85 (+226.92%)
Mutual labels:  vue-component
vue-loading
Loading bar for Vue.js apps using axios
Stars: ✭ 19 (-26.92%)
Mutual labels:  vue-component
vue-ele-import
超简单、好用的 element-ui Excel 导入组件
Stars: ✭ 50 (+92.31%)
Mutual labels:  vue-component
vue-github-buttons
GitHub buttons component for Vue.
Stars: ✭ 36 (+38.46%)
Mutual labels:  vue-component
vue-pattern-input
Use RegExp to limit input
Stars: ✭ 25 (-3.85%)
Mutual labels:  vue-component
vue-next-level-scroll
Bring your scroll game to the next level!
Stars: ✭ 49 (+88.46%)
Mutual labels:  vue-component
v-owl-carousel
🦉 VueJS wrapper for Owl Carousel
Stars: ✭ 46 (+76.92%)
Mutual labels:  vue-component
vue-tiny-pagination
A Vue component for create a tiny pagination with Flexbox
Stars: ✭ 20 (-23.08%)
Mutual labels:  vue-component
vue-form-container
👜 A Provider Component that encapsulate your forms and handle their states and validations.
Stars: ✭ 23 (-11.54%)
Mutual labels:  vue-component
vue-money-button
An unofficial Vue.js component for MoneyButton.
Stars: ✭ 22 (-15.38%)
Mutual labels:  vue-component
vue-magnify
vue-magnify / vue放大镜组件
Stars: ✭ 14 (-46.15%)
Mutual labels:  vue-component

banner

vue-justified-layout

Vue integration for Flickr's justified layout module

NPM version Build Status Dependency Status Coverage percentage

Chcek out the documentation for a complete reference and usage examples.

Getting started

It's pretty easy to setup, just download the component with your favorite package manager.

npm install vue-justified-layout

Register the component globally using the plugin installation function.

import Vue from 'vue'
import VueJustifiedLayout from 'vue-justified-layout'

Vue.use(VueJustifiedLayout)

Or import it into your scripts and register it as local component.

import VueJustifiedLayout from 'vue-justified-layout'

export default {
  name: 'app',
  components: {VueJustifiedLayout},
  data () {
    return {
      images: [{
        width: 250,
        height: 400,
        url: 'https://source.unsplash.com/featured/250x400?green,blue'
      }, {
        width: 300,
        height: 400,
        url: 'https://source.unsplash.com/featured/300x400?green,blue'
      }]
    }
  }
}

Optionally add some style for the images.

.justified-container {}
.justified-item {
  img {
    max-width: 100%;
  }
}

Then use it to display the array of images with a nice justified layout.

<VueJustifiedLayout :items="images" v-slot="{ item }">
  <img :src="item.url" />
</VueJustifiedLayout>

Or for vue < 2.6.0 versions using the old synthax.

<VueJustifiedLayout :items="images">
  <template slot-scope="{ item }">
    <img :src="item.url" />
  </template>
</VueJustifiedLayout>

Contributing

  1. Create an issue reporting a bug or a feature
  2. Fork the project (https://github.com/codekraft-studio/vue-justified-layout/fork)
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Publish the branch (git push origin my-new-feature)
  6. Create a new Pull Request

License

This project is released under the MIT License by codekraft-studio.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].