vue buefy简单的按钮示例代码
代码语言:html
所属分类:布局界面
代码描述:vue buefy简单的按钮示例代码,展现简单的下拉菜单和loading加载。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/materialdesignicons.5.8.55.css">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/buefy.0.9.10.css">
</head>
<body>
<div id="app">
<section>
<b-field>
<b-button label="Launch loading" type="is-primary" size="ismedium" @click="openLoading" />
</b-field>
<b-field>
<b-switch v-model="isFullPage">Display loader over full page</b-switch>
</b-field>
<b-notification :closable="false">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien laoreet elit
<b-loading :is-full-page="isFullPage" v-model="isLoading" :can-cancel="true"></b-loading>
</b-notification>
</section>
<section>
<b-dropdown aria-role="list">
<template #trigger="{ active }">
<b-button
label="Click me!"
type="is-primary"
:icon-right="active ? 'menu-up' : 'menu-down'" />
</template>
<b-dropdown-item aria-role="listitem">Action</b-dropdown-item>
<b-dropdown-item aria-role="listitem">Another action</b-dropdown-item>
<b-dropdown-item aria-role="listitem">Something else</b-dropdown-item>
</b-dropdown>
<b-dropdown :triggers="['hover']" aria-role="list">
<template #trigger>
<b-button
label="Hover me!"
type="is-info"
icon-right="menu-down" />
</template>
<b-dropdown-item aria-role="listitem">Action</b-dropdown-item>
<b-dropdown-item.........完整代码请登录后点击上方下载按钮下载查看
网友评论0