quasar+vue自定义滚动条样式效果代码

代码语言:html

所属分类:其他

代码描述:quasar+vue自定义滚动条样式效果代码

代码标签: quasar vue 自定义 滚动条 样式

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  
  
  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons'>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/quasar.prod.css">
  

</head>

<body>
<!--
  Forked from:
  http://www.quasarchs.com/vue-components/scroll-area#example--styled-thumb-and-bar
-->
<div id="q-app" style="min-height: 100vh;">
  <div class="q-ma-md">
    <q-scroll-area
      :thumb-style="thumbStyle"
      :bar-style="barStyle"
      style="height: 200px; max-width: 300px;"
    >
      <div v-for="n in 100" :key="n" class="q-pa-xs">
        Lorem ipsum dolor sit amet, consectetur adipisicing
        elit, sed do eiusmod tempor incididunt ut labore et
        dolore magna aliqua.
      </div>
    </q-scroll-area>
  </div>
  
    <div class="q-pa-md">
    <q-scroll-area style="height: 230px; max-width: 300px;">
      <div class="row no-wrap" v-for="r in 4" :key="'r.........完整代码请登录后点击上方下载按钮下载查看

网友评论0