54 lines
2.9 KiB
HTML
54 lines
2.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN" data-end="vue3" data-slug="input">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>input · Vue 3 预渲染</title>
|
|
<link rel="stylesheet" href="../../.design_library/kole-ui/colors_and_type.css">
|
|
<link rel="stylesheet" href="../../frameworks/Input.css">
|
|
<style>
|
|
/* 演示页的 body 口径(见 frameworks/*.html 的 <style>):组件 CSS 不写 body 样式,
|
|
而 .btn 这类 inline-flex 元素的高度依赖行高与留白,缺了就会塌成 0 高。 */
|
|
body { margin: 0; padding: 24px; background: var(--kole-color-page-bg); color: var(--kole-color-text-body);
|
|
font-family: var(--kole-font-family); font-size: 14px; line-height: 22px; }
|
|
#kole-end-preview { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
|
|
html.kole-dark body { background: var(--kole-color-page-bg); color: var(--kole-color-text-body); }
|
|
</style>
|
|
<style>
|
|
|
|
.kole-field { display: inline-flex; flex-direction: column; gap: 4px; }
|
|
.kole-input {
|
|
display: inline-flex; align-items: center; gap: 8px; height: 32px;
|
|
padding: 0 12px; background: #fff; border: 1px solid #E8ECF1;
|
|
border-radius: 4px; transition: border-color .15s, box-shadow .15s; box-sizing: border-box;
|
|
}
|
|
.kole-input input {
|
|
border: none; outline: none; background: transparent; font-size: 14px;
|
|
color: #262626; min-width: 160px; flex: 1; font-family: "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
|
|
}
|
|
.kole-input input::placeholder { color: #767676; }
|
|
.kole-input:focus-within { border-color: #2F54EB; box-shadow: 0 0 0 2px rgba(47,84,235,0.2); }
|
|
.kole-input.is-error { border-color: #CF1322; }
|
|
.kole-input.is-error:focus-within { border-color: #CF1322; box-shadow: 0 0 0 2px rgba(47,84,235,0.2); }
|
|
.kole-input.is-disabled, .kole-input:disabled { background: #F5F5F5; border-color: transparent; }
|
|
.kole-input.is-disabled input, .kole-input:disabled input { color: #BFBFBF; cursor: not-allowed; }
|
|
.kole-input .affix { display: inline-flex; flex-shrink: 0; color: #6E6E6E; align-items: center; }
|
|
.kole-input .action {
|
|
display: inline-flex; flex-shrink: 0; padding: 0; border: none; background: none;
|
|
cursor: pointer; color: #6E6E6E; align-items: center;
|
|
}
|
|
.kole-input .action:hover { color: #2F54EB; }
|
|
.kole-input-lg { height: 40px; }
|
|
.kole-input-sm { height: 24px; }
|
|
.kole-input-sm input { font-size: 12px; min-width: 120px; }
|
|
.error-text { font-size: 12px; color: #CF1322; line-height: 20px; }
|
|
|
|
</style>
|
|
</head>
|
|
<body class="kole-end-preview-body">
|
|
<!-- 该端实现(frameworks/Input.vue3.vue)的离线预渲染产物。类名与该端源码一致(tools/build-end-preview.mjs 断言)。 -->
|
|
<div id="kole-end-preview" data-end="vue3" data-slug="input">
|
|
<div class="kole-field" data-v-input><div class="kole-input-md kole-input" data-v-input><!----><input type="text" value="" placeholder="请输入客户名称" data-v-input><!----><!----><!----></div><!----></div>
|
|
</div>
|
|
</body>
|
|
</html>
|