84 lines
1.5 KiB
HTML
84 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>KvMessage Demo</title>
|
|
<script type="module" src="./src/main.ts"></script>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 20px;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
}
|
|
|
|
.demo-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 20px;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.button-group {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
.demo-button {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.demo-button.success {
|
|
background: #52c41a;
|
|
color: white;
|
|
}
|
|
|
|
.demo-button.success:hover {
|
|
background: #389e0d;
|
|
}
|
|
|
|
.demo-button.error {
|
|
background: #ff4d4f;
|
|
color: white;
|
|
}
|
|
|
|
.demo-button.error:hover {
|
|
background: #cf1322;
|
|
}
|
|
|
|
.demo-button.loading {
|
|
background: #1890ff;
|
|
color: white;
|
|
}
|
|
|
|
.demo-button.loading:hover {
|
|
background: #096dd9;
|
|
}
|
|
|
|
.login-section {
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="demo-container">
|
|
<div class="login-section">
|
|
<h2>登录组件</h2>
|
|
<kv-login>
|
|
<div id="weixinLogin"></div>
|
|
</kv-login>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |