quasar+vue实现tree树状多级目录勾选效果代码
代码语言:html
所属分类:其他
代码描述:quasar+vue实现tree树状多级目录勾选效果代码
代码标签: quasar vue tree 树状 多级 目录 勾选
下面为部分代码预览,完整代码请点击下载或在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/tree#example--tick-strategy --> <div id="q-app" style="min-height: 100vh;"> <div class="q-pa-md row q-col-gutter-sm"> <q-tree class="col-12 col-sm-6" :nodes="simple" v-model:ticked="ticked" v-model:expanded="expanded" node-key="label" :tick-strategy="tickStrategy" default-expand-all ></q-tree> <div class="col-12 col-sm-6"> <q-option-group v-model="tickStrategy" :options="tickStrategies" ></q-option-group> <div class="text-h6 q-mt-md">Ticked</div> <div> <div v-for="tick in ticked" :key="`ticked-${tick}`"> {{ tick }} </div> </div> </div> </div> </div> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue3.0.5.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/quasar.umd.prod.js"></script> <script > const .........完整代码请登录后点击上方下载按钮下载查看
网友评论0