quasar+vue实现下拉刷新效果代码
代码语言:html
所属分类:拖放
代码描述: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/pull-to-refresh#example--basic --> <div id="q-app" style="min-height: 100vh;"> <div class="q-pa-md scroll" style="height: 300px"> <q-pull-to-refresh @refresh="refresh"> <div v-for="(item, index) in items" :key="index" class="q-mb-sm"> <q-badge color="secondary"> {{ items.length - index }} </q-badge> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.........完整代码请登录后点击上方下载按钮下载查看
网友评论0