Scroll inside the bordered area.
Scroll inside the bordered area.
Scroll inside the bordered area.
Scroll inside the bordered area.
Scroll inside the bordered area.
Fixed: {{ fixed }}
``` ### Disabled, CSS mode and manual update Example source: src/affix/__demos__/controls.vue ```vuePosition updates: {{ updates }}
选择一个对比维度;其他配置和内容保持一致。输入类示例共享同一个值,便于比较外观。Compare one dimension while keeping the other settings and content identical. Input specimens share the same value.
{{ demoCompareAxis }}={{ sample }}
切换链接后立即停用或卸载;激活后再次点击,检查旧滚动不会恢复。change 通知:{{ changes }}
当前值:{{ value || '-' }}
``` ### Interaction state comparison Toggle disabled, read-only and error states, then interact with the same instance. Recovery controls remain outside the target; error appearance alone does not validate data.选择一个对比维度;其他配置和内容保持一致。输入类示例共享同一个值,便于比较外观。Compare one dimension while keeping the other settings and content identical. Input specimens share the same value.
{{ demoCompareAxis }}={{ sample }}
展开条件不负责过滤;即使允许展开,没有匹配候选也不显示菜单。
使用方向键浏览建议,Enter 选择,Escape 关闭。
``` ## Async data and configuration ### Remote #### Configuration reference for this comparison | Configuration | Purpose | Related examples | | --------------- | ------------------------------------------------------------------------ | --------------------------- | | `options` | Suggestions, including groups; unique values become strings on selection | Remote, Passthrough Options | | `filter-option` | Filter by label; false for remote filtering | Remote | | `placeholder` | Placeholder or floating hint text | Remote | | `disabled` | Disabled; inherited when unset, explicit false overrides | Passthrough Options | | `should-open` | Opening policy; does not filter candidates | Passthrough Options | | `trigger-props` | Trigger configuration; cannot override owned opening and disabled state | Passthrough Options | Example source: src/auto-complete/__demos__/remote.vue ```vue顶层 disabled:{{ disabled }};聚焦输入框查看向上展开的候选。
在面板内滚动,超过 120px 时显示按钮。
A · 滚动内容 {{ row }}
在面板内滚动,超过 120px 时显示按钮。
A · 滚动内容 {{ row }}
在面板内滚动,超过 120px 时显示按钮。
A · 滚动内容 {{ row }}
B · 滚动内容 {{ row }}
在面板内滚动,超过 120px 时显示按钮。 {{ '点击次数:' }}{{ clicks }}
A · 滚动内容 {{ row }}
Start an animation, switch or deactivate before completion. Old work must not resume.
选择一个对比维度;其他配置和内容保持一致。输入类示例共享同一个值,便于比较外观。Compare one dimension while keeping the other settings and content identical. Input specimens share the same value.
{{ demoCompareAxis }}={{ sample }}
Blocked clicks: {{ clicks }}
``` ### Colors, ripple and elevation Example source: src/button/__demos__/custom-color.vue ```vueInput
Button
Select
Date
Time
InputNumber
AutoComplete
Cascader
DateRange
TimeRange
Input · clearable
Button · reference
Select · clearable
Cascader · clearable
Select · multiple / nowrap
Cascader · multiple / nowrap
Select · long values / nowrap
Cascader · long values / nowrap
Submissions: {{ submissions }}; {{ event }}
``` ## Loading and action feedback ### Loading layouts and animations #### Configuration reference for this comparison | Configuration | Purpose | Related examples | | --- | --- | --- | | `loading` | Loading; blocks activation and navigation | Loading layouts and animations, Loading Appearance | | `loading-size` | Indicator size; xs/sm/md/lg/xl map to 12/14/16/18/20px; numbers are px; follows button size when omitted; not used in line mode | Loading layouts and animations, Loading Appearance | | `loading-type` | Spinner animation; same as Loading.type; not used in line mode | Loading layouts and animations | | `loading-mode` | Inline, covering, or bottom progress line; line only uses loading-color | Loading layouts and animations | | `loading-color` | Loading indicator color | Loading Appearance | | `ripple` | Click ripple | Feedback | Example source: src/button/__demos__/loading.vue ```vueline 使用底部进度线,loading-type 和 loading-size 不适用;可通过 loading-color 调整颜色。
click 支持 async 回调;业务通过 loading 展示等待,在 finally 中恢复。Async click handlers own their loading state.
{{ message }}
当前选择:{{ format(value) }}
``` ## Views and date presentation ### Modes #### Configuration reference for this comparison | Configuration | Purpose | Related examples | | --- | --- | --- | | `mode` | Mode | Modes | | `modes` | Displayed mode | Modes | | `day-start-of-week` | First day of the week | Week Options | | `is-week` | Whether to show week numbers | Week Options | - `mode`: Mode - `modes`: Displayed mode Example source: src/calendar/__demos__/modes.vue ```vue选择一个对比维度;其他配置和内容保持一致。输入类示例共享同一个值,便于比较外观。Compare one dimension while keeping the other settings and content identical. Input specimens share the same value.
{{ demoCompareAxis }}={{ sample }}
Replaces the title and subtitle region.
Custom description
Default contentExpanded project details.
Toggle floating rapidly, suspend during500ms ripple wait or layout settlement, then activate. Old tasks must not reset a newer phase. Underlying doubleRaf frames are not physically canceled.
Current: {{ current }} · Changes: {{ changes }}






