StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/vue-slider-component/src/pages/zh-CN/Style.md

2.1 KiB

样式主题

内置主题

组件自带三种主题。

  • default
  • antd
  • material

如果你有更好的想法,欢迎提交 pull request 提供新的主题。

使用 import 导入样式

import VueSlider from 'vue-slider-component'
import 'vue-slider-component/theme/default.css'

使用 require 导入样式

const VueSlider = require('vue-slider-component')
require('vue-slider-component/theme/default.css')

使用 cdn 导入样式

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vue-slider-component@latest/theme/default.css">

使用 @import 导入 scss 文件

通过使用 scss 变量轻松实现自定义样式,更多可用变量可以参考主题文件.

/* 设置组件的主题颜色 */
$themeColor: #3498db;

/* 导入主题样式 */
@import '~vue-slider-component/lib/theme/default.scss';

自建主题

你可以新建一个样式文件,或者从 github 上下载内置主题再自己修改。

通过自建主题你可以很轻松的实现你想要的样式。

通过参数设置

  • dotStyle 设置滑块样式,更多样式可通过 dotOptions 设置

  • railStyle 轨道样式

  • processStyle 进度条样式,多段区分设置可通过 process 设置,详情看 API 文档

  • tooltipStyle 工具提示样式,更多样式可通过 dotOptions 设置

  • stepStyle 步长样式,区分控制可通过 Marks 设置

  • stepActiveStyle 步长激活状态下的样式,区分控制可通过 Marks 设置

  • labelStyle 标签样式,区分控制可通过 Marks 设置

  • labelActiveStyle 标签激活状态下的样式,区分控制可通过 Marks 设置

::: tip 如果样式改动很大,最好的方法还是自建一个主题。 :::

通过插槽设置

通过插槽可以更加个性化的渲染组件,可以加入其它元素(例如图片)。

详情可以参考 Slots