百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
V

vue-slider-component

> 前端框架
开源

一个高度定制的滑块组件

2.4K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个高度定制的滑块组件

A highly customized slider component

English | 简体中文 | Русский

Vue3.x

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

install

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

Breaking Changes

  • value -> modelValue. (Official API 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

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

Usage

Vue 2
xml
<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
xml
<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

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptrange-slidersliderslidersvue

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架