Slide: {{ current }}
{{ preset.label }}



当前页:{{ current + 1 }};切换次数:{{ changes }}
Current: {{ current }} · Proposal: {{ proposal }}
Drag the background; inputs retain normal editing. / 拖动背景切换,输入框保留原生编辑。
Current: {{ current }} · Changes: {{ changes }}
Current / 当前: {{ current }}; changes / 通知: {{ moves }}. Suspend during autoplay or loop settlement, then activate. Old work must not replay.
当前值:{{ value ?? '未选择' }}
选择一个对比维度;其他配置和内容保持一致。输入类示例共享同一个值,便于比较外观。Compare one dimension while keeping the other settings and content identical. Input specimens share the same value.
{{ demoCompareAxis }}={{ sample }}
Input
Button
Select
Date
Time
InputNumber
AutoComplete
Cascader
DateRange
TimeRange
Input · clearable
Button · reference
Select · clearable
Cascader · clearable
Select · multiple / nowrap
Cascader · multiple / nowrap
Select · long values / nowrap
Cascader · long values / nowrap
保留原有路径标签匹配。启用区分大小写后,输入 fruit 不匹配 Fruit。
顶层 open:{{ open }};嵌套配置:向上展开并调整偏移。
Disable editing to copy existing text. In icon mode, editing does not open the panel.
已提交路径:{{ value }}。标签与 ID 分离,异步加载后自动回显。
非受控:default-value 只用于初始值
受控:父级接受更新 {{ accepted }}
父级拒绝更新:仅记录提议 {{ proposed }}
布尔模型始终返回布尔值;数组模型用 value 标识选项。 当前值:{{ value }}
数组模型:{{ selected }}
只读允许聚焦,禁用不允许操作;Enter/空格只影响当前控件。
字段映射与标签插槽;只读可聚焦,禁用不可操作。
当前值:{{ JSON.stringify(value) }}
标签也支持渲染函数;不传 options 时使用默认插槽,传入 [] 时保持空组。
最多选择 4 项(包含未加载的 remote)。全选/反选保留只读和未加载的已选值。
当前值:{{ JSON.stringify(value) }}
方法返回值:{{ JSON.stringify(proposal) }}
按 Tab 聚焦,按空格或 Enter 切换。禁用项跳过,只读项可聚焦。
最多选择两项:{{ choices.join(', ') }}
业务值独立于当前选项,加载或移除选项不会清空已选值:{{ value }}
{{ loading ? "加载中,可在完成前移除选项以取消本次加载。" : "加载完成后保留当前选值和键盘焦点。" }}
用户变更次数:{{ changeCount }}
Applied: {{ applied }} · Ignored: {{ ignored }} · Pending: {{ waiting.length }}
xs → sm (576px) → md (768px). Hidden columns return at larger breakpoints.
当前尺寸:{{ large ? 'lg' : 'sm' }}
两个实例独立管理周起始日。可切换顶部语言,模型不随展示语言改变。
月份名称模型(稳定英文协议):{{ monthModel }}
``` ### Responsive Panels - `show-time`: Whether to increase time selection - `shortcuts`: Quick selection of preset time range - `shortcuts-position`: The position of the preset range on the panel, which is placed at the bottom by default, and the side is generally used for scenes with a large number of preset times Example source: src/date/picker/__demos__/responsive-panels.vue ```vue{{ selected }}
{{ selectedRange }}
今日高亮和选择当前是两个独立功能。
确认后选中:{{ selected }}
先选较晚日期,再选较早日期,对比起止时间。
确认后范围:{{ range }}
选择值:{{ selected }};视口:{{ viewport }}
范围快捷项走同一套确认与校验。
仅允许选择 2025 年 2 月;移除限制不会改变已有选中值。
字段:管理输入与浮层;面板参数放在 date-picker-props。
纯面板:直接嵌入页面,不使用 open / popup-container。
已提交:{{ panelValue }}
选择一个对比维度;其他配置和内容保持一致。输入类示例共享同一个值,便于比较外观。Compare one dimension while keeping the other settings and content identical. Input specimens share the same value.
{{ demoCompareAxis }}={{ sample }}
{{ JSON.stringify(range) ?? 'undefined' }}
``` ### Boundaries Example source: src/date-range/__demos__/boundaries.vue ```vue仅可选九月,结束日期不能是周日。请选齐两个端点;确认提交,Escape 取消草稿。
String: {{ JSON.stringify(date) }}
Month string: {{ JSON.stringify(month) }}
Month/day array: {{ JSON.stringify(range) }}
输入 DD/MM/YYYY,Enter 或失焦提交;非法日期和范围外输入恢复模型显示。
模型:{{ value }}
仅面板选择:{{ panelOnly }}
起点锁定,终点不能早于起点:{{ range }}
``` ## Interaction and field configuration ### Api Review #### Configuration reference for this comparison | Configuration | Purpose | Related examples | | ------------------------- | ---------------------------------------------------------------------------- | ----------------------------------- | | `open` | Controlled popup visibility | Rejected Close, Passthrough Options | | `date-range-picker-props` | Panel presentation options | Field Panel Tools, Entry Boundary | | `value-format` | Model and event value format: a date format string, Date, or timestamp | Api Review | | `readonly` | Read-only interaction | Api Review | | `format` | Display format | Field Panel Tools | | `popup-props` | Trigger presentation options; cannot override owned visibility or date rules | Passthrough Options |关闭请求会被父级拒绝;修改起止日期后可再次确认,重复确认不应重复提交。
选择模型:{{ selected }};受控视口:{{ viewport }}
视口通知:{{ notice }};快捷项通知:{{ shortcutNotice }}
导航不改变选择模型;拒绝视口请求后,日历仍显示原月份。快捷项先选择草稿,确认后提交。
``` ### Entry Boundary Example source: src/date-range/__demos__/entry-boundary.vue ```vue仅允许选择 2025 年 2 月;移除限制不会改变已有选中值。
范围字段:管理输入、浮层和确认流程。
范围面板:日历从周一开始,点击确认后才提交。
已提交:{{ panelValue.join(" ~ ") }}
顶层 open:{{ open }};嵌套配置:向上展开并调整偏移。
Disable editing to copy existing text. In icon mode, editing does not open the panel.
选择一个对比维度;其他配置和内容保持一致。输入类示例共享同一个值,便于比较外观。Compare one dimension while keeping the other settings and content identical. Input specimens share the same value.
{{ demoCompareAxis }}={{ sample }}
Input
Button
Select
Date
Time
InputNumber
AutoComplete
Cascader
DateRange
TimeRange
Input · clearable
Button · reference
Select · clearable
Cascader · clearable
Select · multiple / nowrap
Cascader · multiple / nowrap
Select · long values / nowrap
Cascader · long values / nowrap
两个实例独立管理周起始日。可切换顶部语言,模型不随展示语言改变。
月份名称模型(稳定英文协议):{{ monthModel }}
``` ## Time and selection rules ### Show Time #### Configuration reference for this comparison | Configuration | Purpose | Related examples | | -------------- | ---------------------------------------------------------------------- | ---------------- | | `show-time` | Include time selection | Show Time | | `format` | Display format | Show Time | | `value-format` | Model and event value format: a date format string, Date, or timestamp | Show Time | | `clearable` | Show the clear action | Show Time | Example source: src/date/__demos__/show-time.vue ```vue时间戳模型:{{ timestamp }}
Date 对象模型:{{ objectValue }}
String: {{ JSON.stringify(date) }}
Month string: {{ JSON.stringify(month) }}
Month/day array: {{ JSON.stringify(range) }}
周一起始,中文可手输 2020-53周;切换英文后使用英文序数。提交为该周起始日。
周模型:{{ week }}
季度输入 2025-Q2,模型为季度首月:{{ quarter }}
周范围不自动交换手输端点:{{ range }}
``` ### Text Entry Example source: src/date/picker/__demos__/text-entry.vue ```vue输入 DD/MM/YYYY,Enter 或失焦提交;非法日期和范围外输入恢复模型显示。
模型:{{ value }}
仅面板选择:{{ panelOnly }}
起点锁定,终点不能早于起点:{{ range }}
``` ## Interaction and field configuration ### Api Review #### Configuration reference for this comparison | Configuration | Purpose | Related examples | | ------------------- | ---------------------------------------------------------------------- | ----------------------------------- | | `disabled` | Disable interaction | Api Review, Field Protocol | | `open` | Controlled popup visibility | Rejected Close, Passthrough Options | | `date-picker-props` | Panel presentation options | Field Panel Tools, Entry Boundary | | `placeholder` | Placeholder | Field Protocol, Entry Boundary | | `value-format` | Model and event value format: a date format string, Date, or timestamp | Api Review | | `readonly` | Read-only interaction | Api Review |关闭请求会被父级拒绝;选择新日期后可再次确认,重复确认不应重复提交。
选择模型:{{ selected }};受控视口:{{ viewport }}
视口通知:{{ notice }};快捷项通知:{{ shortcutNotice }}
导航不改变选择模型;拒绝视口请求后,日历仍显示原月份。快捷项先选择草稿,确认后提交。
``` ### Field Protocol Example source: src/date/__demos__/field-protocol.vue ```vue范围字段:点击右侧输入可从结束端选择;Tab 切换两端不提交,回车或离开整个字段再提交。
禁用字段日期:{{ date || '未选择' }};日期范围:{{ dateRange }}
时间:{{ time || '未选择' }};时间范围:{{ timeRange }}
仅允许选择 2025 年 2 月;移除限制不会改变已有选中值。
字段:管理输入与浮层;面板参数放在 date-picker-props。
纯面板:直接嵌入页面,不使用 open / popup-container。
已提交:{{ panelValue }}
顶层 open:{{ open }};嵌套配置:向上展开并调整偏移。
Disable editing to copy existing text. In icon mode, editing does not open the panel.
{{ item }}. Long dialog content remains scrollable while the title and actions stay visible.
{{ status }}