Files
vue-formkit-example/index.html
严浩 a6ccc16adb
All checks were successful
/ test (push) Successful in 21s
/ surge (push) Successful in 57s
feat: 更新 PSelect 组件,支持异步选项加载并优化配置,调整样式以改善用户体验
2024-12-06 15:05:16 +08:00

70 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
type="image/svg+xml"
href="/vite.svg"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>Vue FormKit Example</title>
<link
rel="stylesheet"
href="/src/assets/tailwind.css"
/>
<link
rel="stylesheet"
href="/src/assets/main.css"
/>
<script>
function setAppHeight() {
const app = document.getElementById('app');
app.style.minHeight = `${window.innerHeight}px`;
}
window.addEventListener('resize', setAppHeight);
window.addEventListener('load', setAppHeight);
</script>
<style>
#app {
min-height: 100vh;
max-width: 100vw;
overflow-x: hidden;
display: flex;
flex-direction: column;
}
@supports (min-height: 100dvh) {
#app {
min-height: 100dvh;
max-width: 100dvw;
}
}
.page-wrapper {
flex-grow: 1;
}
</style>
</head>
<body>
<div id="app">
<div
class="page-wrapper"
style="display: flex; justify-content: center; align-items: center"
>
Loading...
</div>
</div>
<script
type="module"
src="/src/main.ts"
></script>
</body>
</html>