<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kole UI · 日期选择器 DatePicker（普通 H5）</title>
<link rel="stylesheet" href="../.design_library/kole-ui/colors_and_type.css"><link rel="stylesheet" href="DatePicker.css">
<style>.demo{padding:24px;background:var(--kole-color-page-bg);font-family:var(--kole-font-family)}.demo h1{margin:0 0 4px;font-size:20px;color:var(--kole-color-text-title)}.sub{margin:0 0 20px;color:var(--kole-color-text-secondary);font-size:12px}.demo-block{padding:16px;margin-bottom:16px;background:var(--kole-color-card-bg);border:1px solid var(--kole-color-border);border-radius:var(--kole-radius-large)}.demo-block h2{margin:0 0 12px;font-size:14px;color:var(--kole-color-text-title)}.row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.demo-note{margin:12px 0 0;color:var(--kole-color-text-secondary);font-size:12px}</style></head>
<body><div class="demo"><h1>日期选择器 DatePicker（纯 H5）</h1><p class="sub">选择单日或起止日期，适用于查询条件、有效期和排期设置。</p><div class="demo-block"><h2>默认与常用变体</h2><div class="row kole-datepicker"><label class="kole-datepicker-item">日期 <input class="kole-datepicker-control" type="date" value="2026-09-20" aria-label="日期"></label><button class="kole-datepicker-button kole-datepicker-secondary" type="button">本月</button></div></div><div class="demo-block"><h2>状态与使用场景</h2><div class="row kole-datepicker"><div class="kole-datepicker-surface" style="padding:12px">选择单日或起止日期，适用于查询条件、有效期和排期设置。</div><span class="kole-datepicker-desc">支持键盘焦点、状态反馈和令牌化样式。</span></div><p class="demo-note">零运行时依赖；数据请求、权限和国际化由宿主接入方决定。</p></div></div><script></script></body></html>