Skip to content

NightCatSama/vue-slider-component

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
October 9, 2020 18:33
lib
December 7, 2022 12:03
February 25, 2019 23:23
src
June 23, 2022 19:09
August 13, 2020 17:04
November 2, 2022 21:13
February 21, 2019 11:53
April 9, 2019 14:09
March 28, 2019 02:59
June 23, 2022 18:52
December 7, 2022 12:04
October 24, 2016 14:46
June 26, 2022 15:17
June 26, 2022 15:17
June 26, 2022 15:17
December 7, 2022 12:03
February 28, 2019 18:34
March 15, 2019 00:08
October 24, 2020 16:29

banner

downloads npm-version license

๐ŸŽš A highly customized slider component

English | ็ฎ€ไฝ“ไธญๆ–‡ | ะ ัƒััะบะธะน

๐Ÿ‰ Vue3.x

This is still in beta and may contain unexpected bugs, please use with caution.

install

$ yarn add vue-slider-component@next
# npm install vue-slider-component@next --save

Breaking Changes

โœจ Features

  • ๐Ÿ– More customizable
  • ๐Ÿ‘— Multiple style themes
  • ๐Ÿณ Support for more sliders
  • ๐Ÿ“Œ Add marks
  • ๐ŸŽ‰ Support SSR
  • ๐Ÿ’ Support Typescript

๐Ÿ“š Documentation

Document: https://nightcatsama.github.io/vue-slider-component

Live Demo: https://jsfiddle.net/NightCatSama/2xy72dod/10547/

๐ŸŽฏ install

$ yarn add vue-slider-component
# npm install vue-slider-component --save

๐Ÿš€ Usage

Vue 2
<template>
  <vue-slider v-model="value" />
</template>

<script>
import VueSlider from 'vue-slider-component'
import 'vue-slider-component/theme/antd.css'

export default {
  components: {
    VueSlider,
  },

  data() {
    return {
      value: 0,
    }
  },
}
</script>
Vue 3
<template>
  <vue-slider v-model="value" />
</template>

<script setup>
import { reactive, toRefs } from 'vue'
import VueSlider from 'vue-slider-component'
import 'vue-slider-component/theme/antd.css'

export default {
  setup() {
    const data = reactive({ value: 0 })
    return toRefs(data)
  },
}
</script>

Changelog

Detailed changes for each release are documented in the release notes.

Support

If my code has helped you, please consider buy me a coffee โ˜•.

License

MIT