vuesax实现avatar及button点击切换状态变色效果代码

代码语言:html

所属分类:其他

代码描述:vuesax实现avatar及button点击切换状态变色效果代码

代码标签: vuesax avatar button 点击 切换 状态 变色

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

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

<head>
  <meta charset="UTF-8">  <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue@2.6.1-dev.js"></script>
  <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/vuesax.4.0.1.css">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vuesax.4.0.1.js"></script>
  <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/boxicons.2.1.4.js"></script>

<style>
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,300&display=swap');

body {
	padding: 50px;
	font-family: 'Open Sans', Helvetica;
}

.margin {
	margin-top: 1rem;
}

.margin-x {
	margin-left: 1rem;
	margin-right: 1rem;
}
</style>



  
  
</head>

<body>
  <div id="app">
	<main>
		<vs-row>
			<vs-button @click="color = 'primary'" :active="color == 'primary'" primary flat>Primary</vs-button>
			<vs-button @click="color = 'success'" :active="color == 'success'" success flat>Success</vs-button>
			<vs-button @click="color = 'danger'" :active="color == 'danger'" danger flat>Danger</vs-button>
			<vs-button @click="color = 'warn&.........完整代码请登录后点击上方下载按钮下载查看

网友评论0